/**
 * Zann Dental Lab  -  shared styles (header, footer, base, buttons).
 * Used by: Product_Crown_PFM.html, Product_crown_zirconia.html, template-page.html, and any page using js/nav-footer.js.
 * Link in <head>: <link rel="stylesheet" href="css/common.css">
 */
:root {
    --color-bg: #E2F2F6;
    --color-bg-alt: #f5fbfc;
    --color-dark: #545658;
    --color-muted: #636466;
    --color-border: rgba(0,0,0,0.08);
    --color-white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    overflow-x: clip;
    scroll-padding-top: clamp(72px, 14vh, 120px);
}
body { overflow-x: clip; }
body { font-family: var(--font); font-size: 16px; font-weight: 400; color: var(--color-muted); background: var(--color-white); line-height: 1.55; }
h1, h2, h3, .section-title { font-weight: 700; color: var(--color-dark);}

/* ========== FULL HEADER (promo bar + main header + nav + dropdowns + mobile) ========== */

/* When header is inside #site-header (injected by script), let it grow so full nav is visible */
#site-header {
    overflow: visible;
    min-width: min-content;
}
#site-header .header {
    width: 100%;
    min-width: max-content;
}
#site-header .nav {
    flex-shrink: 0;
    min-width: max-content;
}

/* Top promo bar */
.promo-bar {
    background: var(--color-bg);
    padding: 8px 20px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--color-muted);
}
.promo-bar a { color: var(--color-dark); font-weight: 500; text-decoration: none; }

/* Sticky chrome: wrap .promo-bar + .header so both stay visible while scrolling */
.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
}

/* Header */
.header {
    background: var(--color-bg);
    padding: 14px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--color-border);
    min-height: 60px;
}
@media (min-width: 993px) {
    .header { padding: 14px 40px 24px; }
}
@media (min-width: 1200px) {
    .header { padding: 14px 60px 24px; gap: 32px; }
}
@media (max-width: 992px) {
    .header { padding: 12px 20px 14px; gap: 0; flex-wrap: wrap; }
}
.logo {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
    text-transform: uppercase;
    flex-shrink: 0;
}
.logo:hover { color: var(--color-muted); }
@media (max-width: 992px) { .logo { font-size: 28px; } }
/* Desktop: full nav in one row (same as index.html) */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}
@media (max-width: 992px) {
    .nav { flex: none; flex-wrap: wrap; justify-content: stretch; gap: 0; }
}
/* Mobile: hamburger button */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--color-dark);
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(0,0,0,0.06); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 88vw;
        background: var(--color-bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 72px 20px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 102;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(0,0,0,0.08);
        border-left: 1px solid var(--color-border);
    }
    .header.nav-open .nav { transform: translateX(0); }
    .nav .nav-item { margin-bottom: 4px; }
    .nav .nav-link {
        padding: 14px 12px;
        border-radius: 8px;
        font-size: 16px;
    }
    .nav-item.has-dropdown .dropdown {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
        background: transparent;
        border: none;
    }
    .nav-item.dropdown-open .dropdown { max-height: 70vh; overflow-y: auto; }
    .nav-item.has-dropdown .dropdown-inner { grid-template-columns: 1fr; min-height: 0; }
    .nav-item.has-dropdown .dropdown-right { display: none; }
    .nav-item.has-dropdown .dropdown-left { border-right: none; padding: 12px 0 20px; }
    .nav-item.has-dropdown .dropdown-label { padding: 0 0 10px; }
}
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 101;
    opacity: 0;
    transition: opacity 0.3s ease;
}
@media (max-width: 992px) {
    .nav-overlay { display: block; visibility: hidden; pointer-events: none; }
    .header.nav-open .nav-overlay { visibility: visible; pointer-events: auto; opacity: 1; }
}
.nav-item { position: relative; flex-shrink: 0; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.5s ease, background 0.2s ease;
    white-space: nowrap;
}
 /* Keep logo + nav on a single row for mid/large desktop widths */
        @media (min-width: 993px) and (max-width: 1500px) {
            .header {
                padding: 14px 36px 24px;
                gap: 16px;
                flex-wrap: nowrap;
            }
            .nav {
                flex-wrap: nowrap;
                gap: 2px;
            }
            .nav-link {
                padding: 8px 10px;
                font-size: 15px;
            }
        }
