/* ═══════════════════════════════════════════
   DR CHEN'S ACUPUNCTURE CENTRE
   Complete redesign — modern editorial layout
   ═══════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --c-cream:     #faf6f1;
    --c-linen:     #f0e8dd;
    --c-sand:      #ddd0c0;
    --c-clay:      #c4a882;
    --c-copper:    #a05a3c;
    --c-teak:      #7a4230;
    --c-espresso:  #3b2216;
    --c-ink:       #1e1a17;
    --c-white:     #ffffff;
    --c-muted:     #72695f;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 24px rgba(30, 26, 23, .06);
    --shadow-card: 0 8px 36px rgba(30, 26, 23, .10);
    --shadow-lift: 0 16px 48px rgba(30, 26, 23, .14);
    --max-w: 1180px;
    --section-py: clamp(64px, 10vw, 120px);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── BASE ─── */
body {
    font-family: var(--font-body);
    color: var(--c-ink);
    background: var(--c-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100% - 40px, var(--max-w));
    margin: 0 auto;
}

/* ─── ACCESSIBILITY ─── */
.skip-link {
    position: absolute;
    top: -200px;
    left: 16px;
    background: var(--c-white);
    color: var(--c-ink);
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    z-index: 100;
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--c-copper);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 241, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(160, 90, 60, .1);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-teak);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 60;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-ink);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: .3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 500;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.main-nav a:hover {
    background: var(--c-linen);
    color: var(--c-teak);
}

.nav-cta {
    background: var(--c-copper) !important;
    color: var(--c-white) !important;
}
.nav-cta:hover {
    background: var(--c-teak) !important;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    background: url("FR.jpg") center / cover no-repeat;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(30, 20, 12, .72) 0%,
        rgba(30, 20, 12, .45) 50%,
        rgba(30, 20, 12, .25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 40px 0;
}

.hero-eyebrow {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: var(--c-clay);
    margin: 0 0 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    line-height: 1.08;
    color: var(--c-white);
    margin: 0 0 24px;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 36px;
    max-width: 440px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--c-copper);
    color: var(--c-white);
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .25s, transform .25s;
}
.btn:hover {
    background: var(--c-teak);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,.25);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-clay);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════ */
.section {
    padding: var(--section-py) 0;
}

.section--warm {
    background: var(--c-linen);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: var(--c-espresso);
    margin: 0 0 18px;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--c-teak);
    margin: 0 0 10px;
}

p {
    margin: 0 0 14px;
    color: var(--c-muted);
}

.label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 600;
    color: var(--c-copper);
    margin: 0 0 8px;
}
.label--light { color: var(--c-clay); }
.heading--light { color: var(--c-white); }

.center { text-align: center; }

.text-link {
    color: var(--c-copper);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.text-link:hover { color: var(--c-teak); }

.quiet {
    font-style: italic;
    color: var(--c-muted);
}

/* ═══════════════════════════════════════════
   SPLIT LAYOUT (image + text side by side)
   ═══════════════════════════════════════════ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.split__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

.split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.split__media--round {
    border-radius: 50%;
    max-width: 280px;
    aspect-ratio: 1;
}
.split__media--round img {
    aspect-ratio: 1;
}

.split--img-right .split__text  { order: 1; }
.split--img-right .split__media { order: 2; }

.split--compact { grid-template-columns: auto 1fr; gap: 48px; }

/* ═══════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════ */
.section--dark {
    position: relative;
    overflow: hidden;
    padding: var(--section-py) 0;
}

.benefits-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.benefits-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.3) saturate(.6);
}

.benefits-wrap {
    position: relative;
    z-index: 2;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.benefit-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: transform .3s, box-shadow .3s;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.benefit-icon {
    font-size: 1.4rem;
    color: var(--c-clay);
    margin-bottom: 14px;
}

.benefit-card h3 { color: var(--c-white); font-size: 1.15rem; }
.benefit-card p  { color: rgba(255,255,255,.7); margin: 0; }

.benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    justify-content: center;
}

