/* ===================================================================
   IDX Apoio Administrativo — Light theme
   =================================================================== */

:root {
  /* Brand */
  --azul:        #2f6fed;
  --azul-escuro: #1d4ed8;
  --teal:        #0ea5a4;
  --verde:       #22b07d;
  --amber:       #f59e0b;

  /* Surfaces (light) */
  --bg:        #ffffff;
  --bg-soft:   #f4f7fb;
  --bg-soft-2: #eef3fa;
  --card:      #ffffff;
  --border:    #e6ecf4;
  --border-2:  #d6e0ee;

  /* Text */
  --ink:    #16233a;
  --text:   #3c4a60;
  --muted:  #6b7891;
  --muted-2:#93a0b5;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--azul) 0%, var(--teal) 100%);
  --grad-soft:  linear-gradient(135deg, #eaf1ff, #e6faf7);

  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow:    0 18px 40px -22px rgba(28, 51, 92, .35);
  --shadow-sm: 0 8px 24px -16px rgba(28, 51, 92, .4);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; color: var(--ink); line-height: 1.18; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[data-lucide] { stroke-width: 2; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.accent-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

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

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 24px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 600; font-size: .95rem; font-family: "Inter";
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.btn i { width: 18px; height: 18px; }
.btn-sm { --pad-y: 9px; --pad-x: 18px; font-size: .88rem; }
.btn-lg { --pad-y: 15px; --pad-x: 30px; font-size: 1rem; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 26px -12px rgba(47,111,237,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(47,111,237,.8); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--azul); color: var(--azul); }

.btn-white { background: #fff; color: var(--azul); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.4); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(28,51,92,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(47,111,237,.3)); }
.brand-name { font-family: "Poppins"; font-weight: 700; font-size: 1.32rem; color: var(--ink); line-height: 1; letter-spacing: .02em; }
.brand-name small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-list a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .94rem; transition: color .2s, background .2s; }
.nav-list a:hover { color: var(--azul); background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border-2); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; background: radial-gradient(900px 500px at 80% -10%, #e9f1ff, transparent 60%), radial-gradient(700px 500px at 0% 10%, #e6faf6, transparent 55%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--azul-escuro); background: #eaf1ff; border: 1px solid #d6e4ff; margin-bottom: 22px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14,165,164,.18); }

.hero-title { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text); font-weight: 500; }
.hero-points i { width: 18px; height: 18px; color: var(--teal); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.hc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hc-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--grad-soft); color: var(--azul); }
.hc-ico i { width: 22px; height: 22px; }
.hc-head strong { display: block; color: var(--ink); font-family: "Poppins"; font-size: 1.02rem; }
.hc-head small { color: var(--muted-2); font-size: .8rem; }
.hc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.hc-list li { display: flex; align-items: center; gap: 11px; font-size: .95rem; color: var(--text); }
.hc-check { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--border-2); color: transparent; }
.hc-check i { width: 14px; height: 14px; }
.hc-check.done { background: var(--teal); border-color: var(--teal); color: #fff; }
.hc-progress { height: 8px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; margin-bottom: 8px; }
.hc-progress span { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); }
.hc-foot { color: var(--muted-2); font-size: .8rem; }

.hero-chip { position: absolute; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); animation: bob 5s var(--ease) infinite alternate; }
.hero-chip strong { display: block; color: var(--ink); font-family: "Poppins"; font-size: 1.05rem; line-height: 1; }
.hero-chip small { color: var(--muted); font-size: .78rem; }
.chip-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; }
.chip-ico i { width: 20px; height: 20px; }
.hero-chip-1 { top: 8%; left: -34px; }
.hero-chip-1 .chip-ico { background: var(--azul); }
.hero-chip-2 { bottom: 6%; right: -28px; animation-delay: -2.5s; }
.hero-chip-2 .chip-ico { background: var(--amber); }
@keyframes bob { to { transform: translateY(-12px); } }

