/* ==========================================================================
   CSS STYLES - FIDELITY MATCH & RESPONSIVE FIXES (DRA. MARIANNA SOUZA)
   ========================================================================== */

:root {
    /* Ethereal-inspired display face + Museo Sans-compatible support face */
    --font-heading: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --brand-gold: #a1835e;
    --brand-gold-light: #d2c29f;
    --brand-sage: #9fa58c;
    --brand-ivory: #f7f2eb;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;
}

/* Primary Theme: official Marianna Souza visual identity */
body.theme-pdf-dermatology {
    --primary: #9fa58c;
    --primary-hover: #858d73;
    --primary-gradient: linear-gradient(110deg, #b49b7b 0%, #e0d3b5 42%, #b9a07e 100%);
    --primary-glow: rgba(154, 128, 96, 0.28);
    --brand-gold: #a1835e;
    --brand-gold-light: #d2c29f;
    --brand-sage: #9fa58c;
    --brand-ivory: #f7f2eb;
    
    --bg-body: #f7f2eb;
    --bg-surface: #fffdf9;
    --bg-card: #fbf8f2;
    --bg-dark-banner: #7f8772;

    --text-main: #4f5048;
    --text-heading: #42443d;
    --text-muted: #73766b;
    --text-inverse: #ffffff;
    --accent-text: #765a3b;
    --sage-text: #626957;

    --border-color: #ded8ce;

    --shadow-sm: 0 4px 14px rgba(74, 69, 58, 0.06);
    --shadow-md: 0 12px 30px rgba(74, 69, 58, 0.1);
    --shadow-lg: 0 24px 50px rgba(74, 69, 58, 0.14);
}

/* Dark Mode Override */
body.dark-mode {
    --bg-body: #252821;
    --bg-surface: #30342b;
    --bg-card: #383c32;
    --text-main: #f7f2eb;
    --text-heading: #fffdf9;
    --text-muted: #c9cbbf;
    --border-color: #505648;
    --accent-text: #d2c29f;
    --sage-text: #c9cbbf;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 92px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth);
}

img {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 3px;
}

::selection {
    background: var(--brand-sage);
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.highlight-bronze {
    color: var(--brand-gold);
    font-size: 1.15em;
}

.section-label-tracked {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 12px;
}

.mobile-label-break {
    display: inline;
}

.section-label-tracked.light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title-large {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 20px;
}

.section-subtitle-pdf {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.btn-pdf-cta {
    background: var(--primary-gradient);
    color: #39342c;
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-pdf-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--primary-glow);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.88rem;
}

.btn-block-wide {
    width: 100%;
    max-width: 600px;
}

/* NAVBAR HEADER FIXED & RESPONSIVE */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(247, 242, 235, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo::before {
    content: '';
    width: 38px;
    height: 48px;
    flex: 0 0 38px;
    background: url('assets/brand-monogram.png') center / contain no-repeat;
}

.dynamic-name-logo {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 500;
    color: var(--sage-text);
    display: block;
    line-height: 1.2;
}

.dynamic-role-logo {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--accent-text);
    font-weight: 500;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-nav-cta {
    padding: 10px 22px;
    font-size: 0.76rem;
}

.btn-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btn-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* HERO SECTION */
.hero {
    padding-top: 150px;
    padding-bottom: 90px;
    isolation: isolate;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 520px;
    left: -120px;
    bottom: -90px;
    z-index: -1;
    background: url('assets/brand-monogram.png') center / contain no-repeat;
    opacity: 0.035;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-credentials-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-text);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-highlight-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text-heading);
    border-left: 3px solid var(--primary);
    padding-left: 18px;
}

.hero-img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: block;
    border: 1px solid rgba(161, 131, 94, 0.45);
    outline: 8px solid rgba(247, 242, 235, 0.8);
    outline-offset: -16px;
}

.hero-visual,
.about-visual,
.laser-feature-visual,
.banner-visual {
    min-width: 0;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.medical-badge-sub {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-text);
    margin-bottom: 20px;
}

.doctor-arched-frame {
    position: relative;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 8px solid var(--bg-surface);
    outline: 1px solid rgba(161, 131, 94, 0.5);
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.about-text-paragraphs p {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.75;
}

.paragraph-lead {
    font-size: 1.08rem !important;
    font-weight: 500;
    color: var(--text-heading) !important;
}

.paragraph-quote-highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-heading) !important;
    background-color: var(--bg-surface);
    border-left: 4px solid var(--primary);
    padding: 18px 22px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 24px;
}

/* TREATMENTS SECTION (6 MARKETING CARDS) */
.treatments-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.treatment-card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 0;
}

.treatment-card:hover {
    transform: translateY(-6px);
}

.card-question-trigger {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.card-question-trigger i {
    font-size: 0.9rem;
    margin-top: 2px;
}

.treatment-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}

.treatment-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.92;
}

