/* ============================================================
   Maple Bear Caxias do Sul — Design System v1
   "Editorial canadense premium" — papel marfim, oxblood,
   tipografia como protagonista, ornamento como respiração.
   ============================================================ */

:root {
  /* Color — palette inspired by aged paper, oxblood ink, sage marginalia */
  --ink: #000000;            /* Maple Bear preto puro oficial */
  --ink-soft: #2a2a2a;
  --ink-faint: #6a6a6a;

  --paper: #F6E9E1;          /* Maple Bear cream oficial (manual de marca) */
  --paper-warm: #F0DDD0;     /* variação mais escura do cream */
  --cream: #E8D3C2;
  --line: #DEC6B5;
  --line-soft: #ECDDD0;

  --red: #CC1216;            /* Maple Bear vermelho institucional oficial */
  --red-bright: #FF1C25;     /* vermelho vibrante de comunicação (CTAs, destaques) */
  --red-deep: #AA0413;       /* bordô oficial (hover, fundos escuros) */
  --red-darker: #780009;     /* contraste extra */
  --red-pale: rgba(204, 18, 22, 0.07);
  --red-mark: rgba(204, 18, 22, 0.14);
  --red-on-dark: #FF1C25;

  --sage: #5a6d4d;           /* maple leaf, dessaturated */
  --sage-deep: #3f4d36;
  --gold: #b8884a;           /* aged brass */
  --gold-pale: #d9bb86;

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale (fluid, mobile-first) */
  --step--2: clamp(0.6944rem, 0.6731rem + 0.1064vw, 0.7559rem);
  --step--1: clamp(0.8333rem, 0.7937rem + 0.1983vw, 0.9478rem);
  --step-0:  clamp(1rem, 0.9348rem + 0.3261vw, 1.1875rem);
  --step-1:  clamp(1.2rem, 1.0962rem + 0.519vw, 1.5rem);
  --step-2:  clamp(1.44rem, 1.2812rem + 0.7935vw, 1.8889rem);
  --step-3:  clamp(1.728rem, 1.4878rem + 1.2009vw, 2.4111rem);
  --step-4:  clamp(2.0736rem, 1.715rem + 1.793vw, 3.052rem);
  --step-5:  clamp(2.4883rem, 1.9628rem + 2.6276vw, 3.8147rem);
  --step-6:  clamp(2.986rem, 2.2231rem + 3.8144vw, 4.7684rem);
  --step-7:  clamp(3.5832rem, 2.4955rem + 5.4385vw, 5.9605rem);
  --step-8:  clamp(4.2998rem, 2.7681rem + 7.6586vw, 7.4506rem);

  /* Space */
  --space-3xs: clamp(0.25rem, 0.2174rem + 0.163vw, 0.3438rem);
  --space-2xs: clamp(0.5rem, 0.4348rem + 0.3261vw, 0.6875rem);
  --space-xs:  clamp(0.75rem, 0.6522rem + 0.4891vw, 1.0313rem);
  --space-s:   clamp(1rem, 0.8696rem + 0.6522vw, 1.375rem);
  --space-m:   clamp(1.5rem, 1.3043rem + 0.9783vw, 2.0625rem);
  --space-l:   clamp(2rem, 1.7391rem + 1.3043vw, 2.75rem);
  --space-xl:  clamp(3rem, 2.6087rem + 1.9565vw, 4.125rem);
  --space-2xl: clamp(4rem, 3.4783rem + 2.6087vw, 5.5rem);
  --space-3xl: clamp(6rem, 5.2174rem + 3.913vw, 8.25rem);
  --space-4xl: clamp(8rem, 6.9565rem + 5.2174vw, 11rem);

  /* Layout */
  --measure: 65ch;
  --container: min(74rem, 100% - 2 * var(--space-m));
  --container-narrow: min(48rem, 100% - 2 * var(--space-m));
  --container-wide: min(86rem, 100% - 2 * var(--space-m));

  --radius-xs: 2px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;

  --duration: 380ms;
  --easing: cubic-bezier(0.2, 0.65, 0.3, 1);
  --easing-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 380;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'calt', 'onum';
  background-image:
    radial-gradient(circle at 20% 15%, rgba(184, 17, 46, 0.025) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(90, 109, 77, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.04 0 0 0 0 0.02 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--red); color: var(--paper); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-7);
  font-weight: 340;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--step-5);
  font-weight: 360;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.018em;
}
h4 {
  font-size: var(--step-2);
  font-weight: 450;
  letter-spacing: -0.012em;
}

