.mobile-nav-wrapper {
    display: none;
}

@media (max-width: 991px) {
    html.mobile-menu-open,
    html.mobile-menu-open body {
        overflow: hidden;
    }

    .mobile-nav-wrapper {
        display: block;
        position: relative;
        z-index: 1100;
    }

    .mobile-nav-bar {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px 0 18px;
        background: #fdfaf3;
        border: 1px solid rgba(93, 82, 75, 0.1);
        border-radius: 14px;
        box-shadow: 0 12px 36px -20px rgba(42, 36, 30, 0.42);
        z-index: 1120;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        min-width: 0;
        height: 100%;
    }

    .mobile-brand img {
        display: block;
        width: auto;
        max-width: min(58vw, 214px);
        height: 38px;
        object-fit: contain;
        object-position: left center;
    }

    .menu-toggle-btn {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        flex: 0 0 48px;
        padding: 0;
        color: var(--ink, #2a241e);
        background: transparent;
        border: 0;
        border-radius: 10px;
    }

    .menu-toggle-btn:focus-visible {
        outline: none !important;
    }

    html.keyboard-navigation .menu-toggle-btn:focus-visible {
        outline: 3px solid rgba(232, 137, 12, 0.48) !important;
        outline-offset: 2px !important;
    }

    .navbar-toggler-icon {
        position: relative;
        width: 21px;
        height: 15px;
    }

    .navbar-toggler-icon .bar {
        position: absolute;
        left: 0;
        width: 21px;
        height: 1px;
        background: currentColor;
        transform-origin: center;
        transition: top var(--motion-standard) var(--motion-ease-out), transform var(--motion-standard) var(--motion-ease-out);
    }

    .navbar-toggler-icon .bar:first-child {
        top: 4px;
    }

    .navbar-toggler-icon .bar:last-child {
        top: 11px;
    }

    .menu-toggle-btn.active .bar:first-child {
        top: 7px;
        transform: rotate(45deg);
    }

    .menu-toggle-btn.active .bar:last-child {
        top: 7px;
        transform: rotate(-45deg);
    }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(42, 36, 30, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--motion-standard) var(--motion-ease-standard), visibility 0s linear var(--motion-standard);
        z-index: 1090;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .mobile-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: calc(max(12px, env(safe-area-inset-top)) + 88px) 16px max(22px, env(safe-area-inset-bottom));
        background:
            radial-gradient(ellipse 70% 40% at 100% 0%, rgba(232, 137, 12, 0.08), transparent 70%),
            var(--paper, #faf6ef);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity var(--motion-standard) var(--motion-ease-standard), transform var(--motion-standard) var(--motion-ease-out), visibility 0s linear var(--motion-standard);
        z-index: 1110;
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .mobile-nav-menu {
        width: min(100%, 680px);
        margin: 0 auto;
        padding: 0;
        list-style: none;
    }

    .mobile-nav-item {
        margin: 0;
        border-bottom: 1px solid var(--line, #e8e0d2);
    }

    .mobile-nav-link {
        width: 100%;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 13px 4px;
        color: var(--ink, #2a241e);
        background: transparent;
        border: 0;
        border-radius: 0;
        font: 500 clamp(20px, 6vw, 28px)/1.25 var(--font-display, Georgia, serif);
        text-align: left;
        text-decoration: none;
        transition: color var(--motion-fast) var(--motion-ease-standard), opacity var(--motion-fast) linear;
    }

    .mobile-nav-link[aria-current="page"],
    .mobile-dropdown-toggle[aria-expanded="true"] {
        color: var(--navy, #0b3c6e);
    }

    .mobile-dropdown-toggle .fa-angle-down {
        flex: 0 0 auto;
        color: var(--ink-2, #6e6257);
        font-size: 15px;
        transition: transform var(--motion-standard) var(--motion-ease-out);
    }

    .mobile-dropdown-toggle[aria-expanded="true"] .fa-angle-down {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        display: grid;
        grid-template-rows: 0fr;
        margin: 0;
        padding: 0;
        list-style: none;
        transition: grid-template-rows var(--motion-standard) var(--motion-ease-out);
    }

    .mobile-dropdown-menu > li {
        overflow: hidden;
    }

    .mobile-dropdown-menu.show {
        grid-template-rows: 1fr;
    }

    .mobile-dropdown-menu.show > li {
        padding-bottom: 12px;
    }

    .mobile-dropdown-link {
        display: block;
        min-height: 44px;
        padding: 10px 4px 10px 20px;
        color: var(--ink-2, #6e6257);
        font-size: 15px;
        line-height: 1.6;
        text-decoration: none;
    }

    .mobile-dropdown-link[aria-current="page"] {
        color: var(--navy, #0b3c6e);
    }

    .nav-footer {
        width: min(100%, 680px);
        margin: auto auto 0;
        padding: 42px 4px 0;
        color: var(--ink-2, #6e6257);
        font-size: 12px;
    }

    .nav-footer a {
        color: var(--navy, #0b3c6e);
        text-decoration: none;
    }

    body {
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
    }

    section,
    [id] {
        scroll-margin-top: 96px;
    }

    .container,
    .container-fluid {
        --bs-gutter-x: 32px;
    }

    .row.g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 2rem;
    }

    .page-hero {
        min-height: clamp(430px, 72svh, 640px);
        display: flex;
        align-items: flex-end;
        padding: 128px 0 60px;
    }

    .page-hero-title {
        max-width: 11ch;
        font-size: clamp(38px, 11vw, 56px);
        line-height: 1.06;
    }

    .page-hero-subtitle {
        max-width: 34ch;
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.7;
    }

    .section-head {
        display: block;
        margin-bottom: 34px;
    }

    .section-title {
        max-width: 12ch;
        white-space: normal;
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.12;
    }

    .section-rule {
        width: 48px;
        margin-top: 20px;
        background: var(--amber, #e8890c);
    }

    .card-brand,
    .feature-card {
        border-radius: 16px;
    }

    .card-brand:hover,
    .feature-card:hover {
        transform: none;
    }

    .button,
    .btn,
    button,
    input,
    select,
    textarea {
        min-height: 48px;
    }

    .table-responsive {
        margin-inline: -16px;
        padding-inline: 16px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .table-brand {
        min-width: 680px;
    }

    .img-brand {
        border-radius: 14px;
    }

    .page-nav-container {
        margin-bottom: 26px;
        padding: 14px 0;
        overflow: hidden;
    }

    .page-nav-container .container {
        max-width: none;
        padding: 0;
    }

    .page-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 16px 4px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 16px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .page-nav::-webkit-scrollbar {
        display: none;
    }

    .page-nav .nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .page-nav .nav-link {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        padding: 8px 15px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 0;
    }

    .hero-section .container {
        max-width: none;
        padding-inline: 16px;
    }

    .hero-section .row {
        margin: 0;
        gap: 0 !important;
    }

    .hero-section .row > .col-lg-6 {
        padding-inline: 0;
    }

    .hero-section .row > .col-lg-6:first-child {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 108px;
        padding-bottom: 34px;
    }

    .hero-eyebrow {
        align-self: flex-start;
        max-width: 100%;
        padding: 8px 14px;
        font-size: 12px;
        line-height: 1.45;
        letter-spacing: 0.08em;
    }

    .hero-title {
        max-width: 8ch;
        margin-top: 34px;
        font-size: clamp(40px, 12vw, 56px);
        line-height: 1.02;
        letter-spacing: -0.025em;
    }

    .hero-subtitle {
        max-width: 34ch;
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.7;
    }

    .cta-buttons {
        width: 100%;
        margin-top: 34px;
        gap: 10px;
    }

    .cta-buttons .button {
        width: 100%;
        max-width: none;
        min-height: 50px;
    }

    .hero-stats {
        width: 100%;
        margin-top: 44px;
        padding-top: 24px;
    }

    .stat-value {
        font-size: clamp(26px, 8vw, 34px);
    }

    .stat-label {
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0.04em;
    }

    .stat-item + .stat-item {
        margin-left: 12px;
        padding-left: 12px;
    }

    .hero-section .row > .col-lg-6:last-child {
        width: calc(100% + 32px);
        max-width: none;
        margin-left: -16px;
    }

    .hero-media {
        margin-top: 0;
    }

    .hero-media img {
        height: 72svh;
        min-height: 500px;
        border-width: 1px 0;
        border-radius: 0;
        box-shadow: none;
    }

    .features-section {
        padding: 76px 0 88px;
    }

    .features-section .section-head {
        margin-bottom: 44px;
        text-align: center;
    }

    .features-section .section-title {
        max-width: 12ch;
        margin-inline: auto;
    }

    .features-section .section-title::before {
        display: none;
    }

    .features-section .section-rule {
        margin-inline: auto;
    }

    .feature-rail {
        display: flex;
        gap: 14px;
        margin-inline: -16px;
        padding: 0 24px 8px 16px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .feature-rail::-webkit-scrollbar {
        display: none;
    }

    .feature-rail > .row {
        display: contents;
    }

    .feature-rail [class*="col-"] {
        flex: 0 0 min(82vw, 330px);
        width: auto;
        max-width: none;
        padding: 0;
        scroll-snap-align: start;
    }

    .feature-card {
        min-height: min(66svh, 560px);
    }

    .feature-card .card-body {
        padding: 28px 24px;
    }

    .feature-card .card-title {
        font-size: 22px;
    }

    .feature-card .card-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .slogan-section {
        min-height: 88svh;
        display: flex;
        align-items: center;
        padding: 84px 0;
    }

    .slogan-title {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.28;
    }

    .quality-title {
        font-size: 21px;
        line-height: 1.75;
    }

    .values-row {
        gap: 9px;
    }

    .value-pill {
        padding: 9px 17px;
        font-size: 13px;
    }

    .service-motto {
        align-items: flex-start;
        font-size: 12px;
        line-height: 1.8;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 374px) {
    .mobile-nav-bar {
        left: 8px;
        right: 8px;
    }

    .mobile-brand img {
        max-width: 190px;
        height: 34px;
    }

    .hero-title {
        font-size: 43px;
    }

    .hero-section .row > .col-lg-6:first-child {
        padding-top: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-overlay,
    .mobile-dropdown-menu,
    .navbar-toggler-icon .bar {
        transition: none !important;
    }
}
