/* ==========================================================================
   gabrielaneuro.com — PROJ_02 (Figma: site-final-handoff, node 1024:100)
   Stack: HTML + CSS puro, zero dependências.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Cores */
  --navy: #0a0033;
  --ink: #1f1b16;
  --body: #474650;
  --muted: #696366;
  --cream: #fff8f4;        /* base da página, cards depoimento */
  --cream-warm: #fcf2e9;   /* sobre, itens FAQ */
  --quote-bg: #f6ece3;     /* depoimentos, card quote do hero */
  --blog-img-bg: #f0e6dd;
  --underline: #e9e0e4;
  --line-soft: rgba(200, 197, 209, 0.3);
  --line-softer: rgba(200, 197, 209, 0.15);
  --line-arrows: #c8c5d1;
  --footer-text: #ede4e8;

  /* Tipografia */
  --font-heading: 'Marcellus', Georgia, serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-label: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 32px;
  --shadow-soft: 0px 32px 64px -12px rgba(31, 27, 22, 0.05);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Padrões reutilizáveis ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 289px;
  max-width: 100%;
  padding-block: 20px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-label);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn img { width: 19px; height: 19px; }

.btn--outline {
  background: transparent;
  border: 1px solid #fff;
}

.link-underline {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--underline);
  font-family: var(--font-label);
  font-size: 12px; /* Figma card ref 1024:252 */
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.link-underline:hover { border-color: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 244, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 13px;
}
.site-header__logo img { width: 24px; height: 24px; }
.site-header__logo span {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.2px;
  color: var(--navy);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 48px; }
.site-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.8;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; border-color: var(--navy); }

.site-header .btn { width: auto; padding: 12px 32px; box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 10px; padding-bottom: 89px; }

.hero__grid {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 578px) auto;
  gap: 60px;
  align-items: center;
  justify-content: center;
  min-height: 720px;
}