p { text-wrap: pretty; max-width: var(--measure); }

em, .italic {
  font-style: italic;
  font-variation-settings: 'opsz' 144;
}

a {
  color: var(--red);
  text-decoration: none;
  text-decoration-skip-ink: auto;
  transition: color var(--duration) var(--easing);
}
a:hover { color: var(--red-deep); }

strong, b { font-weight: 580; }

/* Editorial bits */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--sage-deep);
  line-height: 1.3;
  max-width: 32ch;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  font-weight: 400;
}

.label {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  color: var(--gold);
  font-size: var(--step-4);
  line-height: 1;
  display: inline-block;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 5em;
  line-height: 0.85;
  float: left;
  padding: 0.12em 0.12em 0 0;
  color: var(--red);
  font-variation-settings: 'opsz' 144;
}

.pullquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--step-4);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 22ch;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--red);
}
.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* Ornament — typographic divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 300;
  margin: var(--space-2xl) auto;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 50%, transparent);
}
.ornament span {
  font-style: italic;
  font-size: var(--step-1);
  letter-spacing: 0.3em;
}

/* ============================================================
   Layout
   ============================================================ */
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }
.container-wide { width: var(--container-wide); margin-inline: auto; }

.section { padding-block: var(--space-3xl); position: relative; z-index: 2; }
.section-tight { padding-block: var(--space-xl); position: relative; z-index: 2; }

.stack > * + * { margin-top: var(--space-s); }
.stack-l > * + * { margin-top: var(--space-l); }
.stack-xl > * + * { margin-top: var(--space-xl); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--easing), padding var(--duration) var(--easing);
}
.site-header.is-scrolled { border-color: var(--line); }

.site-header .container {
  width: var(--container-wide);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-l);
  padding-block: var(--space-s);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
