/* ==========================================================================
   THE SKIN CLINIC By Georgia — Responsive layers
   Breakpoints: 1080 · 900 · 700 · 540
   ========================================================================== */

/* ------------------------------------------------ Large tablet / small desktop */
@media (max-width: 1080px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
}

/* ------------------------------------------------ Tablet: nav collapses */
@media (max-width: 900px) {

    html:focus-within { scroll-padding-top: 90px; }

    /* Mobile navigation */
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; inset: 0 0 0 auto; width: min(86vw, 350px);
        background: var(--cream); flex-direction: column; align-items: flex-start;
        justify-content: flex-start; gap: 4px; padding: 96px 36px 40px;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        transform: translateX(100%); transition: transform .45s var(--ease);
        box-shadow: -20px 0 60px rgba(0,0,0,.18); z-index: 50;
    }
    body.nav-open .nav-menu { transform: translateX(0); }
    body.nav-open { overflow: hidden; }
    .nav-menu li { width: 100%; }
    .nav-link { display: block; font-size: 1.18rem; padding: 15px 0; letter-spacing: .1em; }
    .nav-link::after { display: none; }
    .nav-cta-item { margin: 20px 0 0; }
    .nav-cta { width: 100%; padding: 16px; }

    /* Hamburger -> X */
    body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* iOS Safari fix: backdrop-filter on the header creates a containing block that
       traps the position:fixed menu inside the header. Keep the header unfiltered on
       mobile so the slide-in menu anchors to the viewport correctly. */
    .site-header.scrolled {
        -webkit-backdrop-filter: none; backdrop-filter: none;
        background: var(--cream); box-shadow: 0 1px 0 var(--line);
    }
    body.nav-open .floating-cta { display: none; }

    /* Hero -> centred text, full-width video band below */
    .hero { padding-top: 104px; padding-bottom: 0; }
    .hero-grid { display: block; max-width: none; padding-inline: 0; }
    .hero-copy { text-align: center; padding-inline: var(--gutter); max-width: 820px; margin-inline: auto; }
    .hero-eyebrow { display: flex; justify-content: center; }
    .hero-eyebrow::before, .hero-eyebrow::after { display: block; }
    .hero-lede { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-credentials { align-items: center; width: max-content; max-width: 100%; margin-inline: auto; }
    .hero-media {
        display: block; width: 100%; height: clamp(320px, 56vh, 520px);
        margin-top: 34px; background: var(--cream-deep);
    }
    .hero-vid {
        width: 100%; max-width: none; height: 100%; aspect-ratio: auto;
        object-fit: cover; object-position: center 35%; border-radius: 0; box-shadow: none;
    }

    /* Sections -> stack, text first then image */
    .about-grid, .contact-grid, .stockist-grid { grid-template-columns: 1fr; }
    .about-copy { order: 1; }
    .about-media { order: 2; max-width: 460px; margin-inline: auto; position: static; top: auto; }
    .stockist-badge img { max-width: 340px; }
    .stockist-copy { order: 1; text-align: center; }
    .stockist-badge { order: 2; }

    /* Statement band -> stack, copy first then image (full, uncropped) */
    .statement { grid-template-columns: 1fr; }
    .statement-copy { order: 1; max-width: none; align-items: center; text-align: center; }
    .statement-media { order: 2; position: static; min-height: 0; }
    .statement-media picture { position: static; }
    .statement-media img { height: auto; }
    .btn-light { align-self: center; }

    .floating-cta { display: inline-flex; }
}

/* ------------------------------------------------ Mobile */
@media (max-width: 700px) {
    body { font-size: 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-actions { width: 100%; flex-direction: column; }
    .cookie-actions .btn { width: 100%; }
    .brand-logo, .site-header.scrolled .brand-logo { height: 52px; }
}

/* ------------------------------------------------ Small mobile */
@media (max-width: 540px) {
    :root { --gutter: 18px; }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .legal-links { gap: 14px; }
    .brand-logo, .site-header.scrolled .brand-logo { height: 46px; }
    .hero-credentials { gap: 10px; }
}
