:root {
    /* Significantly Lighter 'Sand & Cream' Palette */
    --bg-pure: #FFFFFF;
    --bg-soft: #FBF9F4;
    /* Creamy Off-White */
    --bg-accent: #F2EDE4;
    /* Warm Sand / Beige */
    --text-main: #5C524A;
    /* Soft Warm Taupe (Readable but not black) */
    --text-muted: #8E8279;
    /* Muted Sandstone */
    --primary: #8E7D70;
    /* Soft Desert Sand */
    --primary-light: #A89584;
    --accent: #B08D65;
    /* Sandy Gold */
    --accent-soft: rgba(176, 141, 101, 0.1);
    --white: #FFFFFF;

    /* Advanced Tokens */
    --container-max: 1350px;
    /* Expanded for more immersion */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 10px 30px rgba(114, 97, 84, 0.05);
    --shadow-float: 0 20px 50px rgba(114, 97, 84, 0.1);
    --radius-xl: 32px;
    --radius-lg: 20px;
}

/* --- Entrance Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.25;
    /* Improved from 1.1 */
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    /* Default margin for better flow */
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 25px;
    /* Reduced from 4% (roughly 60px) to 25px */
}

/* --- Premium Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 160, 123, 0.1);
    height: 70px;
    /* Reduced from 90px */
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

nav.scrolled {
    height: 60px;
    /* Reduced from 75px */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    /* Tighter logo */
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    /* Tighter gap */
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 0.7rem 1.6rem;
    /* Tighter button */
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

/* --- Hero Section - Dense & Visual --- */
.hero {
    padding: 100px 0 40px;
    /* Further reduced from 120/60 */
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    /* Slightly wider image col */
    gap: 2rem;
    /* Reduced from 3rem */
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    /* Increased for breathability */
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    margin-bottom: 1.5rem;
    /* Increased margin */
    color: var(--primary);
}

.hero-content h1 span {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.hero-content p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    /* More space before CTA */
    max-width: 550px;
    line-height: 1.75;
    /* Improved readability */
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    aspect-ratio: 4/5;
    max-height: 550px;
    /* Prevent it from being too tall */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    /* Reduced from 5rem */
    padding-top: 2rem;
    /* Reduced from 3rem */
    border-top: 1px solid rgba(197, 160, 123, 0.2);
}

.stat-item h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* --- Bento Grid Services --- */
.section-padding {
    padding: 80px 0;
    /* Standardized density */
}

.center-header {
    text-align: center;
    margin-bottom: 3rem;
    /* Reduced from 4rem */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.center-header h2 {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

/* --- Pillar Service Cards --- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pillar-item {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 123, 0.12);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
}

.pillar-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: var(--accent);
}

.pillar-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.pillar-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pillar-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.pillar-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: auto;
}

.pillar-cta {
    margin-top: 25px;
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.pillar-cta:hover {
    gap: 12px;
}


/* --- About Card --- */
.about-card {
    background: var(--bg-accent);
    border-radius: 32px;
    padding: 50px;
    /* More compact container */
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    /* Better separation */
    align-items: center;
}

.about-content {
    padding-right: 20px;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    line-height: 1.8;
    /* Elegantly spaced */
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0;
}

.feature-pill {
    background: white;
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(63, 53, 46, 0.04);
    transition: var(--transition-smooth);
}

.feature-pill:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-premium);
}

/* --- Google Rating Badge --- */
.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    margin-top: 15px;
}

.google-rating span {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.stars {
    color: #FBBC05;
    display: flex;
    gap: 2px;
}

/* --- Footer Refined --- */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
    /* Further reduced from 80/40 */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    /* Reduced from 40px */
    margin-bottom: 40px;
    /* Reduced from 60px */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    /* Reduced from 60px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Floating Elements --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #128C7E;
}

/* --- Mobile Sticky Button --- */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 25px;
    background: white;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    border-top: 1px solid rgba(197, 160, 123, 0.1);
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

.mobile-sticky-cta .cta-button {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}


/* --- Contact & Appointment Layout --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 480px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 1px solid rgba(197, 160, 123, 0.08);
    box-shadow: 0 4px 15px rgba(63, 53, 46, 0.02);
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(63, 53, 46, 0.05);
    border-color: var(--accent);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-accent);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.info-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 32px;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(197, 160, 123, 0.1);
}

.contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 123, 0.15);
    background: var(--bg-soft);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 160, 123, 0.08);
}

.submit-appointment {
    grid-column: span 2;
    margin-top: 10px;
}

.whatsapp-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Responsive Contact --- */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .contact-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .submit-appointment {
        grid-column: span 1;
    }

    .contact-form-wrapper {
        padding: 25px;
        border-radius: 20px;
    }
}

/* --- Responsive 1440px+ --- */
@media (min-width: 1441px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1600px;
    }
}

/* --- Health Plans (Convênios) --- */
.plans-section {
    padding: 30px 0;
    /* Reduced from 40px */
    background: white;
    border-top: 1px solid rgba(197, 160, 123, 0.1);
    border-bottom: 1px solid rgba(197, 160, 123, 0.1);
}

.plans-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    /* Tighter gap */
    align-items: center;
}

.plan-item {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    /* Slightly smaller */
    letter-spacing: 0.5px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.plan-item:hover {
    opacity: 1;
}

/* --- Responsive Tablet (1024px) --- */
@media (max-width: 1024px) {

    .hero-grid,
    .about-card {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        gap: 20px;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .pillar-item {
        max-width: 450px;
        margin: 0 auto;
    }

    .feature-pill {
        padding: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
}

/* --- Responsive Mobile (768px) --- */
@media (max-width: 768px) {

    .section-padding {
        padding: 40px 0;
        /* Reduced from 80px for better mobile density */
    }

    .nav-links,
    .nav-content .cta-button:not(.mobile-only) {
        display: none;
    }

    .hero {
        padding-top: 150px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 40px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 1500;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}