/* ===================================================
   D | N Marketing Empresarial — folha de estilos
   Paleta e tipografia conforme /04-referencia-visual
   =================================================== */
:root {
  --primary: #2442D6;
  --primary-dark: #1C32AA;
  --destaque: #E3F3A6;
  --grafite: #171C2C;
  --texto2: #4D566B;
  --fundo: #F5F6FA;
  --borda: #E5E7F0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--grafite);
  background: #fff;
  overflow-x: hidden;
}

/* Especificidade elevada (body h1, body p): o preflight do Tailwind CDN é
   injetado DEPOIS desta folha e, com a mesma especificidade, venceria —
   deixando h1 a 16px, parágrafos sem margem e links sem a cor da marca. */
body h1, body h2, body h3, body h4, .font-grotesk {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .6em;
}

/* H1 56px desktop / 36px mobile — H2 36/28 — H3 22 (design system) */
body h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
body h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
body h3 { font-size: 1.375rem; }

body p { margin: 0 0 1rem; color: var(--texto2); }
body p strong, body li strong { color: var(--grafite); }
body h1 + p, body h2 + p, body h3 + p { margin-top: -0.25rem; }

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

img { max-width: 100%; height: auto; }

.container { max-width: 75rem; margin-inline: auto; padding-inline: 1rem; }