/* Header brand — lockup oficial Maple Bear (Chinook Canadian School + Shield Elementary) */
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: transform var(--duration) var(--easing);
}
.brand:hover .brand-logo { transform: scale(1.02); }
.brand-divider {
  width: 1px;
  height: 36px;
  background: var(--ink);
  opacity: 0.2;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
  .brand-divider { height: 26px; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-text small {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  justify-content: center;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: -0.005em;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--red);
  transform: translateX(-50%);
  transition: width var(--duration) var(--easing);
}
.site-nav a:hover { color: var(--red); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.is-active { color: var(--red); }
.site-nav a.is-active::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .site-header .container {
    grid-template-columns: auto 1fr auto;
  }
  .site-nav {
    position: fixed;
    inset: 5rem 0 0;
    flex-direction: column;
    background: var(--paper);
    padding: var(--space-xl);
    gap: var(--space-m);
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateY(-110%);
    transition: transform var(--duration) var(--easing-soft);
    z-index: 40;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { font-size: var(--step-2); font-family: var(--font-display); font-weight: 380; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-secondary { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--duration) var(--easing);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--red);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--red-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(184, 17, 46, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

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

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--red);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  text-decoration: none;
}
.btn-text .arrow { transition: transform var(--duration) var(--easing); }
.btn-text:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Maple Bear slogan oficial — "Muito além do bilíngue."
   Reproduz o lockup do manual de marca (Maple Bear: highlighter)
   ============================================================ */
.mb-slogan {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.05;
  gap: 0.15rem;
}
.mb-slogan-1 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.mb-slogan-2 {
  background: var(--red-deep);
  color: var(--paper);
  padding: 0.32em 0.55em 0.38em;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* Selo Duplo Diploma (manual de marca pg 59) */
.mb-duplo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  text-decoration: none;
  transition: all var(--duration) var(--easing);
}
.mb-duplo:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(204, 18, 22, 0.3);
}
.mb-duplo img {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.mb-duplo-text {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.mb-duplo-text strong {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--red-deep);
}
.mb-duplo-text small {
  font-size: 0.78rem; color: var(--ink-soft);
  margin-top: 2px;
}

/* ============================================================
   Maple Bear seal (selo oficial + tagline da rede)
   ============================================================ */
.mb-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-ui);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--duration) var(--easing);
}
.mb-seal:hover {
  border-color: var(--red);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(222, 55, 18, 0.25);
}
.mb-seal-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mb-seal-mark img { width: 100%; height: 100%; object-fit: contain; }
.mb-seal-mark svg { width: 22px; height: 22px; fill: var(--red); }
.mb-seal-text {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.mb-seal-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.mb-seal-text small {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-top: 2px;
  font-variation-settings: 'opsz' 144;
}

/* Chinook (mascote) block — placeholder até receber assets oficiais */
.chinook-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-l);
  align-items: center;
  padding: var(--space-l);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  position: relative;
}
.chinook-block::before {
  content: '';
  position: absolute;
  top: 0; left: var(--space-l);
  width: 36px; height: 4px;
  background: var(--red);
}
.chinook-img {
  width: clamp(8rem, 16vw, 13rem);
  height: auto;
  flex-shrink: 0;
}
.chinook-img-sm {
  width: clamp(4rem, 8vw, 6rem);
  height: auto;
}
.chinook-text h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 380;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.015em;
}
.chinook-text h3 em { font-style: italic; color: var(--red); font-weight: 300; }
.chinook-text p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .chinook-block { grid-template-columns: 1fr; text-align: center; }
  .chinook-block .chinook-img { margin: 0 auto; }
  .chinook-text p { margin-inline: auto; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: clamp(4rem, 12vw, 10rem) var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--step-8);
  font-weight: 280;
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-top: var(--space-m);
  text-wrap: balance;
  font-variation-settings: 'opsz' 144;
}
.hero-headline em {
  font-style: italic;
  font-weight: 240;
  color: var(--red);
  font-variation-settings: 'opsz' 144;
}

.hero-meta {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line);
}
.hero-meta .item .label { display: block; margin-bottom: 0.4rem; }
.hero-meta .item .value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-meta .item .value em { color: var(--red); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  margin-top: var(--space-xl);
}

/* Decorative leaf */
.leaf-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.13;
  color: var(--red);
}
.leaf-mark.tr {
  top: -3rem; right: -4rem;
  width: clamp(18rem, 36vw, 32rem);
  transform: rotate(18deg);
}
.leaf-mark.bl {
  bottom: -4rem; left: -3rem;
  width: clamp(14rem, 24vw, 22rem);
  transform: rotate(-25deg);
  opacity: 0.08;
}

/* ============================================================
   Sections
   ============================================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 320;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 16ch;
  font-variation-settings: 'opsz' 144;
}
.section-heading em { font-style: italic; font-weight: 280; color: var(--red); }

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}
@media (max-width: 760px) {
  .section-intro { grid-template-columns: 1fr; gap: var(--space-l); }
}

/* ============================================================
   Pillars (method, differentials)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-l);
}
.pillar {
  padding: var(--space-l) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.pillar .numeral { margin-bottom: var(--space-s); display: block; }
.pillar h3 {
  font-size: var(--step-2);
  font-weight: 420;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.015em;
}
.pillar p {
  font-size: var(--step-0);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   Levels grid (níveis de ensino)
   ============================================================ */
