/* ==========================================================================
   Dr. Hugo Brandino - HB Fisioterapia
   Folha de estilo unica. Mobile-first nas quebras, tokens do manual de marca.
   Breakpoints: 1080px (tablet paisagem) / 820px (tablet retrato) / 520px (celular)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de marca
   -------------------------------------------------------------------------- */
:root {
  /* Marca (verbatim do manual) */
  --hb-teal: #006d77;
  --hb-blue: #0c5383;
  --hb-mint: #2cd0a7;

  /* Rampa teal */
  --hb-teal-950: #032e33;
  --hb-teal-900: #043f45;
  --hb-teal-800: #05545c;
  --hb-teal-700: #006169;
  --hb-teal-600: #006d77;
  --hb-teal-500: #148791;
  --hb-teal-400: #3ba4ad;
  --hb-teal-300: #78c3c9;
  --hb-teal-200: #b0dee1;
  --hb-teal-100: #d9eff0;
  --hb-teal-50:  #eef8f8;

  /* Rampa azul */
  --hb-blue-900: #062a44;
  --hb-blue-800: #093c60;
  --hb-blue-700: #0c5383;
  --hb-blue-500: #2f74a6;
  --hb-blue-300: #8fb6d2;
  --hb-blue-100: #dbe8f2;

  /* Rampa mint */
  --hb-mint-700: #0e9f79;
  --hb-mint-600: #16b78e;
  --hb-mint-500: #2cd0a7;
  --hb-mint-300: #7fe3ca;
  --hb-mint-100: #cef5eb;
  --hb-mint-50:  #e8fbf5;

  /* Neutros */
  --hb-ink:      #0d2b2e;
  --hb-graphite: #33484a;
  --hb-slate:    #5c7173;
  --hb-mute:     #8a9c9d;
  --hb-line:     #d7e0e0;
  --hb-mist:     #e9efef;
  --hb-cloud:    #f2f6f6;
  --hb-paper:    #f8fbfb;
  --hb-white:    #ffffff;

  /* Aliases semanticos */
  --color-brand:        var(--hb-teal);
  --color-accent:       var(--hb-mint-500);
  --text-strong:        var(--hb-ink);
  --text-body:          var(--hb-graphite);
  --text-muted:         var(--hb-slate);
  --surface-page:       var(--hb-paper);
  --surface-card:       var(--hb-white);
  --border-subtle:      var(--hb-line);

  /* Tipografia */
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Raios */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 6px rgba(13, 43, 46, 0.07);
  --shadow-md: 0 8px 20px rgba(13, 43, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 43, 46, 0.10);
  --shadow-xl: 0 28px 64px rgba(13, 43, 46, 0.14);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout - variaveis que as media queries reescrevem.
     Toda a resposta mobile passa por aqui, entao o layout encolhe junto. */
  --shell:     1360px;
  --gutter:    40px;
  --section-y: 112px;
  --header-h:  76px;
}

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

html {
  scroll-behavior: smooth;
  /* Impede o iOS de inflar fonte ao girar o aparelho */
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--hb-teal); }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--hb-mint-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   3. Primitivas de layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-teal);
}
.eyebrow--mint { color: var(--hb-mint-500); }

.h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 14px 0 0;
}
.h2--onbrand { color: #fff; font-weight: 800; }

.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--text-muted);
}

.media { overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.media > img,
.media > picture,
.media > picture > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lista de bullets dos cards */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.checklist--onbrand {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  border-top-color: rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   4. Botoes e tags
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--ease-out) .18s, box-shadow var(--ease-out) .18s, transform var(--ease-out) .18s;
}
.btn:active { transform: translateY(1px); }

/* Altura minima de 44px em todos os tamanhos: alvo de toque acessivel */
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--md { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

.btn--primary {
  background: var(--hb-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 109, 119, .22);
}
.btn--primary:hover { background: var(--hb-teal-800); color: #fff; }

.btn--accent { background: var(--hb-mint-500); color: #053a33; }
.btn--accent:hover { background: var(--hb-mint-600); color: #053a33; }

/* Contorno: acao secundaria ao lado do "Agendar", sem competir com ele */
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--hb-teal);
  color: var(--hb-teal);
}
.btn--outline:hover { background: var(--hb-teal-50); color: var(--hb-teal-800); }

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border-subtle);
  background: #fff;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   5. Header + menu mobile
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 251, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* A gaveta (.nav, z-index 58) e filha do header, entao dividem o mesmo
   contexto de empilhamento. Logo e botao precisam de z-index maior, senao
   a gaveta aberta cobre o proprio botao de fechar. */
.header__logo { height: 34px; width: auto; flex: none; object-fit: contain; }
.header__inner > a:first-child { position: relative; z-index: 59; }

.nav { display: flex; align-items: center; gap: 28px; }

.nav__link {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-body);
  text-decoration: none;
  text-align: center;
  /* Preserva as quebras escritas no HTML: todos os itens ficam em duas
     linhas, com a mesma altura, sem depender da largura da tela. */
  white-space: pre-line;
  transition: color var(--ease-out) .18s;
}
.nav__link:hover { color: var(--hb-teal); }

