/* =========================================================================
   Dra. Viviane Vasconcelos | Clínica Viva
   Sistema visual derivado da identidade oficial.
   Conceito: luxo silencioso, respiro, fotografia editorial, medicina.
   ========================================================================= */

/* ---------------------------------------------------------------- Fontes */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
}

/* ---------------------------------------------------------------- Tokens */

:root {
  /* Cores extraidas do logotipo oficial */
  --bronze: #91704d;
  --bronze-deep: #6b5236;
  --bronze-soft: #b08f68;
  --gold: #c3a377;
  --gold-pale: #e3d2b8;

  --ink: #211c18;
  --ink-soft: #463d34;
  --muted: #7d7166;

  --paper: #faf8f5;
  --cream: #f3efe9;
  --cream-deep: #ebe4da;
  --white: #ffffff;

  --line: rgba(145, 112, 77, 0.2);
  --line-soft: rgba(145, 112, 77, 0.1);
  --line-dark: rgba(243, 239, 233, 0.16);

  /* Tipografia */
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-eyebrow: 0.72rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;

  /* Ritmo */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --maxw: 1240px;
  --maxw-text: 46rem;

  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.7s;
}

/* ----------------------------------------------------------------- Reset */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4,
.mega__col a,
.goal-card h3 {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25em; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

::selection {
  background: var(--gold-pale);
  color: var(--ink);
}

/* ------------------------------------------------------------- Utilidades */

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

.wrap--narrow { max-width: 62rem; }
.wrap--text { max-width: var(--maxw-text); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--cream { background: var(--cream); }
.section--dark {
  background: var(--ink);
  color: rgba(243, 239, 233, 0.78);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--cream); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.4rem;
}

.section--dark .eyebrow { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink-soft);
}

.section--dark .lead { color: rgba(243, 239, 233, 0.82); }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.rule {
  width: 52px;
  height: 1px;
  background: var(--bronze);
  border: 0;
  margin: 0 0 2rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.4rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- Botoes */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--bronze);
  color: var(--white);
  border-color: var(--bronze);
}
.btn--primary:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }

.btn--ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--ink:hover { background: #2f2821; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--bronze); color: var(--bronze); }

.section--dark .btn--ghost,
.cta-band .btn--ghost {
  color: var(--cream);
  border-color: rgba(243, 239, 233, 0.45);
}
.section--dark .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn .ico { width: 18px; height: 18px; flex: 0 0 18px; }

/* Icone do WhatsApp em link de texto, fora de botao */
.wa-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.wa-inline .ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--bronze);
}
.footer .wa-inline .ico { color: var(--gold); }
.link-arrow .ico { width: 16px; height: 16px; flex: 0 0 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.link-arrow:hover { border-color: var(--bronze); gap: 0.85rem; }
.link-arrow::after { content: '\2192'; }

/* ---------------------------------------------------------------- Midia */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: var(--ratio, 4 / 5);
  background: var(--cream-deep);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.media--placeholder {
  position: relative;
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(255, 255, 255, 0.75), transparent 60%),
    linear-gradient(145deg, var(--cream-deep), #ddd2c3 70%);
}

.media--placeholder::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(145, 112, 77, 0.22);
  border-radius: 2px;
}

.media--clay {
  background:
    radial-gradient(110% 80% at 78% 18%, rgba(255, 255, 255, 0.5), transparent 62%),
    linear-gradient(160deg, #d9c4ac, #b79a79);
}
.media--stone {
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(150deg, #e7e2da, #cdc4b7);
}
.media--dark {
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(195, 163, 119, 0.28), transparent 60%),
    linear-gradient(150deg, #2c251f, #16120f);
}
.media--dark::after { border-color: rgba(195, 163, 119, 0.3); }

/* ---------------------------------------------------------------- Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 92px;
  transition: min-height 0.45s var(--ease);
}

.header__logo { flex: 0 0 auto; display: block; }

/* O teto de altura garante 10px de respiro acima e abaixo da marca nos dois
   estados do cabeçalho: 92px de barra com teto de 72px, 74px com teto de 54px.
   A largura acompanha sozinha, porque a proporção é preservada. */
.header__logo img {
  height: clamp(58px, 5.9vw, 72px);
  width: auto;
  transition: opacity 0.35s var(--ease), height 0.45s var(--ease);
}

.header--solid .header__logo img { height: 54px; }
.header__logo .logo--light { display: none; }

.header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.1rem);
}

.header__nav a {
  position: relative;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 0.6rem;
  transition: color 0.3s var(--ease);
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.15rem;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width 0.4s var(--ease);
}

.header__nav a:hover,
.header__nav a[aria-current] { color: var(--bronze); }
.header__nav a:hover::after,
.header__nav a[aria-current]::after { width: 100%; }