.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.level {
  background: var(--paper);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  transition: background var(--duration) var(--easing);
  text-decoration: none;
  color: inherit;
}
.level:hover { background: var(--paper-warm); }
.level .age {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--red);
  font-weight: 350;
  line-height: 1;
  font-variation-settings: 'opsz' 144;
  display: block;
  margin-bottom: 0.4rem;
}
.level .age::before {
  content: "Faixa etária";
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variation-settings: normal;
  margin-bottom: 0.25rem;
}
.level h3 {
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
}
.level h3 small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}
.level p { font-size: 0.95rem; color: var(--ink-soft); }
.level .read {
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: var(--space-s);
}

/* ============================================================
   Photo block (placeholder elegante até fotos chegarem)
   ============================================================ */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--paper-warm);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo[data-pending]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(184, 17, 46, 0.06), transparent 60%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 12px,
      rgba(26, 24, 20, 0.018) 12px,
      rgba(26, 24, 20, 0.018) 24px
    );
}
.photo[data-pending]::after {
  content: attr(data-pending);
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--ink-faint);
  text-align: center;
  padding: var(--space-m);
  max-width: 20ch;
  font-variation-settings: 'opsz' 144;
}
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.square { aspect-ratio: 1 / 1; }

.photo .caption {
  position: absolute;
  bottom: var(--space-s);
  left: var(--space-s);
  right: var(--space-s);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--paper);
  background: rgba(26, 24, 20, 0.6);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-s);
  backdrop-filter: blur(6px);
}

/* ============================================================
   Two column editorial layout
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.two-col.swap { direction: rtl; }
.two-col.swap > * { direction: ltr; }
.two-col.tight { gap: var(--space-xl); }

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-l); }
  .two-col.swap { direction: ltr; }
}

.side-note {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-1);
  color: var(--sage-deep);
  line-height: 1.4;
  padding: var(--space-m);
  border-left: 2px solid var(--sage);
  background: rgba(90, 109, 77, 0.04);
  max-width: 32ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-l) 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 380;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-m);
  align-items: baseline;
  transition: color var(--duration) var(--easing);
  font-variation-settings: 'opsz' 144;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item summary .toggle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-3);
  color: var(--red);
  line-height: 1;
  transition: transform var(--duration) var(--easing);
  font-variation-settings: 'opsz' 144;
}
.faq-item[open] summary .toggle { transform: rotate(45deg); }
.faq-item .answer {
  padding-bottom: var(--space-l);
  max-width: 64ch;
  color: var(--ink-soft);
}
.faq-item .answer > * + * { margin-top: var(--space-s); }

/* ============================================================
   Form
   ============================================================ */
.form {
  display: grid;
  gap: var(--space-m);
}
.field { display: flex; flex-direction: column; gap: var(--space-2xs); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
.field label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  transition: border-color var(--duration) var(--easing);
  min-height: 48px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-pale);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field .hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-3xl) 0 var(--space-l);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, var(--gold) 33%, var(--gold) 66%, var(--sage) 66%, var(--sage) 100%);
}

.footer-headline {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 280;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: var(--space-xl);
  color: var(--paper);
  font-variation-settings: 'opsz' 144;
}
.footer-headline em { font-style: italic; color: var(--red); font-weight: 250; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-l);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(250, 246, 238, 0.15);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-l); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer-grid h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.5);
  margin-bottom: var(--space-m);
}
.footer-grid a, .footer-grid p {
  color: var(--paper);
  display: block;
  padding: 0.35rem 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-decoration: none;
}
.footer-grid a:hover { color: var(--gold-pale); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
  padding-top: var(--space-l);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(250, 246, 238, 0.5);
  letter-spacing: 0.02em;
}

/* ============================================================
   WhatsApp float
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.5);
  z-index: 60;
  transition: transform var(--duration) var(--easing);
}
.wa-float:hover { transform: scale(1.08) rotate(-4deg); }
.wa-float svg { width: 30px; height: 30px; fill: white; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.3;
  z-index: -1;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--easing-soft), transform 1s var(--easing-soft);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.4s; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-l);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--line); }

/* ============================================================
   Highlight stat
   ============================================================ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat .figure {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 280;
  font-size: var(--step-6);
  line-height: 0.95;
  color: var(--red);
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144;
}
.stat .desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 24ch;
  line-height: 1.4;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-l);
}

/* ============================================================
   Testimonial card
   ============================================================ */
