/* =========================================================
   ICF Negócios Digitais — Página Institucional
   Estilos globais compartilhados por todas as páginas.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-deep: #0b2a4a;

  --ink: #16263a;
  --ink-soft: #3c4d63;
  --muted: #62718a;

  --primary: #0b2a4a;
  --primary-600: #123a63;
  --primary-700: #0a223c;
  --accent: #c9911f;
  --accent-soft: #f4ecd8;

  --line: #e4e9f1;
  --line-soft: #eef2f8;

  --ok: #1f7a4d;
  --no: #b1493a;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06), 0 1px 3px rgba(11, 42, 74, .05);
  --shadow-md: 0 8px 24px rgba(11, 42, 74, .08);

  --maxw: 1120px;
  --maxw-narrow: 760px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", sans-serif;
}

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

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

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

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

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

ul, ol { color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-narrow); }

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); }

.section-title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }

.btn-secondary { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--primary); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--primary-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-600) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
}
.brand__name { font-size: 1.05rem; line-height: 1.1; }
.brand__name small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav .btn { padding: 10px 18px; font-size: .92rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(201, 145, 31, .10), transparent 60%),
    linear-gradient(180deg, #0b2a4a 0%, #0e3157 100%);
  color: #eaf1fb;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 92px 0 84px; max-width: 780px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero p { color: #c8d6ea; font-size: 1.18rem; max-width: 660px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .btn-secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; color: #aebfd6; font-size: .92rem; }
.hero__badges span::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Generic content ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.measure { max-width: 720px; }

/* ---------- Offer list (o que oferecemos) ---------- */
.offer-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.offer-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px 20px 58px;
  box-shadow: var(--shadow-sm);
}
.offer-list li::before {
  content: attr(data-step);
  position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.offer-list strong { color: var(--ink); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d8e0ec; }
.product__tag {
  display: inline-block; align-self: start;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-600); background: #eaf0f9;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 6px;
}
.product h3 { font-size: 1.35rem; margin-bottom: 6px; }
.product__what { margin-top: 10px; }
.product__what p { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.product__what ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.product .note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--muted);
}
.product .note strong { color: var(--ink-soft); }
.product .btn { margin-top: 20px; align-self: start; }

/* ---------- Do / Don't ---------- */
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.dd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.dd-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.dd-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.dd-card li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.dd-card li::before { position: absolute; left: 0; top: 1px; font-weight: 700; }
.dd-card--yes li::before { content: "✓"; color: var(--ok); }
.dd-card--no li::before { content: "✕"; color: var(--no); }
.dd-card--yes { border-top: 3px solid var(--ok); }
.dd-card--no { border-top: 3px solid var(--no); }

/* ---------- Support / contact block ---------- */
.support-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.info-item { padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.info-item .label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-item .value { font-weight: 600; color: var(--ink); word-break: break-word; }
.info-item .value a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: #d6deea; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding-bottom: 18px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-deep); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d6ea; max-width: 620px; margin: 0 auto 24px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.cta-band .btn-accent { background: var(--accent); color: #1c1304; }
.cta-band .btn-accent:hover { background: #d8a02e; color: #1c1304; }

/* ---------- Legal / document pages ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-hero .breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero .updated { color: var(--muted); font-size: .95rem; margin: 0; }

.doc { padding: 56px 0 72px; }
.doc h2 { font-size: 1.4rem; margin-top: 44px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.12rem; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.doc .callout {
  background: var(--accent-soft); border: 1px solid #ecddb6; border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc .entity {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 8px 0 24px; box-shadow: var(--shadow-sm);
}
.doc .entity p { margin: 0; line-height: 1.9; color: var(--ink-soft); }
.doc .entity strong { color: var(--ink); }
.doc .toc { margin-top: 24px; }
.doc .doc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-700); color: #b7c6dc; padding: 56px 0 28px; }
.site-footer a { color: #cdd9ec; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #93a7c4; font-size: .94rem; max-width: 360px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col li { color: #b7c6dc; font-size: .95rem; }
.footer-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-size: .86rem; color: #8fa2bf;
}
.footer-legal .company { line-height: 1.7; }
.footer-legal .company strong { color: #dde6f3; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .dd-grid, .info-grid, .footer-top { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .hero__inner { padding: 64px 0 58px; }
  .cta-band { padding: 36px 22px; }
  .support-card, .product { padding: 24px; }
}
