/* Final shared corporate shell. It intentionally overrides legacy header/footer layers only. */
:root {
    --corporate-forest: #23452a;
    --corporate-ink: #243328;
    --corporate-olive: #8aa63a;
    --corporate-olive-dark: #6f862d;
    --corporate-cream: #faf8f3;
    --corporate-border: #dde7c8;
    --corporate-header-height: 86px;
}

.site-header {
    position: fixed !important;
    z-index: 9999 !important;
    min-height: var(--corporate-header-height);
    color: var(--corporate-ink) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(221, 231, 200, 0.92);
    box-shadow: 0 8px 30px rgba(35, 69, 42, 0.04);
    backdrop-filter: blur(16px);
    transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    background: rgba(255, 255, 255, 0.985) !important;
    border-bottom-color: rgba(138, 166, 58, 0.32);
    box-shadow: 0 12px 34px rgba(35, 69, 42, 0.1);
}

.site-header .header-main {
    min-height: var(--corporate-header-height);
    gap: 28px;
}

.site-header .brand {
    flex: 0 0 auto;
    padding-right: 4px;
}

.site-header .brand-logo {
    display: block;
    width: 186px;
    height: auto;
    filter: none;
}

.site-header .desktop-nav {
    margin-left: 0 !important;
}

.site-header .nav-list {
    gap: 25px;
}

.site-header .nav-list > .nav-item > a,
.site-header .nav-link,
.site-header .nav-trigger {
    min-height: var(--corporate-header-height);
    color: var(--corporate-ink) !important;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    text-shadow: none;
    transition: color 180ms ease;
}

.site-header .nav-item::before {
    display: none;
}

.site-header .desktop-nav a:hover,
.site-header .nav-item:hover .nav-trigger,
.site-header .nav-item:hover .nav-link,
.site-header .nav-item:focus-within .nav-link,
.site-header .nav-arrow:hover {
    color: var(--corporate-olive-dark) !important;
}

.site-header .nav-arrow {
    width: 16px;
    height: var(--corporate-header-height);
    color: var(--corporate-olive) !important;
    text-shadow: none;
}

.site-header .header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.site-header .header-search {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--corporate-forest) !important;
    border: 1px solid var(--corporate-border);
    border-radius: 50%;
    background: #fff;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header .header-search .line-svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
}

.site-header .header-search:hover,
.site-header .header-search:focus-visible {
    color: #fff !important;
    border-color: var(--corporate-olive);
    background: var(--corporate-olive);
    transform: translateY(-1px);
}

.site-header .header-cta {
    min-height: 44px;
    padding: 0 20px !important;
    color: #fff !important;
    border: 1px solid var(--corporate-olive) !important;
    border-radius: 5px !important;
    background: var(--corporate-olive) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header .header-cta:hover,
.site-header .header-cta:focus-visible {
    color: #fff !important;
    border-color: var(--corporate-olive-dark) !important;
    background: var(--corporate-olive-dark) !important;
    box-shadow: 0 9px 18px rgba(111, 134, 45, 0.22) !important;
    transform: translateY(-1px);
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgba(138, 166, 58, 0.56);
    outline-offset: 3px;
}

@media (min-width: 992px) {
    .site-header .mega-menu.solutions-mega,
    .site-header .mega-menu.standard-mega,
    .site-header .solenis-dropdown {
        top: var(--corporate-header-height) !important;
        height: min(530px, calc(100vh - var(--corporate-header-height))) !important;
        max-height: calc(100vh - var(--corporate-header-height));
        border: 1px solid rgba(221, 231, 200, 0.94);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 26px 60px rgba(35, 69, 42, 0.16);
    }
}

/* Footer: a dark, confident corporate close with an olive data-line motif. */
footer.site-footer,
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden !important;
    padding: 0 0 27px !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 86% 0%, rgba(159, 184, 76, 0.36), transparent 28%),
        linear-gradient(118deg, #23452a 0%, #355a29 48%, #63802e 100%) !important;
}

