/* ===========================================================
   Agência Carti — Protótipo do novo site
   Aesthetic: performance-tech editorial · petróleo + laranja
   Display: Montserrat · Body: Manrope
   =========================================================== */

:root {
  /* Marca */
  --petrol-950: #0B2528;
  --petrol-900: #0E2E33;
  --petrol-800: #143A40;
  --petrol-700: #19525B;
  --petrol-600: #1F646E;
  --orange: #EB6B22;
  --orange-2: #FD881C;
  --amber: #FFCC17;
  --cream: #FAF8F3;
  --cream-2: #F1ECE2;
  --paper: #FFFFFF;
  --ink: #14201F;
  --ink-soft: #3A4847;
  --muted: #6B7877;
  --line: #E4DDD0;

  --grad-warm: linear-gradient(100deg, var(--orange) 0%, var(--amber) 100%);
  --grad-warm-soft: linear-gradient(100deg, #f7a24d 0%, #ffd95e 100%);

  --shadow-sm: 0 2px 10px rgba(11, 37, 40, .06);
  --shadow-md: 0 18px 40px -18px rgba(11, 37, 40, .35);
  --shadow-lg: 0 40px 80px -30px rgba(11, 37, 40, .45);

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

section { position: relative; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-warm);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.display {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: .98;
}
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-family: "Nexa", var(--font-display); font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }
.accent { color: var(--orange); }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  padding: .95em 1.5em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-warm);
  color: #2a1400;
  box-shadow: 0 12px 28px -12px rgba(235, 107, 34, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(235, 107, 34, .9); }

.btn-dark { background: var(--petrol-700); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--petrol-800); }

