/* ===== ROOT & RESET ===== */
:root {
    --bg-dark: #0b0b0b;
    --bg-surface: #151515;
    --gold: #C5A059;
    --gold-hover: #b08d4b;
    --text-pure: #ffffff;
    --text-muted: #d0d0d0;
    --text-dim: #888888;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --trans-fast: 0.2s ease;
    --trans-smooth: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-pure);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== LAYOUT & UTILS ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* Animações Iniciais */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--trans-fast);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--bg-dark);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-pure);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.btn-center {
    margin: 0 auto;
    display: flex;
    max-width: max-content;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 2rem 2rem 2rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11,11,11,0.4) 0%, rgba(11,11,11,0.8) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===== NOSSA ESSÊNCIA & EQUIPE ===== */
.section-essencia {
    background-color: #000000;
    padding: 6rem 2rem;
}

.essencia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.essencia-content .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.essencia-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Container Responsivo AAA */
.essencia-image-wrapper {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 4px; /* Raio sutil */
    box-shadow: 0 4px 15px rgba(197, 164, 126, 0.3); /* Sombra exigida */
    overflow: hidden;
}

/* Hack de padding-top para os navegadores sem suporte a aspect-ratio nativo */
@supports not (aspect-ratio: 16 / 9) {
    .essencia-image-wrapper {
        padding-top: 56.25%;
        height: 0;
    }
}

.essencia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 992px) {
    .essencia-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    
    .essencia-content .section-title {
        text-align: left;
    }
    
    .essencia-text {
        text-align: left;
    }
}

/* ===== REABILITAÇÃO E ESTÉTICA (CARDS) ===== */
.section-reabilitacao {
    background-color: var(--bg-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.card:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}

.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(11,11,11,1) 0%, rgba(11,11,11,0) 100%);
    transform: translateY(20px);
    transition: var(--trans-smooth);
}

.card:hover .card-content {
    transform: translateY(0);
}

.card h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-pure);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity var(--trans-smooth);
}

.card:hover p {
    opacity: 1;
}

/* ===== SERVIÇOS ===== */
.section-servicos {
    background-color: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-box {
    padding: 3.5rem 2rem;
    background-color: var(--bg-surface);
    border: 1px solid rgba(197, 160, 89, 0.15); /* Borda dourada leve */
    border-radius: 4px;
    transition: var(--trans-smooth);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-box:hover, .service-box:focus {
    border-color: rgba(197, 160, 89, 0.5); /* Borda ativa dourada */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    outline: none;
}

.service-box h3 {
    font-size: 1.4rem;
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-divider {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    margin-bottom: 1.5rem;
    transition: width var(--trans-smooth);
}

.service-box:hover .service-divider,
.service-box:focus .service-divider {
    width: 60px; /* Acentua o hover animando a grossura dourada */
}

.service-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ===== GALERIA DE TRANSFORMAÇÕES ====== */
.section-galeria {
    background-color: var(--bg-dark);
    padding: 6rem 0; /* Padding lateral 0 para sangrar a tela toda (bleed layout) */
    overflow: hidden;
}

.section-galeria .container {
    padding-bottom: 2rem;
}

.carousel-container {
    width: 100%;
    position: relative;
}

/* Track Snapping nativo e Auto-scroll */
.carousel-track {
    display: flex;
    gap: 1rem;
    padding: 0 5%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 92%; /* Exibe a pontinha do próximo card no mobile */
    scroll-snap-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: translateZ(0); /* Aceleração de hardware para evitar bugs visuais */
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.carousel-overlay h4 {
    color: var(--text-pure);
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    padding: 0 2rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

/* Hover luxuoso isolado de mobiles sem hover real */
@media (hover: hover) {
    .carousel-slide:hover img {
        transform: scale(1.05); /* Zoom in super suave */
    }
    .carousel-slide:hover .carousel-overlay {
        background: rgba(0, 0, 0, 0.6);
        opacity: 1;
    }
    .carousel-slide:hover .carousel-overlay h4 {
        transform: translateY(0);
    }
}

/* Telas Médias e Grandes */
@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 45%; 
        scroll-snap-align: start;
    }
    .carousel-track {
        padding: 0 2rem;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 1.33rem); /* Mostra exatos 3 cartões fluidos */
    }
}

/* ===== EQUIPE ===== */
.section-equipe {
    background-color: var(--bg-dark);
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

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

.equipe-card .img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
}

.equipe-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--trans-smooth);
}

.equipe-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.equipe-info h3 {
    font-size: 1.8rem;
    color: var(--gold);
}

.equipe-info .specialty {
    font-size: 0.9rem;
    color: var(--text-pure);
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.equipe-info .cro-number {
    font-size: 0.75rem; /* 12px discreto */
    color: rgba(197, 160, 89, 0.6); /* Bege/Dourado apagado */
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

.equipe-desc {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto; margin-right: auto;
}

/* ===== FAQ ===== */
.section-faq {
    background-color: var(--bg-surface);
}

.accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--trans-fast);
}

.accordion-header:hover {
    color: var(--gold);
}

.accordion-header svg {
    transition: transform var(--trans-fast);
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
    color: var(--gold);
}
.accordion-item.active .accordion-header {
    color: var(--gold);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--trans-smooth);
}

.accordion-content {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #050505;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    transition: var(--trans-fast);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===== FAB (Floating Action Button) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--trans-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20BA5A;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

/* Animations and Element overrides */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 0 rgba(255, 71, 87, 0)); }
    50% { transform: scale(1.1); opacity: 0.8; filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6)); }
    100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 0 rgba(255, 71, 87, 0)); }
}

.pulse-icon {
    animation: pulse 2s infinite ease-in-out;
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(30%) contrast(1.2);
}
