/* Theme */
:root {
  --primary: #004FAB;
  --bg: #0b1a2b;
  --text: #0f1b2d;
  --muted: #5b6b80;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #f6f9ff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(0,79,171,.35); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { width: min(880px, 92%); }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px);
  background: rgba(255,255,255,.75); border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-weight: 700; color: var(--primary); letter-spacing: .2px; }
.site-title-mobile { display: none; font-weight: 800; color: #0f1b2d; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav-link { color: #1b2a44; font-weight: 600; opacity: .9; }
.nav-link:hover { color: var(--primary); }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); background: #fff; align-items: center; justify-content: center; gap: 5px; flex-direction: column; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #22324f; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle:focus-visible { outline: 3px solid rgba(0,79,171,.4); outline-offset: 2px; }
.nav-toggle[aria-expanded="true"] { background: #eff5ff; border-color: rgba(0,79,171,.35); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav layout */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-title-mobile { display: inline-block; margin-left: 8px; margin-right: auto; font-size: 15px; letter-spacing: .2px; color: #0e1f3f; }
  .nav { position: fixed; top: var(--mobile-nav-top, 64px); left: 0; right: 0; /* abaixo do header */
         display: none; gap: 8px; padding: 12px; background: rgba(255,255,255,.98); backdrop-filter: blur(6px);
         border-bottom: 1px solid rgba(0,0,0,.08); z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
  .site-header { position: sticky; top: 0; z-index: 120; background: #fff; }
  .header-inner { position: relative; padding: 12px 24px; }
  .nav.is-open { display: grid; }
  body.menu-open #site-nav { display: grid; }
  .nav-link { padding: 10px 8px; font-size: 16px; }
  .nav .cta--small { justify-self: start; }
}

/* Hero */
.section.hero {
  position: relative; isolation: isolate; min-height: 86vh; display: grid; place-items: center;
  /* sem wash geral; deixamos apenas o overlay direcional da esquerda */
  background: transparent;
}
.section.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  /* overlay apenas à esquerda; direita totalmente livre para a foto */
  background: linear-gradient(90deg,
    rgba(7,20,38,.72) 0%,
    rgba(7,20,38,.58) 26%,
    rgba(7,20,38,.34) 48%,
    rgba(7,20,38,0) 68%,
    rgba(7,20,38,0) 100%
  );
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 1; /* imagem plena; overlay só à esquerda */
  background-image: url("assets/images/abrace um amigo.jpeg");
  background-size: cover; background-position: center 35%;
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}
.hero-inner { padding: 92px 0 56px; position: relative; z-index: 2; }
.hero-content { max-width: 880px; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.12; margin: 0 0 14px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.22); }
.hero .highlight { color: #cfe1ff; }
.hero .subtitle { color: #e8eefc; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.hero .cta--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .cta--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.subtitle { font-size: clamp(16px, 2.4vw, 20px); color: #22314f; opacity: .95; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Eyebrow tag (desktop) */
.eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: #0e1f3f; background: #ffffff; border: 1px solid rgba(0,0,0,.10);
  text-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; line-height: 1; transform: translateZ(0);
  box-shadow: 0 8px 18px rgba(0,79,171,.28); font-weight: 700; letter-spacing: .2px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.cta:hover { transform: scale(1.03); box-shadow: 0 12px 22px rgba(0,79,171,.34); }
.cta--ghost { background: transparent; color: var(--primary); border: 2px solid rgba(0,79,171,.25); box-shadow: none; }
.cta--ghost:hover { border-color: var(--primary); }
.cta--small { padding: 10px 14px; font-weight: 700; }

/* Header CTA tune to avoid visual jump/overshadow */
.site-header .cta {
  background: transparent;
  color: var(--primary);
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid rgba(0,79,171,.28);
  box-shadow: none;
  transform: none;
}
.site-header .cta:hover {
  background: rgba(0,79,171,.06);
  border-color: rgba(0,79,171,.45);
}
.site-header .cta:active { background: rgba(0,79,171,.10); }

.scroll-indicator { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: #3c4a66; font-size: 12px; opacity: .8; display: inline-flex; align-items: center; gap: 6px; }

/* Impact phrase */
.section.impacto { padding: 42px 0 10px; }
.impact-quote {
  text-align: center; font-size: clamp(18px, 3.2vw, 28px); font-weight: 700; color: #12223c;
  background: #fff; border-radius: var(--radius); padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow);
}

/* Video */
.section.video { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 36px); margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); }
.video-frame { 
  position: relative; 
  max-width: 400px; 
  margin: 0 auto; 
  aspect-ratio: 9/16; 
  background: #000; 
  border-radius: 14px; 
  overflow: hidden; 
  box-shadow: var(--shadow); 
}
.video-frame iframe { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

/* Steps */
.section.passos { padding: 56px 0; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: #fff; border-radius: 12px; padding: 18px 18px; box-shadow: 0 6px 18px rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.06); transition: border-color .18s ease, box-shadow .18s ease; }
.step:hover { border-color: rgba(0,79,171,.18); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.step-num { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(180deg, rgba(0,79,171,.12), rgba(0,79,171,.06)); color: #0b3a7a; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.step h3 { margin: 4px 0 8px; color: #0E2242; font-weight: 700; line-height: 1.25; }
.step p { margin: 0; color: #3A4A66; opacity: .92; line-height: 1.65; }
.step-body h3 + p { border-top: 1px solid rgba(0,0,0,.06); padding-top: 8px; }
.step-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.section.passos .cta { padding: 12px 16px; box-shadow: 0 6px 14px rgba(0,79,171,.18); }
.section.passos .cta:hover { box-shadow: 0 10px 18px rgba(0,79,171,.22); }
.link-external[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Copy CNPJ button */
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-left: 8px; vertical-align: middle;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12); background: #fff; color: #0e2242;
  cursor: pointer; transition: background .18s ease, transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.copy-btn:hover { background: #f3f7ff; border-color: rgba(0,79,171,.28); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.copy-btn:active { transform: translateY(1px) scale(.98); }
.copy-btn.is-copied { background: #e8f2ff; border-color: rgba(0,79,171,.45); color: var(--primary); }
.copy-btn .check-icon { display: none; }
.copy-btn.is-copied .copy-icon { display: none !important; }
.copy-btn.is-copied .check-icon { display: inline !important; }
.section.passos .cta--nfp { margin-top: 10px; }
@media (max-width: 420px) {
  .copy-btn { width: 32px; height: 32px; border-radius: 10px; }
}

/* Impact detailed */
.section.impacto-detalhe { padding: 50px 0 70px; }
.impact-text h2 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 36px); }
.impact-text p { margin: 0 0 18px; color: #33415e; }
.impact-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 20px; display: grid; place-items: center; }
.impact-card img { width: 220px; height: auto; opacity: .95; }

/* Footer */
.site-footer { background: #0c1b32; color: #e6ecff; margin-top: 30px; }
.footer-inner { padding: 28px 0; }
.footer-cta { display: grid; gap: 12px; justify-items: start; padding: 8px 0 18px; }
.footer-cta h3 { margin: 0; font-size: clamp(18px, 2.6vw, 24px); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.footer-col h4 { margin: 0 0 10px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: #cfe1ff; }
.footer-bottom { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; font-size: 14px; color: #c5d3ef; opacity: .9; }

/* Social links with icons */
.social-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; color: #cfe1ff; padding: 6px 8px; border-radius: 10px; transition: background .18s ease, transform .18s ease; }
.social-links a:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* CTA subtle pulse (can be toggled via class) */
.cta.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Subtle animations starting states */
.reveal { opacity: 0; transform: translateY(12px); }

/* Responsiveness */
@media (max-width: 700px) {
  .header-inner { padding: 12px 0; }
  .brand-name { display: none; }
  .nav { gap: 12px; }
  /* Hero Option A: foto inteira em cima + painel branco abaixo */
  .section.hero { display: block !important; min-height: auto; place-items: initial; overflow: hidden; }
  .section.hero::after { display: none; }
  /* Foto retangular reduzida */
  .hero-bg { position: static !important; display: block; width: 100%; height: 42vh; min-height: 260px; background-position: center 28%; opacity: 1; }
  /* Card sobreposto com glassmorphism */
  .hero-inner { position: relative; z-index: 2; padding: 18px; background: rgba(255,255,255,.60); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(255,255,255,.65); border-radius: 16px; box-shadow: 0 12px 26px rgba(10,24,46,.18);
                margin: -32px 12px 20px; }
  .hero h1 { font-size: clamp(24px, 6.2vw, 32px); line-height: 1.22; color: #0E2242; text-shadow: none; }
  .subtitle { font-size: 15px; }
  .hero .subtitle { color: #3A4A66; opacity: .98; text-shadow: none; }
  .hero .highlight { color: var(--primary); }
  .hero-content > * { margin-left: 8px; margin-right: 8px; }
  .eyebrow { display: inline-block; margin: 0 8px 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #0e1f3f; background: #eef4ff; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
  /* Video responsive adjustments */
  .video-frame { max-width: 320px; }
  .two-col { gap: 20px; }
  .impact-card img { width: 180px; }
}

@media (max-width: 420px) {
  .container { width: min(100%, 92%); }
  .hero-ctas { gap: 10px; }
  .cta { padding: 12px 16px; font-size: 14px; }
  /* ≤420px: apenas ajustes finos sobre a base ≤700px */
  .hero-bg { height: 45vh; min-height: 260px; background-position: center 28%; }
  .hero-inner { padding: 16px; margin: -28px 10px 18px; border-radius: 16px; }
  .hero h1 { font-size: 22px; line-height: 1.22; }
  .subtitle { font-size: 14px; }
  .hero-content > * { margin-left: 8px; margin-right: 8px; }
  .eyebrow { padding: 4px 10px; font-size: 12px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .cta { width: 100%; text-align: center; border-radius: 14px; }
  /* Video adjustments for very small screens */
  .video-frame { max-width: 280px; }
  .step { grid-template-columns: 36px 1fr; }
  .step-num { width: 36px; height: 36px; font-size: 16px; }
  .step-actions { justify-content: stretch; }
  .section.passos .cta { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  .cta { padding: 10px 14px; font-size: 13px; }
  .hero h1 { font-size: 22px; }
  .subtitle { font-size: 14px; }
}