.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

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

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45em .85em; border-radius: 100px;
  background: rgba(235,107,34,.12); color: var(--orange);
  border: 1px solid rgba(235,107,34,.25);
}
.pill.is-new { background: var(--grad-warm); color: #2a1400; border-color: transparent; }
.pill.on-dark { background: rgba(255,204,23,.14); color: var(--amber); border-color: rgba(255,204,23,.3); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(250,248,243,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Fontes AUTO-HOSPEDADAS (sem Google Fonts externo → elimina render-block e melhora a
   privacidade/LGPD). Subset latino (cobre acentos PT-BR); font-display:swap.
   Nexa Bold virou SVG no logo; Nexa Light (subtítulos) agora em WOFF2. */
@font-face{font-family:'Montserrat';font-weight:600;font-style:normal;font-display:swap;src:url("assets/fonts/montserrat-600.woff2") format("woff2")}
@font-face{font-family:'Montserrat';font-weight:700;font-style:normal;font-display:swap;src:url("assets/fonts/montserrat-700.woff2") format("woff2")}
@font-face{font-family:'Montserrat';font-weight:800;font-style:normal;font-display:swap;src:url("assets/fonts/montserrat-800.woff2") format("woff2")}
@font-face{font-family:'Montserrat';font-weight:900;font-style:normal;font-display:swap;src:url("assets/fonts/montserrat-900.woff2") format("woff2")}
@font-face{font-family:'Manrope';font-weight:400;font-style:normal;font-display:swap;src:url("assets/fonts/manrope-400.woff2") format("woff2")}
@font-face{font-family:'Manrope';font-weight:500;font-style:normal;font-display:swap;src:url("assets/fonts/manrope-500.woff2") format("woff2")}
@font-face{font-family:'Manrope';font-weight:600;font-style:normal;font-display:swap;src:url("assets/fonts/manrope-600.woff2") format("woff2")}
@font-face{font-family:'Manrope';font-weight:700;font-style:normal;font-display:swap;src:url("assets/fonts/manrope-700.woff2") format("woff2")}
@font-face{font-family:"Nexa";font-weight:300;font-style:normal;font-display:swap;src:url("assets/fonts/nexa-light.woff2") format("woff2")}
.brand {
  font-size: 1.35rem; color: var(--ink);
  display: flex; align-items: center; gap: .12em;
}
.brand .dot { color: var(--orange); }
.brand-logo { height: 1.1em; width: auto; display: block; }
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav-links a { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-warm); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; display: block; transition: .25s; }
.site-header:not(.scrolled) .nav-toggle { color: #fff; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; padding: 120px 0 110px;
  background: radial-gradient(120% 120% at 80% -10%, var(--petrol-600) 0%, var(--petrol-800) 45%, var(--petrol-950) 100%);
  color: #fff; overflow: hidden;
}
.hero::before { /* glow laranja */
  content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(235,107,34,.5), rgba(235,107,34,0) 60%);
  filter: blur(20px); pointer-events: none;
}
.hero::after { /* grão */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1 { color: #fff; margin: 22px 0 20px; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 48px; flex-wrap: wrap; }
.hero-meta .num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }
.hero-meta .lbl { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 6px; }

/* card flutuante no hero */
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 26px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero-card .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.hero-card h3 { color: #fff; font-size: 1.3rem; margin: 10px 0 16px; }
.hero-bars { display: grid; gap: 14px; }
.hero-bar { display: grid; gap: 7px; }
.hero-bar .row { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.8); }
.hero-bar .track { height: 8px; border-radius: 100px; background: rgba(255,255,255,.12); overflow: hidden; }
.hero-bar .fill { height: 100%; border-radius: 100px; background: var(--grad-warm); width: 0; transition: width 1.4s var(--ease); }

/* ---------- Faixa de clientes ---------- */
.clients { background: var(--petrol-950); color: #fff; padding: 26px 0; }
.clients .container { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.clients .label { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; }
.clients .logo { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: rgba(255,255,255,.62); letter-spacing: -.01em; transition: color .2s; }
.clients .logo:hover { color: #fff; }

/* ===========================================================
   SECTIONS
   =========================================================== */
.section { padding: 100px 0; }
.section.tight { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }

.section-dark { background: var(--petrol-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,.75); }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pillar {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 32px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-warm);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar.feature { background: linear-gradient(165deg, var(--petrol-700), var(--petrol-900)); color: #fff; border-color: transparent; }
.pillar.feature h3, .pillar.feature .p-num { color: #fff; }
.pillar.feature .p-desc { color: rgba(255,255,255,.8); }
.pillar.feature .p-list li { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.14); }
.pillar.feature::before { transform: scaleX(1); }

.p-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.p-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(235,107,34,.12); color: var(--orange); }
.pillar.feature .p-icon { background: rgba(255,204,23,.16); color: var(--amber); }
.p-icon svg { width: 26px; height: 26px; }
.p-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--line); }
.pillar h3 { font-size: 1.45rem; margin-bottom: 10px; }
.p-desc { color: var(--ink-soft); margin-bottom: 18px; }
.p-list { list-style: none; display: grid; gap: 0; }
.p-list li { font-size: .92rem; font-weight: 600; color: var(--ink-soft); padding: 9px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.p-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.p-list li .tg { margin-left: auto; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--orange); background: rgba(235,107,34,.12); padding: .2em .6em; border-radius: 100px; }
.pillar.feature .p-list li .tg { color: var(--amber); background: rgba(255,204,23,.16); }

/* ---------- IA spotlight ---------- */
.ia-spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ia-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.ia-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; }
.ia-stat .big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.ia-stat .big .grad-text { display: inline; }
.ia-stat .lbl { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 8px; }

/* ---------- GEO callout ---------- */
.geo-call {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.geo-call::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,204,23,.25), transparent 65%);
}
.engine-chips { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 2; }
.engine-chip { font-weight: 700; font-size: .9rem; padding: .6em 1em; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line); display: flex; align-items: center; gap: .5em; }
.engine-chip b { color: var(--orange); }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 12px; min-height: 180px;
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case .seg { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--orange); }
.case h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.case p { font-size: .92rem; color: var(--ink-soft); margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-warm); border-radius: var(--radius-lg); padding: 60px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 36px; align-items: center; color: #2a1400;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #2a1400; }
.cta-band p { color: #5a3210; font-weight: 600; max-width: 46ch; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); }
.cta-band > * { position: relative; z-index: 2; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--petrol-950); color: rgba(255,255,255,.7); padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid .brand { color: #fff; margin-bottom: 14px; }
.footer-col h5 { font-family: var(--font-display); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; color: rgba(255,255,255,.65); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-phone, .footer-col a.footer-phone { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; text-decoration: none; display: inline-block; transition: color .2s var(--ease); }
.footer-phone:hover, .footer-col a.footer-phone:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color .2s var(--ease); }
.footer-bottom a:hover { color: var(--amber); }

/* ===========================================================
   PAGE HERO (interior pages)
   =========================================================== */
.page-hero {
  padding: 170px 0 80px; color: #fff;
  background: radial-gradient(120% 130% at 85% -20%, var(--petrol-600), var(--petrol-900) 55%, var(--petrol-950));
  position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(235,107,34,.4), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin: 18px 0 18px; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 58ch; }

/* ---------- Empresa: story / timeline ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .v-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(235,107,34,.12); color: var(--orange); margin-bottom: 16px; }
.value h4 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { font-size: .92rem; color: var(--ink-soft); }

.timeline { display: grid; gap: 0; max-width: 760px; margin-inline: auto; }
.t-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.t-item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.t-year { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-item h4 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.t-item p { color: rgba(255,255,255,.72); font-size: .95rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-box { text-align: center; padding: 20px; }
.stat-box .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.4rem); line-height: 1; }
.stat-box .lbl { color: var(--ink-soft); font-weight: 600; margin-top: 10px; font-size: .92rem; }

/* ---------- Serviços: grupo ---------- */
.svc-group { margin-bottom: 64px; }
.svc-group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.svc-group-head .idx { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--orange); }
.svc-group-head h3 { font-size: 1.7rem; }
.svc-group-head .note { color: var(--muted); font-size: .92rem; margin-left: auto; }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .96rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(235,107,34,.4); }
.svc .mk { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25em .55em; border-radius: 100px; margin-left: auto; flex: none; }
.mk.new { background: var(--grad-warm); color: #2a1400; }
.mk.keep { background: var(--cream-2); color: var(--muted); }
.mk.merge { background: rgba(25,82,91,.12); color: var(--petrol-700); }
.mk.swap { background: rgba(235,107,34,.14); color: var(--orange); }

/* ===========================================================
   Reveal animation
   =========================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
  .hero-grid, .ia-spot, .split, .geo-call, .cta-band { grid-template-columns: 1fr; }
  .pillars, .ia-stats { grid-template-columns: 1fr; }
  .cases-grid, .svc-list, .values, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { order: -1; }
  .cta-band { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 16px; right: 16px;
    flex-direction: column; align-items: flex-start; gap: 6px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { color: var(--ink) !important; padding: 8px 0; width: 100%; }
  .cases-grid, .svc-list, .values, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 70px 0; }
  .t-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-band, .geo-call { padding: 36px 26px; }
}

/* ===========================================================
   PÁGINAS INTERNAS (serviço, cases, blog, orçamento)
   =========================================================== */
.inc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.inc { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.inc .ck { width: 26px; height: 26px; border-radius: 8px; background: rgba(235,107,34,.12); color: var(--orange); display: grid; place-items: center; flex: none; margin-top: 1px; }
.inc .ck svg { width: 15px; height: 15px; }
.inc p { font-weight: 600; font-size: .95rem; }

.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; background: var(--grad-warm); color: #2a1400; flex: none; }
.step h4 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

.benefit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.benefit .b-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--petrol-700); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.benefit .b-ic svg { width: 20px; height: 20px; }
.benefit h4 { font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { font-size: .92rem; color: var(--ink-soft); }

.related-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* breadcrumb */
.crumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.crumb a { color: rgba(255,255,255,.8); }
.crumb a:hover { color: var(--amber); }

/* Form (orçamento) */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.contact-aside { display: grid; gap: 22px; align-content: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(235,107,34,.12); color: var(--orange); display: grid; place-items: center; flex: none; }
.contact-item h4 { font-size: 1rem; }
.contact-item p { color: var(--ink-soft); font-size: .95rem; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post .thumb { height: 156px; background: linear-gradient(135deg, var(--petrol-700), var(--petrol-950)); position: relative; overflow: hidden; }
.post .thumb::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(235,107,34,.4), transparent 65%); }
.post .thumb .cat { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.post .p-body { padding: 22px 24px 26px; }
.post h4 { font-size: 1.18rem; margin-bottom: 8px; line-height: 1.2; }
.post p { font-size: .92rem; color: var(--ink-soft); }
.post .meta { font-size: .8rem; color: var(--muted); margin-top: 14px; font-weight: 600; }

.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-chip { font-weight: 700; font-size: .85rem; padding: .55em 1.1em; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); transition: all .2s; cursor: pointer; }
.cat-chip:hover, .cat-chip.active { background: var(--grad-warm); border-color: transparent; color: #2a1400; }

@media (max-width: 940px) {
  .inc-grid, .form-grid, .benefit-list, .related-row, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .orc-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .inc-grid, .form-grid, .benefit-list, .related-row, .post-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ===========================================================
   ARTIGO (blog post)
   =========================================================== */
.wrap-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }
.article-hero { padding: 150px 0 54px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 85% -20%, var(--petrol-600), var(--petrol-900) 55%, var(--petrol-950)); }
.article-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(235,107,34,.4), transparent 60%); }
.article-hero .wrap-narrow { position: relative; z-index: 2; }
.article-crumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.article-crumb a { color: rgba(255,255,255,.82); }
.article-crumb a:hover { color: var(--amber); }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.72); font-size: .9rem; margin-top: 20px; font-weight: 600; }
.article-meta .dotsep { color: var(--amber); }