/* ---------- Trust ---------- */
.trust { padding: 26px 0; background: var(--bg-soft); border-block: 1px solid var(--border); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 24px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.trust-item i { width: 22px; height: 22px; color: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-tag { display: inline-block; padding: 6px 15px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--teal); background: #e3faf7; border: 1px solid #c4f0eb; margin-bottom: 16px; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-content .section-tag, .about-content .section-title { margin-left: 0; }
.about-content > p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; }
.about-list li { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 500; }
.about-list i { width: 20px; height: 20px; flex: none; color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; }

.about-illus { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.about-illus::before { content: ""; position: absolute; width: 64%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.ai-ico { position: absolute; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--azul); animation: bob 6s var(--ease) infinite alternate; }
.ai-ico i { width: 30px; height: 30px; }
.ai-1 { top: 14%; left: 16%; color: var(--azul); }
.ai-2 { top: 18%; right: 14%; color: var(--teal); animation-delay: -1.5s; }
.ai-3 { bottom: 18%; left: 14%; color: var(--amber); animation-delay: -3s; }
.ai-4 { bottom: 14%; right: 16%; color: var(--verde); animation-delay: -4.5s; }
.about-badge { position: relative; z-index: 2; text-align: center; background: var(--grad-brand); color: #fff; padding: 18px 26px; border-radius: 16px; box-shadow: var(--shadow); }
.about-badge strong { display: block; font-family: "Poppins"; font-size: 1.5rem; line-height: 1; }
.about-badge small { font-size: .82rem; opacity: .9; }

/* ---------- Cards (services) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card-ico { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--grad-soft); color: var(--azul); margin-bottom: 18px; }
.card-ico i { width: 28px; height: 28px; }
.card:hover .card-ico { background: var(--grad-brand); color: #fff; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.diff { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s; }
.diff:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.diff-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); color: var(--teal); margin-bottom: 16px; }
.diff-ico i { width: 26px; height: 26px; }
.diff h4 { font-size: 1.08rem; margin-bottom: 8px; }
.diff p { color: var(--muted); font-size: .94rem; }

/* ---------- Stats ---------- */
.stats-section { padding: clamp(50px, 7vw, 80px) 0; background: var(--grad-brand); position: relative; overflow: hidden; }
.stats-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.18), transparent 60%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: "Poppins"; font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.2rem); color: #fff; line-height: 1; margin-bottom: 6px; }
.stat p { color: rgba(255,255,255,.88); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step-num { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-brand); color: #fff; font-family: "Poppins"; font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; transition: transform .35s var(--ease), box-shadow .35s; }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stars { color: var(--amber); letter-spacing: 2px; }
.testimonial blockquote { color: var(--ink); font-size: 1.02rem; }
.testimonial-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.testimonial-author strong { display: block; color: var(--ink); font-size: .98rem; }
.testimonial-author small { color: var(--muted); font-size: .84rem; }

/* ---------- CTA ---------- */
.cta-section { padding: clamp(50px, 7vw, 90px) 0; }
.cta-card { position: relative; text-align: center; padding: clamp(44px, 7vw, 76px) 30px; border-radius: var(--radius-lg); background: var(--grad-brand); color: #fff; overflow: hidden; box-shadow: var(--shadow); }
.cta-card::before { content: ""; position: absolute; top: -50%; right: -10%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); }
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 540px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: .94rem; margin: 16px 0 18px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--text); transition: all .25s var(--ease); }
.social i { width: 18px; height: 18px; }
.social:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); }
.footer-col h4 { font-size: .98rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { color: var(--muted); font-size: .92rem; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col i { width: 16px; height: 16px; }
.footer-col a:hover { color: var(--azul); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p, .footer-legal a { color: var(--muted-2); font-size: .86rem; }
.footer-legal a:hover { color: var(--azul); }

/* ---------- To-top ---------- */
.to-top { position: fixed; bottom: 26px; right: 26px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; background: var(--grad-brand); color: #fff; border: none; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top i { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal]:nth-child(2) { transition-delay: .06s; }
.reveal[data-reveal]:nth-child(3) { transition-delay: .12s; }
.reveal[data-reveal]:nth-child(4) { transition-delay: .18s; }
.reveal[data-reveal]:nth-child(5) { transition-delay: .24s; }
.reveal[data-reveal]:nth-child(6) { transition-delay: .30s; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .cards, .diff-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease); padding: 14px 0 22px; }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 2px; padding-inline: 24px; }
  .nav-list a { padding: 13px 14px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .trust-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .cards, .diff-grid, .testimonials, .steps, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  .hero-chip-1 { left: -10px; }
  .hero-chip-2 { right: -8px; }
  .trust-item { font-size: .9rem; }
}