/* Componentes do design system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1.4rem;
  border-radius: .5rem;
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .2s, color .2s, filter .2s;
  text-align: center;
}
.btn-primario { background: var(--primary); color: #fff !important; }
.btn-primario:hover { background: var(--primary-dark); text-decoration: none !important; }
.btn-destaque { background: var(--destaque); color: var(--grafite) !important; }
.btn-destaque:hover { filter: brightness(.94); }
.btn-outline { background: #fff; color: var(--primary) !important; border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #EEF1FD; }
.btn-branco { background: #fff; color: var(--primary) !important; }
.btn-branco:hover { background: var(--destaque); color: var(--grafite) !important; }

.card {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--destaque);
  color: var(--grafite);
  font-weight: 600;
  font-size: .8rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.secao-alt { background: var(--fundo); }

/* Hero da Home — gradiente azul com cantos arredondados (Home — desktop.png) */
.hero-home {
  background: linear-gradient(135deg, #1C32AA 0%, #2442D6 55%, #4A63E8 100%);
  border-radius: 1.5rem;
  color: #fff;
}
.hero-home h1 { color: var(--destaque); }
.hero-home p { color: #DBE2FF; }

/* Faixa CTA final azul (Home / Portfólio) */
.faixa-cta { background: var(--primary); color: #fff; }
.faixa-cta h2 { color: #fff; }
.faixa-cta p { color: #DBE2FF; }

/* Placeholder de mapa (Home / Contato) — na identidade da marca
   (azul da marca + pin em verde-lima) até o mapa real ser incorporado */
.mapa-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 280px;
  background: linear-gradient(135deg, #2442D6 0%, #1C32AA 55%, #171C2C 100%);
  border: 1px solid #1C32AA;
  border-radius: 12px;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  text-align: center;
  padding: 1rem;
}

/* Card de projeto com moldura de navegador (Portfólio.png) */
.card-navegador { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; background: #fff; }
.card-navegador .barra {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--borda);
  background: var(--fundo);
}
.card-navegador .barra span { width: 10px; height: 10px; border-radius: 999px; background: #C9CEDE; display: block; }
.card-navegador .placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 160px; background: #E8EAF2; color: var(--texto2); font-size: .9rem;
}
.card-navegador .barra-url {
  margin-left: auto; align-self: center;
  padding: 2px 10px; border: 1px solid var(--borda); border-radius: 999px;
  background: #fff; color: var(--texto2); font-size: .72rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Portfólio — grade uniforme: 4 colunas (desktop), 2 (tablet), 1 (celular).
   Cartões inteiros são links, com alturas equilibradas e o link "Visitar"
   alinhado no rodapé do card. Foco visível; hover desligado com
   prefers-reduced-motion. */
.portfolio-grade { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .portfolio-grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grade { grid-template-columns: repeat(4, 1fr); } }

.card-portfolio {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card-portfolio:hover { translate: 0 -3px; box-shadow: 0 16px 32px -20px rgba(23,28,44,.4); }
.card-portfolio:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card-portfolio img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #E8EAF2; }
.card-portfolio-corpo {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
  padding: 1rem 1.05rem 1.1rem;
}
.card-portfolio-corpo h3 { margin: 0; color: var(--grafite); font-size: 1rem; line-height: 1.35; }
.card-portfolio-corpo p { margin: 0; color: var(--texto2); font-size: .875rem; line-height: 1.55; min-height: calc(3 * 1.55em); }
.card-portfolio-rota {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: auto;
  padding-top: .75rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 600;
}
.card-portfolio-rota svg { height: 16px; width: 16px; flex: none; transition: translate .35s cubic-bezier(.2,.8,.2,1); }
.card-portfolio:hover .card-portfolio-rota svg, .card-portfolio:focus-visible .card-portfolio-rota svg { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .card-portfolio { transition: none; }
  .card-portfolio:hover { translate: 0 0; box-shadow: none; }
  .card-portfolio:hover .card-portfolio-rota svg, .card-portfolio:focus-visible .card-portfolio-rota svg { translate: 0 0; }
}

/* Vitrine de portfólio (roda 3D, assets/js/vitrine.js) — full-bleed:
   a geometria da roda foi desenhada para palco grande; dentro de um
   container estreito os cards encolhem junto. */
/* Vitrine usa a paleta da marca via variáveis do componente (assets/js/vitrine.js):
   fundo azul primário, texto branco e cards-reserva em azul escuro. */
.vitrine-embutida { --vw-bg: var(--primary); --vw-fg: #fff; --vw-muted: var(--primary-dark); --vw-fg-fraco: rgba(255,255,255,.7); background: var(--primary); height: min(100svh, 68rem); min-height: 38rem; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); overflow: hidden; }
@media (min-width: 768px) {
  .vitrine-embutida { height: min(100svh, 72rem); }
}
.vitrine-fallback { margin: 0; padding: 1.5rem 1.75rem; list-style: none; display: grid; gap: .6rem; font-size: 1rem; }
.vitrine-fallback a { color: #fff; }

/* Acordeão de FAQ */
.faq-lista { border-top: 1px solid var(--borda); }
.faq-item { border-bottom: 1px solid var(--borda); }
.faq-item > button {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: 100%;
  padding: 1.1rem 0;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--grafite);
  cursor: pointer;
  min-height: 44px;
}
.faq-item > button:hover { color: var(--primary); }
.faq-seta {
  flex: none;
  color: var(--primary);
  transition: transform .2s;
  margin-top: 4px;
}
.faq-aberta .faq-seta { transform: rotate(90deg); }
.faq-resposta { padding: 0 0 1.1rem 1.9rem; }
.faq-resposta p:last-child { margin-bottom: 0; }

/* Lista de conteúdo (posts, páginas de texto) */
.prose p { color: var(--texto2); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--texto2); }
.prose li { margin-bottom: .4rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }

/* Índice / tabela de contents */
.toc {
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc p { font-weight: 700; color: var(--grafite); font-family: 'Space Grotesk', sans-serif; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; color: var(--texto2); }
.toc a { color: var(--primary); }

/* Trilha de navegação (breadcrumbs) */
.trilha { font-size: .9rem; color: var(--texto2); }
.trilha ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.trilha a { color: var(--texto2); }
.trilha a:hover { color: var(--primary); }
.trilha li + li::before { content: "›"; margin: 0 .45rem; color: #A7ADC4; }

/* Author box (E-E-A-T) */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 2rem;
}
.author-box img { border-radius: 999px; flex: none; }
.author-box p { margin: 0; font-size: .95rem; }
.author-box .cargo { color: var(--texto2); }

/* Barra de consentimento LGPD */
#barra-cookies { z-index: 50; }

/* Menu mobile (Alpine) */
[x-cloak] { display: none !important; }

/* Card tracejado de reserva (portfólio / mapa) */
.card-reserva {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #C9CEDE;
  border-radius: 12px;
  color: var(--texto2);
  text-align: center;
  padding: 1.5rem;
  min-height: 180px;
}

@media print {
  #barra-cookies, header, footer, .btn { display: none !important; }
}

/* ==========================================================
   Hero Prisma (Home) — degradê cobalto → grafite com brilho
   de lima e ruído sutil (adaptado do PrismaHero, 21st.dev)
   ========================================================== */
.hero-prisma { position: relative; overflow: hidden; color: #fff; }
.hero-prisma .hero-prisma-fundo { position: absolute; inset: 0; background: linear-gradient(180deg, #2442D6 0%, #1C32AA 38%, #111827 100%); }
.hero-prisma .hero-prisma-brilho { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 75% at 85% -10%, rgba(196,240,77,.12) 0%, transparent 55%); }
.hero-prisma .hero-prisma-ruido { position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/><feColorMatrix type="saturate" values="0"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.55"/></svg>'); background-size: 120px 120px; }
.hero-prisma .hero-prisma-conteudo { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: min(70svh, 44rem); padding-block: 4rem 4.5rem; }
.hero-prisma h1 { color: #fff; }
.hero-prisma p { color: rgba(219,226,255,.85); }
.hero-prisma .hero-prisma-nota { color: #C9D2F5; }
.hero-prisma .badge { background: #C4F04D; color: #111827; align-self: flex-start; }
/* Entrada do conteúdo do hero (como no demo: intro e CTA sobem com atraso).
   O h1 fica de fora — ele já anima palavra a palavra (WordsPullUp/cascade). */
.hero-prisma-conteudo > *:not(h1) { animation: hero-sobe .8s cubic-bezier(.16,1,.3,1) both; }
.hero-prisma-conteudo > .badge { animation-delay: .15s; }
.hero-prisma-conteudo > p { animation-delay: .5s; }
.hero-prisma-conteudo > div { animation-delay: .7s; }
.hero-prisma-conteudo > .hero-prisma-nota { animation-delay: .9s; }
@keyframes hero-sobe { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-prisma-conteudo > *:not(h1) { animation: none; } }
.btn-lima { background: #C4F04D; color: #111827 !important; }
.btn-lima:hover { filter: brightness(.94); }
.btn-linha { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.5); }
.btn-linha:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* H1 em cascata (WordsPullUp) — as palavras sobem uma a uma.
   Sem JS, o título fica estático e visível. */
.cascade .cw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.cascade .cw > span { display: inline-block; transform: translateY(115%); animation: cascada-sobe .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes cascada-sobe { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .cascade .cw > span { animation: none; transform: none; }
}

/* ==========================================================
   Abertura da Home (GlassSplash) — camada fullscreen com a
   marca "D|N" em vidro, uma vez por sessão. Pular abertura:
   botão, Esc ou clique em qualquer lugar. Movimento reduzido:
   a abertura nem aparece (o JS a remove antes de mostrar).
   ========================================================== */
#abertura { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: linear-gradient(180deg, #2442D6 0%, #1C32AA 38%, #111827 100%); color: #fff; transition: opacity .75s ease-out; }
#abertura[hidden] { display: none; }
#abertura.saindo { opacity: 0; pointer-events: none; }
.abertura-brilho { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 75% at 85% -10%, rgba(196,240,77,.12) 0%, transparent 55%); }
.abertura-ruido { position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/><feColorMatrix type="saturate" values="0"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.55"/></svg>'); background-size: 120px 120px; }
.abertura-vidro { position: relative; width: 176px; height: 176px; border-radius: 2rem; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 24px 60px -18px rgba(2,8,32,.8), inset 0 1px 0 rgba(255,255,255,.35); animation: abertura-entra .9s cubic-bezier(.2,.8,.2,1) both; }
@media (min-width: 640px) { .abertura-vidro { width: 224px; height: 224px; } }
@keyframes abertura-entra { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.abertura-marca { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 64px; letter-spacing: .02em; color: #C4F04D; filter: blur(10px); opacity: .25; transform: scale(1.05); animation: abertura-foco 1.9s cubic-bezier(.3,.7,.3,1) both; }
@media (min-width: 640px) { .abertura-marca { font-size: 84px; } }
@keyframes abertura-foco { 0% { filter: blur(10px); opacity: .25; transform: scale(1.05); } 62% { filter: blur(7px); opacity: .55; } 100% { filter: blur(0); opacity: 1; transform: scale(1); } }
.abertura-vidro::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%); transform: translateX(-70%); animation: abertura-varredura 1.9s ease-in-out .15s both; pointer-events: none; }
@keyframes abertura-varredura { to { transform: translateX(70%); } }
#abertura-pular { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); min-height: 44px; padding: .7rem 1.5rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: none; color: rgba(255,255,255,.9); font: inherit; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
#abertura-pular:hover { background: rgba(255,255,255,.1); color: #fff; }
#abertura-pular:focus-visible { outline: 2px solid #C4F04D; outline-offset: 4px; }
/* Vidro líquido (WebGL2) assumiu o efeito: o canvas pinta o azulejo escuro com a
   revelação real da logotipo; o vidro "de mentira" do CSS some por completo. */
.abertura-vidro-webgl { background: #111827; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255,255,255,.08); }
.abertura-vidro-webgl .abertura-marca { display: none; }
.abertura-vidro-webgl::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .abertura-vidro, .abertura-marca, .abertura-vidro::after { animation: none; }
  .abertura-marca { filter: none; opacity: 1; transform: none; }
  .abertura-vidro::after { display: none; }
}

/* ==========================================================
   Rodapé Shutter Glyph (adaptado do 21st.dev, demo React)
   Reveal por scroll e interações só com JS (html.js); sem JS
   o rodapé aparece estático e completo.
   ========================================================== */
.sgf { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; color: var(--sgf-ink); background: linear-gradient(180deg, var(--sgf-top) 0%, var(--sgf-bg) 26%); font-family: var(--sgf-sans); font-size: clamp(12px, 1.02cqw, 14.5px); line-height: 1.45; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
.sgf ::selection { background: var(--sgf-ink); color: var(--sgf-bg); }
/* A regra global `p { color: var(--texto2) }` não deve valer dentro do rodapé:
   no demo a cor é herdada do --sgf-ink (branco sobre cobalto). */
.sgf :where(p) { color: var(--sgf-ink); }
:where(.sgf) a { color: inherit; text-decoration: none; }
/* body a / body p (regras base do site) têm especificidade 0,0,2 e venceriam
   os resets fracos acima — cobalto sobre cobalto. Reforça com 0,1,1: */
.sgf a { color: inherit; text-decoration: none; }
.sgf p { color: inherit; }
.sgf strong { color: inherit; }
.sgf a:hover { text-decoration: none; }
:where(.sgf) button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:where(.sgf) ul { list-style: none; margin: 0; padding: 0; }
:where(.sgf) p { margin: 0; }
.sgf svg { max-width: none; }
.sgf .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sgf-top { box-sizing: border-box; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1.1fr); column-gap: clamp(24px, 3cqw, 48px); row-gap: 44px; padding: clamp(64px, 10cqw, 130px) clamp(18px, 3cqw, 56px) 0; }
.sgf-fade { transition: opacity .8s ease var(--sgf-d, 0ms), translate .8s cubic-bezier(.2,.7,.1,1) var(--sgf-d, 0ms); }
.js .sgf[data-in='false'] .sgf-fade { opacity: 0; translate: 0 10px; }
.sgf-cta { max-width: 430px; }
.sgf-lede { font-family: var(--sgf-display); font-weight: 600; font-size: clamp(22px, 2.3cqw, 33px); line-height: 1.16; letter-spacing: -.01em; }
.sgf-wa { display: inline-flex; align-items: center; gap: .65em; margin-top: 24px; padding: .8em 1.5em; border-radius: 999px; background: var(--sgf-accent); color: var(--sgf-accent-ink) !important; font-weight: 600; font-size: 1em; transition: translate .35s cubic-bezier(.2,.8,.2,1), filter .35s; }
.sgf-wa svg { width: 1em; height: 1em; transition: translate .35s cubic-bezier(.2,.8,.2,1); }
.sgf-wa:hover { translate: 0 -2px; filter: brightness(1.06); }
.sgf-wa:hover svg, .sgf-wa:focus-visible svg { translate: 4px 0; }
.sgf-wa:active { translate: 0 0; }
.sgf-wa:focus-visible { outline: 2px solid var(--sgf-ink); outline-offset: 3px; }
.sgf-note { margin-top: 16px; font-size: 1em; line-height: 1.55; }
.sgf-h { margin-bottom: 14px; font-size: .72em; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.sgf-h2 { margin-top: 28px; }
.sgf-list { display: flex; flex-direction: column; gap: clamp(6px, .7cqw, 9px); align-items: flex-start; }
.sgf-link { position: relative; display: inline-flex; align-items: center; gap: .65em; white-space: nowrap; padding: 2px 0; }
.sgf-link::after { content: ''; position: absolute; left: 0; right: 1.6em; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.sgf-link:hover::after, .sgf-link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.sgf-link svg { width: .8em; height: .8em; flex: none; transition: translate .35s cubic-bezier(.2,.8,.2,1); }
.sgf-link:hover svg, .sgf-link:focus-visible svg { translate: 5px 0; }
.sgf-link:focus-visible { outline: 2px solid var(--sgf-accent); outline-offset: 3px; }
.sgf-contact { max-width: 300px; }
.sgf-info { line-height: 1.6; font-size: 1.05em; }
.sgf-info + .sgf-info { margin-top: 6px; }
.sgf-info strong { font-weight: 700; }
.sgf-copyright { margin-top: 24px; opacity: .95; }
.sgf-cookie { display: inline-flex; align-items: center; margin-top: 16px; min-height: 44px; padding: .5em 1.2em; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); color: var(--sgf-ink); font-size: .92em; font-weight: 600; cursor: pointer; transition: border-color .25s, color .25s; }
.sgf-cookie:hover { border-color: var(--sgf-accent); color: var(--sgf-accent); }
.sgf-cookie:focus-visible { outline: 2px solid var(--sgf-accent); outline-offset: 3px; }
.sgf-mark { box-sizing: border-box; padding: clamp(40px, 5cqw, 72px) clamp(18px, 3cqw, 56px) clamp(18px, 2.6cqw, 34px); }
.sgf-svg { display: block; width: min(420px, 76%); height: auto; overflow: hidden; fill: var(--sgf-ink); }
.sgf-tag { margin-top: 10px; font-size: clamp(10px, .95cqw, 13px); font-weight: 600; letter-spacing: .48em; text-transform: uppercase; opacity: .65; }
.sgf-rise { transition: transform 1.1s cubic-bezier(.16,.84,.2,1) var(--sgf-d, 0ms); }
.js .sgf[data-in='false'] .sgf-rise { transform: translateY(112px); }
.sgf-g { cursor: pointer; }
.sgf-g:focus-visible { outline: 2px solid var(--sgf-accent); outline-offset: 2px; }
.sgf-flip { transform-box: fill-box; transform-origin: 50% 50%; }
.sgf-flip.is-flip { animation: sgf-flip .7s cubic-bezier(.2,.8,.2,1); }
@keyframes sgf-flip { 0% { transform: scaleY(1); } 45% { transform: scaleY(-1); } 100% { transform: scaleY(1); } }
.sgf-half { transition: transform .45s cubic-bezier(.2,.9,.25,1.15); }
.sgf-g:hover .sgf-up { transform: translate(4px, -1.2px); }
.sgf-g:hover .sgf-dn { transform: translate(-4px, 1.2px); }
.sgf-sh polygon { transition: none; }
.sgf-sh:focus-visible { outline: 2px solid var(--sgf-accent); outline-offset: 2px; }
@container (max-width: 900px) { .sgf-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .sgf-top > .sgf-cta, .sgf-top > .sgf-contact { grid-column: 1 / -1; } .sgf-cta { max-width: 520px; } .sgf-contact { max-width: none; } }
@container (max-width: 540px) { .sgf-top { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  .sgf .sgf-rise, .sgf .sgf-fade, .sgf .sgf-half, .sgf .sgf-link svg, .sgf .sgf-link::after, .sgf .sgf-wa, .sgf .sgf-wa svg, .sgf .sgf-cookie { transition: none !important; }
  .sgf .sgf-flip { animation: none !important; }
  .js .sgf[data-in='false'] .sgf-rise { transform: none; }
  .js .sgf[data-in='false'] .sgf-fade { opacity: 1; translate: none; }
}


/* ═══════════════════════════════════════════════════════════
   EDITORIAL — sobre a D | N (substitui o antigo bento grid).
   Paleta própria da seção, mantendo a tipografia do site.
   O contador "11+" é a contagem real do portfólio (8 sites de
   clientes + 3 ferramentas próprias); para trocar: data-valor
   do span .bento-numero-valor e os textos ao lado.
   ═══════════════════════════════════════════════════════════ */
.ed {
  --ed-azul: #2947D8;
  --ed-azul-escuro: #1F3497;
  --ed-texto: #172033;
  --ed-texto2: #596579;
  --ed-borda: #E1E7F0;
  background: #fff;
  padding-block: 3rem;
  color: var(--ed-texto);
}
.ed-container { max-width: 70rem; margin-inline: auto; padding-inline: 1.25rem; }

/* Abertura */
.ed-eyebrow { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ed-azul); }
.ed-titulo { margin: .75rem 0 0; font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ed-texto); max-width: 22ch; }
.ed-abertura { margin-bottom: 2.5rem; }

/* Apresentação (foto + quem escreve) */
.ed-apresentacao { display: grid; gap: 1.75rem; align-items: center; }
.ed-foto {
  width: 220px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background: #EEF1F7; border: 1px solid var(--ed-borda);
  display: flex; align-items: center; justify-content: center;
}
.ed-foto span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.5rem; letter-spacing: .04em; color: #A6B2C9; }
/* Quando houver foto real, troque o conteúdo do .ed-foto por:
   <img src="/assets/img/foto-daniel.jpg" width="220" height="275" alt="Daniel Barros da Silva" class="ed-foto-img"> */
.ed-foto-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-quem h3 { margin: 0; font-size: 1.375rem; line-height: 1.25; color: var(--ed-texto); }
.ed-funcao { margin: .3rem 0 0; font-size: .9375rem; font-weight: 600; color: var(--ed-azul); }
.ed-desc { margin: .9rem 0 0; max-width: 52ch; font-size: 1rem; line-height: 1.65; color: var(--ed-texto2); }
.ed-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1.4rem; min-height: 44px; padding: .7rem 1.4rem;
  background: var(--ed-azul); color: #fff !important; border-radius: .5rem;
  font-weight: 600; font-size: 1rem; text-decoration: none !important;
  transition: background-color .2s ease;
}
.ed-cta:hover { background: var(--ed-azul-escuro); }
.ed-cta:focus-visible { outline: 2px solid var(--ed-azul); outline-offset: 3px; }

/* Divisória */
.ed-divisoria { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--ed-borda); }

/* Experiência + ferramentas */
.ed-experiencia { display: grid; gap: 2rem; align-items: start; }
.ed-num { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: -.03em; color: var(--ed-azul); font-variant-numeric: tabular-nums; }
.ed-num-rotulo { margin: .5rem 0 0; font-size: 1.0625rem; font-weight: 600; color: var(--ed-texto); }
.ed-num-desc { margin: .4rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--ed-texto2); max-width: 38ch; }
.ed-ferramentas h3 { margin: 0 0 1rem; font-size: 1.0625rem; color: var(--ed-texto); }
.ed-lista {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem;
}
.ed-item { display: flex; align-items: center; gap: .625rem; min-height: 44px; font-size: 1rem; color: var(--ed-texto); }
.ed-item svg { width: 20px; height: 20px; flex: none; color: var(--ed-azul); }

/* Faixa de atendimento */
.ed-faixa {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-top: 2.5rem; padding: 1.4rem 1.6rem;
  background: var(--ed-azul-escuro); border-radius: 16px;
}
.ed-faixa svg { width: 22px; height: 22px; flex: none; margin-top: .15rem; color: #C4F04D; }
.ed-faixa-titulo { margin: 0; font-size: 1.0625rem; font-weight: 600; color: #fff; }
.ed-faixa-texto { margin: .25rem 0 0; font-size: .9375rem; line-height: 1.5; color: #E1E8FF; }

@media (min-width: 768px) {
  .ed { padding-block: 4.5rem; }
  .ed-abertura { margin-bottom: 3rem; }
  .ed-apresentacao { grid-template-columns: 220px 1fr; gap: 3rem; }
  .ed-divisoria { margin: 3rem 0; }
  .ed-experiencia { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .ed-num { font-size: 3.75rem; }
  .ed-faixa { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-cta, .ed-cta:hover { transition: none; }
}
