/* ==========================================================================
   LP Doe — Hospital Santa Mônica
   Metodologia BEM · mobile-first
   ========================================================================== */

/* Tokens
   ========================================================================== */
:root {
  --hsm-teal-900: #26444a;
  --hsm-teal-700: #37646a;
  --hsm-green-800: #37744f;
  --hsm-green-700: #1f8449; /* verde acessível para botões com texto branco (AA) */
  --hsm-green-600: #2e6b45;
  --hsm-green-cta: #316f42; /* verde do CTA de doação (AA com texto branco, 6:1) */
  --hsm-green-500: #64b560;
  --hsm-green-400: #5fcc88;
  --hsm-green-100: #eaf5ec;
  --hsm-navy-700: #2b4a72;
  --hsm-ink: #212529;
  --hsm-muted: #5b6670;
  --hsm-line: #e3e7ea;
  --hsm-surface: #ffffff;
  --hsm-bg: #f6f7f8;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 48px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-raised: 0 10px 30px rgba(38, 68, 74, .12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --header-h: 69px; /* altura do header sticky (68px + borda) */
  --section-y: 56px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 88px;
  }
}
@media (max-width: 1099px) {
  :root { --header-h: 132px; } /* header + linha do menu */
}

/* Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--hsm-ink);
  background: var(--hsm-surface);
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }

p { margin: 0 0 1em; }

a { color: var(--hsm-green-600); }

:focus-visible {
  outline: 3px solid var(--hsm-green-500);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--hsm-teal-900);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.todo {
  background: #fff3cd;
  color: #664d03;
  padding: 0 .25em;
  border-radius: 4px;
}

/* Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--hsm-bg); }

.section__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; }
.section__title--center { text-align: center; margin-bottom: 3.5rem; }

.section__lead { font-size: 1.125rem; color: var(--hsm-muted); }
.section__lead--center { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }

.tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--hsm-green-500);
}

/* Button
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 28px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--pill { border-radius: var(--radius-pill); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 16px 40px; font-size: 1.1875rem; font-weight: 700; }
.btn--block { display: flex; width: 100%; font-weight: 700; font-size: 1.125rem; }

.btn--primary { background: var(--hsm-teal-900); color: #fff; }
.btn--primary:hover { background: #1b3337; }

.btn--donate { background: var(--hsm-green-cta); color: #fff; }
.btn--donate:hover { background: #275a35; }

.btn--teal { background: #366469; color: #fff; }
.btn--teal:hover { background: #2e575c; }

.btn--whatsapp { background: #00d084; color: #fff; }
.btn--whatsapp:hover { background: #03c17b; }

.btn--soft { background: var(--hsm-green-100); color: var(--hsm-green-600); }
.btn--soft:hover { background: #d7ecdb; }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

/* Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hsm-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
}
.header__logo img { width: 165px; }

@media (min-width: 768px) {
  .header__logo img { width: 180px; margin-top: -2%;}
}

/* Menu de seções: no celular vira uma 2ª linha do header com rolagem lateral; no desktop fica entre o logo e o botão */
.header__inner { flex-wrap: wrap; row-gap: 12px; padding-top: 12px; }
.nav { order: 3; flex: 1 0 100%; margin: 0 calc(var(--gutter) * -1); border-top: 1px solid var(--hsm-line); }
.nav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 6px var(--gutter);
  list-style: none;
  position: relative; /* referência para o offsetLeft dos links no JS */
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__link {
  display: block;
  padding: 10px 12px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--hsm-muted);
  border-radius: var(--radius-pill);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--hsm-ink); }
.nav__link[aria-current="true"] { color: var(--hsm-green-cta); background: var(--hsm-green-100); }

@media (min-width: 1100px) {
  .header__inner { flex-wrap: nowrap; padding-top: 0; }
  .nav { order: 0; flex: 0 1 auto; margin: 0 0 0 auto; border-top: 0; }
  .nav__list { padding: 0; }
  .nav__link { font-size: .9375rem; }
  .header__cta { margin-left: 8px; }
}

/* Âncoras param abaixo do header fixo */
[id] { scroll-margin-top: var(--header-h); }

/* Hero
   ========================================================================== */
.hero { padding: 40px 0 var(--section-y); overflow: hidden; }

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.hero__lead {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  color: var(--hsm-muted);
  max-width: 40ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.75rem;
}

.hero__media { position: relative; padding: 24px 0; }

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-md) var(--radius-lg);
}

