/* ABF Engenharia Elétrica — folha de estilo principal
   Layout: seções claras e frias alternando com blocos grafite; o amarelo da marca
   marca apenas ações e dados. Linguagem visual de prancha técnica (grid de projeto,
   rótulos em mono, códigos de serviço). */
@font-face{font-family:"Archivo";src:url("../fonts/archivo-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo";src:url("../fonts/archivo-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo";src:url("../fonts/archivo-latin-800-normal.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}

:root {
  --ink: #0c1620;          /* grafite azulado: hero, rodapé, blocos escuros */
  --ink-2: #13212d;
  --ink-line: rgba(255, 255, 255, .1);
  --paper: #f3f5f6;        /* fundo claro frio */
  --surface: #ffffff;
  --line: #dde3e7;
  --text: #14212c;
  --muted: #5a6874;
  --muted-on-ink: #a6b3bd;
  --amber: #f6b40e;        /* amarelo ABF */
  --amber-deep: #e8900c;   /* laranja ABF */
  --amber-soft: #fff4d6;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(12, 22, 32, .06), 0 12px 32px -12px rgba(12, 22, 32, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.3vw, 3.55rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 750; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink p { color: var(--muted-on-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--amber); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.section--ink .section-head p { color: var(--muted-on-ink); }
.section-head--split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Botões */
.btn {
  --bg: var(--amber); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #ffc534; box-shadow: 0 10px 24px -10px rgba(246, 180, 14, .7); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--dark:hover { background: #1c2e3d; box-shadow: none; }
.btn--line { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--text); }
.link-arrow svg { width: 18px; height: 18px; color: var(--amber-deep); transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Barra superior + cabeçalho */
.topbar { background: #08111a; color: var(--muted-on-ink); font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--amber); }
.topbar__group { display: flex; gap: 22px; align-items: center; }
@media (max-width: 760px) { .topbar__addr, .topbar__mail { display: none !important; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 22, 32, .92);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
  color: #fff;
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: #e9eef2;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__link[aria-current="page"] { color: var(--amber); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav__item--mega { position: static; }
.nav__cta { margin-left: 14px; min-height: 44px; padding: 0 20px; font-size: .92rem; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); color: var(--text);
  border-top: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(12, 22, 32, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega, .nav__item--mega.is-open .mega {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__item--mega:hover > .nav__link svg, .nav__item--mega.is-open > .nav__link svg { transform: rotate(180deg); }
.mega__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 260px; gap: 32px; padding-top: 32px; padding-bottom: 36px; max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto; }
@media (min-width: 1081px) {
  .nav, .nav__list { height: 100%; }
  .nav__item { height: 100%; display: flex; align-items: center; }
}
@media (min-width: 1081px) and (max-width: 1240px) { .mega__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega__aside { display: none; } }
.mega__col h4 { font-size: .95rem; margin-bottom: 14px; }
.mega__col h4 a { text-decoration: none; display: flex; gap: 10px; align-items: baseline; }
.mega__col h4 a:hover { color: var(--amber-deep); }
.mega__col h4 span { font-family: var(--font-mono); font-size: .72rem; color: var(--amber-deep); font-weight: 500; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__col li a { display: block; padding: 6px 0; font-size: .93rem; color: var(--muted); text-decoration: none; }
.mega__col li a:hover { color: var(--text); }
.mega__aside { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.mega__aside p { color: var(--muted-on-ink); font-size: .92rem; line-height: 1.55; }
.mega__aside .btn { min-height: 44px; justify-self: start; font-size: .9rem; }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--ink-line); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-top, calc(var(--header-h) + 38px)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 18px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; visibility: hidden;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 1.1rem; border-bottom: 1px solid var(--ink-line); }
  .nav__link:hover { background: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; color: #fff; box-shadow: none; border: 0; }
  .nav__item--mega:hover .mega { display: none; }
  .nav__item--mega.is-open .mega { display: block; }
  .mega__inner { grid-template-columns: 1fr; gap: 22px; padding: 18px 4px 22px; }
  .mega__col li a { color: var(--muted-on-ink); }
  .mega__aside { display: none; }
  .nav__cta { margin: 26px 0 0; }
}

/* Hero da home */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(246, 180, 14, .16), transparent 62%);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 { margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #c3cdd5; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; list-style: none; padding: 0; }
.hero__chips li { font-family: var(--font-mono); font-size: .76rem; color: #cfd8df; border: 1px solid var(--ink-line); padding: 6px 12px; border-radius: 999px; }
.diagram { width: 100%; height: auto; }
.diagram .wire { fill: none; stroke: #3a4d5e; stroke-width: 2; }
.diagram .flow { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-dasharray: 10 14; animation: flow 1.8s linear infinite; }
.diagram .flow--rev { animation-direction: reverse; }
.diagram .sym { fill: var(--ink); stroke: #c9d3db; stroke-width: 2; }
.diagram .sym--hot { stroke: var(--amber); }
.diagram .lbl { font-family: var(--font-mono); font-size: 12px; fill: #8fa0ad; letter-spacing: .04em; }
.diagram .lbl--hi { fill: #e7edf1; font-weight: 500; }
.diagram .tag { fill: rgba(246, 180, 14, .12); stroke: rgba(246, 180, 14, .5); }
.diagram .tag-txt { font-family: var(--font-mono); font-size: 11px; fill: var(--amber); }
.diagram .pulse { fill: var(--amber); animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; max-width: 620px; }
}

/* Números */
.stats { background: var(--ink); color: #fff; border-top: 1px solid var(--ink-line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px 44px; border-left: 1px solid var(--ink-line); display: grid; gap: 8px; align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__num small { color: var(--amber); font-size: .62em; margin-right: 2px; vertical-align: .32em; }
.stat__label { color: var(--muted-on-ink); font-size: .95rem; line-height: 1.45; max-width: 24ch; }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px 30px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
}

/* Sobre (home) */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; left: -18px; bottom: -22px; background: var(--amber); color: var(--ink);
  border-radius: var(--radius); padding: 18px 22px; max-width: 260px; box-shadow: var(--shadow);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.about__badge span { font-family: var(--font-mono); font-size: .74rem; }
.about__body { display: grid; gap: 20px; }
.about__body p { color: var(--muted); }
.checks { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--amber-deep); margin-top: 2px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__badge { left: 12px; } }

/* Pilares de solução */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { border-color: var(--amber); transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__code { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); display: flex; justify-content: space-between; }
.pillar__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; }
.pillar__icon svg { width: 28px; height: 28px; }
.pillar p { color: var(--muted); font-size: .98rem; }
.pillar ul { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; flex: 1; }
.pillar li a { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; text-decoration: none; color: var(--text); }
.pillar li a::after { content: "→"; color: var(--line); transition: color .2s ease, transform .2s ease; }
.pillar li a:hover { color: var(--amber-deep); }
.pillar li a:hover::after { color: var(--amber-deep); transform: translateX(3px); }
.pillar .link-arrow { margin-top: 8px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }

/* Segmentos */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.segment { background: var(--ink); padding: 30px 28px; display: grid; gap: 10px; align-content: start; transition: background-color .25s ease; }
.segment:hover { background: var(--ink-2); }
.segment svg { width: 34px; height: 34px; color: var(--amber); margin-bottom: 6px; }
.segment h3 { font-size: 1.15rem; color: #fff; }
.segment p { font-size: .95rem; }
@media (max-width: 860px) { .segments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .segments { grid-template-columns: 1fr; } }

/* Processo */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 22px 0 0; display: grid; gap: 12px; align-content: start; }
.step__n { font-family: var(--font-mono); font-size: .8rem; color: var(--amber-deep); display: flex; align-items: center; gap: 10px; }
.step__n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step:last-child .step__n::after { background: linear-gradient(90deg, var(--line), transparent); }
.step__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); flex: none; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Faixa BIM */
.feature-band { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-band__body { display: grid; gap: 20px; }
.feature-band__visual { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 18px; }
.iso { width: 100%; height: auto; }
.iso .f1 { fill: #1e3242; } .iso .f2 { fill: #17293a; } .iso .f3 { fill: #244055; }
.iso .e { fill: none; stroke: #4b6274; stroke-width: 1; }
.iso .hi { fill: var(--amber); }
.iso .hi2 { fill: var(--amber-deep); }
.iso .cable { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 6; animation: flow 2.4s linear infinite; }
.iso text { font-family: var(--font-mono); font-size: 10px; fill: #9fb0bd; }
@media (max-width: 860px) { .feature-band { grid-template-columns: 1fr; } }

/* Portfólio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s ease;
}
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter span { font-family: var(--font-mono); font-size: .74rem; opacity: .6; margin-left: 4px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project[hidden] { display: none; }
.cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .cover img, .post-card:hover .cover img { transform: scale(1.04); }
.cover__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #7f93a2; font-family: var(--font-mono); font-size: .76rem; padding: 16px; }
.cover__ph .iso { width: 100%; height: 100%; margin: 0; opacity: 1; }
.cover__ph svg { width: 40px; height: 40px; color: var(--amber); margin: 0 auto 8px; opacity: .8; }
.cover__tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(12, 22, 32, .78); color: #fff; font-family: var(--font-mono); font-size: .72rem; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.project__body { padding: 22px 22px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.project__meta b { color: var(--text); font-weight: 600; }
.project p { color: var(--muted); font-size: .95rem; }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); background: var(--surface); }
@media (max-width: 960px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Depoimentos */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.g-score { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; text-decoration: none; }
.g-score:hover { border-color: var(--text); }
.g-score__g { width: 34px; height: 34px; }
.g-score strong { display: block; font-size: 1rem; }
.g-score span { font-size: .85rem; color: var(--muted); }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.review cite { font-style: normal; font-weight: 600; display: block; line-height: 1.3; }
.review footer span { font-size: .82rem; color: var(--muted); }
.reviews-nav { display: flex; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .reviews { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .reviews { grid-auto-columns: 86%; } }

/* Conteúdos */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card[hidden] { display: none; }
.post-card__body { padding: 22px 22px 26px; display: grid; gap: 12px; align-content: start; flex: 1; }
.post-card h3 { font-size: 1.14rem; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.meta .cat { color: var(--amber-deep); }
.cover__ph--post { color: #c8d3db; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; text-align: left; place-items: end start; padding: 22px; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card--featured { grid-column: span 3; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--featured .cover { aspect-ratio: auto; min-height: 320px; }
.post-card--featured .post-card__body { padding: clamp(24px, 4vw, 44px); align-content: center; }
.post-card--featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
@media (max-width: 960px) { .post-card--featured { grid-column: span 2; grid-template-columns: 1fr; } .post-card--featured .cover { min-height: 0; aspect-ratio: 16/9; } }
@media (max-width: 600px) { .post-card--featured { grid-column: span 1; } }

/* Missão, visão, valores */
.mvv { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; }
.mvv__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start; }
.mvv__card--accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.mvv__card h3 { display: flex; align-items: center; gap: 12px; }
.mvv__card h3 svg { width: 26px; height: 26px; color: var(--amber-deep); }
.mvv__card--accent h3 svg { color: var(--amber); }
.mvv__card p { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: v; }
.values li { counter-increment: v; display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--ink-line); font-weight: 500; }
.values li:last-child { border-bottom: 0; }
.values li::before { content: counter(v, decimal-leading-zero); font-family: var(--font-mono); font-size: .76rem; color: var(--amber); }
@media (max-width: 960px) { .mvv { grid-template-columns: 1fr; } }

/* CTA */
.cta { position: relative; background: var(--ink); color: #fff; border-radius: calc(var(--radius) * 1.5); overflow: hidden; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/textura-modulos.webp") center / cover; opacity: .35; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 35%, rgba(12, 22, 32, .55)); }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta p { color: #c3cdd5; margin-top: 14px; max-width: 56ch; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__actions { flex-direction: row; flex-wrap: wrap; } }

/* Contato */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 24px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list small { display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--amber-deep); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: var(--shadow); }
.form h3 { grid-column: 1 / -1; font-size: 1.5rem; }
.form > p { grid-column: 1 / -1; color: var(--muted); margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  padding: 13px 14px; font-size: 1rem; transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-deep); background: #fff; box-shadow: 0 0 0 3px var(--amber-soft); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.form__status { grid-column: 1 / -1; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; display: none; }
.form__status.is-ok { display: block; background: #e8f6ee; color: #15603a; }
.form__status.is-err { display: block; background: #fdecec; color: #8a1f1f; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.map-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); min-height: 220px; display: grid; }
.map-card iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }
.map-card__ph {
  display: grid; place-items: center; gap: 12px; text-align: center; padding: 28px; color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.map-card__ph svg { width: 34px; height: 34px; color: var(--amber); }
.map-card__ph p { color: var(--muted-on-ink); font-size: .92rem; }
.map-card__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map-card__actions .btn { min-height: 42px; font-size: .88rem; padding: 0 18px; }

/* Cabeçalho de páginas internas */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero .wrap { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(44px, 6vw, 80px); display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 22ch; }
.page-hero p { color: #c3cdd5; font-size: 1.12rem; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: .76rem; color: #8fa0ad; list-style: none; margin: 0; padding: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Página de área de solução */
.area-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.area-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.area-nav a { flex: none; font-size: .88rem; text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.area-nav a:hover { background: var(--paper); color: var(--text); }
.area-nav a.is-active { background: var(--ink); color: #fff; }
.services { display: grid; gap: 20px; }
.service {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
}
.service__code { font-family: var(--font-mono); font-size: .8rem; color: var(--amber-deep); display: grid; gap: 14px; align-content: start; }
.service__code .pillar__icon { width: 56px; height: 56px; }
.service__main { display: grid; gap: 12px; align-content: start; }
.service__main h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.service__main p { color: var(--muted); }
.service__aside { display: grid; gap: 16px; align-content: start; background: var(--paper); border-radius: var(--radius-sm); padding: 20px 22px; }
.service__aside h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.service__aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service__aside li { display: flex; gap: 10px; font-size: .94rem; }
.service__aside li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--amber); margin-top: .62em; flex: none; transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; border-radius: 999px; color: var(--muted); }
@media (max-width: 960px) { .service { grid-template-columns: 1fr; gap: 18px; } .service__code { grid-auto-flow: column; justify-content: start; align-items: center; } }

.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .area-cards, .area-cards--2 { grid-template-columns: 1fr; } }

/* Artigo */
.article-hero .wrap { max-width: 900px; }
.article-hero h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 3rem); }
.article-cover { margin-top: -1px; background: linear-gradient(var(--ink) 50%, var(--paper) 50%); }
.article-cover .wrap { max-width: 1000px; }
.article-cover .cover { border-radius: var(--radius); aspect-ratio: 16 / 8; }
.prose { max-width: 740px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.9em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--amber-deep); text-underline-offset: 3px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-sm); margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.prose figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 10px; }
.prose .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .prose .cols { grid-template-columns: 1fr; } }
.prose .img-missing { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 28px; text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: .8rem; background: var(--surface); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-size: 1.15rem; }
.article-foot { max-width: 740px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.share { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.share a:hover { border-color: var(--text); }
.share svg { width: 17px; height: 17px; }

/* Rodapé */
.footer { background: #08111a; color: var(--muted-on-ink); padding-top: clamp(56px, 7vw, 88px); font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand img { width: 160px; }
.footer__brand p { max-width: 34ch; }
.footer h4 { color: #fff; font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink-line); display: grid; place-items: center; color: #fff; }
.socials a:hover { border-color: var(--amber); color: var(--amber); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid var(--ink-line); padding: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .84rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Revelação suave (só quando JS ativo e fora da tela) */
.js .reveal.is-pending { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity .7s ease, transform .7s ease; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Vídeo de fundo do topo ---------- */
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.hero__bg iframe, .hero__bg video {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw); min-width: 177.78%; min-height: 100%;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.2s ease;
}
.hero__bg video { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.hero__bg.is-playing iframe, .hero__bg.is-playing video { opacity: .5; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(12, 22, 32, .94) 0%, rgba(12, 22, 32, .78) 45%, rgba(12, 22, 32, .55) 100%), linear-gradient(0deg, rgba(12, 22, 32, .9), transparent 30%); }
.hero--video::before { z-index: -1; }
.hero__panel { background: rgba(12, 22, 32, .62); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: clamp(10px, 2vw, 20px); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 960px) { .hero__shade { background: rgba(12, 22, 32, .82); } }

/* ---------- Carrossel de cases (home) ---------- */
.case-carousel { display: grid; gap: 40px; }
.case-carousel__stage { position: relative; aspect-ratio: 4 / 3.4; }
.case-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.case-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.case-slide__media { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.case-slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; }
.case-slide.is-active .case-slide__media img { transform: scale(1); }
.case-slide .about__badge { transform: translateY(10px); opacity: 0; transition: transform .6s ease .15s, opacity .6s ease .15s; display: grid; gap: 4px; }
.case-slide.is-active .about__badge { transform: none; opacity: 1; }
.about__badge a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--ink); margin-top: 4px; }
.about__badge a svg { width: 15px; height: 15px; }
.about__badge em { font-style: normal; font-size: .86rem; }
.case-carousel__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-left: 260px; }
.case-carousel__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.case-dot { width: 22px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.case-dot.is-active { width: 40px; background: #f0e2bd; }
.case-dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--amber-deep); transform-origin: left; animation: dotfill var(--carousel-ms, 5500ms) linear forwards; }
.case-carousel.is-paused .case-dot.is-active::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) {
  .case-carousel { gap: 18px; }
  .case-carousel__nav { padding-left: 0; }
  .case-slide .about__badge { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px 16px; }
}

/* ---------- Fundador (A ABF) ---------- */
.founder { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.founder img { width: 100%; border-radius: var(--radius); aspect-ratio: 656 / 805; object-fit: cover; }
.founder .about__badge { display: grid; gap: 2px; }
@media (max-width: 860px) { .founder .about__badge { left: 12px; } }

/* ---------- Widget de avaliações do Google ---------- */
.gr-widget { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.gr-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 20px; }
.gr-summary__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.gr-summary__brand .g-score__g { width: 28px; height: 28px; }
.gr-summary__score { display: flex; align-items: center; gap: 14px; }
.gr-summary__score strong { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; letter-spacing: -.03em; }
.gr-summary__score span { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.gr-summary__score .stars svg { width: 20px; height: 20px; }
.gr-summary__actions { display: grid; gap: 12px; justify-items: start; }
.gr-summary__actions .btn { min-height: 44px; font-size: .9rem; }
.gr-list { display: grid; gap: 14px; min-width: 0; }
.gr-nav { justify-self: end; }
.gr-widget .reviews { grid-auto-columns: calc((100% - 40px) / 3); }
.review__head { display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; }
.review .avatar { color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; }
.review cite { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__when { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.gr-guide::before { content: "· "; color: var(--muted); }
.gr-guide { color: var(--amber-deep); }
.review__g { width: 20px; height: 20px; align-self: start; }
.review blockquote p { font-size: .98rem; line-height: 1.6; }
@media (max-width: 1080px) { .gr-widget { grid-template-columns: 1fr; } .gr-summary { grid-template-columns: auto 1fr auto; align-items: center; } .gr-summary__actions { justify-items: end; } }
@media (max-width: 960px) { .gr-widget .reviews { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 700px) { .gr-summary { grid-template-columns: 1fr; } .gr-summary__actions { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: 18px; } }
@media (max-width: 600px) { .gr-widget .reviews { grid-auto-columns: 86%; } }

/* Ajustes finais do menu */
@media (min-width: 1081px) and (max-width: 1240px) { .mega__aside { display: none; } }
@media (max-width: 1080px) {
  .header { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__item--mega.is-open > .nav__link { color: var(--amber); }
}
@media (max-width: 560px) { .case-slide .about__badge strong { font-size: .95rem; } .case-slide .about__badge span { font-size: .68rem; } }

/* Miniaturas no card do portfólio */
.cover__thumbs { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.thumb { width: 44px; height: 44px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.7); background: #fff; cursor: pointer; opacity: .85; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; position: static; transform: none !important; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-active { border-color: var(--amber); opacity: 1; }
.hero__bg { background-color: var(--ink); }
.cover img.is-contain { object-fit: contain; background: #fff; }

/* ---------- Abrir projeto (card) ---------- */
.cover__open { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: transparent; cursor: zoom-in; color: #fff; }
.cover__open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,22,32,.55), transparent 45%); opacity: .9; transition: opacity .25s ease; }
.cover__count { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .74rem; background: rgba(12,22,32,.75); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.cover__count svg { width: 14px; height: 14px; color: var(--amber); }
.cover__zoom { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -40%); opacity: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 10px 18px; border-radius: 999px; transition: opacity .25s ease, transform .25s ease; }
.cover__zoom svg { width: 18px; height: 18px; }
.project:hover .cover__zoom, .cover__open:focus-visible .cover__zoom { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .cover__zoom { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); color: var(--text); }
.lightbox::backdrop { background: rgba(6, 12, 18, .86); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lbIn .3s ease; }
@keyframes lbIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lightbox__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: var(--surface); border-radius: calc(var(--radius) * 1.3); overflow: hidden; max-height: calc(100dvh - 32px); }
.lightbox__stage { position: relative; background: #0a131b; min-height: 420px; display: grid; place-items: center; }
.lightbox__stage img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: cover; position: absolute; inset: 0; }
.lightbox__stage img.is-contain { object-fit: contain; background: #fff; }
.lightbox__stage img.is-in { animation: lbFade .35s ease; }
@keyframes lbFade { from { opacity: 0; } }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(12,22,32,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: var(--amber); color: var(--ink); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: .76rem; color: #fff; background: rgba(12,22,32,.72); padding: 5px 10px; border-radius: 999px; }
.lightbox__info { position: relative; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.lb-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.lb-close:hover { border-color: var(--text); }
.lb-close svg { width: 18px; height: 18px; }
.lb-meta { padding-right: 44px; font-size: .7rem; }
.lb-title { font-size: 1.45rem; }
.lb-power { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--amber-deep); line-height: 1; }
.lb-power:empty { display: none; }
.lb-text { color: var(--muted); font-size: .97rem; }
.lb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lb-thumb { width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.is-active { border-color: var(--amber-deep); }
.lb-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 12px; }
.lb-actions .btn { min-height: 46px; font-size: .92rem; }
@media (max-width: 860px) {
  .lightbox { width: 100vw; max-height: 100dvh; margin: 0; height: 100dvh; }
  .lightbox__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 52vh) auto; border-radius: 0; height: 100dvh; max-height: 100dvh; }
  .lightbox__stage { min-height: 0; }
  .lightbox__stage img { max-height: none; }
  .lightbox__info { padding: 22px 18px 28px; }
  .lb-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 5; background: rgba(255,255,255,.95); }
  .lb-meta { padding-right: 0; }
  .lb-actions { display: flex; flex-wrap: wrap; } .lb-actions .btn { flex: 1 1 auto; }
}

/* ---------- Topo de página com imagem (A ABF) ---------- */
.page-hero--media .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.page-hero__text { display: grid; gap: 18px; }
.page-hero__media { position: relative; margin: 0; }
.page-hero__media img { width: 100%; height: clamp(320px, 34vw, 460px); object-fit: cover; border-radius: var(--radius); border: 1px solid var(--ink-line); }
.page-hero__media figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(12,22,32,.8); backdrop-filter: blur(6px); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; display: grid; gap: 2px; }
.page-hero__media figcaption span { font-family: var(--font-mono); font-size: .68rem; color: var(--amber); font-weight: 500; letter-spacing: .08em; }
@media (max-width: 900px) { .page-hero--media .wrap { grid-template-columns: 1fr; } .page-hero__media img { height: auto; aspect-ratio: 16 / 10; } }