.header__cta { margin-left: clamp(0.5rem, 1.5vw, 1.25rem); }
.header__cta .btn { min-height: 44px; padding: 0.6rem 1.35rem; font-size: 0.76rem; gap: 0.45rem; }
.header__cta .btn .ico { width: 16px; height: 16px; flex: 0 0 16px; }

/* Estado transparente sobre o hero da home */
.header--over {
  background: transparent;
}
.header--over .header__nav a,
.header--over .header__menu-btn { color: var(--cream); }
.header--over .header__nav a::after { background: var(--gold); }
.header--over .header__logo .logo--dark { display: none; }
.header--over .header__logo .logo--light { display: block; }
.header--over .header__cta .btn--primary {
  background: transparent;
  border-color: rgba(243, 239, 233, 0.5);
  color: var(--cream);
}
.header--over .header__cta .btn--primary:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* Rede de seguranca: se os dois estados coexistirem por algum motivo,
   o fundo escurece em vez de clarear, para a marca em creme continuar legivel. */
.header--over.header--solid {
  background: linear-gradient(to bottom, rgba(20, 16, 13, 0.88), rgba(20, 16, 13, 0.55));
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header--solid {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--line-soft);
}
.header--solid .header__inner { min-height: 74px; }

/* --------------------------------------------------------- Mega menu */

.has-mega { position: relative; }

.mega {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h, 92px);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -40px rgba(33, 28, 24, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.mega[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
}

.mega__col h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}

.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col li + li { margin-top: 0.5rem; }

.mega__col a {
  font-family: var(--display);
  /* Peso dos itens do mega menu. Trocar aqui para 300 (mais leve) ou 500 (mais firme). */
  font-weight: 400;
  font-size: 1.22rem;
  color: var(--ink);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mega__col a:hover { color: var(--bronze); padding-left: 0.35rem; }

.mega__footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------- Menu mobile */

.header__menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.6rem;
  line-height: 0;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu[data-open='true'] { transform: translateX(0); }

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 1.5rem;
}
.mobile-menu__top img { width: 140px; height: auto; }

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu nav > a,
.mobile-menu details > summary {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--ink);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  list-style: none;
  cursor: pointer;
}

.mobile-menu details > summary::-webkit-details-marker { display: none; }
.mobile-menu details > summary::after {
  content: '+';
  float: right;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 1.3rem;
}
.mobile-menu details[open] > summary::after { content: '\2013'; }

.mobile-menu details ul {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0 0 0 0.5rem;
}
.mobile-menu details li { padding-block: 0.3rem; }
.mobile-menu details a {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.mobile-menu__cta { margin-top: auto; padding-top: 2rem; }
.mobile-menu__cta .btn { width: 100%; }

.mobile-menu__meta {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ Hero home */

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
}

/* vale para o contêiner e para o <picture>: a foto cobre o hero inteiro,
   sem herdar a proporção padrão de .media */
.hero__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.hero__media::after,
.hero .media--placeholder::after { display: none; }

/* a foto tem a médica à esquerda, então o corte preserva esse lado */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 26%;
}

/* clareamento suave apenas do lado do texto, para garantir leitura */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(250, 248, 245, 0.5) 0%, rgba(250, 248, 245, 0) 20%),
    linear-gradient(
      to left,
      rgba(250, 248, 245, 0.72) 0%,
      rgba(250, 248, 245, 0.5) 30%,
      rgba(250, 248, 245, 0.16) 50%,
      rgba(250, 248, 245, 0) 66%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(8rem, 17vh, 12rem) clamp(4rem, 9vh, 7rem);
}

.hero__content {
  grid-column: 2;
  max-width: 34rem;
  text-align: left;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  margin-bottom: 1.3rem;
}

.hero__sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__credential {
  margin: 1.8rem 0 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Faixa entre o menu completo e o menu compacto: o cabeçalho fica apertado,
   então o respiro e o texto dos itens diminuem em vez de quebrar linha. */
@media (min-width: 961px) and (max-width: 1140px) {
  .header__nav { gap: 1rem; }
  .header__nav a { font-size: 0.74rem; letter-spacing: 0.1em; }
  .header__cta .btn { padding: 0.55rem 1rem; font-size: 0.7rem; }
  .header__logo img { height: 54px; }
}

/* ------------------------------------------------------ Hero interno */

.page-hero {
  position: relative;
  padding-block: clamp(8rem, 14vh, 11rem) clamp(3rem, 6vw, 5rem);
  background: var(--cream);
  overflow: hidden;
}

.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.page-hero__grid > .media { aspect-ratio: 5 / 6; }

.page-hero h1 { margin-bottom: 1.1rem; }

.page-hero__lead {
  font-size: var(--fs-lead);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.page-hero--plain { text-align: left; }
.page-hero--plain h1 { max-width: none; }
.page-hero--plain .page-hero__lead { max-width: 46rem; }

/* ------------------------------------------------------- Breadcrumb */

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0; padding: 0;
}
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line); }
.breadcrumb a:hover { color: var(--bronze); }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* ------------------------------------------------------------- Grades */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.split--offset { grid-template-columns: 0.92fr 1.08fr; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.section-head > div { max-width: 40rem; }
.section-head p { margin-bottom: 0; }

/* ------------------------------------------------------- Card de procedimento */

.p-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
              box-shadow 0.5s var(--ease);
}

