:root {
    --bg-main: #110e0c;
    --bg-secondary: #1a1613;
    --text-main: #f3eee8;
    --text-muted: #a6988c;
    --gold: #d4b078;
    --gold-dark: #b5935d;
    --gold-light: #e6cb9f;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: normal; }
em { font-style: italic; }
a { text-decoration: none; color: inherit; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 4%;
    background: linear-gradient(to bottom, rgba(17, 14, 12, 0.9) 0%, rgba(17, 14, 12, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 176, 120, 0.1);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s ease;
}
.header__logo:hover { opacity: 0.8; }
.header__logo-img { height: 64px; width: auto; object-fit: contain; filter: brightness(1.2); }
.header__logo-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.15); }
.header__logo-info { display: flex; flex-direction: column; }
.header__logo-name { font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; color: var(--text-main); }
.header__logo-sub { font-size: 0.6rem; letter-spacing: 3px; color: var(--gold); margin-top: 2px; }

.header__nav { display: flex; align-items: center; gap: 1.6rem; }
.header__nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}
.header__nav a:not(.header__nav-cta):hover { color: var(--gold); }
.header__nav a:not(.header__nav-cta)::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 1px; background: var(--gold); transition: width 0.3s ease;
}
.header__nav a:not(.header__nav-cta):hover::after { width: 100%; }

.header__nav-cta {
    display: flex; align-items: center; gap: 0.5rem;
    border: 1px solid rgba(212, 176, 120, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    color: var(--gold);
    transition: all 0.3s ease;
}
.header__nav-cta:hover { background: var(--gold); color: var(--bg-main); border-color: var(--gold); }

.header__mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.header__mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text-main); margin-bottom: 5px; transition: all 0.3s; }

/* Hero */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Header height offset */
}

/* Hero Background and Mask */
.hero__bg-container {
    position: absolute;
    top: 0; left: 0;
    width: 55%; /* Split ratio */
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.hero__bg-base,
.hero__bg-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
}
.hero__bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* The mask is applied via JS */
    transition: mask-image 0.1s ease-out, -webkit-mask-image 0.1s ease-out;
}
/* A fade to blend the image right edge into the background */
.hero__bg-fade {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(to right, transparent, var(--bg-main));
    z-index: 2;
    pointer-events: none;
}

/* Hero Content */
.hero__content {
    position: relative;
    z-index: 10;
    width: 45%;
    margin-left: 55%;
    padding: 4rem 6% 4rem 2rem;
}

.hero__eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
    animation: fadeUp 1s var(--ease-out) 0.2s both;
}
.hero__eyebrow-line { width: 40px; height: 1px; background: var(--gold); }

.hero__title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s var(--ease-out) 0.4s both;
}
.hero__title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
}

.hero__body {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s var(--ease-out) 0.6s both;
}

.hero__actions {
    display: flex; align-items: center; gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeUp 1s var(--ease-out) 0.8s both;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}
.btn--primary {
    background: var(--gold); color: var(--bg-main);
    border: 1px solid var(--gold);
}
.btn--primary:hover {
    background: var(--gold-light); border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 176, 120, 0.15);
}
.btn--secondary {
    background: transparent; color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.5);
}

/* Trust Strip */
.hero__trust {
    display: flex; align-items: center; gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fadeUp 1s var(--ease-out) 1s both;
}
.trust-item { display: flex; align-items: center; gap: 1rem; }
.trust-icon { color: var(--gold); }
.trust-text { display: flex; flex-direction: column; }
.trust-text strong { font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; color: var(--text-main); text-transform: uppercase;}
.trust-text span { font-size: 0.85rem; color: var(--text-muted); }
.trust-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.08); }