/* Botao hamburguer - so aparece no mobile */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 59;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex: none;
}
.nav__toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--hb-teal);
  border-radius: 2px;
  transition: background var(--ease-out) .18s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--hb-teal);
  border-radius: 2px;
  transition: transform var(--ease-out) .22s, top var(--ease-out) .22s;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

/* Estado aberto: vira um X */
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 46, 51, 0.45);
  z-index: 55;
  opacity: 0;
  transition: opacity var(--ease-out) .22s;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--hb-teal);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(0,62,68,0.94) 0%, rgba(0,109,119,0.86) 42%, rgba(0,109,119,0.35) 100%);
}
.hero__content { position: relative; width: 100%; color: #fff; padding-top: 120px; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hb-mint-500);
}
.hero__kicker i { width: 32px; height: 1px; background: var(--hb-mint-500); display: block; flex: none; }

.hero__title {
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
  max-width: 19ch;
}
.hero__title em { color: var(--hb-mint-500); font-style: normal; }

.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 28px 0 36px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 36px;
}
.hero__stat b {
  display: block;
  font-weight: 800;
  /* 2.6vw e nao 2.8vw: em 1081px, onde a faixa volta a ter quatro colunas,
     2.8vw deixava "USP + Coimbra" a 3px de estourar a coluna. */
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  /* O valor fica sempre em uma linha: o corpo encolhe junto com a coluna
     (ver as quebras) em vez de partir "USP + Coimbra" no meio. */
  white-space: nowrap;
}
.hero__stat span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   7. Faixa de pilares
   -------------------------------------------------------------------------- */
.pillars { background: var(--hb-teal-950); color: #fff; }
.pillars__inner {
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}
.pillars__dot { color: var(--hb-mint-500); }

/* --------------------------------------------------------------------------
   8. Sobre
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: start; }

.about__figures .media--main { aspect-ratio: 4/5; }

.about__copy { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.8; max-width: 60ch; }
.about__copy p:first-child {
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.65;
  color: var(--text-strong);
  font-weight: 500;
}
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* --------------------------------------------------------------------------
   9. Trajetoria internacional
   -------------------------------------------------------------------------- */
.journey { background: var(--hb-teal-50); border-block: 1px solid var(--border-subtle); }
.journey__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.journey__map { width: 100%; max-width: 420px; margin-left: auto; }

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

.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-mint-500);
}
.stat-card__value {
  font-weight: 800;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--hb-teal);
}
.stat-card h3 { font-weight: 700; font-size: 19px; color: var(--text-strong); margin-top: 6px; }
.stat-card p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Faixa de citacao
   -------------------------------------------------------------------------- */
