/* Earth Skater Shared Brand Stylesheet (es-brand.css) */
:root {
    --es-brand-blue: #007bc4;
    --es-brand-blue-dark: #005b94;
    --es-brand-blue-light: #e6f4fc;
    --es-brand-orange: #f47d20;
    --es-brand-orange-hover: #e0660a;
    --es-brand-orange-light: #fff5ed;
    --es-navy-dark: #0b1d33;
    --es-navy-deep: #132845;
    --es-navy-text: #102644;
}

/* Site-wide Top Announcement Bar */
.es-top-announcement-bar {
    background: #081628;
    color: #c7d8ed;
    font-size: 13px;
    padding: 9px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1000;
}
.es-top-announcement-bar .es-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.es-top-announcement-bar strong {
    color: #ffffff;
}
.es-top-announcement-bar .es-topbar-badge {
    display: inline-block;
    background: rgba(244, 125, 32, 0.2);
    color: #ff9d47;
    border: 1px solid rgba(244, 125, 32, 0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}
.es-top-announcement-bar a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}
.es-top-announcement-bar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Sticky Header Scroll Docking (Zero Gap at Top) */
#site-header {
    top: 38px;
    transition: top 0.25s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

/* Logged-in admin bar initial position */
.admin-bar #site-header {
    top: 70px;
}
@media (max-width: 782px) {
    .admin-bar #site-header {
        top: 84px;
    }
}

/* As soon as page scrolls, dock header flush to the very top edge */
#site-header.headroom--not-top {
    top: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Admin bar when scrolled */
.admin-bar #site-header.headroom--not-top {
    top: 32px !important;
}
@media (max-width: 782px) {
    .admin-bar #site-header.headroom--not-top {
        top: 46px !important;
    }
}
@media (max-width: 600px) {
    .admin-bar #site-header.headroom--not-top {
        top: 0 !important;
    }
}

/* Single-Row Sleek Header Layout: Logo (Left), Nav Menu (Center), Actions (Right) */
.header .header-content-wrapper.es-header-single-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 10px 0 !important;
}
.header .header-content-wrapper.es-header-single-row .logo {
    float: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header .header-content-wrapper.es-header-single-row .logo img {
    max-height: 48px;
    width: auto;
}
.header .header-content-wrapper.es-header-single-row .primary-menu {
    float: none !important;
    padding: 0 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.header .header-content-wrapper.es-header-single-row .primary-menu-menu {
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
}
.header .header-content-wrapper.es-header-single-row .primary-menu-menu > li {
    padding: 12px 14px 18px !important;
    position: relative;
}
.header .header-content-wrapper.es-header-single-row .primary-menu-menu > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #102644 !important;
    white-space: nowrap !important;
}
.header .header-content-wrapper.es-header-single-row .primary-menu-menu > li:hover > a {
    color: var(--es-brand-blue) !important;
}

/* Submenu Dropdown Hitbox & Invisible Hover Bridge */
.header .primary-menu-menu ul.sub-menu {
    top: 100% !important;
    margin-top: 0 !important;
    padding: 14px 0 !important;
    min-width: 320px !important;
    pointer-events: auto !important;
    box-shadow: 0 12px 32px rgba(11, 29, 51, 0.16) !important;
    border-radius: 8px !important;
}
.header .primary-menu-menu ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    display: block;
}
.header .primary-menu-menu ul.sub-menu li a {
    padding: 8px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    display: block !important;
}
.header .primary-menu-menu ul.sub-menu li:hover > a {
    color: var(--es-brand-blue) !important;
    background-color: #f8fafc !important;
}
@media (min-width: 981px) {
    .header .primary-menu-menu > li:hover > ul.sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}
