/* =========================================================
   Atenza Tecnologia — folha de estilo moderna (self-contained)
   Sem dependência de Bootstrap/jQuery. CSS próprio, responsivo.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-softer: #eaf0f7;
  --ink: #17293e;
  --ink-2: #1e3a5f;
  --muted: #55647a;
  --muted-2: #8593a6;
  --line: #e2e9f1;

  /* Paleta oficial Atenza (manual de identidade v1.0) */
  --azul-escuro: #1A365D;
  --azul-eletrico: #2B6CB0;
  --ciano: #319795;
  --laranja: #ED8936;
  --vermelho: #E53E3E;

  --navy: #1A365D;
  --navy-2: #12293f;

  --brand: #2B6CB0;      /* azul elétrico */
  --brand-2: #319795;    /* ciano tech */
  /* gradiente frio (ciano ↔ azul) — CTAs e microinterações */
  --brand-grad: linear-gradient(135deg, #2B6CB0 0%, #319795 100%);
  /* gradiente de fluxo completo (frio → quente) — assinatura da marca */
  --grad-flow: linear-gradient(120deg, #2B6CB0 0%, #319795 38%, #ED8936 78%, #E53E3E 100%);
  --accent: #ED8936;     /* laranja inovação */
  --red: #E53E3E;        /* vermelho sólido */
  --wa: #25d366;
  --wa-dark: #1ebe5b;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(12, 22, 45, .06);
  --shadow: 0 18px 45px -20px rgba(12, 22, 45, .28);
  --shadow-lg: 0 40px 80px -30px rgba(12, 22, 45, .45);

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-2); }
img, picture, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Preloader ---------- */
.js-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.js-preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; gap: 10px; }
.preloader-inner span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-2);
  animation: bounce 1s infinite ease-in-out both;
}
.preloader-inner span:nth-child(1) { animation-delay: -.32s; background: var(--azul-eletrico); }
.preloader-inner span:nth-child(2) { animation-delay: -.16s; background: var(--ciano); }
.preloader-inner span:nth-child(3) { background: var(--laranja); }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.4); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  background: var(--bg-btn); color: #fff;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(43, 108, 176, .7);
  white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(43, 108, 176, .75); }
.btn svg { width: 18px; height: 18px; }

.btn-grad { background: var(--brand-grad); border: none; }
.btn-wa { --bg-btn: var(--wa); box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .75); }
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 18px 34px -14px rgba(37, 211, 102, .8); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: #cfd6e6; box-shadow: none; }

.btn-ghost-light {
  background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22);
  box-shadow: none; backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: none; }

