/* CLÍNICA ESSENCIAL - CSS PREMIUM
   Paleta: #FBEFDF (Creme) | #263A2E (Verde Escuro) | #AD772C (Dourado) | #333333 (Cinza Escuro)
*/

:root {
    --primary: #263A2E;
    --secondary: #AD772C;
    --accent: #AD772C;
    --bg-light: #FBEFDF;
    --text-dark: #333333;
    --text-muted: #555555;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-premium: 0 10px 30px -5px rgba(38, 58, 46, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
}

/* --- ESTRUTURA --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.main-header {
    background: #FBEFDF;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid rgba(38, 58, 46, 0.1);
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
    display: block;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.navigation a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navigation a:hover {
    color: var(--secondary);
}

.btn-cta-nav {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(173, 119, 44, 0.3);
}

.btn-cta-nav:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 220px 20px 120px 20px;
    color: var(--white);
    background: 
        radial-gradient(circle at center, rgba(38, 58, 46, 0.8) 0%, rgba(38, 58, 46, 0.95) 100%),
        url('images/pexels-photo-3844581_v1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
    padding-bottom: 30px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    color: var(--secondary);
    filter: drop-shadow(0 0 10px rgba(173, 119, 44, 0.3));
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    margin: 0 auto 45px;
    max-width: 750px;
    opacity: 0.9;
    font-weight: 400;
    color: #e2e8f0;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.hero .btn-primary {
    padding: 18px 35px;
    background: var(--secondary);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(173, 119, 44, 0.3);
    text-decoration: none;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(173, 119, 44, 0.4);
    background: #c4882e;
}

.hero .btn-secondary {
    padding: 18px 35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary);
    border-color: var(--white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding-top: 140px;
        padding-bottom: 0;
        min-height: 70vh;
    }
    .hero-content {
        padding-bottom: 20px;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero .btn-primary, .hero .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* --- STATS BAR --- */
.stats-bar {
    margin-top: -60px; /* Sobreposição mais agressiva */
    position: relative;
    z-index: 10;
    padding: 0 0 30px 0;
    background: transparent;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(38, 58, 46, 0.12);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-desc {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-bar {
        margin-top: -40px;
        padding: 0 0 20px 0;
    }
    .stat-card {
        padding: 25px 15px;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* --- QUEM SOMOS --- */
.about {
    padding: 120px 0 120px 0;
    background: var(--bg-light);
    margin-top: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
}

.tag {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .about {
        padding: 20px 0 80px 0;
    }
}

/* --- ESPECIALIDADES --- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--secondary);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-card h3 {
    padding: 25px 25px 10px;
    color: var(--primary);
}

.service-card p {
    padding: 0 25px 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CORPO CLÍNICO --- */
.team {
    padding: 120px 0;
    background: var(--bg-light);
}

.grid-team {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.member-card {
    flex: 1;
    max-width: 380px;
    min-width: 300px;
    background: var(--white);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -15px rgba(38, 58, 46, 0.15);
    border-color: rgba(173, 119, 44, 0.3);
}

.member-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 25px;
    transition: transform 0.6s ease;
    filter: saturate(0.9) contrast(1.05);
}

.member-card:hover img {
    transform: scale(1.02);
}

.member-card h4 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.member-card span {
    display: block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--secondary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.member-card:hover::after {
    width: 40%;
}

@media (max-width: 768px) {
    .member-card {
        max-width: 100%;
    }
    .member-card img {
        height: 320px;
    }
}

/* --- PARTNERS --- */
.partners {
    background: var(--white);
    padding: 80px 0;
    border-top: 1px solid rgba(38, 58, 46, 0.05);
    border-bottom: 1px solid rgba(38, 58, 46, 0.05);
}

.partners-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
    position: relative;
}

.partners-title::before,
.partners-title::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--secondary);
    vertical-align: middle;
    margin: 0 15px;
    opacity: 0.5;
}

.partners-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: default;
    padding: 10px 15px;
    filter: grayscale(100%);
}

.partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-3px);
    color: var(--secondary);
}

@media (min-width: 993px) {
    .partner-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -25px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    .partners-flex {
        gap: 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-light);
}

.testimonials-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 20px 5px;
}

.testimonial-item {
    flex: 0 0 calc(50% - 15px);
    background: var(--white);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(38, 58, 46, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-item cite {
    color: var(--secondary);
    font-weight: 700;
    font-style: normal;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .testimonial-item {
        flex: 0 0 100%;
    }
}

/* --- FAQ --- */
.faq {
    padding: 120px 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 15px;
    transition: var(--transition);
    border: 1px solid rgba(38, 58, 46, 0.05);
    overflow: hidden;
}

.faq-item[open] {
    background: var(--white);
    box-shadow: var(--shadow-premium);
    border-color: rgba(173, 119, 44, 0.3);
}

.faq-item summary {
    padding: 25px 30px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.4s ease;
    font-weight: 400;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item summary:hover {
    color: var(--secondary);
}

.faq-item p {
    padding: 0 30px 30px 30px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .faq-item summary {
        padding: 20px;
        font-size: 1rem;
    }
    .faq-item p {
        padding: 0 20px 20px 20px;
    }
}

/* --- CONTATO --- */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.contact .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-list {
    list-style: none;
    margin-bottom: 50px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--primary);
}

.contact-list li strong {
    color: var(--secondary);
    font-weight: 700;
    min-width: 80px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(38, 58, 46, 0.1);
    border-radius: 50px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(38, 58, 46, 0.08);
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px 25px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(173, 119, 44, 0.1);
}

.contact-form textarea {
    resize: none;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    margin-top: 10px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(38, 58, 46, 0.2);
}

@media (max-width: 992px) {
    .contact .grid-2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info h2 {
        font-size: 2.2rem;
    }
    .contact-list li {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .contact-form {
        padding: 30px;
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-footer {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 25px;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.6;
    max-width: 280px;
}

.footer-column h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    opacity: 0.5;
    font-size: 0.8rem;
}

.rt-info {
    text-align: right;
    line-height: 1.4;
}

.rt-info span {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.rt-info p {
    opacity: 0.5;
    font-size: 0.75rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto 25px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .rt-info {
        text-align: center;
    }
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    text-decoration: none;
    color: #fff;
    font-size: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* --- RESPONSIVE GERAL --- */
@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-stats {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .navigation {
        display: none;
    }
}

/* --- REVEAL ANIMATION --- */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    opacity: 0.5;
    font-size: 0.8rem;
}

.rt-info {
    text-align: right;
    line-height: 1.4;
}

.rt-info span {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.rt-info p {
    opacity: 0.5;
    font-size: 0.75rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no tablet */
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 coluna no mobile */
        text-align: center;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .rt-info {
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}