@media (min-width: 1100px) {
    .nav-link { padding: 10px 12px; font-size: 16px; }
}
.nav-link:hover {
    color: var(--color-dark);
    background: rgba(0,0,0,0.06);
}
.nav-item.dropdown-open .nav-link.nav-link-toggle { color: var(--color-dark); background: rgba(0,0,0,0.06); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.5s ease; }
.nav-item.dropdown-open .nav-link { text-decoration: underline; }
.nav-item.dropdown-open .nav-link svg { transform: rotate(180deg); }
.nav-utils { display: flex; align-items: center; gap: 8px; }
.nav-utils a {
    color: var(--color-muted);
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 8px;
    transition: color 0.5s ease, background 0.2s ease;
}
.nav-utils a:hover { color: var(--color-dark); background: rgba(0,0,0,0.06); }

/* Full-screen dropdown overlay (below header) */
.dropdown {
    position: fixed;
    top: 98px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    overflow-y: auto;
}
.nav-item.dropdown-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.dropdown-left {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s;
}
.nav-item.dropdown-open .dropdown-left {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 768px) {
    .dropdown-inner { grid-template-columns: 1fr; }
    .dropdown { top: 88px; }
}
.dropdown-left {
    padding: 32px 24px 48px;
    border-right: 1px solid var(--color-border);
}
.dropdown-right {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.55s ease 0.18s, transform 0.55s ease 0.18s;
}
.nav-item.dropdown-open .dropdown-right {
    opacity: 1;
    transform: translateX(0);
}
.dropdown-label {
    display: block;
    padding: 0 0 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    color: #7a9a9f;

}
.dropdown-block {
    margin-bottom: 4px;
}
.dropdown-block:last-child { margin-bottom: 0; }
.dropdown a {
    display: block;
    padding: 10px 12px;
    margin: 0 -12px;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.dropdown a:hover { color: var(--color-dark); background: rgba(255,255,255,0.7); }
.dropdown-expand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin: 0 -12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    background: none;
    border: none;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.dropdown-expand:hover { background: rgba(255,255,255,0.5); color: var(--color-muted); }
.dropdown-expand .dropdown-arrow {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-left: auto;
    padding-left: 12px;
    transition: transform 0.35s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.dropdown-expand .dropdown-arrow svg {
    width: 0.65em;
    height: 0.65em;
    stroke: currentColor;
}
.dropdown-expand.expanded .dropdown-arrow { transform: rotate(90deg); }
.dropdown-sublinks {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}
.dropdown-sublinks.expanded { max-height: 300px; }
.dropdown-sublinks a {
    display: block;
    padding: 8px 12px 8px 28px;
    margin: 0 -12px 0 -28px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-muted);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.dropdown-sublinks a:hover { color: var(--color-dark); background: rgba(255,255,255,0.5); }
.dropdown-right {
    padding: 32px 24px 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-content: start;
}
@media (max-width: 1100px) { .dropdown-right { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dropdown-right { grid-template-columns: 1fr; padding-top: 24px; } }
.dropdown-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.6) 0%, var(--color-bg) 100%);
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.45s ease;
}
.nav-item.dropdown-open .dropdown-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.nav-item.dropdown-open .dropdown-card:nth-child(1) { transition-delay: 0.22s; }
.nav-item.dropdown-open .dropdown-card:nth-child(2) { transition-delay: 0.34s; }
.nav-item.dropdown-open .dropdown-card:nth-child(3) { transition-delay: 0.46s; }
.nav-item.dropdown-open .dropdown-card:nth-child(4) { transition-delay: 0.58s; }
.nav-item.dropdown-open .dropdown-card:nth-child(5) { transition-delay: 0.7s; }
.nav-item.dropdown-open .dropdown-card:nth-child(6) { transition-delay: 0.82s; }
.dropdown-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.dropdown-card-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.dropdown-card-img {
     position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: opacity 0.55s ease-in-out;
}
.dropdown-card-img-default { opacity: 1; background-color: var(--color-bg); }
.dropdown-card-img-hover { opacity: 0; background-color: #d4eef2; }
.dropdown-card:hover .dropdown-card-img-default { opacity: 0; }
.dropdown-card:hover .dropdown-card-img-hover { opacity: 1; }
.dropdown-card-label {
    position: relative;
    z-index: 2;
    padding: 20px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
    transition: text-decoration 0.2s ease;
}
.dropdown-card a {
    position: absolute;
    inset: 0;
    padding: 0;
    z-index: 1;
}
.dropdown-card a:hover ~ .dropdown-card-label { text-decoration: underline; }

/* Buttons (used in footer and elsewhere) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
    font-family: var(--font);
    cursor: pointer;
    border: 1px solid var(--color-dark);
}
.btn-primary { background: var(--color-white); color: var(--color-dark); border-color: var(--color-dark); }
.btn-primary:hover { background: var(--color-dark); color: var(--color-white); }

/* Footer */
.footer { background: var(--color-bg); padding: 48px 24px 28px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding-top: 80px; display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 36px; margin-bottom: 36px; }
@media (max-width: 900px) {
    .footer { padding: 40px 20px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
}
@media (max-width: 500px) {
    .footer { padding: 32px 16px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; text-align: center; }
    .footer-newsletter { order: -1; }
    .footer-newsletter input { max-width: none; }
    .footer-newsletter .btn { width: 100%; }
}
.footer h3 { font-size: 16px; font-weight: 700; text-transform: lowercase; letter-spacing: 0.02em; margin-bottom: 14px; color: var(--color-dark); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--color-muted); text-decoration: none; font-size: 16px; }
.footer a:hover { color: var(--color-dark); }
.footer-newsletter p { font-size: 16px; color: var(--color-muted); margin-bottom: 12px; }
.footer-newsletter input { width: 100%; max-width: 280px; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 4px; font-family: var(--font); font-size: 16px; margin-bottom: 8px; }
.footer-newsletter .legal { font-size: 16px; color: var(--color-muted); margin-top: 8px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
@media (max-width: 500px) {
    .footer-bottom { flex-direction: column; gap: 16px; padding-top: 20px; text-align: center; }
}
.footer-bottom .social { display: flex; gap: 12px; font-size: 16px; }
.footer-bottom .badges { font-size: 16px; color: var(--color-muted); }

/* Shared looping hero background motion across pages */
@keyframes zannHeroBgLoop {
    0% { transform: perspective(1200px) scale(0.92); }
    100% { transform: perspective(1200px) scale(1); }
}

.hero-bg,
.hero-slide-bg,
.page-hero-bg,
.product-hero-bg,
.contact-hero-bg,
.story-hero-bg,
.mv-hero-bg {
    transform: perspective(1200px) scale(0.92);
    animation: zannHeroBgLoop 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-slide-bg,
    .page-hero-bg,
    .product-hero-bg,
    .contact-hero-bg,
    .story-hero-bg,
    .mv-hero-bg {
        animation: none;
        transform: none;
    }
}

/* Product page hero CTA spacing */
.product-hero-inner > .btn,
.product-hero-inner > .btn.btn-primary {
    margin-top: 36px;
}

/* Keep non-index hero content consistently left-aligned */
.hero > .hero-inner,
.page-hero > .page-hero-inner,
.product-hero > .product-hero-inner,
.contact-hero > .contact-hero-inner,
.story-hero > .story-hero-inner,
.mv-hero > .mv-hero-inner {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

.hero > .hero-inner .hero-cta-row,
.hero > .hero-inner .hero-ctas,
.page-hero > .page-hero-inner .hero-cta-row,
.page-hero > .page-hero-inner .hero-ctas,
.product-hero > .product-hero-inner .hero-cta-row,
.product-hero > .product-hero-inner .hero-ctas,
.contact-hero > .contact-hero-inner .hero-cta-row,
.contact-hero > .contact-hero-inner .hero-ctas,
.story-hero > .story-hero-inner .hero-cta-row,
.story-hero > .story-hero-inner .hero-ctas,
.mv-hero > .mv-hero-inner .hero-cta-row,
.mv-hero > .mv-hero-inner .hero-ctas {
    justify-content: flex-start !important;
}

/* Consistent left inset for hero content across pages */
.hero > .hero-inner,
.page-hero > .page-hero-inner,
.product-hero > .product-hero-inner,
.contact-hero > .contact-hero-inner,
.story-hero > .story-hero-inner,
.mv-hero > .mv-hero-inner {
    padding-left: clamp(40px, 9vw, 160px) !important;
}

/* Site-wide responsive hardening (all pages including index) */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden !important;
    }

    .hero-slide .hero-inner,
    .hero > .hero-inner,
    .page-hero > .page-hero-inner,
    .product-hero > .product-hero-inner,
    .contact-hero > .contact-hero-inner,
    .story-hero > .story-hero-inner,
    .mv-hero > .mv-hero-inner {
        padding-left: clamp(20px, 5vw, 36px) !important;
        padding-right: clamp(20px, 5vw, 36px) !important;
        max-width: 100% !important;
    }

    .hero-text h1,
    .hero h1,
    .page-hero h1,
    .product-hero h1,
    .contact-hero h1,
    .story-hero h1,
    .mv-hero h1 {
        font-size: clamp(32px, 7.2vw, 52px) !important;
        line-height: 1.1 !important;
    }

    .section-title,
    .product-split h2,
    .product-cta-text h2,
    .product-materials h2,
    .product-features h2 {
        font-size: clamp(28px, 6vw, 40px) !important;
        line-height: 1.2 !important;
    }

    .product-split,
    .product-cta-block,
    .product-materials,
    .split-block,
    .cta-block {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .product-intro,
    .product-features,
    .product-cta-visual,
    .product-split,
    .product-cta-block,
    .product-materials,
    .split-block,
    .cta-block,
    .split-block .double-img-wrap,
    .cta-block .double-img-wrap {
        min-height: auto !important;
        height: auto !important;
    }

    .product-split-text,
    .product-cta-text,
    .product-materials-text {
        padding: 36px 22px !important;
    }
}

@media (max-width: 600px) {
    .btn,
    .btn-primary {
        width: 100%;
        max-width: 100%;
    }

    .hero-cta-row,
    .hero-ctas {
        width: 100%;
        gap: 10px !important;
    }

    .hero-cta-row .btn,
    .hero-ctas .btn {
        width: 100%;
    }

    .section-title,
    .product-split h2,
    .product-cta-text h2,
    .product-materials h2,
    .product-features h2 {
        font-size: clamp(24px, 8vw, 32px) !important;
    }
}

/* Professional responsive polish layer */
:root {
    --zann-section-pad-y: clamp(56px, 8vw, 104px);
    --zann-section-pad-x: clamp(20px, 4vw, 48px);
    --zann-content-max: 1200px;
    --zann-text-max: 68ch;
}

/* Consistent section rhythm and readable line lengths */
main section:not(.hero):not(.page-hero):not(.product-hero):not(.contact-hero):not(.story-hero):not(.mv-hero) {
    padding-left: var(--zann-section-pad-x) !important;
    padding-right: var(--zann-section-pad-x) !important;
}

main section p,
.product-intro p,
.product-features p,
.product-split p,
.product-materials p,
.product-cta-text p {
    max-width: var(--zann-text-max);
}

/* Make major split blocks feel cleaner and less cramped */
.split-block,
.cta-block,
.product-split,
.product-cta-block,
.product-materials {
    border-radius: 14px;
    overflow: hidden;
}

.split-text,
.cta-text,
.product-split-text,
.product-cta-text,
.product-materials-text {
    gap: 10px;
}

/* Smoother visual hierarchy for section headings */
h2,
.section-title {
    letter-spacing: -0.015em;
    text-wrap: balance;
}

/* Large desktop: keep content centered with reliable gutters */
@media (min-width: 1200px) {
    .hero > .hero-inner,
    .page-hero > .page-hero-inner,
    .product-hero > .product-hero-inner,
    .contact-hero > .contact-hero-inner,
    .story-hero > .story-hero-inner,
    .mv-hero > .mv-hero-inner {
        max-width: var(--zann-content-max) !important;
    }
}

/* Tablet: tune spacing and controls */
@media (max-width: 992px) {
    main section:not(.hero):not(.page-hero):not(.product-hero):not(.contact-hero):not(.story-hero):not(.mv-hero) {
        padding-top: clamp(44px, 7vw, 72px) !important;
        padding-bottom: clamp(52px, 8vw, 84px) !important;
    }

    .split-text,
    .cta-text,
    .product-split-text,
    .product-cta-text,
    .product-materials-text {
        padding: clamp(26px, 5vw, 38px) clamp(18px, 4vw, 28px) !important;
    }

    /* Ensure hero images stay centered on mobile/tablet viewports across all pages. */
    .hero-bg,
    .hero-slide-bg,
    .page-hero-bg,
    .product-hero-bg,
    .contact-hero-bg,
    .story-hero-bg,
    .mv-hero-bg {
        background-position: center center !important;
    }
}

/* Mobile: stronger polish for touch and readability */
@media (max-width: 768px) {
    body {
        line-height: 1.6;
    }

    /* Mobile-only hero image alignment:
       keep focal point centered so images do not appear shifted right. */
    .hero-bg,
    .hero-slide-bg,
    .page-hero-bg,
    .product-hero-bg,
    .contact-hero-bg,
    .story-hero-bg,
    .mv-hero-bg {
        background-position: center center !important;
    }

    .btn,
    .btn-primary {
        min-height: 46px;
        border-radius: 8px;
    }

    .hero h1,
    .page-hero h1,
    .product-hero h1,
    .contact-hero h1,
    .story-hero h1,
    .mv-hero h1 {
        margin-bottom: 12px !important;
    }

    .hero p,
    .page-hero p,
    .product-hero p,
    .contact-hero p,
    .story-hero p,
    .mv-hero p {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .hero > .hero-inner,
    .page-hero > .page-hero-inner,
    .product-hero > .product-hero-inner,
    .contact-hero > .contact-hero-inner,
    .story-hero > .story-hero-inner,
    .mv-hero > .mv-hero-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    main section:not(.hero):not(.page-hero):not(.product-hero):not(.contact-hero):not(.story-hero):not(.mv-hero) {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Mobile nav: one clean column with links then image cards */
@media (max-width: 992px) {
    .header { flex-wrap: nowrap !important; }

    .nav {
        display: block !important;
        width: 100% !important;
    }

    .nav .nav-item,
    .nav .nav-link,
    .nav-utils,
    .nav-utils a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    .nav-item.has-dropdown .dropdown {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-top: 4px !important;
    }

    .nav-item.has-dropdown .dropdown-inner {
        display: block !important;
        width: 100% !important;
    }

    .nav-item.has-dropdown .dropdown-left,
    .nav-item.has-dropdown .dropdown-right {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding: 0 !important;
    }

    /* Keep images in same column below links */
    .nav-item.has-dropdown .dropdown-right {
        margin-top: 10px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .nav-item.has-dropdown .dropdown-right .dropdown-card {
        height: clamp(120px, 22vw, 170px) !important;
        min-height: clamp(120px, 22vw, 170px) !important;
        margin-bottom: 0 !important;
    }

    .nav-item.has-dropdown .dropdown-right .dropdown-card .dropdown-card-img {
        background-size: cover !important;
        background-position: center center !important;
    }
}

