@media (max-width: 980px) {
    .container {
        width: min(100% - 44px, var(--max-width));
    }

    .header-main {
        min-height: 82px;
        gap: 18px;
    }

    .desktop-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-drawer {
        position: fixed;
        inset: 82px 0 0;
        z-index: 90;
        display: block;
        overflow: auto;
        padding: 20px 22px 40px;
        color: #062e22;
        background: #ffffff;
        transform: translateX(100%);
        transition: transform 220ms ease;
    }

    .mobile-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-nav {
        display: grid;
        gap: 8px;
    }

    .mobile-nav a,
    .mobile-nav summary {
        display: block;
        padding: 13px 14px;
        color: #062e22;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-left: 4px solid transparent;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 800;
        list-style: none;
        text-decoration: none !important;
    }

    .mobile-nav details details {
        margin-left: 12px;
    }

    .mobile-nav details[open] > summary,
    .mobile-nav a:hover {
        color: #062e22;
        background: #f8f5ee;
        border-left-color: #c79a3b;
        transition: 0.25s ease;
    }

    .mobile-nav details[open] > summary {
        background: #f3efe5;
        font-weight: 700;
    }
}

@media (max-width: 992px) {
    .everklin-trust .cert-grid,
    .everklin-trust .stat-grid,
    .cert-grid,
    .stat-grid,
    .trust-certifications,
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-box {
        justify-content: flex-start;
        padding: 0;
        border-right: 0;
    }

    .trust-item {
        min-height: 96px;
        padding: 18px;
    }
}