.card-teal { background-color: #9fa58c; color: #39342c; }
.card-bronze { background: linear-gradient(145deg, #b49b7b 0%, #c7b48f 100%); color: #39342c; }
.card-taupe { background-color: #626957; color: #ffffff; }
.card-peach { background-color: #eee7dc; color: #4f5048; border-color: #d8cec0; }

/* LASER FEATURE SECTION */
.laser-feature-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.laser-feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.doctor-square-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(161, 131, 94, 0.5);
}

.laser-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.laser-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.laser-benefits-list {
    list-style: none;
    margin-bottom: 24px;
}

.laser-benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.laser-benefits-list i {
    color: var(--primary);
}

/* BANNER SCHEDULE SECTION */
.banner-schedule-section {
    padding: 0;
    margin: 60px 0;
}

.banner-angled-backdrop {
    background: linear-gradient(120deg, #747b68 0%, #9fa58c 58%, #858d73 100%);
    color: #ffffff;
    padding: 70px 0;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.banner-subtext {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

.banner-doctor-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 6px solid rgba(247, 242, 235, 0.28);
}

/* MAP SECTION */
.map-section {
    padding: 0;
    position: relative;
    margin-top: 60px;
}

.map-bg-frame {
    width: 100%;
    height: 260px;
    background-color: #e8e6dc;
    background-image:
        linear-gradient(135deg, rgba(159, 165, 140, 0.18), rgba(247, 242, 235, 0.82)),
        url('assets/brand-monogram.png');
    background-repeat: no-repeat;
    background-position: center, calc(50% + 360px) center;
    background-size: cover, 170px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pin {
    background-color: rgba(255, 253, 249, 0.96);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    color: var(--accent-text);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 48px);
}

.map-pin > i {
    flex: 0 0 auto;
    margin-top: 4px;
}

.map-pin > div {
    min-width: 0;
}

.map-pin small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.map-pin small a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.map-cta-container {
    padding-top: 50px;
    position: relative;
    z-index: 10;
}

.margin-top-cta {
    margin-top: 60px;
}

.treatments-last-cta {
    margin-bottom: 60px;
}

.last-cta-section {
    padding-bottom: 70px;
}

/* FOOTER */
.footer-pdf {
    background-color: #eee8df;
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-pdf-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-pdf a {
    color: var(--accent-text);
    text-decoration-color: rgba(161, 131, 94, 0.45);
    text-underline-offset: 2px;
}

.pdf-logo-text strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sage-text);
    display: block;
}

.pdf-logo-text small {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent-text);
}

.pdf-logo-text::before {
    content: '';
    display: block;
    width: 74px;
    height: 94px;
    margin: 0 auto 12px;
    background: url('assets/brand-monogram.png') center / contain no-repeat;
}

.social-links-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

.social-links-row a {
    color: var(--text-main);
    font-size: 1rem;
    text-decoration: none;
}

.social-links-row a:hover {
    color: var(--accent-text);
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    border: 2px solid var(--brand-gold-light);
}

body.dark-mode .navbar.scrolled {
    background-color: rgba(48, 52, 43, 0.96);
}

body.dark-mode .footer-pdf {
    background-color: #2d3129;
}

body.dark-mode .map-pin {
    background-color: #fffdf9;
}

body.dark-mode .map-pin small {
    color: #73766b;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .laser-feature-grid, .banner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .treatments-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 920px) {
    .navbar,
    .navbar.scrolled {
        padding: 10px 0;
        background-color: rgba(247, 242, 235, 0.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border-color);
    }

    body.dark-mode .navbar,
    body.dark-mode .navbar.scrolled {
        background-color: rgba(48, 52, 43, 0.96);
    }

    .nav-container {
        gap: 12px;
    }

    .logo-text {
        min-width: 0;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 8px 0;
        text-align: center;
    }

    .btn-nav-cta {
        display: none;
    }

    .btn-mobile-toggle {
        display: inline-flex;
    }

    .hero-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .mobile-label-break {
        display: block;
        margin-top: 2px;
    }
}

@media (max-width: 580px) {
    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 116px;
        padding-bottom: 64px;
    }

    .hero-grid,
    .about-grid,
    .laser-feature-grid,
    .banner-grid {
        gap: 32px;
    }

    .hero-title,
    .section-title-large {
        font-size: 2rem;
    }

    .hero-highlight-quote {
        font-size: 1.08rem;
    }

    .hero-img {
        height: min(112vw, 460px);
    }

    .section-label-tracked {
        font-size: 0.72rem;
        line-height: 1.5;
        letter-spacing: 2px;
    }

    .treatments-grid-6 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .treatment-card {
        padding: 26px 22px;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-schedule-section {
        margin: 32px 0;
    }

    .banner-angled-backdrop {
        padding: 64px 0;
        clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    }

    .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding-left: 18px;
        padding-right: 18px;
    }

    .map-pin {
        width: calc(100vw - 32px);
        max-width: 420px;
        padding: 18px;
        border-radius: var(--radius-md);
        align-items: flex-start;
    }

    .map-bg-frame {
        min-height: 300px;
        height: auto;
        padding: 36px 0;
        background-position: center, calc(100% - 16px) center;
        background-size: cover, 120px auto;
    }

    .map-pin small,
    .footer-contact-info {
        overflow-wrap: anywhere;
    }

    .brand-logo::before {
        width: 30px;
        height: 40px;
        flex-basis: 30px;
    }

    .dynamic-name-logo {
        font-size: 1.05rem;
    }

    .dynamic-role-logo {
        font-size: 0.56rem;
        letter-spacing: 1px;
    }

    .about-img {
        height: min(118vw, 480px);
    }

    .laser-img {
        height: min(105vw, 430px);
    }

    .banner-doctor-img {
        max-height: 320px;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
        font-size: 1.65rem;
    }
}

@media (max-width: 380px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .brand-logo {
        min-width: 0;
        flex-shrink: 1;
    }

    .dynamic-name-logo {
        font-size: 0.96rem;
    }

    .dynamic-role-logo {
        font-size: 0.5rem;
        letter-spacing: 0.8px;
    }

    .nav-actions {
        gap: 6px;
    }

    .hero-title,
    .section-title-large {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