.testimonial {
  padding: var(--space-l);
  background: var(--paper-warm);
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 250;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--red);
  display: block;
  margin-bottom: var(--space-s);
  font-variation-settings: 'opsz' 144;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: var(--space-m);
  font-variation-settings: 'opsz' 144;
}
.testimonial .attr {
  display: flex;
  gap: var(--space-s);
  align-items: center;
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}
.testimonial .who strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.testimonial .who small {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--space-m);
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2xl);
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -2rem; right: -3rem;
  width: 14rem; height: 14rem;
  background: radial-gradient(circle, rgba(184, 17, 46, 0.4), transparent 65%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--paper);
  font-size: var(--step-5);
  font-weight: 280;
  line-height: 1;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.cta-banner h2 em { color: var(--red); font-style: italic; }
.cta-banner p {
  color: rgba(250, 246, 238, 0.7);
  margin-top: var(--space-s);
  max-width: 42ch;
}
.cta-banner .actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.cta-banner .btn-primary { background: var(--red); }
.cta-banner .btn-ghost { color: var(--paper); border-color: rgba(250,246,238,0.3); }
.cta-banner .btn-ghost:hover { background: rgba(250,246,238,0.08); border-color: var(--paper); color: var(--paper); }
@media (max-width: 760px) {
  .cta-banner { grid-template-columns: 1fr; padding: var(--space-xl); }
  .cta-banner .actions { align-items: stretch; }
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
  padding-block: clamp(3rem, 8vw, 7rem) var(--space-2xl);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: var(--step-6);
  font-weight: 300;
  line-height: 0.98;
  max-width: 18ch;
  margin-top: var(--space-s);
  font-variation-settings: 'opsz' 144;
}
.page-header h1 em { color: var(--red); font-style: italic; font-weight: 260; }
.page-header .lede { margin-top: var(--space-m); max-width: 52ch; }

/* ============================================================
   Process / steps
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-xl) var(--space-l);
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: var(--space-l); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 280;
  font-size: var(--step-2);
  color: var(--red);
  font-variation-settings: 'opsz' 144;
}
.step h3 {
  font-size: var(--step-1);
  font-weight: 450;
  margin-bottom: var(--space-2xs);
  letter-spacing: -0.012em;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; }
.step::after {
  content: '';
  position: absolute;
  top: var(--space-m);
  left: 3rem;
  right: -1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.step:last-child::after { display: none; }

@media (max-width: 760px) {
  .step::after { display: none; }
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-l { margin-top: var(--space-l); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.divider {
  height: 1px;
  background: var(--line);
  margin-block: var(--space-2xl);
}

/* ============================================================
   Top sticky bar — matrículas 2027
   ============================================================ */
.top-bar {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 50%, var(--red-deep) 100%);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  overflow: hidden;
}
.top-bar-inner {
  width: var(--container-wide);
  margin-inline: auto;
  padding: 0.55rem var(--space-m);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar-icon {
  display: inline-flex;
  width: 18px; height: 18px;
  background: var(--paper);
  border-radius: 50%;
  color: var(--red);
  font-weight: 800;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.top-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.top-bar-text strong { font-weight: 700; }
.top-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border: 1.5px solid rgba(246, 233, 225, 0.4);
  border-radius: 999px;
  transition: all var(--duration) var(--easing);
  white-space: nowrap;
  font-size: 0.82rem;
}
.top-bar-cta:hover {
  background: var(--paper);
  color: var(--red-deep);
  border-color: var(--paper);
}
.top-bar-dismiss {
  background: transparent;
  border: 0;
  color: rgba(246, 233, 225, 0.7);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--duration);
}
.top-bar-dismiss:hover { color: var(--paper); }

