/* =========================================================
   BlackRidge Technology Advisory — Folha de estilo principal
   Paleta near-monochrome da marca | Mobile-first
   ========================================================= */

/* ---------- Tokens da marca ---------- */
:root {
  /* Cores (Brand Guidelines Vol.01) */
  --ink:      #141414;  /* Primary / type */
  --graphite: #5A5854;  /* Body text */
  --steel:    #4A5E72;  /* Accent — usar com moderação */
  --steel-600:#3d4e5f;
  --mist:     #EEEDE8;  /* Surface */
  --paper:    #FAF9F6;  /* Background */
  --line:     #dcdbd4;  /* Bordas sutis */
  --white:    #ffffff;

  /* Tipografia */
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.06);
  --shadow-lg: 0 12px 40px rgba(20,20,20,.12);
  --transition: 180ms ease;

  --header-h: 72px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-600); }
h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--paper); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  line-height: 1; text-align: center; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--primary:hover { --btn-bg: #000; color: var(--paper); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); color: var(--ink); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--paper:hover { --btn-bg: var(--mist); color: var(--ink); }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* =========================================================
   CABEÇALHO / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo lockup */
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand__symbol { height: 38px; width: auto; color: var(--ink); flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.18rem; letter-spacing: .02em; color: var(--ink); }
.brand__tag {
  font-family: var(--font-mono); font-weight: 400;
  font-size: .58rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--graphite); margin-top: 3px;
}

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: 1.9rem; }
.nav__menu a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav__menu a:not(.btn):hover { color: var(--steel); }
.nav__menu a.nav__cta { color: var(--paper); }
.nav__desk svg { width: 16px; height: 16px; flex: none; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-right: -8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: var(--transition); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--mist);
  position: relative; overflow: hidden;
}
.hero::before {
  /* textura sutil de linhas — reforça o tom técnico */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 34px; opacity: .6; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  align-items: center;
}
.hero .kicker { color: #9fb0bf; }
.hero__title {
  color: var(--paper);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: -.03em;
  max-width: 15ch;
}
.hero__lead {
  color: #c9c8c2; font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  max-width: 52ch; margin-top: 1.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__actions .btn--ghost { --btn-fg: var(--paper); --btn-bd: rgba(255,255,255,.28); }
.hero__actions .btn--ghost:hover { --btn-bd: var(--paper); color: var(--paper); }
.hero__mark { display: none; justify-self: center; color: #9fb0bf; opacity: .22; }
.hero__symbol {
  height: clamp(240px, 32vw, 400px); width: auto;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.45));
}

/* =========================================================
   SEÇÕES GENÉRICAS
   ========================================================= */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--mist { background: var(--mist); }
.section__head { margin-bottom: 2.5rem; }
.section__head--center { text-align: center; max-width: 60ch; margin-inline: auto; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section__intro { margin-top: 1rem; font-size: 1.1rem; }
.section__head--center .kicker { display: block; }

/* Sobre */
.section__grid { display: grid; gap: 2.5rem; }
.section__body > p { margin-bottom: 1.1rem; max-width: 62ch; }

.pillars {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin: 2.25rem 0;
}
.pillar {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.pillar__num { font-family: var(--font-mono); color: var(--steel); font-size: .9rem; }
.pillar h3 { font-size: 1.15rem; margin: .5rem 0 .35rem; }
.pillar p { font-size: .98rem; margin: 0; }

.mission {
  display: grid; gap: 1.5rem; margin-top: 1rem;
  border-top: 1px solid var(--line); padding-top: 1.75rem;
}
.mission__label {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--steel); margin-bottom: .4rem;
}
.mission p { margin: 0; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c8c7c0; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.card__text { font-size: .98rem; margin: 0; }

/* =========================================================
   DIFERENCIAIS
   ========================================================= */
.features { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.feature {
  padding: 1.75rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--paper);
}
.feature__mono {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: .85rem; letter-spacing: .1em; color: var(--paper);
  background: var(--steel); padding: .3rem .6rem; border-radius: 3px; margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { font-size: .98rem; margin: 0; }

/* =========================================================
   FAIXA CTA
   ========================================================= */
.cta-band { background: var(--steel); color: var(--paper); }
.cta-band__inner { text-align: center; padding-block: clamp(3rem, 7vw, 4.5rem); }
.cta-band h2 { color: var(--paper); font-size: clamp(1.5rem, 3.5vw, 2.2rem); max-width: 22ch; margin-inline: auto; }
.cta-band p { margin: 1rem auto 2rem; max-width: 48ch; color: rgba(255,255,255,.85); }

/* =========================================================
   CONTATO
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact__lead { margin: 1rem 0 1.75rem; }
.contact__list { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.contact__list li { display: grid; gap: .15rem; }
.contact__label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--steel);
}
.contact__list a, .contact__list span:last-child { color: var(--ink); font-weight: 500; }

.contact__map { margin-top: .5rem; }
.contact__map iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line);
  border-radius: var(--radius-lg); display: block; filter: grayscale(1) contrast(.95);
  transition: filter var(--transition);
}
.contact__map iframe:hover { filter: grayscale(0); }

/* Formulário */
.contact__form-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form { display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.form__row { display: grid; gap: .4rem; }
.form label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.form label span { color: var(--steel); }
.form input, .form select, .form textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(74,94,114,.12);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .cf-turnstile { min-height: 65px; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #a4443a; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .95rem; min-height: 1.2em; margin: 0; }
.form__status.is-error { color: #a4443a; }
.form__status.is-success { color: #2f6b46; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer { background: var(--ink); color: #b9b8b2; }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.25rem;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.brand--footer { color: var(--paper); }
.brand--footer .brand__symbol { color: var(--paper); }
.brand--footer .brand__name { color: var(--paper); }
.brand--footer .brand__tag { color: #8f9ba5; }
.footer__desc { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer__col h3 {
  color: var(--paper); font-size: .82rem; font-family: var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700;
}
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { color: #b9b8b2; font-size: .96rem; }
.footer__col a:hover { color: var(--paper); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
  display: flex; flex-direction: column; gap: .5rem;
  padding-block: 1.5rem; font-size: .85rem; color: #8f8e88;
}
.footer__made { font-family: var(--font-mono); }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), background var(--transition);
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); background: #000; color: var(--paper); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (min-width: 600px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .mission { grid-template-columns: repeat(2, 1fr); }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; }
  .hero__mark { display: block; }
  .section__grid { grid-template-columns: .8fr 1.2fr; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Tablet: serviços em 2 colunas mais largas entre 600 e 900 já cobre */
@media (min-width: 600px) and (max-width: 899px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Menu mobile ---------- */
@media (max-width: 859px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a:not(.btn) { display: block; padding: .95rem .25rem; }
  .nav__menu .btn { width: 100%; margin-top: .7rem; }
  .nav__menu li:has(.btn) { border-bottom: 0; }
}

/* ---------- Preferências de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
