/* ============================================================
   Carol Molinari — Site institucional
   Paleta: azul (PL), verde, amarelo/ouro, branco/creme
   ============================================================ */

:root {
  --navy: #0a2440;
  --navy-900: #061a30;
  --navy-800: #0c2c4f;
  --blue: #0e4f9c;
  --blue-600: #1462c6;
  --green: #0a9c52;
  --green-700: #067a3f;
  --yellow: #f6c500;
  --gold: #c9a227;
  --gold-200: #e7cf7e;
  --cream: #f6f3ec;
  --paper: #ffffff;
  --ink: #16222e;
  --muted: #5f6f7d;
  --line: #e6e2d8;
  --ring: rgba(201, 162, 39, 0.5);
  --shadow: 0 30px 70px -30px rgba(6, 20, 38, 0.45);
  --maxw: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

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

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  vertical-align: middle; margin-right: 12px; border-radius: 2px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 18px;
}
.section-title.light { color: #fff; }

.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.lead.light { color: rgba(255,255,255,0.82); }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.section-head.center { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--navy);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--yellow), var(--gold));
  color: var(--navy-900);
  box-shadow: 0 14px 30px -12px rgba(201, 162, 39, 0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(201, 162, 39, 0.8); }
.btn-ghost { border-color: rgba(10,36,64,0.28); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost.light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost.light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.chips li {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 8px 16px; border-radius: 999px;
  color: var(--navy); background: var(--cream); border: 1px solid var(--line);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  color: #fff; transition: color .3s ease;
}
.brand-tag {
  font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-200); font-weight: 700; margin-top: 3px; transition: color .3s ease;
}
.brand-name.light { color: #fff; }
.brand-tag.light { color: var(--gold-200); }
.brand-ribbon { display: block; width: 156px; height: 9px; margin: 5px 0 4px; }
.footer-brand.brand { align-items: flex-start; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,0.9);
  transition: color .2s ease; position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--gold)); color: var(--navy-900) !important;
}
.nav-cta svg { display: block; }

/* header quando rolado — azul escuro translúcido (mantém a logo branca) */
.site-header.scrolled {
  background: rgba(7, 22, 41, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% 12%, rgba(20,98,198,0.42), transparent 55%),
    radial-gradient(800px 500px at 12% 92%, rgba(10,156,82,0.30), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 52%, var(--navy-800) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 34px 34px; opacity: .5;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center;
  min-height: min(78vh, 720px);
}
.hero-copy { color: #fff; max-width: 620px; }
.hero-title {
  font-family: var(--serif); font-weight: 600; margin: 0 0 18px;
  font-size: clamp(52px, 8.5vw, 104px); line-height: 0.92; letter-spacing: -0.02em; color: #fff;
}
.hero-title span { display: block; color: var(--gold-200); font-weight: 500; }
.hero-lead {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px); line-height: 1.25;
  color: #fff; font-weight: 500; margin: 0 0 20px;
}
.hero-text { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 500px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 30px; padding: 26px 0 0; margin: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-badges strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-200); }
.hero-badges span { font-size: 12.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }

.hero-photo { position: relative; justify-self: center; align-self: end; }
.hero-photo-glow {
  position: absolute; inset: -4% -10% -2% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(246,197,0,0.14), transparent 70%);
}
.hero-photo img {
  height: clamp(440px, 62vh, 640px); width: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5));
}

/* faixa da bandeira */
.flag-ribbon { height: 6px; background: linear-gradient(90deg, var(--green) 0 40%, var(--yellow) 40% 68%, var(--blue) 68% 100%); }

/* ============================================================
   LAYOUT DE 2 COLUNAS
   ============================================================ */
.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 76px); align-items: center; }
.two-col.reverse { grid-template-columns: 1.1fr 0.9fr; }

.photo-frame { position: relative; text-align: center; }
/* brilho suave de "chão", reforça a sensação de flutuar */
.photo-frame::after {
  content: ""; position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  width: 66%; height: 46px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(20,98,198,0.18), transparent 74%);
}
.photo-frame.dark::after { background: radial-gradient(closest-side, rgba(246,197,0,0.14), transparent 74%); }
.photo-frame img {
  position: relative; z-index: 1; margin-inline: auto; height: clamp(420px, 56vw, 560px); width: auto;
  filter: drop-shadow(0 30px 50px rgba(6,20,38,0.22));
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 64%, transparent 96%);
}

/* ============================================================
   QUEM É
   ============================================================ */