footer.site-footer::before,
.site-footer::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: 0.2 !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 48px 48px;
}

footer.site-footer .footer-leaf-art {
    right: -70px;
    bottom: -108px;
    width: 400px;
    height: 400px;
    opacity: 0.11 !important;
    filter: brightness(0) invert(1);
}

footer.site-footer .footer-introduction {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    padding: 52px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

footer.site-footer .footer-introduction__brand {
    display: grid;
    max-width: 590px;
    gap: 15px;
}

footer.site-footer .footer-introduction__logo {
    display: inline-flex;
    width: max-content;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

footer.site-footer .footer-introduction .footer-logo {
    display: block;
    width: 206px;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}

footer.site-footer .footer-introduction p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 15px;
    line-height: 1.6;
}

footer.site-footer .footer-introduction__action {
    display: grid;
    justify-items: start;
    gap: 11px;
    min-width: 246px;
}

footer.site-footer .footer-introduction__action > span {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

footer.site-footer .footer-introduction__action a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 17px;
    color: var(--corporate-forest) !important;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

footer.site-footer .footer-introduction__action a:hover {
    color: #fff !important;
    background: transparent;
    transform: translateY(-1px);
}

footer.site-footer .footer-grid {
    position: relative;
    display: grid !important;
    grid-template-columns: 1.02fr 1.28fr 1fr 0.96fr 1.18fr !important;
    gap: 34px !important;
    padding-top: 42px;
}

footer.site-footer .footer-column {
    min-width: 0;
}

footer.site-footer .footer-column .footer-column-title,
footer.site-footer .footer-column h3,
footer.site-footer .footer-column strong {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    line-height: 1.35 !important;
    text-transform: uppercase;
}

footer.site-footer .footer-column .footer-column-title {
    margin: 0 0 17px !important;
}

footer.site-footer .footer-column a,
footer.site-footer .footer-column p,
footer.site-footer .footer-column li,
footer.site-footer .footer-column address,
footer.site-footer .footer-column span {
    color: rgba(255, 255, 255, 0.83) !important;
    font-size: 13px !important;
    font-weight: 550 !important;
    line-height: 1.55 !important;
}

footer.site-footer .footer-column > a {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 0 7px;
    transition: color 180ms ease, transform 180ms ease;
}

footer.site-footer .footer-column > a:hover,
footer.site-footer .footer-bottom a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

footer.site-footer .footer-contact-panel {
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

footer.site-footer .footer-contact-heading {
    margin-top: 0 !important;
}

footer.site-footer .footer-contact-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px !important;
    align-items: start;
    margin: 0 0 16px !important;
}

footer.site-footer .footer-contact-icon {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    transition: transform 180ms ease, background 180ms ease;
}

footer.site-footer .footer-contact-item:hover .footer-contact-icon {
    background: rgba(255, 255, 255, 0.19);
    transform: scale(1.06);
}

footer.site-footer .footer-contact-icon .line-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor !important;
}

footer.site-footer .footer-contact-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 10px !important;
}

footer.site-footer .footer-contact-item address {
    font-style: normal;
}

footer.site-footer .footer-bottom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 42px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
}

footer.site-footer .footer-bottom,
footer.site-footer .footer-bottom p,
footer.site-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

footer.site-footer .footer-bottom > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
}

@media (max-width: 1199px) {
    .site-header .nav-list { gap: 15px; }
    .site-header .nav-list > .nav-item > a,
    .site-header .nav-link,
    .site-header .nav-trigger { font-size: 12px; }
    .site-header .header-main { gap: 18px; }
    .site-header .brand-logo { width: 166px; }
    .site-header .header-cta { padding: 0 14px !important; }
}

