/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ==== VARIABLES ====================================================== */
:root {
  --header-height: 4.5rem;

  /* colors — derivadas de #D5BBB1, ver TASKS.md */
  --color-bg: #FAF4F1;
  --color-surface: #F1E4DE;
  --color-primary: #D5BBB1;
  --color-accent: #BA785E;
  --color-accent-strong: #9C5C44;
  --color-accent-strong-hover: #84503A;
  --color-text: #33251F;
  --color-text-muted: #7A6A63;
  --color-white: #FFFFFF;

  /* fonts — serifadas, inspiradas na Anthropic (Newsreader + Source Serif 4) */
  --title-font-size: 2rem;
  --subtitle-font-size: 1rem;

  --title-font: 'Newsreader', serif;
  --body-font: 'Source Serif 4', serif;
}

/* ==== BASE ====================================================== */
html {
  scroll-behavior: smooth;
}
body {
  font: 400 1.0625rem var(--body-font);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.title {
  font: 600 var(--title-font-size) var(--title-font);
  color: var(--color-text);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: auto;
}

.eyebrow {
  font: italic 500 1rem var(--title-font);
  color: var(--color-accent-strong);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: var(--subtitle-font-size);
  color: var(--color-text-muted);
}

.credentials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.875rem var(--body-font);
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.credentials span {
  color: var(--color-accent-strong);
}

.section-dark .credentials,
.section-dark .credentials span {
  color: var(--color-white);
}

.section-dark .credentials span {
  color: var(--color-primary);
}

/* acessibilidade: foco sempre visível */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-dark a:focus-visible,
.section-dark button:focus-visible {
  outline-color: var(--color-white);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent-strong);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  font: 500 1rem var(--body-font);
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* botões em pílula — padrão observado nas referências externas */
.button {
  color: var(--color-white);
  height: 3.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2rem;
  border: none;
  font: 500 0.9375rem var(--body-font);
  letter-spacing: 0.02em;
  transition: background 0.3s, transform 0.2s;
}

.button-pill {
  background-color: var(--color-accent-strong);
  border-radius: 999px;
}

.button-pill:hover {
  background: var(--color-accent-strong-hover);
}

.section-dark .button-pill {
  background: var(--color-white);
  color: var(--color-accent-strong);
}

.section-dark .button-pill:hover {
  background: var(--color-surface);
}

/* ==== LAYOUT ====================================================== */

.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: calc(4rem + var(--header-height)) 0;
}

.section-dark {
  background: var(--color-accent-strong);
  color: var(--color-white);
}

.section-dark .title,
.section-dark .eyebrow,
.section-dark p:not(.subtitle) {
  color: var(--color-white);
}

.section-surface {
  background: var(--color-surface);
}

.section .title {
  margin-bottom: 1rem;
}

.section header {
  margin-bottom: 4rem;
}

#header {
  border-bottom: 1px solid #E7D9D2;
  display: flex;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--color-bg);
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(51, 37, 31, 0.12);
}

/* ==== LOGO ====================================================== */

.logo {
  font: 600 1.31rem var(--title-font);
  color: var(--color-text);
}

.logo-accent {
  color: var(--color-accent-strong);
}

#header .logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.125rem;
}

/* ao rolar a página, "Dra. Giovana" e "Jander" trocam de cor entre si,
   suavemente — ver #header.scroll (togglado em main.js conforme scroll) */
#header .logo,
#header .logo-accent {
  transition: color 0.4s ease;
}

#header.scroll .logo {
  color: var(--color-accent-strong);
}

#header.scroll .logo-accent {
  color: var(--color-text);
}

.logo-specialty {
  font: 500 0.6875rem var(--body-font);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-alt {
  color: var(--color-white);
}

.logo-alt .logo-accent {
  color: var(--color-primary);
}

/* ==== NAVIGATION ====================================================== */

nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

nav ul.grid {
  gap: 2.5rem;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--color-accent-strong);
}

