﻿/* Clínica Médica Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* PALETA DRA. LUCIANA VANDESTEEN - CORRETA */

    /* 1) CORES PRINCIPAIS (BASE DO SITE) */
    --bg-white: #F4F1EB;
    /* Pérola Suave (Fundo Principal/Leitura Suave) */
    --bg-body: #EBE6E0;
    /* Creme de Seda (Alternância/Respiro) */

    /* 2) ESTRUTURA VISUAL */
    --bg-card: #D8C8B2;
    /* Areia Fina (Cards/Destaque - Organização) */
    --bg-card-light: #F9F7F5;
    /* Variação mais clara se necessário */

    /* 3) TEXTO (LEGIBILIDADE PRIORITÁRIA) */
    --text-main: #4A3A2B;
    /* Café Expresso (Títulos Densos/Texto Forte) */
    --text-body: #4A3A2B;
    /* Café Expresso (Texto Corrido/Parágrafos) */

    /* 4) TÍTULOS & IDENTIDADE */
    --secondary: #A68B5B;
    /* Ouro Velho (Identity/H1) - SEMPRE sobre fundo claro */
    --secondary-hover: #8e754a;

    /* 5) DESTAQUE (CTA) */
    --primary: #C07F00;
    /* Âmbar Líquido (Botões Principais) */
    --primary-light: #C9B292;
    /* Dourado Pálido (Ícones/Linhas) */
    --primary-dark: #966000;
    /* Dark Amber (Hover) */

    /* 6) DETALHES */
    --rose-antique: #BFA590;
    /* Decoração sutil/Apoio */

    /* SYSTEM TOKENS */
    --radius: 0px;
    /* Sharp edges for elegance */
    --header-height: 80px;
    --shadow-sm: 0 1px 2px rgba(74, 58, 43, 0.05);
    /* Tinted Shadow (Coffee) */
    --shadow-lg: 0 10px 15px -3px rgba(74, 58, 43, 0.1), 0 4px 6px -2px rgba(74, 58, 43, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(74, 58, 43, 0.1), 0 10px 10px -5px rgba(74, 58, 43, 0.04);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    /* Café Expresso */
    background-color: var(--bg-white);
    /* Pérola Suave */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    color: var(--secondary);
    /* Ouro Velho default for Titles */
    line-height: 1.2;
}

/* Specific Title Overrides based on User Rules */
h1 {
    color: var(--secondary);
}

/* Ouro Velho */
h2 {
    color: var(--secondary);
}

h3,
h4,
h5,
h6 {
    color: var(--text-main);
}

/* Café Expresso for smaller/dense titles to avoid "Golden overload" */

/* Utility for text on dark backgrounds */
.text-white {
    color: #FFFFFF !important;
}

.text-white h1,
.text-white h2 {
    color: #FFFFFF;
}

/* Exception for Hero/Dark overlays */


/* Tailwind Overrides for "Brand" Colors */
.bg-brand-500 {
    background-color: var(--primary) !important;
}

.bg-brand-600 {
    background-color: var(--primary-dark) !important;
}

.text-brand-100 {
    color: #d1fae5 !important;
}

/* Old color removed */

/* Tailwind Overrides for "Brand" Colors - Mapped to New Palette */
.border-brand-200 {
    border-color: var(--primary-light) !important;
}

.hover\:bg-brand-100:hover {
    background-color: var(--bg-body) !important;
}

.bg-brand-500 {
    background-color: var(--primary) !important;
}

/* Âmbar */
.bg-brand-600 {
    background-color: var(--primary-dark) !important;
}

.text-brand-100 {
    color: var(--bg-white) !important;
}

/* Pérola */
.text-brand-900 {
    color: var(--text-main) !important;
}

/* Café */

.hover\:bg-brand-600:hover {
    background-color: var(--primary-dark) !important;
}

/* Premium Cards */
.card-item,
.feature-box,
.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(74, 58, 43, 0.1);
    color: var(--text-main);
    /* Ensure contrast */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-item:hover,
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--secondary);
}

/* Section Title Styling */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    display: block;
    background: var(--primary-light);
    height: 3px;
    width: 80px;
    margin-top: 0.5rem;
}