@media (max-width: 1050px) {
    footer.site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 36px 32px !important;
    }

    footer.site-footer .footer-contact-panel {
        grid-column: span 2;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        border-left: 0;
        padding-top: 28px;
    }
}

@media (max-width: 991px) {
    .site-header { min-height: 72px; }
    .site-header .header-main { min-height: 72px; }
    .site-header .brand-logo { width: 158px; }
    .site-header .header-search { width: 40px; height: 40px; }
    .site-header .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        border: 1px solid var(--corporate-border) !important;
        border-radius: 4px;
        background: #fff !important;
    }
    .site-header .mobile-menu-toggle span { background: var(--corporate-forest) !important; }
    .site-header .mobile-drawer {
        top: 72px !important;
        padding: 22px 22px 40px;
        color: var(--corporate-ink) !important;
        background: var(--corporate-cream) !important;
        box-shadow: -16px 0 35px rgba(35, 69, 42, 0.14);
    }
    .site-header .mobile-nav { gap: 9px; }
    .site-header .mobile-nav > a,
    .site-header .mobile-nav summary {
        color: var(--corporate-ink) !important;
        border-color: var(--corporate-border) !important;
        background: #fff !important;
    }
    .site-header .mobile-nav .mobile-submenu { background: #fff !important; }
}

@media (max-width: 620px) {
    .site-header .header-main { gap: 10px; }
    .site-header .brand-logo { width: 139px; }
    .site-header .header-search { width: 38px; height: 38px; }
    .site-header .mobile-menu-toggle { width: 38px; height: 38px; }

    footer.site-footer { padding-bottom: 24px !important; }
    footer.site-footer .footer-introduction {
        display: grid;
        gap: 25px;
        padding: 43px 0 28px;
    }
    footer.site-footer .footer-introduction .footer-logo { width: 190px; }
    footer.site-footer .footer-introduction p { font-size: 14px; }
    footer.site-footer .footer-grid { grid-template-columns: 1fr !important; gap: 29px !important; padding-top: 31px; }
    footer.site-footer .footer-contact-panel { grid-column: auto; }
    footer.site-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 34px !important; }
    footer.site-footer .footer-bottom > div { justify-content: flex-start; gap: 7px 16px; }
}

/* ==========================================================================
   HEADER RESTORE (2026-08-08) — owner decision.

   1. The global "Request Consultation" CTA was removed from the header markup.
      .header-main is display:flex + justify-content:space-between, so the freed
      space is reclaimed automatically: brand left, navigation centre, search
      right. No empty CTA slot and no reserved width remains. The legacy
      .header-cta rules elsewhere are now unused dead selectors and are left in
      place only because other components share those :where() groupings.

   2. Guard against the Step-1 regression that collapsed the navigation: the
      top-level row must never inherit the compact .nav-arrow box metrics
      (width:18px / font-size:0) that are intended for the chevron button only.
      ========================================================================== */
.site-header .header-actions { gap: 10px; }

/* Nav labels must always size to their own text. */
.site-header .nav-list > .nav-item > .nav-link {
    width: auto;
    min-width: max-content;
    font-size: inherit;
    white-space: nowrap;
}

/* The chevron button keeps its own compact metrics, separate from the label. */
.site-header .nav-list > .nav-item > .nav-arrow {
    flex: 0 0 auto;
}

/* Search Mode must never be active on page load. */
body:not(.ek-searchmode) .header-searchbar { display: none; }

/* Mid-width tier (2026-08-08): between the compact <=1199 rules and full size,
   1280px is the tightest desktop case now that the CTA is gone. A small gap/size
   reduction keeps all six labels on one row with comfortable headroom, without
   changing any menu label text. */
@media (min-width: 1200px) and (max-width: 1365px) {
    .site-header .nav-list { gap: 18px; }
    .site-header .header-main { gap: 22px; }
    .site-header .nav-list > .nav-item > .nav-link { font-size: 14px; }
    .site-header .brand-logo { width: 172px; }
}
