:root {
    --primary: #1A362D;
    --secondary: #8AA48E;
    --accent: #E08E6D;
    --bg-light: #F8F6F2;
    --text-dark: #2A2A2A;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Header com efeito de rolagem */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(248, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.btn {
    background-color: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 45, 0.3);
}

.btn-full { width: 100%; margin-top: 1rem; }

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 5rem 5%; /* Ajuste por causa do header fixed */
    min-height: 80vh;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-image {
    width: 45%;
    height: 450px;
    background-color: var(--secondary);
    border-radius: 20px 100px 20px 100px;
    background-image: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    box-shadow: 20px 20px 0px var(--accent);
}

.section-padding { padding: 6rem 5%; }
.bg-alt { background-color: #E2E8E4; }

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.text-center {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Novos Cards de Serviço com Imagens */
.card-service {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card-service:hover { transform: translateY(-10px); }

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content { padding: 2rem; }
.card-content h3 { color: var(--primary); margin-bottom: 1rem; }

/* Galeria do Espaço */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    height: 300px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cards Originais dos Médicos */
.card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.doc-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.specialty { color: var(--accent); font-weight: 500; margin-bottom: 1rem; font-size: 0.9rem; }

/* FAQ Interativo (Accordion) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover { background: #fdfdfd; }

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
}

.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .icon { transform: rotate(45deg); color: var(--accent); }

/* Formulário de Agendamento */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.form-group label { font-weight: 500; margin-bottom: 0.5rem; color: var(--primary); }

.form-group input, .form-group select {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-light);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus { border-color: var(--secondary); }

.feedback-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.hidden { display: none; }

footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3rem 5%;
}

/* Animações JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; position: relative; }
    nav a { margin: 0 0.5rem; font-size: 0.9rem; }
    .hero { flex-direction: column; text-align: center; padding: 3rem 5%; min-height: auto; }
    .hero-content { max-width: 100%; margin-bottom: 3rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-image { width: 100%; height: 350px; }
    .form-container { padding: 1.5rem; }
}