.article-body { padding: 56px 0 30px; }
.article-body p { margin-bottom: 20px; font-size: 1.09rem; line-height: 1.78; color: var(--ink-soft); }
.article-body .lead-p { font-size: 1.22rem; line-height: 1.65; color: var(--ink); font-weight: 500; }
.article-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 40px 0 16px; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; display: grid; gap: 11px; }
.article-body ul li, .article-body ol li { font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); padding-left: 30px; position: relative; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); }
.article-body ol { counter-reset: ol; }
.article-body ol li { counter-increment: ol; }
.article-body ol li::before { content: counter(ol); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-warm); color: #2a1400; font-size: .78rem; font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a:not(.btn) { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-cta .btn { text-decoration: none; }

.faq-q { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.12rem; margin: 24px 0 6px; }

.article-cta { margin: 40px 0 10px; border-radius: var(--radius-lg); padding: 34px; color: #fff;
  background: linear-gradient(155deg, var(--petrol-700), var(--petrol-900)); }
.article-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.article-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn-wa { background: #25D366; color: #06310f; box-shadow: 0 12px 28px -12px rgba(37, 211, 102, .85); }
.btn-wa svg { width: 18px; height: 18px; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(37, 211, 102, .95); filter: brightness(1.04); }
.btn-wa::before { content: ""; width: 18px; height: 18px; flex: none; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.05 4.91A9.82 9.82 0 0 0 12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.91-7.02zm-7.01 15.24a8.2 8.2 0 0 1-4.19-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.18 8.18 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.25-8.24a8.2 8.2 0 0 1 8.24 8.25c0 4.54-3.7 8.23-8.24 8.23zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.12-.17.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.01-.38.11-.5.11-.11.25-.29.37-.43.12-.14.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.4-.42-.56-.42h-.48c-.17 0-.43.06-.66.31-.23.25-.86.85-.86 2.07s.89 2.4 1.01 2.56c.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.14-1.18-.06-.11-.22-.17-.47-.29z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.05 4.91A9.82 9.82 0 0 0 12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.91-7.02zm-7.01 15.24a8.2 8.2 0 0 1-4.19-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.18 8.18 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.25-8.24a8.2 8.2 0 0 1 8.24 8.25c0 4.54-3.7 8.23-8.24 8.23zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.12-.17.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.01-.38.11-.5.11-.11.25-.29.37-.43.12-.14.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.4-.42-.56-.42h-.48c-.17 0-.43.06-.66.31-.23.25-.86.85-.86 2.07s.89 2.4 1.01 2.56c.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.14-1.18-.06-.11-.22-.17-.47-.29z'/%3E%3C/svg%3E") center/contain no-repeat; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* fotos institucionais (Empresa) */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(15, 30, 28, .45); border: 1px solid var(--line); }
.photo-frame img { width: 100%; display: block; }
.photo-cap { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* cases — galeria e thumbnail do card */
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-gallery img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.case-thumb { height: 172px; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(135deg, var(--petrol-700), var(--petrol-950)); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.case-tags .t { font-size: .76rem; font-weight: 700; padding: .35em .8em; border-radius: 100px; background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 640px) { .case-gallery { grid-template-columns: 1fr; } }
.empresa-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.empresa-hero-photo img { width: 100%; max-width: 480px; height: auto; display: block; margin-left: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
@media (max-width: 860px) {
  .empresa-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .empresa-hero-photo img { max-width: 340px; margin: 0 auto; }
}

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0 0; }
.article-tags .t { font-size: .78rem; font-weight: 700; padding: .4em .85em; border-radius: 100px; background: var(--cream-2); border: 1px solid var(--line); color: var(--muted); }

/* imagem de destaque do artigo + thumb do card do blog */
.article-figure { width: min(100% - 48px, 1000px); margin: -46px auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 26px 64px rgba(20,32,31,.30); position: relative; z-index: 3; }
.article-figure img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.post .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Megamenu de Serviços ---------- */
.has-mega { position: static; display: inline-flex; align-items: center; }
.site-header .container.nav { position: relative; }
.mega-trigger { display: inline-flex; align-items: center; gap: 6px; }
.mega-trigger::after { display: none; }
.mega {
  position: absolute; top: 100%; left: 50%; width: min(960px, calc(100vw - 40px));
  margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 36px 80px -24px rgba(15, 30, 28, .5);
  padding: 30px 32px 22px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  transition-delay: .18s;
  z-index: 1000;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 26px; }
.mega-col h6 { font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.site-header .mega .mega-col a { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.3; padding: 6px 0; text-decoration: none; transition: color .15s; }
.site-header .mega .mega-col a:hover { color: var(--orange); }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mega-foot span { color: var(--muted); font-size: .86rem; }
.site-header .mega .mega-all { color: var(--orange); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.site-header .mega .mega-all:hover { text-decoration: underline; }
@media (max-width: 980px) { .mega, .mega-trigger::after { display: none; } }

/* paginação do blog */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 46px; }
.pagination .pg { min-width: 44px; height: 44px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: .95rem; transition: all .2s var(--ease); text-decoration: none; }
.pagination a.pg:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.pagination .pg.is-current { background: var(--grad-warm); border-color: transparent; color: #2a1400; }
.pagination .pg.disabled { opacity: .38; cursor: not-allowed; }