@media (max-width: 640px) {
  .top-bar-inner { padding: 0.5rem 0.85rem; gap: 0.65rem; font-size: 0.78rem; }
  .top-bar-text small { display: none; }
}

/* ============================================================
   Cookie banner LGPD
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 48rem;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-m);
  align-items: center;
  z-index: 80;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 380ms var(--easing-soft), transform 380ms var(--easing-soft);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(246, 233, 225, 0.92);
}
.cookie-text strong { color: var(--paper); }
.cookie-text a { color: var(--red-bright); text-decoration: underline; }
.cookie-text a:hover { color: var(--paper); }
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--duration) var(--easing);
  white-space: nowrap;
}
.cookie-btn-primary { background: var(--red); color: var(--paper); }
.cookie-btn-primary:hover { background: var(--red-bright); }
.cookie-btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 233, 225, 0.4);
}
.cookie-btn-secondary:hover { border-color: var(--paper); background: rgba(246, 233, 225, 0.08); }
@media (max-width: 640px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 0.5rem; left: 0.5rem; right: 0.5rem;
    padding: var(--space-s) var(--space-m);
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
}

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

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .wa-float, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   PROMISE — Acolhimento + Vínculo + Segurança (sincronizado com BG)
   ════════════════════════════════════════════════════════════════════ */