.p-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 26px 50px -38px rgba(33, 28, 24, 0.55);
}

.p-card:hover .media img { transform: scale(1.04); }

.p-card .media { aspect-ratio: 4 / 3; border-radius: 0; }

.p-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-card__cat {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.7rem;
}

.p-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.p-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.p-card__more {
  margin-top: auto;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  gap: 0.5rem;
  transition: gap 0.35s var(--ease);
}
.p-card__more::after { content: '\2192'; }
.p-card:hover .p-card__more { gap: 0.8rem; }

/* Card compacto, sem imagem */
.p-card--compact .p-card__body { padding-block: 1.35rem; }

/* ------------------------------------------------------ Navegacao por objetivo */

.goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.goal-card:hover { border-color: var(--bronze); transform: translateY(-3px); }

.goal-card__index {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--bronze);
  letter-spacing: 0.1em;
  margin-bottom: auto;
}

.goal-card h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.goal-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

/* --------------------------------------------------------- Mini cards */

.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 2rem;
}

.mini-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.mini-card h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.5rem;
}
.mini-card p { font-size: 0.93rem; margin: 0; color: var(--muted); }

/* micro título em caixa alta, mesma família da UI */
.micro-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ----------------------------------------------------------- Conteudo */

.prose { max-width: var(--maxw-text); margin-inline: auto; }

.prose h2 { margin-top: 2.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; font-size: 1.32rem; }

.prose-block + .prose-block { margin-top: 2.6rem; }

.list-clean {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.list-clean li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}
.list-clean li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--bronze);
}

.prose ul:not(.list-clean) { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

.prose blockquote {
  margin: 2.2rem 0;
  padding-left: 1.6rem;
  border-left: 1px solid var(--bronze);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.prose a:not(.btn):not(.link-arrow) {
  color: var(--bronze);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.prose a:not(.btn):not(.link-arrow):hover { border-color: var(--bronze); }

/* ---------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line-soft); }

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  flex: 0 0 12px;
  width: 12px; height: 12px;
  margin-top: 0.5em;
  background:
    linear-gradient(var(--bronze), var(--bronze)) center / 12px 1px no-repeat,
    linear-gradient(var(--bronze), var(--bronze)) center / 1px 12px no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq__answer { padding-bottom: 1.5rem; max-width: 50rem; }
.faq__answer p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- CTA WA */

.cta-band {
  position: relative;
  background: var(--ink);
  color: rgba(243, 239, 233, 0.8);
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 130% at 85% 20%, rgba(195, 163, 119, 0.18), transparent 60%);
}

.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.cta-band h2 { color: var(--cream); margin-bottom: 0.8rem; }
.cta-band p { margin-bottom: 0; }

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  margin-block: 3rem;
}
.cta-inline p { margin: 0; max-width: 34rem; }
.cta-inline strong { font-weight: 400; color: var(--ink); }

/* ------------------------------------------------------ WhatsApp flutuante */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px -20px rgba(33, 28, 24, 0.7);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), background-color 0.35s var(--ease);
}
.wa-float[data-visible='true'] { transform: translateY(0); opacity: 1; }
.wa-float:hover { background: var(--bronze); }
.wa-float .ico { width: 20px; height: 20px; }
.wa-float__label { display: inline; }

/* ------------------------------------------------- Resumo do artigo */

.article-summary {
  /* O respiro entre a imagem principal e o resumo mora aqui, e so aqui.
     Imagem e resumo ficam na mesma secao do template, entao nao ha
     padding de secao somando entre os dois. */
  margin: 3.25rem 0 clamp(2.25rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2.1rem);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--bronze);
  border-radius: var(--radius-lg);
}

.article-summary h2 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  line-height: 1.4;
  margin: 0 0 1.1rem;
}

.article-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-summary li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.article-summary li:last-child { margin-bottom: 0; }

.article-summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--bronze);
}