nav ul li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--color-accent-strong);

  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.2s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.2s;
}

nav .menu ul {
  display: none;
}

/* Mostrar menu */
nav.show .menu {
  opacity: 1;
  visibility: visible;

  background: var(--color-bg);
  height: 100vh;
  width: 100vw;

  position: fixed;
  top: 0;
  left: 0;

  display: grid;
  place-content: center;
}

nav.show .menu ul {
  display: grid;
}

nav.show ul.grid {
  gap: 2.5rem;
}

/* CTA no header, sempre visível (mobile e desktop) */
.nav-cta {
  height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.8125rem;
  margin-left: auto;
  white-space: nowrap;
}

/* toggle menu */
.toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent-strong);
  font-size: 1.5rem;
  line-height: 1;
}

nav .icon-close {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}
nav.show .icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/* ==== INÍCIO ====================================================== */

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

/* foto sem fundo (PNG com transparência) — encaixa direto na cor da seção,
   sem corte/moldura, ver TASKS.md */
.hero-cutout {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-cutout img {
  width: 100%;
  max-width: 28rem;
  height: auto;
}

.section-hero .text {
  text-align: center;
  padding: 0 1.5rem;
}

.section-hero .eyebrow {
  text-align: center;
}

.section-hero .title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.title-accent {
  color: var(--color-accent-strong);
}

.subtitle-line {
  font: italic 400 1.25rem var(--title-font);
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.section-hero .lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 30rem;
  margin: 0 auto 0.75rem;
}

.section-hero .lead:last-of-type {
  margin-bottom: 1.5rem;
}

.condition-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 30rem;
  margin: 0 auto 1rem;
}

.condition-tags li {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font: 500 0.8125rem var(--body-font);
}

.section-hero .credentials {
  justify-content: center;
}

/* estatísticas */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1rem;
  padding-top: 3rem;
  border-top: 1px solid #E7D9D2;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: var(--color-primary);
}

.stat-number {
  font: 600 2.25rem var(--title-font);
  color: var(--color-accent-strong);
  margin: 0 0 0.25rem;
}

.stat-label {
  font: 400 0.875rem var(--body-font);
  color: var(--color-text-muted);
  margin: 0;
}

/* ==== SOBRE / CONTATO (foto ocupa a seção inteira, nítida, sem véu — texto
   fica num espaço próprio que nunca sobrepõe a imagem) ====================================================== */

.bleed-grid {
  display: grid;
}

.bleed-grid .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}

.bleed-text {
  padding: 3.5rem 1.5rem;
}

.bleed-text p {
  margin-bottom: 1.25rem;
}

.bleed-text p:last-child {
  margin-bottom: 0;
}

#contato .bleed-text p {
  color: var(--color-text-muted);
}

/* ==== CONSULTAS ====================================================== */

.cards.grid {
  gap: 3rem 2rem;
}

.card {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-primary);
}

.card-index {
  position: absolute;
  top: -0.25rem;
  right: 0;
  font: 600 2.5rem var(--title-font);
  color: var(--color-primary);
  line-height: 1;
}

.card-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--color-accent-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card .title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font: 500 0.9375rem var(--body-font);
  color: var(--color-accent-strong);
  transition: gap 0.2s, color 0.2s;
}

.card-link:hover {
  color: var(--color-accent-strong-hover);
  gap: 0.625rem;
}

/* ==== DEPOIMENTOS (citação editorial) ====================================================== */

.quote-swiper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonials.swiper-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

#depoimentos blockquote {
  text-align: center;
  padding: 1rem 0.5rem 2.5rem;
}

#depoimentos blockquote p {
  font: italic 400 1.375rem/1.5 var(--title-font);
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.stars {
  color: #b8860b;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
}

#depoimentos .stars {
  margin-bottom: 0.75rem;
}

.stat-label .stars {
  margin-top: 0.35rem;
}

