/* ==========================================================================
   ExIUM — Design System "Industrial Premium"
   Tema único: Carbono (fundo preto, alto contraste).
   ========================================================================== */

:root {
  --bg:            #000000;
  --surface-1:     #0C0C0D;
  --surface-2:     #141416;
  --border:        #333338;
  --text:          #FFFFFF;
  --text-muted:    #B4B4BC;
  --gold:          #C8A24B;
  --gold-hover:    #E0BC68;
  --accent:        #1F6F6B;          /* verde-petróleo, uso sutil */
  --gold-soft:     rgba(200,162,75,.12);
  --shadow:        0 10px 34px rgba(0,0,0,.7);

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius:    6px;
  --radius-lg: 10px;
  --container: 1180px;
  --header-h:  72px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

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

::selection { background: var(--gold); color: #0A0A0B; }

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

.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-lead  { color: var(--text-muted); max-width: 640px; font-size: 1.05rem; }

.text-gold { color: var(--gold); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold); color: #0A0A0B; }
.btn--gold:hover { background: var(--gold-hover); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--block { width: 100%; }

/* ---- Badges / tags normativas ------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 4px;
  background: var(--gold-soft); color: var(--gold);
  border: 1px solid rgba(200,162,75,.28);
  text-transform: uppercase;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
.brand .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.brand .brand-name b { color: var(--gold); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hambúrguer */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.is-open span::after  { transform: rotate(-45deg); top: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 78%, transparent) 55%, color-mix(in srgb, var(--bg) 40%, transparent) 100%),
              linear-gradient(0deg, var(--bg), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-muted); margin-bottom: 34px; max-width: 580px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* grade técnica sutil sobre o hero */
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .25;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.card .card-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--gold-soft); color: var(--gold);
  margin-bottom: 18px; font-size: 1.3rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .96rem; }

/* segmentos atendidos */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-1); color: var(--text); font-family: var(--font-head); font-size: .92rem; font-weight: 500;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* cases / pilares */
.case-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); min-height: 300px; display: flex; align-items: flex-end; }
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.15) 70%); }
.case-card:hover img { transform: scale(1.06); }
.case-card .case-body { position: relative; z-index: 1; padding: 26px; }
.case-card .case-body h3 { font-size: 1.25rem; margin: 10px 0; }
.case-card .case-body p { color: #cfd2d8; font-size: .94rem; }

/* faixa de expertise normativa */
.authority { background: var(--surface-1); border-block: 1px solid var(--border); }
.authority .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 28px; }
.stat .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat .label { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--text-muted); font-family: var(--font-head); }
.post-card h3 { font-size: 1.15rem; }
.post-card p { color: var(--text-muted); font-size: .93rem; flex: 1; }
.post-card .read-more { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-filter a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--text-muted); font-family: var(--font-head); }
.cat-filter a.is-active, .cat-filter a:hover { border-color: var(--gold); color: var(--gold); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-head); }
.pagination .is-active { background: var(--gold); color: #0A0A0B; border-color: var(--gold); }

/* artigo individual */
.article { max-width: 760px; margin-inline: auto; }
.article header { margin-bottom: 36px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 16px 0; }
.article .cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--border); }
.article-body { font-size: 1.08rem; color: #d8dade; }
.article-body h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.article-body h3 { font-size: 1.25rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--gold); text-decoration: underline; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-body blockquote { border-left: 3px solid var(--gold); padding-left: 20px; margin: 24px 0; color: var(--text-muted); font-style: italic; }

/* ==========================================================================
   BIBLIOTECA
   ========================================================================== */
.lib-item { display: flex; align-items: center; gap: 20px; padding: 22px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s; }
.lib-item:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.lib-item .lib-icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border-radius: var(--radius); font-size: 1.4rem; }
.lib-item .lib-info { flex: 1; }
.lib-item .lib-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.lib-item .lib-info p { color: var(--text-muted); font-size: .92rem; }

/* ==========================================================================
   FORM (contato)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .88rem; font-weight: 500; color: var(--text); }
.field label .req { color: var(--gold); }
.field input, .field textarea, .field select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 13px 14px; font-family: var(--font-body); font-size: .96rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: .8rem; color: var(--text-muted); }

.file-drop { border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface-2); }
.file-drop label { cursor: pointer; }

.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.checkbox-row label { font-size: .88rem; color: var(--text-muted); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok  { background: rgba(31,111,107,.18); border: 1px solid var(--accent); color: #8fded8; }
.form-msg.err { background: rgba(200,60,60,.14); border: 1px solid #a33; color: #f0a3a3; }

/* mapa incorporado (Google Maps) */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); line-height: 0; box-shadow: var(--shadow); }
/* filtro que integra o mapa (claro) ao tema escuro, preservando as cores */
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.85); }
@media (max-width: 760px) { .map-embed iframe { height: 320px; } }

/* contato — layout 2 colunas */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.contact-side .info-block { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1); margin-bottom: 20px; }
.contact-side h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-side p, .contact-side a { color: var(--text-muted); font-size: .93rem; }
.contact-side a:hover { color: var(--gold); }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface-2), var(--surface-1));
  padding: 56px; text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 40px 40px; opacity: .15; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); padding-top: 64px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer p { color: var(--text-muted); font-size: .92rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; font-family: var(--font-head); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); }
.social-row a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; font-size: .85rem; color: var(--text-muted); }
.footer-bottom-right { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }

/* Crédito de desenvolvimento */
.footer-credit { display: inline-flex; align-items: center; gap: 6px; padding-left: 18px; border-left: 1px solid var(--border); color: var(--text-muted); }
.footer-credit a {
  font-family: var(--font-head); font-weight: 500; color: var(--text);
  position: relative; transition: color .2s ease;
}
.footer-credit a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.footer-credit a:hover { color: var(--gold); }
.footer-credit a:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-right { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-credit { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; }
.wa-float a { display: flex; align-items: center; gap: 0; background: #25D366; color: #fff; border-radius: 999px; height: 56px; box-shadow: var(--shadow); overflow: hidden; transition: padding .25s ease; }
.wa-float a svg { width: 28px; height: 28px; margin: 0 14px; flex-shrink: 0; }
.wa-float .wa-text { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head); font-size: .9rem; font-weight: 600; transition: max-width .25s ease, padding .25s ease; }
.wa-float a:hover .wa-text { max-width: 220px; padding-right: 18px; }

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   PÁGINA — cabeçalho interno
   ========================================================================== */
.page-hero { padding-top: calc(var(--header-h) + 80px); padding-bottom: 56px; border-bottom: 1px solid var(--border); background: var(--surface-1); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: .12; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; font-family: var(--font-head); }
.breadcrumb a:hover { color: var(--gold); }

/* serviços — linha alternada */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 56px; border-bottom: 1px solid var(--border); }
.service-row:last-child { border-bottom: none; }
.service-row .media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.service-row .media img { width: 100%; height: 100%; object-fit: cover; }
.service-row.reverse .content { order: 2; }
.pain-box { background: var(--surface-1); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.pain-box strong { color: var(--gold); }

/* valores (quem somos) */
.value-list { display: grid; gap: 18px; }
.value-list .value-item { display: flex; gap: 16px; padding: 20px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.value-list .value-item .num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--gold); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .authority .container { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row.reverse .content { order: 0; }
}

@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px; transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px; border-radius: var(--radius); }
  .header-cta-desktop { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .stat-row { gap: 24px; }
}