@media (max-width: 1040px) {
    .hero-layout,
    .solution-layout,
    .sustainability-layout,
    .manufacturing-layout,
    .knowledge-layout {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        padding-top: 104px;
        padding-bottom: 54px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-globe {
        right: auto;
        left: 0;
        width: min(70vw, 320px);
    }

    .hero-leaf {
        right: 8%;
        width: min(58vw, 300px);
    }

    .solution-card-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .manufacturing-grid,
    .knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .industries-showcase .image-card {
        flex-basis: calc((100% - 28px) / 3);
    }

    .cert-grid,
    .stats-grid,
    .compliance-grid,
    .esg-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-story {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .brand-logo {
        width: 170px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 16px;
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button-row .btn {
        width: 100%;
    }

    .strip-item,
    .stat-item {
        min-height: 86px;
        padding: 16px;
    }

    .solutions-showcase,
    .industries-showcase,
    .manufacturing-section,
    .knowledge-center {
        padding: 56px 0;
    }

    .section-row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .solution-card-row,
    .manufacturing-grid,
    .knowledge-grid,
    .cert-grid,
    .stats-grid,
    .compliance-grid,
    .esg-stats {
        grid-template-columns: 1fr;
    }

    .industries-showcase .image-card {
        flex-basis: 100%;
    }

    .solution-mini-card {
        min-height: 230px;
    }

    .sustainability-layout {
        padding: 58px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom div {
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .everklin-trust .cert-grid,
    .everklin-trust .stat-grid,
    .cert-grid,
    .stat-grid,
    .trust-certifications,
    .trust-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .hero h1 {
        font-size: 39px;
    }

    .section-intro h2,
    .section-row-heading h2,
    .sustainability-layout h2,
    .manufacturing-layout h2,
    .knowledge-layout h2 {
        font-size: 32px;
    }

    .hero-visual {
        min-height: 230px;
    }
}

@media (max-width: 980px) {
    .mobile-drawer {
        display: none;
        transform: none;
    }

    .mobile-drawer.is-open {
        position: fixed;
        top: 92px;
        right: 12px;
        left: 12px;
        z-index: 10000;
        display: block;
        max-height: calc(100svh - 110px);
        overflow-y: auto;
        color: #ffffff;
        background: #062e22;
        border: 1px solid rgba(155, 188, 74, 0.18);
        border-radius: 16px;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    }

    .mobile-drawer.is-open .mobile-nav a,
    .mobile-drawer.is-open .mobile-nav summary {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        border-left-color: transparent;
    }

    .mobile-drawer.is-open .mobile-nav details[open] > summary,
    .mobile-drawer.is-open .mobile-nav a:hover {
        color: #ffffff;
        background: rgba(248, 245, 238, 0.12);
        border-left-color: #c79a3b;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 9999;
        height: 92px;
        background: #062e22;
        box-shadow: none;
        backdrop-filter: none;
    }

    .site-header.is-scrolled,
    .site-header.is-menu-open {
        background: #062e22;
        box-shadow: none;
        backdrop-filter: none;
    }

    .header-main {
        width: 100%;
        height: 92px;
        min-height: 92px;
        padding: 0 20px;
    }

    .brand-logo,
    .site-logo img {
        width: 190px;
        max-height: 64px;
        object-fit: contain;
    }

    .mobile-menu-toggle {
        width: 52px;
        height: 52px;
    }

    .hero {
        min-height: 720px;
        height: auto;
    }

    .hero-layout {
        min-height: 720px;
        padding-top: 125px;
        padding-bottom: 50px;
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(44px, 11vw, 62px);
        line-height: 0.96;
    }

    .hero p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.55;
    }

    .button-row {
        width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    .button-row .btn {
        justify-content: center;
        width: 100%;
        min-height: 54px;
        font-size: 15px;
    }

    .hero-bg {
        background-position: 64% center;
    }
}

@media (max-width: 420px) {
    .site-header {
        height: 82px;
    }

    .header-main {
        height: 82px;
        min-height: 82px;
        padding: 0 16px;
    }

    .brand-logo,
    .site-logo img {
        width: 155px;
        max-height: 54px;
    }

    .mobile-menu-toggle {
        width: 46px;
        height: 46px;
    }

    .mobile-drawer.is-open {
        top: 82px;
    }

    .hero {
        min-height: 680px;
    }

    .hero-layout {
        min-height: 680px;
        padding-top: 112px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 0.95;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-bg {
        background-position: 66% center;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 980px) {
    .mobile-drawer {
        position: fixed;
        top: 82px;
        right: 12px;
        left: 12px;
        z-index: 99999;
        display: none;
        max-height: calc(100svh - 100px);
        padding: 14px;
        overflow-y: auto;
        color: #ffffff;
        background: #062e22;
        border: 1px solid rgba(155, 188, 74, 0.22);
        border-radius: 18px;
        transform: none;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-drawer.is-open {
        display: block;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav details {
        width: 100%;
    }

    .mobile-nav summary,
    .mobile-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        padding: 13px 16px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.25;
        text-decoration: none !important;
        cursor: pointer;
        list-style: none;
    }

    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav summary::marker {
        content: "";
    }

    .mobile-nav details[open] > summary {
        color: #ffffff;
        background: rgba(184, 138, 50, 0.16);
        border-color: #b88a32;
    }

    .mobile-nav details:not([open]) > .mobile-submenu {
        display: none;
    }

    .mobile-nav details[open] > .mobile-submenu {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
        margin-left: 12px;
        padding-left: 10px;
        border-left: 1px solid rgba(184, 138, 50, 0.35);
    }

    .mobile-level-2 summary,
    .mobile-level-2.mobile-link,
    .mobile-level-2 a {
        min-height: 46px;
        padding: 11px 14px;
        background: rgba(255, 255, 255, 0.04);
        font-size: 15px;
    }

    .mobile-level-3 summary,
    .mobile-level-3.mobile-link,
    .mobile-level-3 a {
        min-height: 42px;
        padding: 10px 13px;
        background: rgba(255, 255, 255, 0.035);
        font-size: 14px;
    }

    .mobile-level-4 summary,
    .mobile-level-4.mobile-link,
    .mobile-level-4 a {
        min-height: 38px;
        padding: 9px 12px;
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.025);
        font-size: 13px;
    }

    .mobile-arrow {
        color: #b88a32;
        font-size: 18px;
        transition: transform 0.2s ease;
    }

    .mobile-nav details[open] > summary .mobile-arrow {
        transform: rotate(180deg);
    }

    .site-header,
    .site-header.is-scrolled,
    .site-header.is-menu-open,
    .mobile-drawer {
        background:
            radial-gradient(circle at 34% 30%, rgba(11, 107, 75, 0.28), transparent 36%),
            radial-gradient(circle at 84% 12%, rgba(155, 188, 74, 0.1), transparent 34%),
            linear-gradient(180deg, #003729 0%, #002f24 48%, #001f18 100%);
    }

    .mobile-drawer {
        border-color: rgba(155, 188, 74, 0.2);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    }
}

@media (max-width: 1040px) {
    .placeholder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inner-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .solutions-large-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solutions-large-card ul,
    .solutions-large-card p,
    .solutions-large-card h3 {
        min-height: 0;
    }

    .why-solution-grid,
    .solutions-industry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-solution-grid article:nth-child(2n) {
        border-right: 0;
    }

    .solutions-consult-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .inner-hero,
    .inner-hero-content {
        min-height: 380px;
    }

    .inner-hero-content {
        padding-top: 118px;
        padding-bottom: 54px;
    }

    .inner-hero h1 {
        font-size: 42px;
    }

    .inner-hero p {
        font-size: 16px;
    }

    .inner-content-section {
        padding: 58px 0;
    }

    .placeholder-grid {
        grid-template-columns: 1fr;
    }

    .inner-cta-section {
        padding-bottom: 58px;
    }

    .inner-cta-card {
        padding: 30px 24px;
    }

    .inner-cta-card h2 {
        font-size: 28px;
    }

    .solutions-hero,
    .solutions-hero-content {
        min-height: 600px;
    }

    .solutions-hero-content {
        padding-top: 118px;
        padding-bottom: 54px;
    }

    .solutions-hero h1 {
        font-size: 46px;
    }

    .solutions-hero p {
        font-size: 16px;
    }

    .solutions-main-section,
    .solutions-industries-preview {
        padding: 64px 0;
    }

    .solutions-large-grid,
    .why-solution-grid,
    .solutions-industry-grid {
        grid-template-columns: 1fr;
    }

    .solutions-section-heading {
        margin-bottom: 30px;
    }

    .solutions-section-heading h2 {
        font-size: 36px;
    }

    .solutions-card-image {
        height: 210px;
        flex-basis: 210px;
    }

    .solutions-large-card ul {
        min-height: 0;
    }

    .solutions-why-section {
        padding: 64px 0;
    }

    .solutions-consult-cta {
        padding-bottom: 64px;
    }

    .solutions-consult-card {
        gap: 26px;
        padding: 30px 24px;
    }

    .solutions-consult-image {
        min-height: 240px;
    }
}

@media (max-width: 420px) {
    .inner-hero,
    .inner-hero-content {
        min-height: 350px;
    }

    .inner-hero-content {
        padding-top: 104px;
        padding-bottom: 44px;
    }

    .inner-hero h1 {
        font-size: 36px;
    }

    .breadcrumb {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .solutions-hero,
    .solutions-hero-content {
        min-height: 570px;
    }

    .solutions-hero-content {
        padding-top: 104px;
        padding-bottom: 44px;
    }

    .solutions-hero h1 {
        font-size: 38px;
    }

    .solutions-breadcrumb {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .solutions-card-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .solutions-card-icon {
        left: 50%;
    }

    .solutions-consult-card h2 {
        font-size: 32px;
    }
}

/* FINAL GLOBAL HEADER + FOOTER POLISH */
.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link.active,
.menu-item.active > a,
.desktop-nav a {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.nav-link.active,
.menu-item.active > a {
    color: #b88a32 !important;
}

.header-cta,
.get-in-touch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 210px;
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.site-footer {
    padding-top: 64px !important;
}

.footer-main,
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 56px;
    align-items: start;
}

.footer-brand,
.footer-story {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -18px;
}

.footer-logo,
.brand-footer .brand-logo {
    width: 190px;
    margin-bottom: 20px;
}

.footer-brand p,
.footer-story p {
    max-width: 360px;
    margin: 0 0 24px;
}

.footer-socials,
.social-links {
    display: flex;
    gap: 12px;
}

.footer-socials a,
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none !important;
    border: 1px solid rgba(184, 138, 50, 0.7);
    border-radius: 50%;
}

.footer-column,
.footer-col {
    padding-top: 0;
}

.footer-column .footer-column-title,
.footer-col h2 {
    margin: 0 0 18px;
    color: #b88a32;
}

.footer-column a,
.footer-col a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none !important;
}

.footer-bottom {
    margin-top: 52px !important;
    padding-top: 28px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1024px) {
    .header-cta,
    .get-in-touch-btn {
        min-width: 180px;
    }

    .footer-main,
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }

    .footer-brand,
    .footer-story {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .header-cta,
    .get-in-touch-btn {
        display: none;
    }

    .site-footer {
        padding-top: 44px !important;
    }

    .footer-main,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo,
    .brand-footer .brand-logo {
        width: 165px;
    }

    .footer-bottom {
        display: grid;
        gap: 16px;
        margin-top: 34px !important;
    }
}

/* GLOBAL SIDE SPACING */
:root {
    --page-max: 1800px;
    --page-pad: 40px;
}

.container,
.header-container,
.footer-container,
.section-container,
.page-container {
    width: min(100% - calc(var(--page-pad) * 2), var(--page-max));
    margin-inline: auto;
}

/* HEADER SPACING */
.header-container,
.header-main {
    gap: 32px;
}

.site-logo img,
.header-logo img,
.brand-logo {
    width: 220px;
    height: auto;
}

.desktop-nav,
.nav-list {
    gap: 38px;
}

.get-in-touch-btn,
.header-cta {
    width: 175px;
    min-width: 175px;
    height: 52px;
    white-space: nowrap;
}

/* HERO CONTENT SAME SIDE ALIGN */
.hero-content,
.inner-hero-content {
    width: min(100% - calc(var(--page-pad) * 2), var(--page-max));
    margin-inline: auto;
}

/* SECTION SPACING SAME EVERYWHERE */
section {
    scroll-margin-top: 100px;
}

.section-padding {
    padding-block: 90px;
}

@media (max-width: 1200px) {
    :root {
        --page-pad: 28px;
    }

    .site-logo img,
    .header-logo img,
    .brand-logo {
        width: 190px;
    }

    .desktop-nav,
    .nav-list {
        gap: 26px;
    }

    .get-in-touch-btn,
    .header-cta {
        width: 160px;
        min-width: 160px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --page-pad: 18px;
    }

    .site-logo img,
    .header-logo img,
    .brand-logo {
        width: 170px;
    }

    .section-padding {
        padding-block: 56px;
    }
}

@media (max-width: 420px) {
    :root {
        --page-pad: 14px;
    }

    .site-logo img,
    .header-logo img,
    .brand-logo {
        width: 155px;
    }
}
