/*
 * shared.css — Escola do Condomínio
 * Estilos comuns a todas as páginas do ecossistema www/
 * Fonte de verdade: STYLE.md
 * Gerado: Fase 1 · Maio 2026
 */

/* ── MATERIAL SYMBOLS OUTLINED ── */
/* Ícones minimalistas Google Fonts — opsz 24, peso 300, outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  color: currentColor;
}

/* ── SKIP NAVIGATION (F14 acessibilidade) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1.25rem;
  background: var(--navy);
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  transition: top .15s ease;
}
.skip-nav:focus { top: 0; outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* TOKENS:START — gerado de tokens.json por scripts/gen-tokens.mjs · NÃO EDITAR À MÃO */
:root {
  /* Marca */
  --navy:         #1a3c6e;
  --navy-dark:    #0f2548;
  --navy-light:   #e8eef7;
  --gold:         #ea6c1e;
  --gold-dark:    #c2540a;
  --gold-light:   #fff4ed;

  /* Texto */
  --ink:          #111827;
  --ink-soft:     #374151;
  --ink-muted:    #6b7280;
  --ink-hint:     #6b7280; /* F12/WCAG AA: #6b7280 dá contraste 4.63:1 (o antigo #9ca3af era 2.85:1). Não clarear. */

  /* Fundos */
  --white:        #ffffff;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;

  /* Semânticos — disponíveis em todas as páginas */
  --green:        #065f46;
  --green-mid:    #059669;
  --green-light:  #ecfdf5;
  --red:          #7f1d1d;
  --red-mid:      #dc2626;
  --red-light:    #fef2f2;
  --red-border:   #fecaca;
  --yellow:       #92400e;
  --yellow-mid:   #d97706;
  --yellow-light: #fffbeb;
  --amber:        #d97706;

  /* Tipografia */
  --sans:         'DM Sans', system-ui, sans-serif;
  --display:      'Sora', 'DM Sans', system-ui, sans-serif;
  --mono:         'DM Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Forma */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --radius-pill:  99px;

  /* Sombras */
  --shadow-sm:    0 1px 3px rgba(15,37,72,.04);
  --shadow-md:    0 14px 30px rgba(15,37,72,.10);
  --shadow-lg:    0 24px 60px rgba(15,37,72,.16);
}
/* TOKENS:END */

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
/* Nova identidade: títulos em Sora (display) com tracking negativo. */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }

/* ── LAYOUT ── */
.container       { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container--sm   { max-width: 760px;  margin: 0 auto; padding: 0 2rem; }
.container--wide { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .75rem;
  border-radius: 99px;
}
.tag--navy  { background: var(--navy-light);            color: var(--navy);              }
.tag--gold  { background: var(--gold-light);            color: var(--gold);              }
.tag--green { background: var(--green-light);           color: var(--green);             }
.tag--gray  { background: var(--gray-100);              color: var(--ink-muted);         }
.tag--white { background: rgba(255,255,255,.12);        color: rgba(255,255,255,.85);
              border: 1px solid rgba(255,255,255,.18);                                   }

/* ── BOTÕES — todos são pílula (STYLE.md) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: all .15s ease; white-space: nowrap; border: none;
}

/* Primary (navy) */
.btn--primary      { background: var(--navy); color: white; padding: .85rem 2rem; box-shadow: var(--shadow-sm); }
.btn--primary:hover{ background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary-lg   { background: var(--navy); color: white; padding: 1.1rem 2.5rem; font-size: 17px; box-shadow: 0 8px 28px rgba(26,60,110,.32); }
.btn--primary-lg:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26,60,110,.4); }

/* Navy (alias para CTAs grandes) */
.btn--navy     { background: var(--navy); color: white; padding: 1.1rem 2.5rem; font-size: 17px; box-shadow: 0 8px 28px rgba(26,60,110,.32); }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26,60,110,.4); }
.btn--navy-sm  { background: var(--navy); color: white; padding: .75rem 1.5rem; font-size: 14.5px; box-shadow: 0 2px 8px rgba(26,60,110,.2); }
.btn--navy-sm:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* Gold */
.btn--gold     { background: var(--gold); color: white; padding: 1.1rem 2.5rem; font-size: 17px; box-shadow: 0 8px 28px rgba(234,108,30,.32); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(234,108,30,.38); }
.btn--gold-sm  { background: var(--gold); color: white; padding: .75rem 1.75rem; box-shadow: var(--shadow-sm); }
.btn--gold-sm:hover { background: var(--gold-dark); }
.btn--gold-lg  { background: var(--gold); color: white; padding: 1.15rem 2.75rem; font-size: 18px; box-shadow: 0 10px 32px rgba(234,108,30,.35); }
.btn--gold-lg:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* Outline */
.btn--outline      { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: .85rem 2rem; }
.btn--outline:hover{ background: var(--navy-light); }
.btn--outline-lg   { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.5); padding: 1.1rem 2.5rem; font-size: 17px; }
.btn--outline-lg:hover { background: rgba(255,255,255,.1); border-color: white; }