.hero__content { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.hero__title {
  font-size: 48px;
  line-height: 54px;
}

.hero__text { max-width: 392px; display: flex; flex-direction: column; gap: 10px; padding-top: 7px; } /* Figma: caixa 392 */
.hero__text p { line-height: 29.25px; }

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.social-proof { display: flex; flex-direction: column; gap: 4px; }
.social-proof__stars { display: flex; gap: 5px; padding-bottom: 4px; }
.social-proof__stars img { width: 20px; height: 19px; }
.social-proof__label {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

.hero__media { position: relative; }
.hero__photo-frame {
  width: 443px;
  max-width: 100%;
  height: 508px;
  overflow: hidden;
  border-top-left-radius: 60px;
  box-shadow: var(--shadow-soft);
}
.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero__quote-card {
  position: absolute;
  left: -32px;
  bottom: -32px;
  background: var(--quote-bg);
  border-radius: 8px;
  padding: 32px;
}
.hero__quote-card p {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 28px;
  color: var(--navy);
  white-space: nowrap;
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.about { background: var(--cream-warm); padding-block: 120px; }

.about__grid {
  display: flex;
  gap: 126px; /* Figma 2026-06-12: era 80 */
  align-items: center;
}
.about__media, .about__content { flex: 1 1 0; min-width: 0; }

.about__media img {
  width: 389px;
  max-width: 100%;
  height: 585px;
  object-fit: cover;
  margin-inline: auto;
  transform: scaleX(-1);
}

.about__content { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.about__title { font-size: 36px; line-height: 40px; }
.about__bio { max-width: 451px; line-height: 29.25px; }

.about__list { display: flex; flex-direction: column; gap: 15px; padding-top: 15px; }
.about__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-style: italic;
  line-height: 29.25px;
}
.about__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

/* ==========================================================================
   Filiações
   ========================================================================== */
.affiliations {
  background: #fff;
  border-block: 1px solid rgba(200, 197, 209, 0.1);
  padding-block: 121px;
}

.affiliations__header { display: flex; flex-direction: column; gap: 22px; margin-bottom: 64px; }
.affiliations__title { font-size: 36px; line-height: 40px; color: var(--ink); }

.affiliations__grid {
  display: grid;
  grid-template-columns: repeat(3, 245px); /* Figma 2026-06-12: colunas 245 + space-between */
  justify-content: space-between;
  row-gap: 64px;
  margin-bottom: 64px;
}

.affiliation-card { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.affiliation-card h3 {
  font-size: 20px;
  line-height: 29px;
  color: var(--ink);
  min-height: 58px; /* 2 linhas — alinha descrições entre colunas (Figma title-row) */
}
.affiliation-card p { font-size: 14px; line-height: 29.25px; white-space: nowrap; } /* Figma: 14px, 1 linha (pode exceder a coluna) */

/* larguras das caixas de título — controlam a quebra igual ao Figma */
.affiliations__grid .affiliation-card:nth-child(1) h3 { max-width: 222px; }
.affiliations__grid .affiliation-card:nth-child(2) h3 { max-width: 216px; }
.affiliations__grid .affiliation-card:nth-child(3) h3 { max-width: 222px; }
.affiliations__grid .affiliation-card:nth-child(4) h3 { max-width: 245px; }
.affiliations__grid .affiliation-card:nth-child(5) h3 { max-width: 222px; }
.affiliation-card a { display: block; transition: opacity 0.2s ease; }
.affiliation-card a:hover { opacity: 0.7; }

/* ==========================================================================
   Especialidades
   ========================================================================== */
.specialties { padding-block: 120px; display: flex; flex-direction: column; gap: 65px; }

.section-heading--center {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.section-heading--center h2 { font-size: 36px; line-height: 40px; }

.specialties__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.specialty-card {
  position: relative; /* âncora do stretched-link */
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.specialty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
/* card inteiro clicável: o link "Saber Mais" se estende sobre o card */
.specialty-card .link-underline::after { content: ""; position: absolute; inset: 0; }

.specialty-card__img {
  height: 256px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 48px;
}
.specialty-card__img img { width: 100%; height: 100%; object-fit: cover; }

.specialty-card h3 {
  font-size: 24px;
  line-height: 32px;
  color: var(--ink);
  margin-bottom: 16px;
}
.specialty-card p { line-height: 24px; margin-bottom: 24px; }
.specialty-card .link-underline { margin-top: auto; align-self: flex-start; }

.specialties__tags {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-inline: 23px;
  flex-wrap: wrap;
}
.specialties__tags-title {
  font-size: 36px;
  line-height: 36px;
  max-width: 340px;
}
.tags-group { display: flex; flex-direction: column; gap: 10px; flex: 1 1 480px; }
.tags-row { display: flex; gap: 14px; flex-wrap: wrap; }
.tag {
  background: #fff;
  border: 1px solid var(--line-softer);
  border-radius: 12px;
  padding: 16px 32px; /* Figma 2026-06-12: era 17/33 */
  font-size: 14px;
  line-height: 28px;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-align: center;
}

/* ==========================================================================
   Procedimentos
   ========================================================================== */
.procedures { background: var(--navy); padding-block: 120px; }

.procedures__grid { display: flex; gap: 48px; align-items: center; }
.procedures__content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 51px; align-items: flex-start; }

.procedures .eyebrow { color: #fff; }
.procedures__title { font-size: 48px; line-height: 48px; color: #fff; margin-top: 24px; }

.procedures__list { display: flex; flex-direction: column; gap: 48px; padding-top: 24px; }
.procedure h3 {
  font-size: 22px;
  line-height: 28px;
  color: #fff;
  margin-bottom: 14px;
}
.procedure p {
  max-width: 460px;
  line-height: 24px;
  color: var(--underline);
  opacity: 0.8;
}
.procedures__list .procedure:nth-child(1) p { max-width: 450px; } /* Figma: caixa 450 no 1º */

.procedures__media { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.procedures__media img {
  width: 433px;
  max-width: 100%;
  height: 715px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Unidades
   ========================================================================== */
.locations { padding-block: 120px; display: flex; flex-direction: column; gap: 96px; }
.locations .section-heading--center h2 { font-size: 48px; line-height: 48px; }

.locations__list { display: flex; flex-direction: column; }

.location {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  padding-bottom: 96px;
}
.location--reverse { flex-direction: row-reverse; justify-content: flex-start; margin-left: auto; }

.location__photo {
  width: 760px;
  max-width: 100%;
  height: 486px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

/* carrossel: fotos trocam em crossfade dentro da máscara */
.location__carousel {
  position: relative;
  overflow: hidden;
  height: auto;
  aspect-ratio: 760 / 486;
  flex: 0 0 auto;
}
.location__carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.location__carousel img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .location__carousel img { transition: none; }
}

.location__info { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.location__info h3 {
  font-size: 24px;
  line-height: 36px;
  color: var(--ink);
  margin-bottom: 8px;
}
.location__info address {
  font-style: normal;
  line-height: 28px;
  max-width: 229px; /* Figma: caixa Barra */
}
.location--reverse .location__info address { max-width: 289px; } /* Figma: caixa Leblon */

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.testimonials {
  background: var(--quote-bg);
  padding-block: 120px;
  display: flex;
  flex-direction: column;
  gap: 67px;
  align-items: center;
}

.testimonials__feature {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-bottom: 35px; /* caixa do texto = container 1136 (Figma) */
}
.testimonials__feature > img { width: 31px; height: 21px; }
.testimonials__feature blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 46px;
  color: var(--navy);
  text-align: center;
}
.testimonials__feature cite {
  font-style: normal;
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-card {
  position: relative; /* âncora do stretched-link */
  background: var(--cream);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 283px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
/* card inteiro clicável: "Ver Depoimentos" se estende sobre o card */
.testimonial-card .link-underline::after { content: ""; position: absolute; inset: 0; }
.testimonial-card__quote-icon { width: 15px; height: 11px; margin-bottom: 40px; }
.testimonial-card blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
}

.testimonial-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 13px;
}
.testimonial-card__author { padding-top: 8px; }
.testimonial-card__author strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
}
.testimonial-card__author span {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}
.testimonial-card .link-underline {
  font-size: 10px;
  font-weight: 500;
  flex: 0 0 auto;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog { padding-block: 120px; display: flex; flex-direction: column; gap: 64px; }

.blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.blog__header h2 { font-size: 48px; line-height: 48px; }

.blog__nav { display: flex; gap: 16px; }
.blog__nav a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-arrows);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.blog__nav a:hover { background: #fff; }
.blog__nav img { width: 11px; height: 8px; }

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 64px;
}

.article-card { display: block; }
.article-card__img {
  aspect-ratio: 3 / 4;
  background: var(--blog-img-bg);
  overflow: hidden;
  margin-bottom: 32px;
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card__img img { transform: scale(1.03); }

.article-card__category {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 12px;
}
.article-card h3 {
  font-size: 24px;
  line-height: 33px;
  color: #000;
  margin-bottom: 16px;
}
/* larguras das caixas de título/excerpt — quebras iguais ao Figma */
.blog__grid .article-card:nth-child(1) h3 { max-width: 327px; }
.blog__grid .article-card:nth-child(2) h3 { max-width: 292px; }
.blog__grid .article-card:nth-child(3) h3 { max-width: 293px; }
.blog__grid .article-card:nth-child(1) p { max-width: 356px; }
.blog__grid .article-card:nth-child(2) p { max-width: 374px; }
.blog__grid .article-card:nth-child(3) p { max-width: 357px; }
.article-card p {
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 14px;
  line-height: 22.75px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-block: 120px; display: flex; flex-direction: column; gap: 64px; align-items: center; }
.faq__title { font-size: 36px; line-height: 40px; color: var(--ink); text-align: center; }

.faq__list {
  width: 100%;
  max-width: 900px; /* Figma 2026-06-12: era 768 */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: var(--gutter);
}

.faq__item {
  background: var(--cream-warm);
  border-radius: 8px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 28px;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary img {
  width: 11px;
  height: 6px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.faq__item[open] summary img { transform: rotate(180deg); }
.faq__item div {
  padding: 0 24px 24px;
  line-height: 26px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--footer-text);
  padding: 80px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.site-footer__grid { display: flex; gap: 48px; align-items: flex-start; }
.site-footer__grid > div { flex: 1 1 0; min-width: 0; }

.site-footer__brand strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 16px;
}
.site-footer__brand p {
  font-size: 12px;
  line-height: 19.5px;
  letter-spacing: 0.3px;
  opacity: 0.6;
}

.site-footer h3 {
  font-size: 18px;
  line-height: 28px;
  color: var(--footer-text);
  margin-bottom: 24px;
}

.site-footer ul { display: flex; flex-direction: column; gap: 16px; }
.site-footer li, .site-footer address {
  font-style: normal;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3px;
  opacity: 0.6;
}
.site-footer a { transition: opacity 0.2s ease; }
.site-footer a:hover { opacity: 1; }

.site-footer__contact li { display: flex; align-items: center; gap: 12px; opacity: 1; }
.site-footer__contact li a { opacity: 0.6; }
.site-footer__contact img { width: 11px; height: 11px; flex: 0 0 auto; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__bottom p, .site-footer__bottom a {
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.4;
}
.site-footer__bottom-links { display: flex; gap: 32px; }
.site-footer__bottom a:hover { opacity: 0.8; }

/* ==========================================================================
   Artigos (template interno do blog)
   ========================================================================== */
.article-page { max-width: 768px; margin-inline: auto; padding: 64px var(--gutter) 120px; }
.article-page h1 { font-size: 40px; line-height: 48px; margin-bottom: 16px; }
.article-page__meta {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  display: block;
}
.article-page h2 { font-size: 28px; line-height: 36px; margin: 48px 0 16px; }
.article-page h3 { font-size: 22px; line-height: 30px; margin: 32px 0 12px; }
.article-page p { line-height: 29.25px; margin-bottom: 16px; }
.article-page ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.article-page li { line-height: 29.25px; margin-bottom: 8px; }
.article-page strong { color: var(--ink); }
.article-page .btn { margin-top: 32px; }

.breadcrumbs {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 24px var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a {
  color: var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs .sep { color: var(--muted); opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 700; }

.article-page__hero {
  margin: 0 0 40px;
}
.article-page__hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 250; /* faixa horizontal */
  object-fit: cover;
  object-position: center 40%; /* default; cada artigo ajusta via style inline */
  border-radius: 8px;
}

.toc-container {
  background: var(--cream-warm);
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 40px;
}
.toc-container h2 { font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.toc-container ol { list-style: decimal; padding-left: 20px; margin: 0; }
.toc-container ol ol { list-style: lower-alpha; margin: 4px 0; }
.toc-container li { line-height: 26px; margin-bottom: 6px; font-size: 15px; }
.toc-container a:hover { color: var(--navy); }

.article-faq { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.article-faq details {
  background: var(--cream-warm);
  border-radius: 8px;
}
.article-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 24px;
  color: var(--navy);
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.article-faq details[open] summary svg { transform: rotate(180deg); }
.article-faq .faq-content { padding: 0 20px 18px; line-height: 26px; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.article-tags .tag { padding: 8px 16px; line-height: 22px; font-size: 13px; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { border: 1px solid var(--line-soft); padding: 10px 14px; text-align: left; line-height: 24px; }
th { background: var(--cream-warm); font-family: var(--font-label); font-weight: 500; color: var(--ink); }

/* ==========================================================================
   Páginas institucionais (sobre, contato, unidades)
   ========================================================================== */
.ipage-hero { background: var(--cream-warm); padding: 56px 0 72px; }
.ipage-hero h1 { font-size: 42px; line-height: 1.12; margin-top: 16px; max-width: 720px; }
.ipage-hero .lead { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 640px; margin-top: 20px; }

.ipage-section { padding: 72px 0; }
.ipage-section--cream { background: var(--cream-warm); }
.ipage-section--navy { background: var(--navy); }
.ipage-section--navy, .ipage-section--navy h2, .ipage-section--navy h3 { color: #fff; }
.ipage-section h2 { font-size: 32px; line-height: 1.15; margin-bottom: 8px; }
.ipage-section .eyebrow { margin-bottom: 12px; }

.ipage-prose p { line-height: 29px; margin-bottom: 16px; max-width: 680px; }
.ipage-prose strong { color: var(--ink); }
.ipage-section--navy .ipage-prose p { color: rgba(255,255,255,0.75); }
.ipage-section--navy .ipage-prose strong { color: #fff; }

/* sobre: foto + conteúdo */
.about-page { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about-page__media img { width: 100%; border-top-left-radius: 40px; box-shadow: var(--shadow-soft); display: block; }
.cred-badge { margin-top: 24px; background: #fff; border: 1px solid var(--underline); border-radius: 12px; padding: 20px 24px; }
.cred-badge .cap { font-family: var(--font-label); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cred-badge p { font-family: var(--font-heading); color: var(--navy); font-size: 16px; line-height: 26px; }

/* listas com marcador */
.tick-list { list-style: none; padding: 0; margin: 12px 0 0; }
.tick-list li { display: flex; gap: 12px; line-height: 28px; margin-bottom: 8px; }
.tick-list li::before { content: "■"; color: var(--teal); flex: 0 0 auto; font-size: 11px; line-height: 28px; }

/* unidades (contato) */
.unit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.unit-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.unit-card__body { padding: 28px; }
.unit-card__body .eyebrow { margin-bottom: 6px; }
.unit-card__body h3 { font-size: 22px; margin-bottom: 12px; }
.unit-card address { font-style: normal; line-height: 28px; color: var(--body); }
.unit-card iframe { width: 100%; height: 260px; border: 0; display: block; }

/* contato: canais */
.contact-channels { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.contact-channels a:not(.btn) { font-size: 15px; color: var(--body); border-bottom: 1px solid var(--underline); padding-bottom: 2px; transition: border-color 0.2s; }
.contact-channels a:not(.btn):hover { border-color: var(--navy); }

/* localização: 2 colunas info */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-card { background: #fff; border: 1px solid var(--underline); border-radius: 12px; padding: 28px; }
.info-card h3 { font-size: 18px; margin: 0 0 12px; }

/* galeria de fotos da unidade */
.unit-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.unit-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.unit-gallery > img:first-child { grid-column: span 2; grid-row: span 2; }
.unit-map { width: 100%; height: 340px; border: 0; border-radius: 12px; box-shadow: var(--shadow-soft); display: block; margin-top: 24px; }

/* quote de depoimento numa página */
.page-quote { background: var(--quote-bg); border-radius: 12px; padding: 40px; max-width: 760px; }
.page-quote blockquote { margin: 0; font-family: var(--font-heading); font-size: 22px; line-height: 1.5; color: var(--navy); }
.page-quote cite { display: block; margin-top: 16px; font-family: var(--font-label); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ==========================================================================
   Botão flutuante de WhatsApp (fixo em todas as páginas)
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-float__label {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 99px;
  box-shadow: 0 6px 20px rgba(31, 27, 22, 0.15);
  white-space: nowrap;
}
.wa-float__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover .wa-float__icon { transform: scale(1.06); }
.wa-float__icon img { width: 30px; height: 30px; }

/* ==========================================================================
   Responsivo — tablet (≤1080px) e mobile (≤767px)
   ========================================================================== */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .site-header__inner { padding-block: 12px; }
  .site-header .btn { padding: 10px 20px; font-size: 12px; }

  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open a {
    padding: 18px var(--gutter);
    width: 100%;
    border-bottom: 1px solid var(--line-softer);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: 0;
    padding-top: 48px;
  }
  .hero__media { justify-self: center; margin-bottom: 32px; }

  .specialties__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .affiliations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .about__grid { gap: 64px; } /* Figma tablet 2026-06-12 */
  .br-d { display: none; } /* quebras manuais valem só no desktop */
  .affiliation-card p { white-space: normal; }
  .affiliations__grid .affiliation-card:nth-child(n) h3 { max-width: none; }
  .blog__grid .article-card:nth-child(n) h3, .blog__grid .article-card:nth-child(n) p { max-width: none; }
  .location__info address, .location--reverse .location__info address { max-width: none; }

  .procedures__grid { flex-direction: column; }
  .procedures__media img { height: auto; max-height: 600px; }

  .location, .location--reverse {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
  }
  .location__photo { width: 100%; height: auto; aspect-ratio: 760 / 486; }

  .site-footer__grid { flex-wrap: wrap; }
  .site-footer__grid > div { flex: 1 1 40%; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }

  /* header mobile: logo + hamburger (como no Figma 375px) */
  .site-header .btn { display: none; }
  .site-header__logo span { font-size: 18px; }

  .hero { padding-bottom: 64px; }
  .hero__grid { padding-top: 32px; gap: 56px; }
  .hero__title { font-size: 34px; line-height: 40px; }
  .hero__cta-row { gap: 24px; }
  .hero__cta-row .btn { width: 100%; }
  .hero__photo-frame { width: 100%; height: auto; aspect-ratio: 443 / 508; }
  .hero__media { width: 100%; }
  /* corrige overflow do card quote no mobile (bug apontado no handoff) */
  .hero__quote-card { left: 12px; right: 12px; bottom: -24px; padding: 20px; text-align: center; }
  .hero__quote-card p { white-space: normal; font-size: 16px; line-height: 24px; }

  .about, .affiliations, .specialties, .procedures, .locations,
  .testimonials, .blog, .faq { padding-block: 72px; }

  .about__grid { flex-direction: column; gap: 40px; }
  .about__media img { width: 100%; height: auto; aspect-ratio: 389 / 585; max-width: 420px; }
  .about__content .btn { width: 100%; }

  .affiliations__grid { grid-template-columns: 1fr; row-gap: 40px; margin-bottom: 48px; }
  .affiliations .btn { width: 100%; }
  .affiliation-card p { white-space: normal; }
  .affiliation-card h3 { min-height: 0; } /* empilhado não precisa alinhar colunas */

  .specialties { gap: 48px; }
  .specialties__grid { grid-template-columns: 1fr; }
  .specialty-card__img { margin-bottom: 32px; }

  .specialties__tags { flex-direction: column; align-items: flex-start; gap: 24px; padding-inline: 0; }
  .tag { padding: 12px 20px; line-height: 24px; }

  .procedures__title { font-size: 36px; line-height: 40px; }
  .procedures__content .btn { width: 100%; }
  .procedures__media img { width: 100%; }

  .locations { gap: 56px; }
  .locations .section-heading--center h2 { font-size: 34px; line-height: 40px; }
  .location { padding-bottom: 56px; gap: 24px; }
  .location__info .btn { width: 100%; }

  .testimonials { gap: 48px; }
  .testimonials__feature blockquote { font-size: 26px; line-height: 34px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials > .btn { width: calc(100% - 2 * var(--gutter)); }

  .blog { gap: 40px; }
  .blog__header h2 { font-size: 34px; line-height: 40px; }
  .blog__grid { grid-template-columns: 1fr; }

  .faq { gap: 40px; }
  .faq__item summary { font-size: 17px; line-height: 24px; }

  .site-footer { padding-top: 56px; gap: 48px; }
  .site-footer__grid { flex-direction: column; gap: 40px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  .article-page { padding-block: 40px 72px; }
  .article-page h1 { font-size: 30px; line-height: 38px; }

  /* páginas institucionais no mobile */
  .ipage-hero h1 { font-size: 30px; }
  .ipage-hero .lead { font-size: 16px; }
  .ipage-section { padding: 48px 0; }
  .about-page { grid-template-columns: 1fr; gap: 32px; }
  .about-page__media img { max-width: 360px; }
  .unit-grid { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; gap: 32px; }
  .ipage-section .btn, .ipage-hero .btn { width: 100%; }
  .page-quote { padding: 28px; }
  .page-quote blockquote { font-size: 18px; }
  .unit-gallery { grid-template-columns: repeat(2, 1fr); }
  .unit-gallery > img:first-child { grid-column: span 2; grid-row: auto; }
  .unit-map { height: 260px; }

  /* WhatsApp flutuante: só o ícone no mobile */
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__label { display: none; }
  .wa-float__icon { width: 52px; height: 52px; }
}