.hero__shape {
  position: absolute;
  right: calc(var(--gutter) * -1);
  background: var(--hsm-green-500);
}
.hero__shape--top {
  top: 0;
  width: 70%;
  height: 48px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Mobile: imagem antes do texto, de ponta a ponta e sem cantos arredondados */
@media (max-width: 899px) {
  .hero { padding-top: 0; }
  .hero__media { order: -1; margin-inline: calc(var(--gutter) * -1); padding-top: 0; }
  .hero__image { border-radius: 0; }
  .hero__shape--top { display: none; }
}

/* Desktop: imagem fluida ocupando a metade direita, do topo ao fim da viewport */
@media (min-width: 900px) {
  .hero {
    position: relative;
    padding: 0;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 48px;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .hero__content { padding: 64px 0; }
  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(50% - 90px); /* acompanha a coluna de texto (1.12fr) mantendo ~48px de respiro */
    padding: 0;
  }
  .hero__image {
    height: 100%;
    aspect-ratio: auto;
    object-position: 30% center;
    border-radius: 0 0 0 160px;
  }
  .hero__shape { display: none; }
}

/* Split (bloco de cor + imagem)
   ========================================================================== */
.split { display: grid; }

.split__panel { color: #fff; display: flex; align-items: center; }
.split__panel--navy { color: var(--hsm-ink); background: var(--hsm-surface); }
.split__panel--navy .split__content p { color: var(--hsm-muted); }
.split__quote { margin: 2rem 0 0; }
.split__quote-mark { display: block; margin-bottom: 1rem; font-size: 3rem; line-height: 1; color: var(--hsm-green-500); }
.split__quote blockquote { margin: 0; }
.split__content .split__quote blockquote p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--hsm-ink);
}
.split__quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--hsm-muted); }
.split__quote-avatar { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.split__quote figcaption strong { color: var(--hsm-ink); }
.split__note { margin: 2rem 0 0; }
.split__disclaimer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hsm-line);
}
.split__content .split__disclaimer p { margin: 0 0 .5rem; font-size: .875rem; color: var(--hsm-muted); }
.split__content .split__disclaimer p:last-child { margin-bottom: 0; }
.split__panel--teal { background: var(--hsm-teal-900); }

.split__content { padding: var(--section-y) var(--gutter); max-width: 640px; margin-left: auto; }

.split__title {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 700;
}

.split__content p { color: rgba(255, 255, 255, .9); }
.split__panel .split__content p.split__highlight { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--hsm-muted); } /* mesmo estilo do .pix__subtitle */
@media (min-width: 900px) {
  .split__panel .split__content p.split__highlight { max-width: 90%; }
}

.split__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

.split__media--pix {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--section-y) var(--gutter);
  background: var(--hsm-surface);
}
/* Faixa verde por trás do card: da borda esquerda até 65% do card, com o canto superior direito arredondado */
.split__media--pix::before {
  content: "";
  position: absolute;
  top: calc(var(--section-y) / 7); /* sempre acima do topo do card, que fica a pelo menos --section-y */
  bottom: 0;
  left: 0;
  width: calc(var(--gutter) + min(100% - 2 * var(--gutter), 520px) * .65);
  background: linear-gradient(135deg, #85bc57, #316f42);
  border-top-right-radius: 64px;
}
@media (max-width: 899px) {
  .split__media--pix { order: -1; padding-block: calc(var(--section-y) * 1.5); } /* mobile: PIX antes do "Seja um amigo", com mais respiro em cima e embaixo */
  .split__media--pix::before { right: 0; width: auto; border-radius: 0; } /* mobile: faixa de ponta a ponta, sem canto arredondado */
}
.split__media--pix .pix {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 32px 24px;
}
.split__media--pix .pix__header { margin-bottom: 2rem; text-align: left; }
.split__media--pix .pix__title { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem); margin-bottom: .375em; }
.pix__title-icon { margin-right: .35em; font-size: 1.1em; color: #85bc57; }

.split__media--pix .pix__grid { grid-template-columns: 1fr; gap: 32px; }
.split__media--pix .pix__scan {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--hsm-line);
  gap: 24px;
}
.split__media--pix .pix__qr { margin: 0; }
.split__media--pix .pix__qr img { width: 168px; height: 168px; min-height: 0; padding: 8px; }
.split__media--pix .pix__info { padding-top: 32px; border-top: 1px solid var(--hsm-line); }

.split__media--pix .pix__key { flex-wrap: nowrap; background: var(--hsm-green-100); border-color: var(--hsm-green-100); border-radius: var(--radius-pill); }
.split__media--pix .pix__value { flex: 1 1 auto; white-space: nowrap; overflow-wrap: normal; }
.split__media--pix .pix__value--long { white-space: normal; overflow-wrap: anywhere; }
.split__media--pix .pix__copy { flex: 0 0 auto; }