/* Pulse ring (CTA principal de cada seção) */
.pulse-ring { position: relative; }
.pulse-ring::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: inherit; border: 2px solid var(--gold);
  animation: pulse-ring-anim 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-link  {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; padding: .55rem 1rem;
  border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--navy); background: var(--navy-light); }
.nav-right      { display: flex; align-items: center; gap: .75rem; }

/* Logo SVG (desktop + mobile) */
.nav-logo         { display: flex; align-items: center; text-decoration: none; }
.nav-logo-desktop { display: flex; }
.nav-logo-mobile  { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: .4rem; border-radius: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 1px; transition: all .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menu mobile */
.nav-mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 99;
  background: white; border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 1.5rem 1.75rem;
  flex-direction: column; gap: .35rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-size: 16px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; padding: .75rem 1rem;
  border-radius: var(--radius-pill);
}
.nav-mobile-link:hover { background: var(--navy-light); color: var(--navy); }
.nav-mobile-cta { margin-top: .75rem; justify-content: center; }

/* Footer SVG logo override */
.footer-brand-icon { width: auto; height: 36px; background: transparent; border-radius: 0; display: flex; align-items: center; padding: 0; font-size: 0; }
.footer-logo-mark  { width: auto; height: 36px; background: transparent; border-radius: 0; display: flex; align-items: center; padding: 0; font-size: 0; }

/* ── ANIMAÇÕES ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes check-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}
@keyframes pulse-ring-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.08); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.float-animation { animation: float 6s ease-in-out infinite; }
.check-pulse     { animation: check-pulse 2s ease-in-out infinite; }

/* ── HERO CHIP ── */
.hero-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 99px;
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.hero-chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; flex-shrink: 0;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
}
.gradient-text--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
}

/* ── SEÇÕES ── */
.section          { padding: 5rem 0; }
.section--alt     { background: var(--gray-50); }
.section--navy    { background: var(--navy); }
.section-header   { margin-bottom: 3rem; }
.section-header .tag { margin-bottom: 1rem; }
.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -.025em; color: var(--ink); line-height: 1.2; margin-bottom: 1rem;
}
.section-header h2 span { color: var(--navy); }
.section-header p  { font-size: 1.0625rem; color: var(--ink-soft); max-width: 540px; line-height: 1.7; }

/* ── HERO FLOATING BADGES ── */
.hero-card-wrapper { position: relative; }
.hero-floating-badge {
  position: absolute; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 14px;
  padding: .75rem 1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .75rem;
  z-index: 3; animation: float 6s ease-in-out infinite;
}
.hero-floating-badge--top    { top: -16px; right: -20px; animation-delay: 1s; }
.hero-floating-badge--bottom { bottom: -20px; left: -20px; animation-delay: 2s; }
.hero-floating-badge-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-floating-badge-icon--green { background: var(--green-light); color: var(--green); }
.hero-floating-badge-icon--navy  { background: var(--navy-light);  color: var(--navy);  }
.hero-floating-badge-icon--gold  { background: var(--gold-light);  color: var(--gold);  }
.hero-floating-badge-label { font-size: 11px; color: var(--ink-muted); line-height: 1.2; margin-bottom: .15rem; }
.hero-floating-badge-value { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }

/* ── TRUST BAR ── */
.trust-bar   { background: var(--navy-dark); padding: 3rem 0; }
.trust-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.trust-num   { font-size: 2.6rem; font-weight: 800; color: white; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust-num span.gold { color: var(--gold); }
.trust-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: .5rem; line-height: 1.4; }