.tag {
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.tag:hover {
    background: rgba(255,255,255,.12);
    color: var(--c-white);
}

/* ═══════════════════════════════════════════
   EDITORIAL GALLERY
   ═══════════════════════════════════════════ */
.gallery-intro {
    max-width: 540px;
    margin: 0 auto 12px;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

/* Featured hero image — full width, cinematic ratio */
.gallery__featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lift);
}
.gallery__featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.gallery__featured:hover img {
    transform: scale(1.03);
}
.gallery__featured figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px 22px;
    background: linear-gradient(to top, rgba(30,20,12,.7), transparent);
    color: var(--c-white);
    font-size: .9rem;
    font-weight: 500;
}

/* Row containers */
.gallery__row {
    display: grid;
    gap: 20px;
}
.gallery__row--3 { grid-template-columns: repeat(3, 1fr); }
.gallery__row--2 { grid-template-columns: repeat(2, 1fr); }

/* Individual gallery card */
.gallery__card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    transition: transform .35s ease, box-shadow .35s ease;
}
.gallery__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.gallery__card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.spotlight-photo {
    aspect-ratio: 3 / 4;
    object-position: center top;
}
.gallery__card:hover img {
    transform: scale(1.04);
}
.gallery__card figcaption {
    padding: 14px 18px;
    font-size: .85rem;
    color: var(--c-muted);
    line-height: 1.45;
    border-top: 1px solid rgba(176,106,79,.08);
}

/* ═══════════════════════════════════════════
   VISIT US
   ═══════════════════════════════════════════ */
.section--visit {
    background: var(--c-espresso);
    color: var(--c-white);
}

.section--visit h2 { color: var(--c-white); }
.section--visit .label { color: var(--c-clay); }

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 40px;
}

.visit-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.visit-card h3 {
    color: var(--c-clay);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.visit-card--map {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}
.visit-card--map iframe {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: var(--radius-lg);
}

/* Contact list */
.contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-list li:last-child { margin-bottom: 0; }

.ci {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--c-clay);
}

.contact-list strong {
    color: var(--c-white);
    font-weight: 600;
}
.contact-list div {
    color: rgba(255,255,255,.7);
    line-height: 1.5;
}

/* Hours table */
.hours-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
}
.hours-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--c-white);
}
.hours-table tr:last-child td { border: none; }
.hours-table .closed td { color: rgba(255,255,255,.4); }
.hours-table .closed td:last-child { color: rgba(255,255,255,.4); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--c-ink);
    padding: 56px 0 36px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 4px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--c-white);
    margin: 0;
    font-weight: 600;
}
.footer-tagline {
    color: rgba(255,255,255,.45);
    margin: 0;
    font-size: .85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
}
.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: .85rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--c-clay); }

.footer-copy {
    color: rgba(255,255,255,.3);
    font-size: .78rem;
    margin: 12px 0 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
    .split {
        grid-template-columns: 1fr;
    }
    .split--img-right .split__text  { order: 2; }
    .split--img-right .split__media { order: 1; }
    .split--compact { grid-template-columns: 1fr; }
    .split__media--round { margin: 0 auto; }

    .gallery__row--3 { grid-template-columns: 1fr 1fr; }
    .gallery__row--2 { grid-template-columns: 1fr 1fr; }

    .visit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(250, 246, 241, .98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s;
        z-index: 55;
    }
    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 1.2rem;
    }
    .main-nav a { padding: 12px 24px; }

    .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }

    .gallery__row--3,
    .gallery__row--2 {
        grid-template-columns: 1fr;
    }
    .gallery__featured img {
        aspect-ratio: 16 / 9;
    }

    .visit-card { padding: 24px; }
}

@media (max-width: 480px) {
    .gallery__featured figcaption {
        padding: 24px 16px 14px;
        font-size: .82rem;
    }
    .gallery__card figcaption {
        padding: 10px 14px;
    }
}

/* ─── SMOOTH SCROLL ─── */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ─── SCROLL-REVEAL FADE-IN ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-photo {
    object-position: center top;
}