/* Feature Bar */
.feature-bar {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 4%;
    position: relative;
}
.feature-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    max-width: 1400px; margin: 0 auto;
}
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
    color: var(--gold);
    background: rgba(212, 176, 120, 0.05);
    padding: 1rem; border-radius: 50%;
    flex-shrink: 0;
}
.feature-title { font-size: 0.85rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 1.5px; color: var(--text-main); margin-bottom: 0.5rem; margin-top: 0.5rem; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pulsing cursor hint */
.hero__hint {
    position: absolute;
    /* Sit over the face area of the image */
    left: 28%;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero__hint.visible  { opacity: 1; }
.hero__hint.dismissed { opacity: 0; transition: opacity 0.4s ease; }

/* Expanding rings */
.hero__hint-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(212, 176, 120, 1);
    animation: hintPulse 2.2s ease-out infinite;
}
.hero__hint-ring--delay {
    animation-delay: 1.1s;
}
@keyframes hintPulse {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* Inner cursor dot */
.hero__hint-dot {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(212, 176, 120, 0.35);
    border: 2px solid var(--gold);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(212, 176, 120, 0.5), inset 0 0 10px rgba(212, 176, 120, 0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-light);
    animation: hintFloat 3s ease-in-out infinite;
}
@keyframes hintFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}


/* Responsive */
@media (max-width: 1200px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 992px) {
    .hero { flex-direction: column; padding-top: 0; }
    /* Image bleeds to the very top, behind the fixed translucent header */
    .hero__bg-container { position: relative; width: 100%; height: 60vh; }
    .hero__bg-fade { width: 100%; height: 40%; top: auto; bottom: 0; background: linear-gradient(to top, var(--bg-main), transparent); }
    .hero__content { width: 100%; margin-left: 0; padding: 2rem 5%; }
    .header__nav { display: none; } /* Add mobile menu logic if needed */
    .header__mobile-toggle { display: block; }
}
@media (max-width: 768px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__trust { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .trust-divider { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
}

/* Mobile nav — open state */
@media (max-width: 992px) {
    .header__nav.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-secondary);
        padding: 1.5rem 5% 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid rgba(212, 176, 120, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    .header__mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .header__mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .header__mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); margin-bottom: 0; }
}

/* Placeholder pages */
.page {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 5% 6rem;
}
.page__eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
}
.page__title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.page__body {
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
}
.page__links {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.85rem;
    margin-bottom: 2.5rem;
}
.page__links a {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(212, 176, 120, 0.25);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.page__links a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.page__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 4% 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer__line { margin-bottom: 0.5rem; }
.footer__line strong { color: var(--text-main); font-weight: 500; }
.footer a { transition: color 0.3s ease; }
.footer a:hover { color: var(--gold); }
.footer__links { margin: 1rem 0 0.75rem; }
.footer__links a { color: var(--gold); }
.footer__copy { font-size: 0.75rem; opacity: 0.7; }

/* ===== Article / prose (treatment pages, about) ===== */
.page--article { max-width: 860px; align-items: flex-start; justify-content: flex-start; }
.prose { max-width: 720px; margin-bottom: 2.5rem; }
.prose p { color: var(--text-muted); margin-bottom: 1.25rem; }
.prose p strong, .prose li strong { color: var(--text-main); font-weight: 500; }
.prose h2 {
    font-size: 1.9rem;
    color: var(--text-main);
    margin: 2.5rem 0 1rem;
}
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(212, 176, 120, 0.25); }
.prose a:hover { color: var(--gold-light); }

/* ===== Treatment cards (hub pages) ===== */
.page--hub { max-width: 1100px; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-bottom: 2.5rem;
}
.card {
    display: flex; flex-direction: column; gap: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 176, 120, 0.12);
    border-radius: 6px;
    padding: 1.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: rgba(212, 176, 120, 0.45); transform: translateY(-3px); }
.card__title { font-size: 1.45rem; color: var(--text-main); }
.card__desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; flex-grow: 1; }
.card__link { font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.page__note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 640px; }
.page__note a { color: var(--gold); }