.promise {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(204,18,22,0.04) 0, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(184,136,74,0.08) 0, transparent 55%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.promise > .container { position: relative; z-index: 1; }
.promise-head {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.promise-head .eyebrow,
.visit-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.promise-head .eyebrow::before,
.visit-text .eyebrow::before { display: none; }
.promise-head .eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}
.promise-sub {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}
.promise-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.promise-pillar {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg, 28px);
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2.25rem);
  text-align: center;
  position: relative;
  transition: transform 0.4s, box-shadow 0.4s;
}
.promise-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.18);
}
.promise-pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
  border-radius: 28px 28px 0 0;
}
.promise-pillar-2::before { background: linear-gradient(90deg, var(--red), var(--gold)); }
.promise-pillar-3::before { background: linear-gradient(90deg, var(--gold), var(--red)); }
.promise-mascot {
  width: clamp(110px, 14vw, 160px);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.10));
  animation: gentle-bob 4s ease-in-out infinite;
}
.promise-pillar-2 .promise-mascot { animation-delay: 0.7s; }
.promise-pillar-3 .promise-mascot { animation-delay: 1.4s; }
@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.promise-pillar h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.promise-pillar p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.promise-pillar p strong { color: var(--ink); font-weight: 500; }
.promise-pillar p em { font-style: italic; color: var(--red); font-weight: 500; }
.promise-quote {
  max-width: 760px;
  margin: clamp(3rem, 5vw, 4.5rem) auto 0;
  text-align: center;
  padding: 0 1.5rem;
  border: none;
  position: relative;
}
.promise-quote::before {
  content: "\201C";
  position: absolute;
  top: -2.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--red);
  opacity: 0.25;
  line-height: 1;
}
.promise-quote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1rem;
}
.promise-quote cite {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
@media (max-width: 880px) {
  .promise-pillars { grid-template-columns: 1fr; }
  .promise-pillar { max-width: 480px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════════════
   VISIT SECTION + AI-friendly Contact Card
   (IDENTICO ao BG — usa --red/--paper-warm/--line como tokens equivalentes)
   ════════════════════════════════════════════════════════════════════ */
.visit {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.visit .chapter-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}
.visit .section-title {
  font-family: var(--font-display);
  font-variation-settings: "wght" 400;
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1.5rem;
  color: var(--ink);
  max-width: 16ch;
}
.visit .section-title em {
  font-style: italic;
  color: var(--red);
  font-variation-settings: "wght" 400;
}
.visit .prose {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 1.25rem;
  font-weight: 300;
}
.visit .prose strong { font-weight: 500; color: var(--ink); }
.visit .btn-large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.visit-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.visit-text .section-heading { max-width: 16ch; }
.visit-text .btn { margin-top: 1.5rem; }
.visit-quick {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* The "AI-friendly Contact Card" — schema.org microdata + visual card */
.contact-card {
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.18);
  position: relative;
  border: 1px solid var(--line);
}
.contact-card::before {
  content: "Identidade & contato";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.contact-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact-card-head .brand-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}
.contact-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.contact-card-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.contact-list { margin: 0; }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.contact-row:last-child { border-bottom: none; }
.contact-row dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-row dt svg { color: var(--red); }
.contact-row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}
.contact-row dd a { color: var(--ink); border-bottom: 1px solid var(--red); transition: color 0.2s; }
.contact-row dd a:hover { color: var(--red); }
.contact-row-cta { background: var(--paper-warm); margin: 0.5rem -1rem 0; padding: 0.85rem 1rem; border-radius: 6px; border-bottom: none; }
.contact-meta {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  background: var(--paper-warm);
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.contact-meta strong { color: var(--ink); font-weight: 500; }
.contact-ai-note {
  text-align: center;
  margin: 1rem 0 0;
  font-family: var(--font-body);
}
.contact-ai-note small { font-size: 0.78rem; color: var(--ink-faint); }
.contact-ai-note a { color: var(--red); }

@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-row { grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 0; }
}

/* ════════════════════════════════════════════════════════════════════
   LUDIC ELEMENTS — handwritten accents, peek-a-boo Chinooks, bouncy hover
   (sincronizado com BG)
   ════════════════════════════════════════════════════════════════════ */
:root {
  --font-script: 'Caveat', cursive;
}
.handwritten {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--red);
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}
.handwritten::before { content: "↳ "; opacity: 0.5; }

.falling-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.falling-leaves .leaf-drop {
  position: absolute;
  width: 30px; height: 30px;
  color: var(--red);
  opacity: 0.18;
  animation: leaf-fall 22s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(204,18,22,0.15));
}
.falling-leaves .leaf-drop:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 26s; }
.falling-leaves .leaf-drop:nth-child(2) { left: 28%; animation-delay: -8s; animation-duration: 32s; width: 22px; height: 22px; opacity: 0.14; }
.falling-leaves .leaf-drop:nth-child(3) { left: 48%; animation-delay: -14s; animation-duration: 28s; width: 34px; height: 34px; opacity: 0.22; }
.falling-leaves .leaf-drop:nth-child(4) { left: 67%; animation-delay: -4s; animation-duration: 30s; width: 20px; height: 20px; opacity: 0.16; }
.falling-leaves .leaf-drop:nth-child(5) { left: 85%; animation-delay: -18s; animation-duration: 24s; width: 26px; height: 26px; opacity: 0.20; }
@keyframes leaf-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

.chinook-peek {
  position: absolute;
  width: 95px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.10));
  animation: peek-wave 6s ease-in-out infinite;
  transform-origin: center bottom;
}
.chinook-peek.peek-tr { top: 24px; right: -25px; --peek-rot: 15deg; }
.chinook-peek.peek-bl { bottom: -20px; left: -15px; --peek-rot: -12deg; }
@keyframes peek-wave {
  0%, 100% { transform: rotate(var(--peek-rot, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--peek-rot, 0deg) + 4deg)) translateY(-4px); }
}

.promise .promise-pillar {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.4), box-shadow 0.4s;
}
.promise .promise-pillar:hover {
  transform: translateY(-8px) scale(1.02) rotate(-0.5deg);
}
.promise .promise-pillar:nth-child(2):hover { transform: translateY(-8px) scale(1.02) rotate(0.5deg); }
.promise .promise-pillar:nth-child(3):hover { transform: translateY(-8px) scale(1.02) rotate(-0.5deg); }