#depoimentos cite {
  display: block;
  font: 500 0.875rem var(--body-font);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-text-muted);
  opacity: 0.4;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent-strong);
  opacity: 1;
}

.quote-swiper .swiper-button-prev,
.quote-swiper .swiper-button-next {
  position: static;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  margin: 0;
}

.quote-swiper .swiper-button-prev:focus-visible,
.quote-swiper .swiper-button-next:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 3px;
}

.quote-swiper .swiper-button-prev::after,
.quote-swiper .swiper-button-next::after {
  font-size: 0.875rem;
  color: var(--color-accent-strong);
}

/* ==== CONTATOS ====================================================== */

#contato .links li {
  display: flex;
  align-items: center;
}

#contato .links li a {
  display: flex;
  align-items: center;
  color: var(--color-text);
  transition: color 0.2s;
}

#contato .links li a:hover {
  color: var(--color-accent-strong);
}

#contato .links li i {
  font-size: 1.5rem;
  margin-right: 0.625rem;
  color: var(--color-accent-strong);
}

#contato .button-pill {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ==== FOOTER ====================================================== */

footer.section {
  padding: 3.5rem 0;
}

footer .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .brand p {
  margin-bottom: 0.75rem;
}

footer i {
  font-size: 1.5rem;
  color: var(--color-white);
}

footer .social {
  grid-auto-flow: column;
  width: fit-content;
  gap: 1.5rem;
}

footer .social a {
  transition: 0.3s;
  display: inline-block;
}

footer .social a:hover {
  transform: translateY(-8px);
}

/* ==== WHATSAPP FLUTUANTE ====================================================== */

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366; /* verde oficial do WhatsApp */
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(51, 37, 31, 0.25);
  z-index: 90;
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: #1da851;
  transform: translateY(-3px);
}

.whatsapp-float i {
  font-size: 1.625rem;
}

/* RESPONSIVO */
/*============ MEDIA QUERIES ============*/
@media (max-width: 480px) {
  .nav-cta {
    padding: 0 0.875rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 8rem 0;
  }

  .section header {
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* navigation */
  nav .menu {
    opacity: 1;
    visibility: visible;
    top: 0;
  }

  nav .menu ul {
    display: flex;
    gap: 2rem;
  }

  nav .menu ul li a.title {
    font: 500 0.8125rem var(--body-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
  }

  nav .icon-menu,
  nav .icon-close {
    display: none;
  }

  .nav-cta {
    margin-left: 2rem;
  }

  /* layout */
  main {
    margin-top: var(--header-height);
  }

  /* início */
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
  }

  .hero-cutout {
    align-self: end;
  }

  .hero-cutout img {
    max-width: 34rem;
  }

  .section-hero .text {
    text-align: left;
    padding: 0;
  }

  .section-hero .eyebrow {
    text-align: left;
  }

  .section-hero .lead {
    margin-left: 0;
    margin-right: 0;
  }

  .condition-tags {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  .section-hero .title {
    font-size: 3.25rem;
  }

  .section-hero .credentials {
    justify-content: flex-start;
  }

  .stats {
    justify-content: flex-start;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .stat {
    padding: 0 2.5rem;
  }

  /* sobre / contato — foto ocupa a seção inteira (borda a borda até a
     viewport), texto num espaço próprio com respiro, nunca sobre a foto */
  .bleed-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 34rem;
  }

  .bleed-grid .image img {
    aspect-ratio: auto;
  }

  .bleed-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem clamp(2rem, 6vw, 7rem);
  }

  .bleed-text > * {
    max-width: 30rem;
  }

  /* consultas */
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  /* depoimentos */
  .quote-swiper {
    gap: 1.5rem;
  }

  #depoimentos blockquote p {
    font-size: 1.625rem;
  }

  /* footer */
  footer .container {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  :root {
    --title-font-size: 2.5rem;
    --subtitle-font-size: 1.125rem;
  }
}