/* ===== Photo placeholder boxes ===== */
.placeholder-box {
    display: flex; flex-direction: column; gap: 0.35rem;
    border: 1px dashed rgba(212, 176, 120, 0.4);
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 720px;
}
.placeholder-box strong { color: var(--gold); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.placeholder-box span { color: var(--text-muted); font-size: 0.9rem; }
.placeholder-box--portrait { max-width: 300px; padding: 3rem 2rem; }

/* ===== About page ===== */
.doctor { margin-top: 1rem; }
.doctor__credentials { color: var(--gold); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* ===== Contact page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__field span { font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.form__field input,
.form__field select,
.form__field textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    transition: border-color 0.3s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { align-self: flex-start; margin-top: 0.5rem; }

.contact-info h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.contact-info h2:first-child { margin-top: 0; }
.contact-info p, .contact-info li { color: var(--text-muted); font-size: 0.95rem; }
.contact-info ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-info strong { color: var(--text-main); font-weight: 500; }
.contact-info a { color: var(--gold); }

.contact-map { width: 100%; border-radius: 6px; overflow: hidden; margin-bottom: 1.5rem; }
.directions { width: 100%; margin-bottom: 2rem; }
.directions summary { cursor: pointer; color: var(--gold); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.directions p { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.95rem; }

/* ===== Offers table ===== */
.offers-table {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
}
.offers-table th {
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(212, 176, 120, 0.35);
}
.offers-table td {
    padding: 0.9rem 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}
.offers-table td:first-child { color: var(--text-main); }

/* ===== Homepage sections ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.section--alt {
    max-width: none;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section--alt > * { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; }
.section__eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.section__title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
}
.section__title em { color: var(--gold); font-weight: 300; }
.section__actions { margin-top: 2.5rem; }

/* Diptych */
.diptych__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 860px) { .diptych__grid { grid-template-columns: 1fr; } }
.diptych__panel {
    display: flex; flex-direction: column; gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 176, 120, 0.12);
    border-radius: 6px;
    padding: 2.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.diptych__panel:hover { border-color: rgba(212, 176, 120, 0.45); transform: translateY(-3px); }
.diptych__heading { font-size: 1.8rem; color: var(--text-main); }
.diptych__desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.diptych__list {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem;
    margin: 0.5rem 0 1rem;
}
.diptych__list li {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}
.diptych__link {
    margin-top: auto;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}

/* Team */
.team__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 860px) { .team__grid { grid-template-columns: 1fr; } }
.team__card {
    background: var(--bg-main);
    border: 1px solid rgba(212, 176, 120, 0.12);
    border-radius: 6px;
    padding: 2.5rem;
}
.team__card .placeholder-box { margin-bottom: 1.5rem; }
.team__name { font-size: 1.7rem; color: var(--text-main); margin-bottom: 0.35rem; }
.team__credentials { color: var(--gold); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.team__desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* CTA band */
.cta-band {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(212, 176, 120, 0.15);
    padding: 5rem 5%;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.cta-band__title { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.15; margin-bottom: 1.25rem; }
.cta-band__title em { color: var(--gold); font-weight: 300; }
.cta-band__body { color: var(--text-muted); max-width: 560px; margin-bottom: 2.25rem; }

/* ===== FAQ (treatment pages) ===== */
.faq { width: 100%; max-width: 720px; margin-bottom: 2.5rem; }
.faq__title { font-size: 1.9rem; margin-bottom: 1.25rem; }
.faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}
.faq__item summary {
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    list-style-position: outside;
}
.faq__item summary:hover { color: var(--gold); }
.faq__item p { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6; }

/* ===== Nav dropdowns ===== */
.nav-item { position: relative; }
/* Label centred; caret flows inline right after the last word, even when the
   label wraps onto two lines */
.nav-item__row { display: block; text-align: center; }
.nav-item__row a { display: inline; }
.nav-item__caret {
    background: none; border: none; cursor: pointer;
    color: var(--text-main);
    display: inline-flex; align-items: center;
    vertical-align: middle;
    padding: 0.1rem 0 0.1rem 0.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.nav-item__caret:hover { color: var(--gold); }
.has-dropdown.open > .nav-item__row .nav-item__caret { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1.4rem;
    display: none;
    z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown__panel {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 176, 120, 0.18);
    border-radius: 6px;
    padding: 0.6rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.header__nav .dropdown__panel a {
    display: block;
    padding: 0.65rem 1.4rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s ease, background 0.3s ease;
}
.header__nav .dropdown__panel a::after { display: none; }
.header__nav .dropdown__panel a:hover {
    color: var(--gold);
    background: rgba(212, 176, 120, 0.06);
}
.dropdown__panel .dropdown__all {
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gold) !important;
}

/* Mobile: dropdown becomes an inline accordion inside the open menu */
@media (max-width: 992px) {
    .nav-item { width: 100%; }
    .nav-item__row { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 0.6rem; }
    .nav-item__caret { padding: 0.35rem; margin-left: auto; }
    .dropdown {
        position: static;
        transform: none;
        padding-top: 0.75rem;
        width: 100%;
    }
    /* on mobile, hover must not open menus — only the caret tap */
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown__panel {
        min-width: 0;
        background: transparent;
        border: none;
        border-left: 1px solid rgba(212, 176, 120, 0.3);
        border-radius: 0;
        box-shadow: none;
        padding: 0.1rem 0 0.25rem;
        margin-left: 0.25rem;
    }
    .header__nav .dropdown__panel a { padding: 0.5rem 1.1rem; }
}

/* ===== Scroll reveal ===== */
/* A classe .reveal é adicionada por JS (BaseLayout) antes do primeiro paint;
   sem JS, os elementos ficam simplesmente visíveis. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Media slots (real image or placeholder) ===== */
.media-slot { display: block; width: 100%; border-radius: 6px; }
.media-slot--img { object-fit: cover; }
.media-slot--img[data-lightbox] { cursor: zoom-in; transition: opacity 0.3s ease; }
.media-slot--img[data-lightbox]:hover { opacity: 0.9; }
.media-slot--placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.6rem;
    background:
        repeating-linear-gradient(45deg, rgba(212,176,120,0.03) 0, rgba(212,176,120,0.03) 12px, transparent 12px, transparent 24px),
        var(--bg-secondary);
    border: 1px dashed rgba(212, 176, 120, 0.35);
    color: var(--gold);
    text-align: center;
    padding: 1rem;
}
.media-slot--placeholder svg { opacity: 0.7; }
.media-slot--placeholder span { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }

/* Article supporting hero image */
.article-hero { width: 100%; max-width: 860px; margin: 0 0 2.5rem; }

/* ===== Hub cards with media ===== */
.card--media { padding-top: 0; overflow: hidden; }
.card__media { margin: 0 -1.75rem 1.25rem; }
.card--media .card__media .media-slot { border-radius: 0; }

/* ===== Before / after gallery ===== */
.before-after { width: 100%; max-width: 860px; margin: 0 0 2.5rem; }
.before-after__title { font-size: 1.9rem; margin-bottom: 0.35rem; }
.before-after__note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.before-after__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.ba-pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ba-frame { position: relative; }
.ba-frame__tag {
    position: absolute; top: 0.6rem; left: 0.6rem;
    font-size: 0.6rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    background: rgba(17, 14, 12, 0.75); color: var(--text-main);
    padding: 0.25rem 0.6rem; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.ba-frame__tag--after { color: var(--gold); }

/* ===== ABCD diagram ===== */
.abcd { width: 100%; max-width: 860px; margin: 0 0 2.5rem; }
.abcd__title { font-size: 1.9rem; margin-bottom: 0.35rem; }
.abcd__intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.75rem; max-width: 640px; }
.abcd__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.abcd__card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 176, 120, 0.14);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
}
.abcd__art { width: 96px; height: 96px; margin: 0 auto 0.75rem; }
.abcd__art svg { width: 100%; height: 100%; }
.abcd__letter {
    position: absolute; top: 1rem; left: 1rem;
    font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); line-height: 1;
}
.abcd__name { font-size: 1.25rem; color: var(--text-main); margin-bottom: 0.4rem; }
.abcd__text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ===== Clinic / environment band ===== */
.clinic { max-width: 1200px; }
.clinic__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; width: 100%; }
@media (max-width: 860px) { .clinic__grid { grid-template-columns: 1fr; gap: 2rem; } }
.clinic__body { color: var(--text-muted); margin: 0 0 2rem; max-width: 460px; }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
    background: rgba(10, 8, 6, 0.92);
    backdrop-filter: blur(6px);
    padding: 4vh 4vw;
    cursor: zoom-out;
    opacity: 0; transition: opacity 0.25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
.lightbox__close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; color: var(--text-main); cursor: pointer; padding: 0.5rem;
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