.promise .promise-mascot {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.6);
}
.promise .promise-pillar:hover .promise-mascot {
  transform: scale(1.15) rotate(-5deg);
  animation: none;
}

/* ════════════════════════════════════════════════════════════════════
   NEWSLETTER INLINE FORM (na home, antes do footer)
   (top-bar/sticky banner já existe em components.js)
   ════════════════════════════════════════════════════════════════════ */
.newsletter-block {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter, 1.5rem);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.newsletter-block::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(204,18,22,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 1rem;
}
.newsletter-inner h2 em { font-style: italic; color: var(--red-bright); }
.newsletter-inner p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(246, 233, 225, 0.8);
  margin: 0 auto 2rem;
  max-width: 52ch;
}
.newsletter-inner form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}
.newsletter-inner input {
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(246, 233, 225, 0.3);
  background: rgba(246, 233, 225, 0.08);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.newsletter-inner input::placeholder { color: rgba(246, 233, 225, 0.5); }
.newsletter-inner input:focus {
  outline: none;
  border-color: var(--red-bright);
  background: rgba(246, 233, 225, 0.12);
}
.newsletter-inner button {
  padding: 0.85rem 1.6rem;
  background: var(--red-bright);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.newsletter-inner button:hover { background: var(--red); transform: translateY(-1px); }
.newsletter-inner button:disabled { opacity: 0.6; cursor: wait; }
.newsletter-fb { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--paper); }
.newsletter-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(246, 233, 225, 0.55);
}
@media (max-width: 640px) {
  .newsletter-inner form { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   EXIT-INTENT POPUP (sincronizado com BG)
   ════════════════════════════════════════════════════════════════════ */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.exit-popup-overlay.is-open { opacity: 1; }
.exit-popup {
  background: var(--paper);
  border-radius: 28px;
  padding: 2rem 1.75rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.4);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}
.exit-popup-overlay.is-open .exit-popup { transform: scale(1); }
.exit-popup-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-faint);
  cursor: pointer;
  border-radius: 50%;
}
.exit-popup-close:hover { background: var(--paper-warm); color: var(--ink); }
.exit-popup-mascot {
  width: 100px; height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.10));
}
.exit-popup h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.exit-popup p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.exit-popup-form { display: grid; gap: 0.6rem; }
.exit-popup-form input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  background: #FFFFFF;
}
.exit-popup-form input:focus { outline: none; border-color: var(--red); }
.exit-popup-form button {
  padding: 0.9rem;
  background: var(--red);
  color: var(--paper);
  border: none;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.exit-popup-form button:hover { background: var(--red-deep); }
.exit-popup-form button:disabled { opacity: 0.6; cursor: wait; }
.exit-popup-fb { margin: 0.75rem 0 0; font-size: 0.9rem; }

/* ════════════════════════════════════════════════════════════════════
   GALLERY — "Vida na Maple Bear" (masonry-like grid)
   ════════════════════════════════════════════════════════════════════ */
.gallery {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper-warm);
  position: relative;
}
.gallery-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.gallery-head .chapter-num {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.5rem;
}
.gallery-head .handwritten {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--red);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 0.5rem;
}
.gallery-head .section-heading { max-width: 22ch; margin: 0.5rem auto 1rem; }
.gallery-head .lede { max-width: 52ch; margin: 0 auto; }

.gallery-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 1180px;
  margin-inline: auto;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 14px 28px -20px rgba(0,0,0,0.18);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.2), box-shadow 0.4s;
  aspect-ratio: 1 / 1;
}
.gallery-item-tall { aspect-ratio: 1 / 1.4; grid-row: span 2; }
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 56px -22px rgba(0,0,0,0.28);
}
.gallery-item img, .gallery-item picture {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(0.85rem, 1.5vw, 1.25rem) 1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 75%);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption {
  opacity: 1; transform: translateY(0);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item-tall { grid-row: span 1; aspect-ratio: 1/1; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item figcaption { opacity: 1; transform: translateY(0); font-size: 0.75rem; }
}