/* Button Polish */
.btn,
.btn-primary {
    border-radius: 0px !important;
    /* Force Sharp */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    /* Âmbar */
    color: var(--text-main) !important;
    /* Café Expresso */
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    /* Force Light Text */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(74, 58, 43, 0.2);
    animation: pulse-subtle 1s infinite;
}

/* Secondary/Outline Button Contrast Fix */
.btn-secondary:hover,
.btn-outline:hover,
.btn-light:hover {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    /* Force Café Expresso Text */
    border-color: var(--secondary) !important;
}


/* FINAL OVERRIDE: Button Hover Contrast */
.btn-secondary:hover,
.btn-outline:hover,
.btn-light:hover,
a[class*="border-brand"]:hover,
button[class*="border-brand"]:hover {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    border-color: var(--secondary) !important;
}

.hover\:text-brand-900:hover {
    color: var(--text-main) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero Specifics for Premium Look */
.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Floating WA */
.wa-float {
    background: #25D366;
    /* Keep WA brand color */
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ... existing code ... */

.section {
    padding: 6rem 0;
    /* Increased from 5rem for luxury feel */
    position: relative;
    overflow: hidden;
    /* Ensure clean edges */
}

@media (min-width: 992px) {
    .section {
        padding: 8rem 0;
        /* More space on desktop */
    }
}

.section-white {
    background: var(--bg-white);
}

.section-light {
    background: var(--bg-body);
}

.section-dark {
    background: var(--text-main);
    color: var(--bg-white);
}

.section-dark h1,
.section-dark h2 {
    color: var(--secondary);
}

/* Gold titles on Dark */

/* Typography Helpers */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-white {
    color: white !important;
}

.text-white p,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white small {
    color: inherit;
    opacity: 0.95;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.text-left .section-title::after {
    margin: 0.5rem 0 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.fw-bold {
    font-weight: 700;
}

.display-4 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.display-5 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.display-6 {
    font-size: 1.8rem;
    line-height: 1.2;
}

.text-uppercase {
    text-transform: uppercase;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 151, 70, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}


/* Flexbox Utilities */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

/* Spacing Utilities */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

/* Utilities for Display */
.d-none {
    display: none !important;
}

.d-lg-block {
    display: block !important;
}

.d-lg-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .d-lg-block {
        display: none !important;
    }

    .d-lg-none {
        display: block !important;
    }
}

/* Header */
.site-header {
    background: var(--bg-white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section (Replaces inline styles) */
.section-hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {

    /* Target the Inner Wrapper directly to break vertical centering */




    .hero-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-inner-wrapper h1,
    .hero-content h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {

    .hero-inner-wrapper h1,
    .hero-content h1 {
        font-size: 1.25rem !important;
        /* ~20px */
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

/* ... */

/* Feature Box & Icons */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Ensure horizontal centering of flex items */
}

/* ... */

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: inline-flex;
    /* Fix for icon centering */
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: inherit;
}

.animate-up {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.slider-controls button:hover {
    background: white;
    color: var(--primary);
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

/* Cards & Grid using CSS Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.g-4 {
    gap: 1.5rem;
}

/* Not using Bootstrap gap, but standard flex gap if supported or using margin */
.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.75rem;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 0.75rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.card-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-img-top {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    /* Reduced from 3rem for better proportion */
    color: var(--primary);
    margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 1.5rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #374151;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.3s;
    color: white;
    font-size: 32px;
}

.wa-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
        height: auto;
        padding: 1rem 0;
        flex-wrap: wrap;
    }

    .header-inner {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary);
        padding: 0.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 400px;
        /* Adjust based on menu size */
        border-top: 1px solid var(--border);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f3f4f6;
    }


    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }



    .prev {
        left: 1rem;
    }

    .next {
        right: 1rem;
    }

    /* Mobile Typography Adjustments */
    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Pattern Overlay for CTA */
.bg-pattern {
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 10px,
            transparent 10px,
            transparent 20px);
}

/* Hover Effects Polish */
.card-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-box {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Button Pulse */
@keyframes pulse-subtle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.btn-primary:hover {
    animation: pulse-subtle 1s infinite;
}