.btn-sm { padding: .6rem 1.05rem; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.logo { display: inline-flex; align-items: center; gap: .62rem; color: var(--ink); }
.logo .mark {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center; background: transparent;
}
.logo .mark svg { width: 40px; height: 40px; }
.logo b { font-family: var(--font-head); font-size: 1.16rem; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.logo b span { font-weight: 500; letter-spacing: .14em; color: var(--muted); }

/* Nav (desktop) */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.navlink {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 10px; position: relative;
  transition: color .2s var(--ease);
}
.nav a.navlink:hover { color: var(--brand); }
.nav a.navlink.active { color: var(--brand); }
.nav a.navlink.active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
  height: 2px; border-radius: 2px; background: var(--grad-flow);
}
.nav .nav-cta { margin-left: 8px; }

/* Contraste sobre o hero escuro (antes de rolar) */
.site-header:not(.scrolled) .logo b { color: #fff; }
.site-header:not(.scrolled) .logo b span { color: rgba(255, 255, 255, .72); }
.site-header:not(.scrolled) .nav a.navlink { color: rgba(255, 255, 255, .88); }
.site-header:not(.scrolled) .nav a.navlink:hover,
.site-header:not(.scrolled) .nav a.navlink.active { color: #fff; }
.site-header:not(.scrolled) .menu-trigger { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }

.menu-trigger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.menu-trigger svg { width: 22px; height: 22px; }
.menu-trigger .icon-close { display: none; }
.menu-trigger.active .icon-open { display: none; }
.menu-trigger.active .icon-close { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 62px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
.section-sub { font-size: 1.05rem; color: var(--muted); margin-top: .4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 430px at 10% 6%, rgba(43, 108, 176, .45), transparent 55%),
    radial-gradient(720px 500px at 90% 96%, rgba(237, 137, 54, .20), transparent 58%),
    linear-gradient(155deg, #12283f 0%, #1A365D 52%, #0f2338 100%);
  color: #eaf0ff;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(60px, 9vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 500px at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(900px 500px at 50% 0%, #000 0%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -80px; top: 40px;
  background: radial-gradient(circle, rgba(49, 151, 149, .28), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

.hero h1 { color: #fff; font-size: clamp(2.15rem, 5vw, 3.4rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.hero .lead { color: #b9c4de; font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 40ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.4rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .82rem; color: #d5def5; font-weight: 500;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px 40px; margin-top: 2.8rem; }
.hero-stats .stat b { display: block; font-size: 1.7rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .84rem; color: #93a0c0; }

/* Hero visual (SVG-ish card cluster) */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(180deg, rgba(21, 31, 60, .92), rgba(14, 22, 46, .92));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
}
.hero-card .win-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.hero-card .win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #33415f; display: block; }
.hero-card .win-dots i:nth-child(1) { background: #ff5f57; }
.hero-card .win-dots i:nth-child(2) { background: #febc2e; }
.hero-card .win-dots i:nth-child(3) { background: #28c840; }
.code-line { height: 10px; border-radius: 6px; margin: 10px 0; background: rgba(255, 255, 255, .08); }
.code-line.accent { background: linear-gradient(90deg, #2B6CB0, #319795 55%, #ED8936); }
.code-line.w-40 { width: 40%; } .code-line.w-55 { width: 55%; } .code-line.w-70 { width: 70%; }
.code-line.w-85 { width: 85%; } .code-line.w-30 { width: 30%; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-chips span {
  font-size: .78rem; color: #cbd5f0; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.float-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 15px;
  display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-lg);
}
.float-badge .fb-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(37, 211, 102, .12); color: var(--wa-dark); display: grid; place-items: center; }
.float-badge .fb-ic svg { width: 20px; height: 20px; }
.float-badge b { font-size: .9rem; display: block; line-height: 1.2; }
.float-badge span { font-size: .74rem; color: var(--muted); }

/* client strip */
.trust-strip { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: clamp(40px, 6vw, 66px); padding-top: 26px; }
.trust-strip p { text-align: center; color: #7f8bab; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; }
.trust-items span {
  color: #aeb9d6; font-weight: 500; font-size: .92rem; display: inline-flex; align-items: center; gap: .5em;
}
.trust-items span svg { width: 18px; height: 18px; color: var(--brand-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 70px); align-items: center; }
.about-visual { position: relative; }
.about-panel {
  border-radius: var(--radius-lg); padding: 34px;
  background: linear-gradient(160deg, #1A365D, #12293f); color: #fff;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.about-panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(49, 151, 149, .35), transparent 65%); }
.about-panel h3 { color: #fff; font-size: 1.3rem; position: relative; }
.about-panel p { color: #b9c4de; position: relative; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; position: relative; }
.mini-stats .ms { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px; }
.mini-stats .ms b { font-size: 1.5rem; color: #fff; display: block; letter-spacing: -.02em; }
.mini-stats .ms span { font-size: .8rem; color: #9fabca; }

.about-list { display: grid; gap: 18px; margin-top: 26px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .ck { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(43, 108, 176, .1); color: var(--brand); display: grid; place-items: center; }
.about-list .ck svg { width: 17px; height: 17px; }
.about-list b { color: var(--ink); font-weight: 600; }
.about-list p { margin: 2px 0 0; font-size: .95rem; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(43, 108, 176, .12), rgba(49, 151, 149, .12));
  color: var(--brand); margin-bottom: 18px; transition: transform .28s var(--ease);
}
.card:hover .ic { transform: scale(1.06) rotate(-3deg); }
.card .ic svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; margin: 0; }
.card .more {
  display: inline-flex; align-items: center; gap: .4em; margin-top: 16px;
  font-size: .88rem; font-weight: 600; color: var(--brand);
}
.card .more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .more svg { transform: translateX(3px); }

/* ---------- Solutions (alt bg) ---------- */
.bg-soft { background: var(--bg-soft); }
.sol-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.sol-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sol-card .num { font-size: .82rem; font-weight: 700; color: var(--brand-2); letter-spacing: .1em; }
.sol-card h3 { font-size: 1.22rem; margin: 0; }
.sol-card ul { display: grid; gap: 9px; margin-top: 4px; }
.sol-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.sol-card ul li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }

/* ---------- Tech ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tech-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tech-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #cdd7ee; }
.tech-item .tic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand); }
.tech-item .tic svg { width: 24px; height: 24px; }
.tech-item b { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.tech-item span { font-size: .76rem; color: var(--muted-2); }

/* ---------- Projects / use cases ---------- */
.proj-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-top {
  height: 150px; position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.proj-top.g1 { background: linear-gradient(135deg, #1A365D, #2B6CB0); }
.proj-top.g2 { background: linear-gradient(135deg, #2B6CB0, #319795); }
.proj-top.g3 { background: linear-gradient(135deg, #319795, #ED8936); }
.proj-top.g4 { background: linear-gradient(135deg, #ED8936, #E53E3E); }
.proj-top svg { width: 46px; height: 46px; opacity: .95; position: relative; z-index: 1; }
.proj-top::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.proj-body { padding: 22px 24px 26px; }
.proj-tag { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-2); }
.proj-body h3 { font-size: 1.12rem; margin: 8px 0 .5rem; }
.proj-body p { font-size: .92rem; margin: 0; }
.proj-metrics { display: flex; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.proj-metrics div b { display: block; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.proj-metrics div span { font-size: .76rem; color: var(--muted-2); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(49, 151, 149, .30), transparent 60%),
    radial-gradient(600px 320px at 8% 100%, rgba(237, 137, 54, .20), transparent 60%),
    linear-gradient(150deg, #1A365D, #12293f);
  color: #fff; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { color: #b9c4de; max-width: 54ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(34px, 5vw, 58px); align-items: start; }
.contact-info { display: grid; gap: 14px; margin: 26px 0 0; }
.contact-info a.row-link, .contact-info .row-link {
  display: flex; align-items: center; gap: 15px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.row-link:hover { border-color: #cdd7ee; box-shadow: var(--shadow-sm); transform: translateY(-2px); color: inherit; }
.row-link .ric { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(43, 108, 176, .1); color: var(--brand); }
.row-link.wa .ric { background: rgba(37, 211, 102, .12); color: var(--wa-dark); }
.row-link .ric svg { width: 22px; height: 22px; }
.row-link span.k { display: block; font-size: .78rem; color: var(--muted-2); }
.row-link b { color: var(--ink); font-weight: 600; font-size: .98rem; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 108, 176, .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form-card .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--muted-2); text-align: center; margin: 14px 0 0; }
#form-status { margin: 14px 0 0; font-size: .92rem; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: #cdd7ee; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  padding: 18px 40px 18px 0; transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary::after {
  content: ""; position: absolute; right: 2px; top: 24px; width: 10px; height: 10px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-body { padding: 0 0 20px; }
.faq-body p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cce4; padding: clamp(52px, 7vw, 78px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer .logo b { color: #fff; }
.site-footer .logo b span { color: #93a0c0; }
.footer-about { margin-top: 16px; font-size: .92rem; color: #93a0c0; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #c3cce4;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); border-color: transparent; }
.footer-social a svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul a { color: #93a0c0; font-size: .92rem; }
.footer-col ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: .9rem; color: #93a0c0; margin-bottom: 12px; align-items: flex-start; }
.footer-contact li svg { width: 17px; height: 17px; color: var(--brand-2); flex: 0 0 auto; margin-top: 3px; }
.footer-contact a { color: #93a0c0; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(38px, 5vw, 54px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .86rem; color: #7f8bab;
}
.footer-bottom a { color: #93a0c0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 18px 36px -8px rgba(37, 211, 102, .85); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2.2s infinite; opacity: .6;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .preloader-inner span, .wa-float::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .menu-trigger { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a.navlink { padding: .8rem .6rem; font-size: 1rem; border-radius: 10px; }
  .nav a.navlink.active::after { display: none; }
  .nav a.navlink.active { background: var(--bg-soft); }
  /* dentro do painel branco os links são sempre escuros, mesmo sobre o hero */
  .site-header:not(.scrolled) .nav a.navlink { color: var(--ink-2); }
  .site-header:not(.scrolled) .nav a.navlink:hover,
  .site-header:not(.scrolled) .nav a.navlink.active { color: var(--brand); }
  .nav .nav-cta { margin: 8px 0 0; }
  .nav .nav-cta .btn { width: 100%; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px 30px; }
  .float-badge { left: 8px; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .proj-metrics { gap: 16px; }
}
