@media (max-width: 1199px) {
    .card-grid,
    .product-grid,
    .collection-grid,
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.15rem;
    }

    .category-grid {
        gap: 1.75rem 1.25rem;
    }
}

@media (max-width: 991px) {
    .header-left,
    .header-right {
        flex-basis: 140px;
    }

    .header-right {
        display: none;
    }

    .overlay-nav {
        flex-flow: column nowrap;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-width: none;
    }

    .overlay-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .overlay-nav a {
        display: inline-flex;
        padding: 0.9rem 0;
        font-size: 1rem;
        min-height: 44px;
    }

    [data-submenu-toggle] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--color-white);
        min-width: 44px;
        min-height: 44px;
    }

    .nav-children {
        width: 100%;
        flex-basis: 100%;
    }

    .nav-overlay {
        align-items: flex-start;
        justify-content: flex-start;
        padding: calc(var(--header-height) + 8px) 24px 32px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .split,
    .split-reverse,
    .product-detail,
    .contact-layout,
    .footer-grid,
    .team-grid,
    .nine-t-grid,
    .process-gallery {
        grid-template-columns: 1fr;
    }

    .product-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.75rem;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .page-hero-cover {
        min-height: 42vh;
    }

    .catalog-hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 58px;
        --gutter: 1rem;
    }

    .overlay-bar {
        padding: 0 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .header-left {
        flex: 0 0 auto;
        flex-basis: auto;
        position: relative;
        z-index: 2;
        gap: 0.45rem;
    }

    .brand-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: none;
        width: min(220px, calc(100vw - 118px));
        pointer-events: none;
    }

    .brand-logo img {
        pointer-events: auto;
        height: auto;
        max-height: 20px;
        max-width: 100%;
        margin-inline: auto;
    }

    .rk-header-mark {
        width: 18px;
        height: 18px;
    }

    .menu-btn {
        width: 44px;
        height: 44px;
    }

    .card-grid,
    .product-grid,
    .collection-grid,
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1.15rem;
    }

    .category-grid > .catalog-tile,
    .category-grid > .catalog-tile:nth-child(4):nth-last-child(2),
    .category-grid > .catalog-tile:nth-child(5):last-child {
        grid-column: auto;
    }

    .category-grid > .catalog-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 22rem;
        justify-self: center;
        width: 100%;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-arrow {
        display: none;
    }

    .hero-caption {
        padding: calc(var(--header-height) + 0.75rem) 3.6rem 4.75rem 1rem;
    }

    .hero-caption-box,
    .hero-caption-box.is-intro {
        width: 100%;
        max-width: 22rem;
        height: auto;
        min-height: 0;
        padding: 0.85rem 1rem 1.1rem;
    }

    .hero-caption-inner {
        flex: 0 1 auto;
        justify-content: center;
        gap: 0.35rem;
    }

    .hero-caption-inner::before,
    .hero-caption-inner::after {
        height: 28px;
        flex-basis: 28px;
        flex: 0 0 28px;
    }

    .hero-caption-title {
        font-size: 22px;
        line-height: 1.15;
    }

    .hero-caption-box.is-intro .hero-caption-title {
        font-size: 18px;
        letter-spacing: 0.06em;
        line-height: 1.25;
    }

    .hero-kicker {
        margin: 0.45rem 0 0.15rem;
        font-size: 11px;
    }

    .hero-caption-lead {
        margin: 0.65rem 0 0;
        font-size: 9px;
        max-width: 18rem;
        line-height: 1.55;
    }

    .hero-caption-cta {
        margin: 0.85rem 0 0;
    }

    .hero-caption-cta .btn {
        padding: 8px 20px;
        min-height: 36px;
        font-size: 11px;
    }

    .hero-dots {
        bottom: max(18px, env(safe-area-inset-bottom));
    }

    .enquire-tab {
        top: auto;
        bottom: 32%;
        right: 0;
    }

    .enquire-tab img {
        width: 42px;
    }

    .phone-fab {
        left: max(10px, env(safe-area-inset-left));
        bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
    }

    .phone-fab img {
        width: 48px;
    }

    .back-to-top {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
        width: 36px;
        height: 36px;
    }

    .enquire-dialog {
        padding: 0;
        align-items: stretch;
        justify-content: flex-end;
    }

    .enquire-panel {
        width: 100%;
        max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
        padding: 1.5rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .form input,
    .form textarea,
    .form select,
    .search-form input[type="search"] {
        font-size: 16px;
    }

    .catalog-tile .tile-media,
    .catalog-tile .card-media {
        width: 100%;
        height: auto;
    }

    .catalog-tile-title {
        font-size: 0.88rem;
        letter-spacing: 0.14em;
        transform: none;
    }

    .product-tile .card-title {
        font-size: 12px;
        letter-spacing: 0.08em;
        transform: none;
        bottom: 10%;
    }

    .product-portrait-media {
        width: min(420px, 88vw);
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions .btn {
        width: 100%;
    }

    .page-hero h1,
    .catalog-hero h1 {
        font-size: 1.65rem;
        word-break: break-word;
    }

    .page-hero-cover {
        min-height: 34vh;
        padding-bottom: var(--space-xl);
    }

    .catalog-hero {
        padding: calc(var(--header-height) + 1rem) 1rem 3.5rem;
    }

    .category-copy {
        padding-inline: 0.5rem;
        margin-top: 3.25rem;
        padding-top: 2.25rem;
    }

    .nine-t-grid,
    .process-gallery {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: minmax(0, 22rem);
        justify-content: center;
        gap: 2.5rem;
    }

    .team-lead {
        margin-bottom: 2rem;
        padding-inline: 0.5rem;
        font-size: 1.02rem;
    }

    .process-steps li {
        grid-template-columns: 2.25rem 1fr;
    }

    .static-lead {
        margin-bottom: 1.75rem;
        padding-inline: 0.25rem;
    }

    .lazy-footer {
        padding-bottom: 1rem;
    }
}

@media (max-width: 479px) {
    .card-grid,
    .product-grid,
    .collection-grid,
    .category-grid,
    .event-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .product-grid,
    .category-grid,
    .collection-grid {
        gap: 1.75rem;
        justify-items: stretch;
        width: 100%;
    }

    .category-grid > .catalog-tile:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-caption-box.is-intro .hero-caption-title {
        font-size: 16px;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem 0.5rem;
    }

    .product-spec-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 1400px) {
    .hero-copy {
        padding-left: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-caption-box,
    .hero-caption-title,
    .hero-caption-lead,
    .hero-caption-cta,
    .catalog-tile img,
    .product-tile img {
        transition: none;
    }
}