.split__media--pix .pix__data { display: grid; gap: 12px; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--hsm-line); }
.split__media--pix .pix__data-row { display: block; padding: 0; border: 0; }
.split__media--pix .pix__data-row dt { font-size: .875rem; }
.split__media--pix .pix__label { font-weight: 400; }
.split__media--pix .pix__data-row dd { text-align: left; }

.split__media--pix .pix__feedback {
  min-height: 0;
  margin: .5rem 0 0;
  font-size: .875rem;
  font-weight: 400;
  color: var(--hsm-green-700);
}
.split__media--pix .pix__feedback:empty { display: none; }

.split__media--pix .steps {
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  font-size: .90625rem;
}
.split__media--pix .steps__number { width: 32px; height: 32px; }

@media (min-width: 768px) {
  .split__media--pix .pix { padding: 40px; }
}

/* Em telas muito estreitas, o botão de copiar desce para baixo da chave */
@media (max-width: 420px) {
  .split__media--pix .pix__key { flex-wrap: wrap; border-radius: var(--radius-md); }
  .split__media--pix .pix__copy { width: 100%; }
  .split__media--pix .pix__scan { grid-template-columns: 1fr; }
  .split__media--pix .pix__qr { margin: 0 auto; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__content { padding-right: 64px; }

  /* PIX à esquerda, texto à direita, alinhados às bordas do .container */
  .split__media--pix {
    order: -1;
    justify-content: flex-start;
    padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
    padding-right: 32px;
  }
  .split:has(.split__media--pix) .split__content {
    max-width: none;
    margin: 0;
    padding-left: 32px;
    padding-right: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  }
}

.stats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 16px;
}
.stats__item {
  padding-left: 16px;
  border-left: 3px solid var(--hsm-green-400);
}
.stats__value { display: block; font-size: 1.75rem; line-height: 1.2; }
.stats__label { font-size: .9375rem; color: rgba(255, 255, 255, .8); }

@media (min-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Card
   ========================================================================== */
/* Mosaico: o título é um tile grande (2×2 no desktop) e os 5 cards preenchem a grade 3×3 */
.card-grid { display: grid; }
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card--intro,
  .card-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); }
  .card--intro { grid-column: span 2; grid-row: span 2; }
  .card-grid > :last-child { grid-column: auto; }
}

.card {
  --card-bg: var(--hsm-teal-900);
  --card-fg: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px var(--gutter);
  color: var(--card-fg);
  background: var(--card-bg);
}
@media (min-width: 768px) {
  .card { padding: 64px 48px; }
}

/* Cards de causa: tons da faixa do PIX, com o escuro no topo e ocupando a maior parte do card
   (o claro só aparece no canto inferior direito). O tile do título fica liso. */
.card--cuidado,
.card--infancia,
.card--recomecos,
.card--familias,
.card--prevencao { --card-bg: radial-gradient(ellipse farthest-corner at top left, #316f42 10%, #85bc57 100%); }
@media (max-width: 699px) {
  /* mobile: cards de causa em fundo branco com texto escuro, separados por uma linha (o tile do título continua escuro) */
  .card:not(.card--intro) { --card-bg: var(--hsm-surface); --card-fg: var(--hsm-ink); border-bottom: 1px solid var(--hsm-line); }
  .card:not(.card--intro) .card__text { color: var(--hsm-muted); }
  .card .card__icon { color: #1f3535; background: linear-gradient(135deg, #85bc57 40%, #316f42 140%); } /* parte clara do degradê da faixa do PIX; ícone na cor do tile do título */
}

.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 1.75rem;
  line-height: 1;
  background: #1f3535; /* mesmo fundo do tile do título */
  border-radius: var(--radius-pill);
}

.card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; color: inherit; }
.card__text { margin: 0; }

.card--intro { --card-bg: #1f3535; justify-content: center; }
.card--intro .tag { margin-bottom: 0; }
.card--intro .section__title { /* mesmo tamanho do .hero__title */
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.card__heading {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: inherit;
}
.card__lead { max-width: 37ch; margin: 0; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }
@media (min-width: 1024px) {
  .card--intro { padding: 80px 64px; }
  .card--intro .section__title { max-width: 60%; }
  /* Laterais calculadas para o texto ficar com ~28 caracteres por linha */
  .card:not(.card--intro) { padding-inline: max(80px, calc((100% - 28ch) / 2)); }
}

/* PIX
   ========================================================================== */
.pix {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px var(--gutter);
  background: var(--hsm-surface);
  border: 1px solid var(--hsm-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
}
@media (min-width: 768px) {
  .pix { padding: 48px; }
}

.pix__header { text-align: center; margin-bottom: 2rem; }
.pix__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; }
.pix__subtitle { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--hsm-muted); margin: 0; }

.pix__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 768px) {
  .pix__grid { grid-template-columns: 260px 1fr; gap: 40px; }
}

.pix__qr { margin: 0 auto; text-align: center; }
.pix__qr img {
  width: 240px;
  height: 240px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--hsm-line);
  border-radius: var(--radius-md);
}