.article-summary a {
  color: var(--bronze);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.article-summary a:hover { border-color: var(--bronze); }

/* Hero da home em tela estreita e em tablet retrato.
   A fotografia do hero e horizontal. Usada como fundo de um hero alto, ela
   perderia mais da metade da largura no corte. Aqui ela vira um bloco com
   proporcao propria no topo, e o texto desce para o bloco claro logo abaixo. */
@media (max-width: 960px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--cream);
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .hero__media img { object-position: 30% 26%; }

  .hero__veil {
    height: 62.5vw;            /* acompanha a altura da imagem em 16 / 10 */
    background:
      linear-gradient(to bottom,
        rgba(250, 248, 245, 0) 62%,
        rgba(250, 248, 245, 0.55) 86%,
        var(--cream) 100%);
  }

  .hero__inner {
    display: block;
    padding-block: 2rem 3.25rem;
  }

  .hero__content {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .article-summary { margin-top: 2.5rem; }
}

@media (max-width: 640px) {
  .article-summary { margin-top: 1.9rem; }
  .article-summary li { font-size: 0.97rem; margin-bottom: 0.85rem; }
}

/* ---------------------------------------------------------- Autoria */

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  border-block: 1px solid var(--line-soft);
  margin-block: 2.5rem;
}
.author .media {
  width: 62px;
  flex: 0 0 62px;
  aspect-ratio: 1;
  border-radius: 50%;
}
.author__name { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.author__meta { font-size: 0.82rem; color: var(--muted); }

/* ---------------------------------------------------------- Blog */

.a-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.a-card:hover { transform: translateY(-4px); border-color: var(--line); }
.a-card:hover .media img { transform: scale(1.04); }
.a-card .media { aspect-ratio: 16 / 10; border-radius: 0; }
.a-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.a-card__meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.7rem;
}
.a-card h3 { font-size: 1.3rem; line-height: 1.22; margin-bottom: 0.6rem; }
.a-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.a-card__more { margin-top: auto; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); }

.a-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
}
.a-feature .media { aspect-ratio: 16 / 11; }
.a-feature h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filters button {
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: all 0.35s var(--ease);
}
.filters button:hover { border-color: var(--bronze); color: var(--bronze); }
.filters button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.article-body { max-width: 42rem; }
.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.article-body p { font-size: 1.08rem; line-height: 1.8; }

/* ---------------------------------------------------------- Contato */

.info-card {
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  height: 100%;
}
.info-card h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.9rem;
}
.info-card p { margin-bottom: 0.4rem; }
.info-card a:hover { color: var(--bronze); }

/* ----------------------------------------------------------- Footer */

.footer {
  background: var(--ink);
  color: rgba(243, 239, 233, 0.66);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer__logo img { width: 190px; height: auto; margin-bottom: 1.4rem; }

.footer h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--cream); }

.footer__legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(243, 239, 233, 0.45);
}
.footer__legal a:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__social .ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------- 404 */

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 14vh, 10rem) var(--section);
}
.page-404 .display-num {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--bronze);
  line-height: 1;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------- Cookies */

.cookie-bar {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 95;
  max-width: 26rem;
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px -34px rgba(33, 28, 24, 0.6);
  font-size: 0.88rem;
  transform: translateY(160%);
  transition: transform 0.55s var(--ease);
}
.cookie-bar[data-open='true'] { transform: translateY(0); }
.cookie-bar p { margin-bottom: 1rem; }
.cookie-bar__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-bar .btn { min-height: 42px; padding: 0.55rem 1.2rem; font-size: 0.74rem; }

/* ------------------------------------------------------- Animacoes */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal-delay='1'] { transition-delay: 0.08s; }
[data-reveal-delay='2'] { transition-delay: 0.16s; }
[data-reveal-delay='3'] { transition-delay: 0.24s; }

/* ------------------------------------------------------ Responsivo */

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .header__nav, .header__cta { display: none; }
  .header__menu-btn { display: inline-flex; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .split,
  .page-hero--split .page-hero__grid,
  .cta-band__inner,
  .a-feature { grid-template-columns: 1fr; }

  .page-hero--split .page-hero__grid > .media { order: -1; aspect-ratio: 16 / 11; }

  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .hero h1 { font-size: clamp(2.1rem, 8.6vw, 2.9rem); }
  .hero__sub { margin-bottom: 1.9rem; }

  .hero__actions .btn { width: 100%; }
  .hero__credential { margin-top: 1.5rem; font-size: 0.7rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; gap: 0.6rem; }

  .wa-float__label { display: none; }
  .wa-float { padding: 0.95rem; border-radius: 50%; }

  .cta-inline { flex-direction: column; align-items: flex-start; }
  .cta-inline .btn { width: 100%; }

  .cookie-bar { left: 1rem; right: 1rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .wa-float, .cookie-bar, .mobile-menu, .mega { display: none !important; }
  body { background: #fff; color: #000; }
}