/* ── DEPOIMENTOS ── */
.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.testimonial:hover       { box-shadow: var(--shadow-md); }
.testimonial-stars       { color: #fbbf24; font-size: 14px; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-quote       { font-size: .93rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author      { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar      { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.testimonial-avatar--1   { background: var(--navy-light); color: var(--navy); }
.testimonial-avatar--2   { background: var(--gold-light);  color: var(--gold); }
.testimonial-avatar--3   { background: #ede9fe;            color: #7c3aed;     }
.testimonial-name        { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.testimonial-meta        { font-size: 12px; color: var(--ink-muted); margin-top: .15rem; }

/* ── CTA COM ORBS ── */
.cta-orb-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 16px; padding: 4rem 2rem;
  position: relative; overflow: hidden; text-align: center;
}
.cta-orb-box * { color: white; position: relative; z-index: 1; }
.cta-orb-box h2 { color: white !important; }
.cta-orb-box p  { color: rgba(255,255,255,.75) !important; }
.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.cta-orb--1 { top: -60px; left: -40px; width: 280px; height: 280px; background: rgba(234,108,30,.18); }
.cta-orb--2 { bottom: -60px; right: -40px; width: 320px; height: 320px; background: rgba(14,165,233,.20); }

/* ── FOOTER EXPANDIDO (4 colunas) ── */
footer.footer-expanded { background: var(--navy-dark); padding: 3.5rem 0 1.75rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-col-title  { font-size: 14px; font-weight: 700; color: white; margin-bottom: 1rem; }
.footer-col-list   { list-style: none; padding: 0; margin: 0; }
.footer-col-list li { margin-bottom: .65rem; }
.footer-col-list a  { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.footer-col-list a:hover { color: white; }
.footer-about      { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65; margin-top: 1rem; max-width: 320px; }
.footer-social     { display: flex; gap: .55rem; margin-top: 1.25rem; }
.footer-social a   {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; text-decoration: none;
}
.footer-social a:hover  { background: var(--navy); color: white; }
.footer-bottom          { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-legal           { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-links    { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a  { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.footer-bottom-links a:hover { color: white; }

/* ── WAITLIST FORM ── */
.waitlist-form   { display: flex; flex-wrap: wrap; gap: .5rem; }
.waitlist-input  {
  flex: 1 1 160px; min-width: 0;
  padding: .6rem .9rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: var(--sans);
  font-size: 13px; color: var(--ink); background: var(--white);
  transition: border-color .15s;
}
.waitlist-input:focus { outline: none; border-color: var(--navy); }
.waitlist-input::placeholder { color: var(--ink-hint); }
.waitlist-success {
  font-size: 13px; color: var(--green); font-weight: 600;
  display: none; align-items: center; gap: .4rem;
}

/* ══ NOVA IDENTIDADE ══════════════════════════════════════════════════
   Eyebrow (rótulo mono caixa-alta) + Score Gauge (anel conic-gradient),
   o elemento-assinatura do método ISC. Espelha o ScoreGauge da plataforma.
   ═══════════════════════════════════════════════════════════════════════ */

/* Eyebrow — rótulo de seção em DM Mono, caixa-alta */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.eyebrow--gold { color: var(--gold-dark); }
.eyebrow--on-navy { color: rgba(255,255,255,.65); }

/* Score Gauge — anel conic-gradient + miolo branco com número em Sora.
   Diâmetro/preenchimento controlados por --gauge-size e --gauge-pct (0..100)
   nas custom properties inline: style="--gauge-size:190px;--gauge-pct:73". */
.gauge {
  --gauge-size: 140px;
  --gauge-pct: 0;
  --gauge-color: var(--gold);
  width: var(--gauge-size);
  height: var(--gauge-size);
  border-radius: 50%;
  background: conic-gradient(
    var(--gauge-color) 0% calc(var(--gauge-pct) * 1%),
    #eef1f5 calc(var(--gauge-pct) * 1%) 100%
  );
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gauge__inner {
  width: 74.7%; height: 74.7%;
  border-radius: 50%;
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.gauge__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(var(--gauge-size) * .3);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}
.gauge__cap {
  font-weight: 600;
  font-size: calc(var(--gauge-size) * .066);
  color: var(--ink-muted);
  margin-top: calc(var(--gauge-size) * .02);
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .trust-grid       { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .trust-num        { font-size: 2rem; }
  .depoimentos-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links          { display: none !important; }
  .nav-desktop-cta    { display: none !important; }
  .nav-hamburger      { display: flex !important; }
  .nav-logo-desktop   { display: none; }
  .nav-logo-mobile    { display: flex; }
  .btn--gold   { padding: .95rem 1.75rem; font-size: 16px; }
  .btn--outline{ padding: .8rem  1.5rem;  font-size: 15px; }
}
@media (max-width: 640px) {
  .section        { padding: 3.5rem 0; }
  .waitlist-form  { flex-direction: column; }
  .waitlist-form .btn { width: 100%; justify-content: center; }
  .waitlist-input { width: 100%; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  nav                   { padding: 0 1rem; }
  .container,
  .container--sm,
  .container--wide      { padding: 0 1rem; }
  .hero-floating-badge  { display: none; }
  .footer-bottom        { flex-direction: column; text-align: center; }
}