.pix__field { margin-bottom: 1.25rem; }
.pix__label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; color: var(--hsm-muted); }

.pix__key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  background: var(--hsm-bg);
  border: 1px solid var(--hsm-line);
  border-radius: var(--radius-md);
}
@media (min-width: 600px) {
  .pix__key { border-radius: var(--radius-pill); }
}

.pix__value {
  flex: 1 1 180px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pix__value--long { font-size: .8125rem; font-weight: 400; }

.pix__data { margin: 1.5rem 0 0; }
.pix__data-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hsm-line);
}
.pix__data-row dt { color: var(--hsm-muted); }
.pix__data-row dd { margin: 0; font-weight: 600; text-align: right; }

.pix__feedback {
  min-height: 1.6em;
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--hsm-green-700);
}

/* Steps
   ========================================================================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps__item { display: flex; align-items: center; gap: 12px; }

.steps__number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 700;
  color: var(--hsm-green-600);
  background: var(--hsm-green-100);
  border-radius: 50%;
}
.steps__text { line-height: 1.35; }

/* Transparency
   ========================================================================== */
.transparency { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .transparency { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Carrossel (fade, autoplay em loop) */
.carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--hsm-bg);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.carousel__slide.is-active { opacity: 1; }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.carousel__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  transition: width .3s, background-color .3s;
}
.carousel__dot[aria-current="true"]::before { width: 20px; border-radius: 4px; background: #fff; }
.carousel__dot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .carousel__slide, .carousel__dot::before { transition: none; }
}

/* FAQ
   ========================================================================== */
/* FAQ com imagem de acolhimento à esquerda, fluida: encosta no topo, na base e na borda esquerda da seção */
.faq-section { position: relative; --faq-gap: 110px; }
.faq-layout { display: grid; gap: 64px; }
.faq-layout__media { margin: calc(var(--section-y) * -1) calc(var(--gutter) * -1) 0; }
.faq-layout__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% center;
}
.faq-layout .section__title { margin-bottom: 2rem; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--faq-gap); min-height: 480px; }
  .faq-layout__content { grid-column: 2; }
  /* A moldura ocupa a altura toda da seção; a foto tem altura fixa (a da tela) e fica "sticky",
     então abrir o accordion não amplia nem recorta a foto de novo */
  .faq-layout__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    /* da borda da tela até o fim da coluna 5fr do container */
    width: calc((100% - min(100%, 1200px)) / 2 + var(--gutter) + (min(100%, 1200px) - 2 * var(--gutter) - var(--faq-gap)) * 5 / 12);
    margin: 0;
    overflow: clip;
  }
  .faq-layout__media img {
    position: sticky;
    top: var(--header-h);
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    aspect-ratio: auto;
  }
}

.faq { display: grid; gap: 12px; }

.faq__item {
  background: var(--hsm-surface);
  border: 1px solid var(--hsm-line);
  border-radius: var(--radius-md);
}
.faq__item[open] { box-shadow: var(--shadow-card); }

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "\f078"; /* chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .875rem;
  color: var(--hsm-green-600);
  transition: transform .2s;
}
.faq__item[open] .faq__question::after { transform: rotate(180deg); }

.faq__answer { padding: 0 22px 18px; }
.faq__answer p { margin: 0; }

/* Footer
   ========================================================================== */
.footer {
  padding: var(--section-y) 0;
  color: #fff;
  background: #1d3b3a;
}

.footer__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 1100px) {
  .footer__inner { grid-template-columns: auto 1fr 1.2fr 1fr; }
}

.footer__contact { display: grid; gap: 16px; align-content: start; justify-self: start; } /* largura do botão mais largo; os dois esticam até ela */
.footer__note { margin: 8px 0 0; font-weight: 700; }

/* Mesmo padrão de letra dos dados legais */
.footer__address { font-style: normal; font-size: .8125rem; color: rgba(255, 255, 255, .7); }
.footer__address p { margin-bottom: .5rem; }
.footer__link { color: #fff; }

.footer__cvv {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
}
.footer__cvv a { color: #fff; }
.footer__cvv i { color: var(--hsm-green-400); }

.footer__legal {
  margin: 0;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
}
.footer__legal strong { color: #fff; }
.footer__heading { margin: 0; font-size: .8125rem; font-weight: 700; line-height: 1.6; letter-spacing: 0; color: #fff; }

.footer__ona-text { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .7); }