.es-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.es-header-quote-btn {
    background: linear-gradient(135deg, #f7931e 0%, var(--es-brand-orange) 100%) !important;
    color: #ffffff !important;
    padding: 9px 20px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(244, 125, 32, 0.35) !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}
.es-header-quote-btn:hover {
    background: linear-gradient(135deg, var(--es-brand-orange) 0%, var(--es-brand-orange-hover) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(244, 125, 32, 0.5) !important;
    color: #ffffff !important;
}
.es-header-search a {
    color: #102644;
    font-size: 19px;
    display: flex;
    align-items: center;
    padding: 6px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.es-header-search a:hover {
    color: var(--es-brand-blue) !important;
    transform: scale(1.15);
}

/* Scrolled compact header */
#site-header.headroom--not-top .header-content-wrapper.es-header-single-row {
    padding: 6px 0 !important;
}
#site-header.headroom--not-top .header-content-wrapper.es-header-single-row .logo img {
    max-height: 40px !important;
}

/* Header spacer adjustment for sleek single-row */
.header-spacer {
    height: 110px !important;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
    .header .header-content-wrapper.es-header-single-row .primary-menu-menu > li {
        padding: 0 9px !important;
    }
    .header .header-content-wrapper.es-header-single-row .primary-menu-menu > li > a {
        font-size: 14px !important;
    }
}
@media (max-width: 980px) {
    .header .header-content-wrapper.es-header-single-row {
        padding: 8px 0 !important;
    }
    .header .header-content-wrapper.es-header-single-row .primary-menu {
        display: block !important;
        flex-grow: 0 !important;
    }
    .header .header-content-wrapper.es-header-single-row .primary-menu-menu {
        display: none !important;
    }
    .header-spacer {
        height: 90px !important;
    }
}
@media (max-width: 480px) {
    .es-header-quote-btn {
        padding: 7px 13px !important;
        font-size: 12px !important;
    }
    .header-spacer {
        height: 85px !important;
    }
}

/* Primary Header CTA Button */
.primary-menu .es-nav-cta-btn {
    display: none !important;
}

/* Pre-Footer Engineering CTA Strip - Polished & High Contrast */
.es-prefooter-cta-strip {
    background: linear-gradient(135deg, #091728 0%, #112845 50%, #16365c 100%);
    color: #ffffff;
    padding: 60px 24px;
    border-top: 4px solid var(--es-brand-blue);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.25);
}
.es-prefooter-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.es-prefooter-cta-strip h3 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto 14px;
    letter-spacing: -0.5px;
}
.es-prefooter-cta-strip p {
    font-size: 17px;
    color: #c7d8ed;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto 30px;
}
.es-prefooter-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
/* Branded Action Buttons */
.es-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.4;
}
.es-btn-primary,
.es-prefooter-actions .es-btn-primary {
    background: linear-gradient(135deg, #f7931e 0%, var(--es-brand-orange) 100%);
    color: #ffffff !important;
    padding: 14px 30px;
    box-shadow: 0 4px 15px rgba(244, 125, 32, 0.45);
    border: none;
}
.es-btn-primary:hover,
.es-prefooter-actions .es-btn-primary:hover {
    background: linear-gradient(135deg, var(--es-brand-orange) 0%, var(--es-brand-orange-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 125, 32, 0.6);
    color: #ffffff !important;
}
.es-btn-secondary,
.es-prefooter-actions .es-btn-secondary {
    background: transparent;
    color: #38bdf8 !important;
    border: 2px solid #38bdf8;
    padding: 12px 28px;
}
.es-btn-secondary:hover,
.es-prefooter-actions .es-btn-secondary:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #ffffff !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Modern 3-Column Footer Links Grid */
.es-footer-columns-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    width: 100%;
}
.es-footer-col {
    min-width: 0;
}
.es-footer-col h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--es-brand-blue);
    letter-spacing: 0.3px;
}
.es-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.es-footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.es-footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.es-footer-col ul li a:hover {
    color: var(--es-brand-orange);
}
.es-footer-col .es-legacy-link a {
    color: #94a3b8;
    font-style: italic;
}

/* Layout override: Give footer ample space */
#site-footer .container {
    max-width: 1260px;
    width: 95%;
}
.es-footer-brand-col {
    padding-right: 40px !important;
}
#site-footer .heading-title {
    font-size: 21px;
    color: #ffffff !important;
    margin-bottom: 0 !important;
}
#site-footer .heading-decoration {
    margin-top: 0 !important;
}
#site-footer .heading-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #e2e8f0 !important;
    margin-top: 10px !important;
}
#site-footer p {
    color: #e2e8f0 !important;
    margin-bottom: 0 !important;
}

/* Footer Section Spacing */
.footer .info {
    padding-bottom: 20px !important;
}

/* Sub-footer Flex Layout with Socials */
.footer .sub-footer {
    padding: 24px 0 !important;
}
.es-subfooter-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-right: 70px; /* leaves plenty of breathing room away from the back-to-top button */
}
.site-copyright-text {
    font-size: 13.5px;
    color: #94a3b8;
}
.site-copyright-text a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-copyright-text a:hover {
    color: var(--es-brand-orange) !important;
}
.es-subfooter-socials {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
}
.es-subfooter-socials .social__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}
.es-subfooter-socials .social__item:hover {
    background: var(--es-brand-blue);
    transform: translateY(-2px);
}
.es-subfooter-socials .social__item img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .es-subfooter-flex {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 50px;
    }
}

/* Contacts Row Styles */
.contacts-item .content .title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.contacts-item .content .sub-title {
    font-size: 13.5px !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
}

@media (max-width: 991px) {
    .es-footer-columns-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
@media (max-width: 600px) {
    .es-footer-columns-wrap {
        grid-template-columns: 1fr;
    }
    .es-prefooter-cta-strip h3 {
        font-size: 24px;
    }
    .es-prefooter-cta-strip p {
        font-size: 15px;
    }
    .es-top-announcement-bar .es-topbar-inner {
        text-align: center;
        justify-content: center;
    }
}
