:root {
  --light: #f4f0ed;
  --purple: #aca4bc;
  --purple-dark: #8c839c;
  --gray: #cdcdcd;
  --sand: #e1dace;
  --text: #4a4a4a;
  --title: #2a2a2a;
  --font-title: "Questrial", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  font-weight: 300;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.text-center {
  text-align: center;
}
.bg-sand {
  background-color: var(--sand);
}
.mt-4 {
  margin-top: 1.5rem;
}

/* Tipografia Base (Mobile) */
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--title);
  font-weight: 400;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Watermark Background */
.bg-text-watermark {
  position: absolute;
  top: 150px;
  left: -5%;
  font-size: 20vw;
  font-family: var(--font-title);
  color: rgba(205, 205, 205, 0.15);
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}

/* Navbar & Logo */
.navbar {
  padding: 20px 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.img-logo {
  max-width: 160px;
  height: auto;
  display: block;
} /* Menor no mobile */
.cta-nav {
  text-decoration: none;
  color: var(--title);
  font-weight: 500;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--purple);
  padding-bottom: 4px;
  transition: 0.3s;
}
.cta-nav:hover {
  color: var(--purple);
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #615a6b;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(97, 90, 107, 0.3);
  font-size: 0.95rem;
  width: 100%; /* Botão largo no mobile */
}
.btn-primary:hover {
  background-color: var(--purple);
  transform: translateY(-3px);
}
.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--purple);
  color: var(--purple);
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  text-align: center;
  width: 100%;
}
.btn-outline:hover {
  background-color: var(--purple);
  color: white;
}

/* Hero Section (Mobile) */
.hero {
  padding: 30px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.tag {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-content h1 span {
  color: var(--purple);
}
.hero-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Social Proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 2.5rem;
}
.avatars {
  display: flex;
}
.avatars img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--light);
  margin-left: -15px;
}
.avatars img:first-child {
  margin-left: 0;
}
.social-proof span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Hero Image & Blob (Mobile) */
.hero-image-area {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem; /* Adicionado um respiro caso fique perto do depoimento/texto */
}
.main-portrait {
  width: 100%;
  max-width: 350px;
  height: 450px;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 2;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.organic-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--sand);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  top: 5%;
  left: 0%;
  z-index: 1;
}

/* Cards Flutuantes (Mobile - Ajustados para meio/base) */
.floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Rebaixado para altura do ombro */
.card-1 {
  top: 50%;
  left: -5px;
}
/* Rebaixado para próximo aos livros */
.card-2 {
  bottom: 0%;
  right: -5px;
}
.icon-box {
  background: var(--sand);
  color: var(--purple);
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.card-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--title);
}
.card-text span {
  font-size: 0.75rem;
  color: var(--text);
}

/* Pilares */
.pillars-section {
  padding: 40px 0;
  background-color: white;
}
.pillars-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pillar-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--light);
  padding: 15px;
  border-radius: 15px;
  flex: 1;
}
.pillar-box .icon-wrapper {
  font-size: 1.8rem;
  color: var(--purple);
}
.pillar-box h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}
.pillar-box p {
  font-size: 0.85rem;
}