.quote { position: relative; min-height: 52vh; display: flex; align-items: center; overflow: hidden; }
.quote__bg { position: absolute; inset: 0; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,62,68,0.94), rgba(0,109,119,0.62));
  pointer-events: none;
}
.quote__inner { position: relative; padding-block: 96px; color: #fff; }
.quote__text {
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.quote__author {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-mint-500);
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   11. Fisioterapia
   -------------------------------------------------------------------------- */
.physio { background: var(--surface-card); border-block: 1px solid var(--border-subtle); }
.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.card__media { aspect-ratio: 16/10; flex: none; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-weight: 700; font-size: clamp(19px, 1.8vw, 22px); color: var(--text-strong); margin-bottom: 10px; }
.card__body > p { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin-bottom: 18px; }
.card__body .checklist { margin-top: auto; }

/* --------------------------------------------------------------------------
   11b. Termografia infravermelha
   Reaproveita .split-head, .cards-3, .stat-card e .note. Fundo teal-50 para
   os cartoes brancos aparecerem - por isso o .note tambem vira branco aqui.
   -------------------------------------------------------------------------- */
.thermo { background: var(--hb-teal-50); border-block: 1px solid var(--border-subtle); }

/* Faixa panoramica: a termografia e o recurso de maior destaque da clinica.
   No celular a arte troca para 4/3 (ver o <picture> e a quebra de 820px),
   senao a logo e a legenda ficariam pequenas demais para ler. */
.thermo__media { aspect-ratio: 21/9; margin-bottom: 44px; }

.thermo .stat-card h3 { margin-top: 0; }
.thermo .stat-card .checklist { margin-top: auto; }
.thermo .note { background: #fff; box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   12. Regenerativa
   -------------------------------------------------------------------------- */
.regen { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.regen__aside { position: sticky; top: calc(var(--header-h) + 36px); }
.regen__aside .media { aspect-ratio: 4/3; margin-bottom: 24px; }

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-block: 32px;
  border-top: 1px solid var(--border-subtle);
}
.step:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.step__num {
  font-weight: 800;
  font-size: 15px;
  color: var(--hb-mint-500);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.step h3 { font-weight: 700; font-size: clamp(20px, 2vw, 24px); color: var(--text-strong); margin-bottom: 10px; }
.step p { font-size: 16px; line-height: 1.75; color: var(--text-muted); }

.note {
  margin-top: 32px;
  background: var(--hb-teal-50);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.note h3 { font-weight: 700; font-size: 20px; color: var(--hb-teal-800); margin-bottom: 8px; }
.note p { font-size: 16px; line-height: 1.7; color: var(--text-body); }

/* --------------------------------------------------------------------------
   13. Estetica facial
   -------------------------------------------------------------------------- */
.aesth { background: var(--hb-teal); color: #fff; }
.aesth__intro { max-width: 60ch; margin-bottom: 56px; }
.aesth__intro p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; color: rgba(255,255,255,0.84); margin-top: 18px; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.glass-card__media { aspect-ratio: 16/9; flex: none; }
.glass-card__media img { width: 100%; height: 100%; object-fit: cover; }
.glass-card__body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.glass-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-mint-500);
  margin-bottom: 10px;
}
.glass-card h3 { font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; margin-bottom: 12px; }
.glass-card > .glass-card__body > p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 16px;
}
.glass-card .checklist { margin-top: auto; }

.aesth__subtitle { font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); margin: 56px 0 24px; }

.num-card__num {
  font-weight: 800;
  font-size: 14px;
  color: var(--hb-mint-500);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.num-card .card__body { padding: 32px; }
.num-card h4 { font-weight: 700; font-size: clamp(19px, 1.8vw, 22px); color: var(--text-strong); margin-bottom: 10px; }
.num-card > .card__body > p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-bottom: 18px; }

.aesth__disclaimer {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 70ch;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   14. Capilar
   -------------------------------------------------------------------------- */
.hair { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.hair__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.hair__media { aspect-ratio: 1/1; }

/* --------------------------------------------------------------------------
   15. Jornada do tratamento
   -------------------------------------------------------------------------- */
.flow { background: var(--surface-card); border-block: 1px solid var(--border-subtle); }
.flow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.flow__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--border-subtle);
}
.flow__step:first-child { border-top-color: var(--hb-mint-500); }
.flow__step b { font-weight: 800; font-size: 14px; color: var(--hb-mint-500); letter-spacing: 0.1em; }
.flow__step h3 { font-weight: 700; font-size: 20px; color: var(--text-strong); }
.flow__step p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   16. Contato - CTA + formulario
   -------------------------------------------------------------------------- */
.cta { position: relative; border-radius: var(--radius-2xl); overflow: hidden; color: #fff; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0,45,50,0.96), rgba(0,109,119,0.86));
}
.cta__inner { position: relative; padding: 80px 56px; }
.cta__head { text-align: center; max-width: 60ch; margin-inline: auto; }
.cta__head p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; color: rgba(255,255,255,0.85); margin: 16px 0 32px; }

.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  align-items: start;
}

.contact-block { display: flex; flex-direction: column; gap: 8px; }
.contact-block__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-mint-500);
}
.contact-block p,
.contact-block a { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.9); text-decoration: none; }
/* Area de toque confortavel sem inflar o espacamento visual */
.contact-block a { display: inline-block; padding-block: 7px; }
.contact-block a:hover { color: #fff; text-decoration: underline; }

.contact-list { display: flex; flex-direction: column; gap: 28px; }

/* Formulario de contato */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__title { font-weight: 700; font-size: 21px; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.86); }

.form__field input,
.form__field select,
.form__field textarea {
  font-family: inherit;
  /* 16px evita o zoom automatico do Safari iOS ao focar o campo */
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color var(--ease-out) .18s, background var(--ease-out) .18s;
}
.form__field textarea { resize: vertical; min-height: 96px; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--hb-mint-500);
  background: rgba(255, 255, 255, 0.16);
}
.form__field select { appearance: none; cursor: pointer; }
.form__field select option { color: var(--text-strong); background: #fff; }

.form__hint { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.62); }

