/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c6ac7; /* lavanda suave */
    --primary-light: #b7aef0;
    --primary-dark: #6a5bb1;
    --secondary-color: #f7f7fb; /* mais claro e acolhedor */
    --accent-color: #d8c9ff; /* lilás clarinho */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #faf5ff 0%, #ede9fe 40%, #e4dfff 70%, #d8c9ff 100%);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h2 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.highlight {
    color: #fbbf24;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: #594aa0; /* tom um pouco mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-image {
    text-align: center;
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Pain Points Section */
.pain-points {
    padding: 80px 0;
    background: var(--secondary-color);
}

.pain-points h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pain-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pain-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cta-center {
    text-align: center;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.credentials {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.credential {
    background: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.consultorio-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--secondary-color);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Conditions Section */
.conditions {
    padding: 80px 0;
}

.conditions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.condition-category {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 20px;
}

.condition-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.condition-category ul {
    list-style: none;
}

.condition-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 70, 193, 0.1);
}

.condition-category li:last-child {
    border-bottom: none;
}

/* Testimonials Section (Doctoralia) */
.testimonials {
    padding: 80px 0;
    background: var(--secondary-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

/* Estilos do carrossel de fallback */
.testimonial-carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.testimonial-carousel .slides {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.testimonial-carousel .slide {
    display: none;
}

.testimonial-carousel .slide.active {
    display: block;
}

.testimonial-carousel img {
    width: 100%;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }

.carousel-control:hover { background: #594aa0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    background: transparent;
    cursor: pointer;
}

.carousel-dots .dot.active { background: var(--primary-dark); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.doctoralia-rating {
    text-align: center;
    margin: 3rem 0;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    font-size: 1.5rem;
}

.rating-text {
    color: var(--text-light);
}

/* FAQ Section - Quadro Fixo */
.quadro-faq {
  padding: 80px 0;
  background: var(--secondary-color);
}

.quadro-faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.quadro-faq-item {
  background: var(--white);
  border-radius: 18px;
  margin-bottom: 0; /* gap do grid controla o espaçamento */
  padding: 1.75rem 2rem;
  box-shadow: 0 6px 24px rgba(124, 106, 199, 0.07);
  border: 1.5px solid var(--primary-light);
  transition: box-shadow 0.3s;
}

.quadro-faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* Seta indicativa do acordeão */
.quadro-faq-question::after {
  content: '\25B6'; /* triângulo para a direita */
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-left: 0.75rem;
  transition: transform 0.25s ease;
}

.quadro-faq-item.active .quadro-faq-question::after {
  transform: rotate(90deg); /* seta apontando para baixo */
}

.quadro-faq-answer {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.quadro-faq-item.active .quadro-faq-answer {
  max-height: 500px; /* suficiente para conteúdos curtos */
}

/* Acordeão ativo no FAQ */
/* Removemos quaisquer resets que ocultavam a seta/estado */

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    color: var(--text-dark);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.credentials-footer {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .nav {
        display: none;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .credentials {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
}

/* Responsividade específica FAQ */
@media (max-width: 768px) {
  .faq-list { gap: 1rem; }
  .quadro-faq-item { padding: 1.25rem 1.25rem; }
  .quadro-faq-question { font-size: 1.0625rem; }
  .quadro-faq-answer { font-size: 0.9875rem; line-height: 1.65; }
}

@media (max-width: 768px) {
    .testimonial-carousel { max-width: 100%; }
    .carousel-control { width: 36px; height: 36px; }
}