/* Sobre - Colagem com 3 imagens (Sem bordas brancas) */
.about-section {
  padding: 60px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-collage {
  position: relative;
  height: 400px;
  width: 100%;
}
.blob-sand {
  position: absolute;
  width: 250px;
  height: 300px;
  background: var(--sand);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  left: 5%;
  top: 5%;
}
.img-back {
  position: absolute;
  width: 70%;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
  top: 0;
  right: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.img-front {
  position: absolute;
  width: 60%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  bottom: 40px;
  left: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 3;
}
.img-third {
  position: absolute;
  width: 50%;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
  bottom: 0;
  right: 5%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  z-index: 4;
}
.about-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Especialidades */
.specialties-section {
  padding: 60px 0;
  background-image: url("https://draraissaendocrinologista.com.br/wp-content/uploads/2025/12/draraissaendocrinologista-2-1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.specialties-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(244, 240, 237, 0.95);
  z-index: 1;
}
.specialties-section .container {
  position: relative;
  z-index: 2;
}
.subtitle {
  margin-bottom: 3rem;
  font-size: 1rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.spec-card {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.spec-card i {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 15px;
}
.spec-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.spec-card p {
  font-size: 0.9rem;
}

/* Acordeão (Cuidado Completo) */
.accordion-section {
  padding: 60px 0;
  background: white;
}
.accordion-wrapper {
  margin-top: 1rem;
}
.accordion-item {
  border-bottom: 1px solid var(--gray);
  margin-bottom: 10px;
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 15px 0;
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--title);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  outline: none;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease-in-out;
}
.acc-body-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  padding: 10px 0 20px 0;
}
.acc-body-flex img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.acc-body-flex p {
  font-size: 0.95rem;
}
.accordion-item.active .accordion-body {
  max-height: 1200px;
  visibility: visible;
}
.accordion-item.active .accordion-header i {
  transform: rotate(45deg);
  color: var(--purple);
}

/* Depoimentos */
.testimonials-section {
  padding: 60px 0;
}
.testimonials-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0 2rem 0;
  scroll-snap-type: x mandatory;
}
.testimonials-scroll::-webkit-scrollbar {
  height: 4px;
}
.testimonials-scroll::-webkit-scrollbar-thumb {
  background-color: var(--purple);
  border-radius: 10px;
}
.testimonial-elegant {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  scroll-snap-align: center;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.testimonial-elegant i {
  font-size: 1.5rem;
  color: var(--sand);
  margin-bottom: 1rem;
}
.testimonial-elegant p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Contato */
.new-contact {
  padding: 60px 0;
  background-color: white;
  border-top: 1px solid var(--gray);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.contact-image-area {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 1rem; /* Adicionado um respiro no mobile */
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.detail-icon {
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
}
.detail-item strong {
  font-size: 1rem;
}
.detail-item span {
  font-size: 0.85rem;
}
.contact-img {
  width: 100%;
  max-width: 350px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px 150px 20px 150px;
  z-index: 2;
  position: relative;
}
.blob-purple {
  position: absolute;
  width: 250px;
  height: 250px;
  background-color: var(--purple);
  opacity: 0.2;
  border-radius: 50%;
  bottom: -10px;
  right: 0;
  z-index: 1;
}

/* FOOTER */
footer {
  padding: 40px 0 20px;
  border-top: 1px solid var(--gray);
  background-color: var(--light);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}
.img-logo-footer {
  max-width: 200px;
  height: auto;
}
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}
.footer-copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #888;
}

/* Fab WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  font-size: 1.8rem;
  z-index: 1000;
}

/* =========================================================
   MEDIA QUERIES - DESKTOP (A mágica acontece aqui) 
   ========================================================= */

@media (min-width: 768px) {
  /* Tablets e Monitores Médios */
  .section-title {
    font-size: 2.3rem;
  }
  .img-logo {
    max-width: 200px;
  }
  .btn-primary,
  .btn-outline {
    width: auto;
  }

  .about-collage {
    height: 450px;
  }
  .img-back {
    height: 320px;
  }
  .img-front {
    height: 240px;
  }
  .img-third {
    height: 180px;
  }

  .acc-body-flex {
    flex-direction: row;
    align-items: center;
    padding: 20px 0;
  }
  .acc-body-flex p {
    padding-top: 0;
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  /* Computadores Desktop */
  .section-title {
    font-size: 2.5rem;
  }
  .img-logo {
    max-width: 240px;
  }
  .hero {
    padding: 60px 0 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .main-portrait {
    max-width: 450px;
    height: 600px;
  }
  .organic-blob {
    width: 400px;
    height: 400px;
  }

  /* Cards no desktop ajustados */
  .card-1 {
    top: 30%;
    left: -40px;
  }
  .card-2 {
    bottom: -5%;
    right: -20px;
  }
  .card-text strong {
    font-size: 0.9rem;
  }
  .icon-box {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .pillars-section {
    padding: 60px 0;
  }
  .pillars-flex {
    flex-direction: row;
    gap: 20px;
  }

  .about-section {
    padding: 100px 0;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .about-collage {
    height: 550px;
  }
  .img-back {
    height: 380px;
  }
  .img-front {
    height: 280px;
    bottom: 50px;
  }
  .img-third {
    height: 220px;
  }

  .specialties-section {
    padding: 100px 0;
  }
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  .spec-card {
    padding: 40px 30px;
  }

  .accordion-section {
    padding: 100px 0;
  }
  .accordion-header {
    font-size: 1.3rem;
  }

  .testimonials-section {
    padding: 100px 0;
  }
  .testimonial-elegant {
    min-width: 350px;
    max-width: 400px;
    padding: 2.5rem;
  }

  .new-contact {
    padding: 100px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .contact-img {
    max-width: 450px;
    height: 550px;
  }
  .blob-purple {
    width: 350px;
    height: 350px;
    bottom: -20px;
  }
}