.form__status { font-size: 15px; line-height: 1.6; border-radius: var(--radius-md); padding: 12px 14px; display: none; }
.form__status[data-state="ok"] { display: block; background: rgba(44, 208, 167, 0.18); border: 1px solid var(--hb-mint-500); color: #fff; }
.form__status[data-state="erro"] { display: block; background: rgba(209, 84, 78, 0.2); border: 1px solid #d1544e; color: #fff; }
.form__status[data-state="enviando"] { display: block; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }

.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* Honeypot anti-spam: invisivel para gente, preenchido por bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   16b. Area do cliente (sou-cliente.html)
   -------------------------------------------------------------------------- */
.portal { max-width: 74ch; }
.portal .lead { margin-top: 20px; }
.portal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--hb-teal-50);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}
.portal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   17. Rodape
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border-subtle); background: var(--surface-card); }
.footer__inner {
  padding-block: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__brand img { height: 34px; width: auto; align-self: flex-start; object-fit: contain; }
.footer__brand span { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.footer__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; align-items: center; justify-content: flex-end; }
.footer__links a { color: var(--text-body); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer__links a:hover { color: var(--hb-teal); }

/* Contatos em pilula com icone: sem isso eles leem como mais dois itens
   do menu, coisa que o rodape ja tem demais. */
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-page);
  color: var(--hb-teal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--ease-out) .18s, border-color var(--ease-out) .18s;
}
.social svg { width: 18px; height: 18px; flex: none; }
.social:hover { background: var(--hb-teal-50); border-color: var(--hb-teal-200); }
.footer__legal {
  border-top: 1px solid var(--border-subtle);
  padding-block: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   18. Botao flutuante de WhatsApp (so no mobile)
   -------------------------------------------------------------------------- */
.wa-float {
  display: none;
  position: fixed;
  right: 16px;
  /* respeita a barra de gestos do iPhone */
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  align-items: center;
  justify-content: center;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ==========================================================================
   19. RESPONSIVO
   ========================================================================== */

/* ---- 1081px a 1300px: o menu completo ainda cabe, mas so apertado ---- */
@media (min-width: 1081px) and (max-width: 1300px) {
  .nav { gap: 16px; }
  .nav__link { font-size: 13px; }
}

/* ---- <= 1080px: tablet paisagem ---- */
@media (max-width: 1080px) {
  :root { --gutter: 28px; --section-y: 80px; }

  /* --- Navegacao vira gaveta lateral ---
     Abaixo de 1080px os sete itens do menu nao cabem mais em linha ao lado
     do logo, entao a gaveta comeca aqui (o resto do layout so quebra em 820). */
  .nav__toggle { display: inline-flex; }

  /* Fechada a gaveta fica em display:none, nao apenas deslocada para fora.
     Um elemento fixed empurrado com translateX ainda soma na largura rolavel
     da pagina, e overflow-x:hidden no body nao corta filho position:fixed -
     o resultado seria rolagem lateral no celular. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 58;
    display: none;
    height: 100dvh;
    width: min(86vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--header-h) + 20px) 24px 32px;
    background: var(--surface-card);
    box-shadow: -12px 0 40px rgba(13, 43, 46, 0.18);
    transform: translateX(100%);
    transition: transform var(--ease-out) .28s, display var(--ease-out) .28s allow-discrete;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav__link {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 4px;
    text-align: left;
    /* Na gaveta cada item cabe em uma linha: as quebras do HTML viram espaco */
    white-space: normal;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav .btn { margin-top: 16px; width: 100%; }
  .nav .btn + .btn { margin-top: 10px; }

  /* Aberto */
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: flex; transform: translateX(0); }
  body.nav-open .nav__backdrop { display: block; opacity: 1; }

  /* Estado inicial da animacao de entrada. Onde nao houver suporte a
     @starting-style o menu simplesmente abre na hora, sem deslizar. */
  @starting-style {
    body.nav-open .nav { transform: translateX(100%); }
  }

  /* Em quatro colunas a faixa aperta demais nesta faixa de largura e
     "USP + Coimbra" quebra em duas linhas. Duas colunas resolvem. */
  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .about,
  .regen,
  .hair { gap: 48px; }

  .journey__head { gap: 36px; }
  .split-head { gap: 36px; }
  .cards-3 { gap: 20px; }
  .cards-2 { gap: 20px; }
  .flow__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cta__inner { padding: 64px 40px; }
  .stat-card,
  .card__body,
  .glass-card__body,
  .num-card .card__body { padding: 26px; }
}

/* ---- <= 820px: tablet retrato e celular grande ---- */
@media (max-width: 820px) {
  :root { --gutter: 22px; --section-y: 64px; --header-h: 64px; }

  /* --- Hero --- */
  .hero { min-height: 0; align-items: stretch; }
  .hero__content { padding-top: 72px; }
  .hero__title { max-width: 100%; }
  .hero__sub { margin: 20px 0 28px; }
  .hero__actions { gap: 10px; margin-bottom: 40px; }
  .hero__actions .btn { flex: 1 1 auto; min-width: 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 24px 0 28px; }
  /* "USP + Coimbra" e o valor mais largo da faixa: o corpo cai junto com a
     coluna para ele continuar cabendo em uma linha so, como os numeros. */
  .hero__stat b { font-size: 24px; }

  /* --- Colunas viram uma so --- */
  .about,
  .journey__head,
  .split-head,
  .regen,
  .hair,
  .cards-3,
  .cards-2,
  .cta__grid { grid-template-columns: 1fr; }

  .about { gap: 40px; }
  .journey__head { margin-bottom: 36px; }
  .split-head { align-items: start; margin-bottom: 36px; gap: 20px; }

  /* Retrato mais alto em coluna unica. O teto de largura e o que impede a foto
     de virar um bloco de ~1000px de altura no tablet; no celular a coluna ja e
     mais estreita que o teto, entao ele nao muda nada. */
  .about__figures .media--main { aspect-ratio: 3/4; max-width: 420px; margin-inline: auto; }

  .journey__map { margin-inline: auto; max-width: 340px; }

  .quote { min-height: 0; }
  .quote__inner { padding-block: 64px; }
  .quote__text { max-width: 100%; }

  /* Regenerativa: nada de sticky em tela pequena */
  .regen { gap: 40px; }
  .regen__aside { position: static; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding-block: 24px; }

  /* Arte 4/3 no celular: a panoramica encolheria a logo e a legenda */
  .thermo__media { aspect-ratio: 4/3; margin-bottom: 32px; }

  .aesth__subtitle { margin: 40px 0 20px; }
  .hair__media { aspect-ratio: 4/3; }

  .flow__grid { gap: 24px; }

  .cta { border-radius: var(--radius-xl); }
  .cta__inner { padding: 48px 24px; }
  .cta__grid { gap: 36px; margin-top: 40px; padding-top: 36px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav { align-items: flex-start; gap: 12px; }
  .footer__links { justify-content: flex-start; }
  .footer__social { justify-content: flex-start; }

  /* Botao flutuante do WhatsApp entra em cena */
  .wa-float { display: flex; }
  /* espaco para o botao nao tapar o rodape */
  .footer__legal { padding-bottom: 76px; }
}

/* ---- <= 520px: celular ---- */
@media (max-width: 520px) {
  :root { --gutter: 18px; --section-y: 52px; }

  .hero__content { padding-top: 56px; }
  .hero__kicker { font-size: 11px; letter-spacing: 0.12em; }
  .hero__kicker i { width: 20px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 18px 14px; }
  .hero__stat b { font-size: clamp(16px, 4.6vw, 21px); }

  .pillars__inner { gap: 6px 14px; font-size: 11px; letter-spacing: 0.06em; }

  .about__copy { font-size: 16px; gap: 14px; }
  .about__tags { gap: 6px; }
  .tag { font-size: 13px; padding: 5px 10px; }

  .stat-card,
  .card__body,
  .glass-card__body,
  .num-card .card__body { padding: 22px; }
  .note { padding: 22px 20px; }

  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__num { padding-top: 0; }

  .hair__list { grid-template-columns: 1fr; gap: 10px; }

  .flow__grid { grid-template-columns: 1fr; gap: 20px; }

  .cta__inner { padding: 40px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .footer__links { gap: 12px 18px; }
}

/* ---- Telas muito estreitas (<= 360px) ---- */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .hero__stats { grid-template-columns: 1fr; }
  .header__logo { height: 28px; }
}

/* ---- Celular deitado: hero baixo demais atrapalha ---- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 48px; }
}

/* ---- Impressao ---- */
@media print {
  .header, .nav, .wa-float, .form, .hero__actions { display: none !important; }
  body { background: #fff; }
  .hero, .quote, .cta { min-height: 0; color: var(--text-strong); }
  .hero__bg, .hero__scrim, .quote__bg, .quote__scrim, .cta__bg, .cta__scrim { display: none; }
}