.quem { background: var(--paper); }
.quem-copy p { color: #3c4a56; margin: 0 0 16px; }

/* ============================================================
   CREDENCIAIS
   ============================================================ */
.credenciais { background: var(--cream); padding: clamp(48px, 6vw, 72px) 0; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cred-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
  box-shadow: 0 20px 40px -34px rgba(6,20,38,0.4); position: relative; overflow: hidden;
}
.cred-card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: linear-gradient(var(--green), var(--yellow)); }
.cred-num { display: block; font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.cred-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   TRAJETÓRIA (fundo escuro)
   ============================================================ */
.trajetoria { background: linear-gradient(165deg, var(--navy-900), var(--navy) 60%, var(--navy-800)); color: #fff; }
.timeline { list-style: none; counter-reset: step; padding: 0; margin: 34px 0 0; }
.timeline li { position: relative; padding: 0 0 30px 52px; }
.timeline li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--navy-900);
  background: linear-gradient(135deg, var(--yellow), var(--gold));
}
.timeline li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 2px; background: linear-gradient(rgba(231,207,126,0.6), rgba(231,207,126,0.05)); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 6px; color: #fff; }
.timeline p { margin: 0; color: rgba(255,255,255,0.72); font-size: 15.5px; }

/* ============================================================
   BANDEIRAS (fundo escuro)
   ============================================================ */
.bandeiras { background: var(--navy); color: #fff; }
.bandeiras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flag-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.flag-card:hover { transform: translateY(-4px); border-color: rgba(231,207,126,0.5); background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)); }
.flag-card.featured {
  grid-row: span 2; grid-column: 1;
  background: linear-gradient(160deg, rgba(20,98,198,0.35), rgba(10,156,82,0.18));
  border-color: rgba(231,207,126,0.45); display: flex; flex-direction: column; justify-content: center;
}
.flag-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(246,197,0,0.18), rgba(201,162,39,0.12)); border: 1px solid rgba(231,207,126,0.4); }
.flag-ico svg { width: 28px; height: 28px; fill: var(--gold-200); stroke: var(--gold-200); stroke-width: 1.6; }
.flag-ico svg [fill="none"], .flag-ico svg path[fill="none"] { fill: none; }
.flag-card h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 8px; color: #fff; }
.flag-card.featured h3 { font-size: 27px; }
.flag-card p { margin: 0; color: rgba(255,255,255,0.72); font-size: 15px; }

/* ============================================================
   SEGURANÇA (faixa destaque)
   ============================================================ */
.seguranca { background: linear-gradient(120deg, var(--navy-900), var(--blue) 130%); color: #fff; overflow: hidden; }
.seguranca::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(700px 400px at 90% 20%, rgba(10,156,82,0.35), transparent 60%);
}
.seg-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.seg-copy .btn { margin-top: 26px; }
.seg-pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.seg-pillars li { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.seg-pillars span { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold-200); }
.seg-pillars strong { font-weight: 600; font-size: 16px; }

/* ============================================================
   FÉ
   ============================================================ */
.fe { background: var(--cream); }
.fe-copy p { color: #3c4a56; }
.pull-quote {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; color: var(--navy);
  margin: 26px 0 0; padding: 8px 0 8px 26px; border-left: 4px solid; border-image: linear-gradient(var(--green), var(--yellow)) 1; font-weight: 500;
}

/* ============================================================
   RAÍZES
   ============================================================ */
.raizes { background: linear-gradient(165deg, var(--navy), var(--navy-900)); color: #fff; }
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.family-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 26px 22px; transition: transform .2s ease, border-color .2s; }
.family-card:hover { transform: translateY(-4px); border-color: rgba(231,207,126,0.5); }
.family-card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 4px; color: #fff; }
.family-role { display: inline-block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-200); font-weight: 700; margin-bottom: 12px; }
.family-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.72); }

/* ============================================================
   CONTATO / CTA
   ============================================================ */
.contato { background: linear-gradient(150deg, var(--navy-900), var(--navy)); color: #fff; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.cta-photo { align-self: end; justify-self: center; }
.cta-photo img {
  height: clamp(360px, 46vw, 500px); width: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.4));
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: #fff; padding: 54px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; flex-direction: column; }
.footer-party { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 700; }
.footer-party img { width: 52px; height: 52px; border-radius: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.82); }
.footer-nav a:hover { color: var(--gold-200); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.55); }

/* ============================================================
   REVEAL (animação de entrada)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-photo { order: -1; }
  .hero-photo img { height: clamp(340px, 52vh, 460px); }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col .photo-frame { order: -1; max-width: 420px; margin-inline: auto; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .bandeiras-grid { grid-template-columns: repeat(2, 1fr); }
  .flag-card.featured { grid-row: auto; grid-column: 1 / -1; }
  .seg-inner { grid-template-columns: 1fr; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-photo { display: none; }
  .cta-actions { justify-content: center; }
  .section-head.center { text-align: center; }

  .nav-toggle { display: flex; z-index: 120; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 8px;
    background: rgba(6,20,38,0.98); backdrop-filter: blur(10px); padding: 92px 24px 30px;
    transform: translateY(-100%); transition: transform .35s ease; align-items: stretch;
  }
  .nav.open { transform: none; }
  .nav a { color: #fff !important; font-size: 18px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0 !important; }
  .site-header.nav-open .nav-toggle span { background: #fff !important; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cred-grid { grid-template-columns: 1fr; }
  .bandeiras-grid, .family-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 18px; }
  .hero-badges li { flex: 1 1 40%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .flag-card, .family-card { transition: none; }
}
