/* ==========================================================================
   CONCEPT OFICINA ESPECIALIZADA — DESIGN SYSTEM v2 (EDITORIAL AUTOMOTIVO)
   Estética: Engenharia Alemã Dark Minimalista · Precisão · Respiro · Autoridade
   ========================================================================== */

:root {
  --bg: #08080A;
  --bg-alt: #0E0E12;
  --surface: #131318;
  --surface-hover: #191920;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #FF6A1A;
  --accent-hover: #E85B10;
  --accent-soft: rgba(255, 106, 26, 0.11);
  --accent-border: rgba(255, 106, 26, 0.38);
  --wa: #25D366;
  --wa-hover: #1EBE5D;
  --text: #F5F5F7;
  --text-soft: #B5B5C0;
  --muted: #7D7D8A;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, a { touch-action: manipulation; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Campanha Sazonal (ativável via main.js quando houver campanha ativa) */
.campaign-bar {
  display: none;
  background: linear-gradient(90deg, #1A100B, #29140A, #1A100B);
  border-bottom: 1px solid var(--accent-border);
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--text);
}
.campaign-bar.is-active { display: block; }
.campaign-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.campaign-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #08080A;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.campaign-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header Minimalista */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand img { height: 42px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
  padding: 8px 0;
}
.nav-link:hover, .nav-link.active { color: #fff; }

/* Dropdown Especialidades */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-dropdown-btn:hover { color: #fff; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -24px;
  width: 560px;
  background: #111116;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}
.nav-dropdown-menu a span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.nav-dropdown-menu a:hover span { color: var(--text-soft); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.2s;
}
.header-phone:hover { color: #fff; }

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile {
  display: none;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px calc(28px + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 78px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
  color: var(--text-soft);
}
.nav-mobile a:hover { color: #fff; }
.mobile-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 6px;
}

/* Botões refinados (hierarquia limpa) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }

.btn-accent {
  background: var(--accent);
  color: #08080A;
  font-weight: 700;
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

.btn-wa {
  background: var(--wa);
  color: #062111;
  font-weight: 700;
}
.btn-wa:hover { background: var(--wa-hover); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Tipografia Editorial */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: #fff;
}
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.015em; line-height: 1.25; }

.accent { color: var(--accent); }

.section { padding: 96px 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head p { color: var(--text-soft); font-size: 17px; margin-top: 16px; }

/* Hero Cinematográfico */
.hero-cine {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) contrast(1.06);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 10, 0.96) 0%,
    rgba(8, 8, 10, 0.84) 48%,
    rgba(8, 8, 10, 0.42) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-lead {
  font-size: 18px;
  color: var(--text-soft);
  margin: 22px 0 34px;
  max-width: 600px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-meta {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.hero-meta strong { color: var(--text-soft); font-weight: 600; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: #fff; }

/* Metrics Bar (Prova Real) */
.metrics-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--border-strong);
}
.metric:first-child { border-left-color: var(--accent); }
.metric-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.metric-star { color: #FBBF24; font-size: 22px; }
.metric-lbl { font-size: 13px; color: var(--muted); }

/* Specialty Photo Cards */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.spec-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}
.spec-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0B0B0F;
}
.spec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.spec-card:hover .spec-img img { transform: scale(1.05); }
.spec-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.spec-body p { font-size: 14px; color: var(--text-soft); flex: 1; line-height: 1.55; }
.spec-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Casos Reais Anonimizados (Dossiês de Engenharia) */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.case-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
}
.case-km {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.case-rows { display: grid; gap: 14px; }
.case-row strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.case-row p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.case-result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: #fff;
  font-weight: 500;
}

/* Pillars / Method */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.pillar p { color: var(--text-soft); font-size: 14.5px; margin-top: 12px; }

/* Authority (Lucas Caputo) */
.founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}
.founder-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: #060608;
}
.founder-quote {
  margin: 22px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}
.founder-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.founder-point strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.founder-point span { font-size: 13.5px; color: var(--text-soft); }

/* Scope & Checklist (Landing Pages) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.list-clean { display: grid; gap: 18px; }
.list-clean li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.list-clean li:last-child { border-bottom: none; padding-bottom: 0; }
.list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}
.list-clean strong { display: block; color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.list-clean p { color: var(--text-soft); font-size: 14.5px; }

/* Technical Note (elegante, sem vermelho alarmista) */
.tech-note {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.tech-note strong { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.tech-note p { color: var(--text-soft); font-size: 14.5px; }

/* FAQ Accordion */
.faq-list { max-width: 860px; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* Contact & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}
.contact-rows { display: grid; gap: 18px; }
.contact-rows span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-rows strong, .contact-rows p { font-size: 15px; color: var(--text); font-weight: 500; }
.map-frame {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  filter: grayscale(35%) invert(92%) contrast(92%);
}

/* CTA Final */
.cta-band {
  background: linear-gradient(135deg, #141110 0%, #101015 60%, #19120D 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band p { color: var(--text-soft); max-width: 560px; margin-top: 10px; font-size: 16px; }

/* Legal prose */
.prose { max-width: 800px; display: grid; gap: 18px; color: var(--text-soft); }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }

/* Footer */
.site-footer {
  background: #050507;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 26px;
  font-size: 12.5px;
}

/* Botão Flutuante WhatsApp — discreto, só aparece após rolar */
.wa-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 999;
  background: var(--wa);
  color: #062111;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.wa-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }

/* Responsive — Tablet / iPad */
@media (max-width: 1080px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .pillars-grid { grid-template-columns: 1fr; }
  .founder-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(8, 8, 10, 0.78) 0%,
      rgba(8, 8, 10, 0.88) 55%,
      rgba(8, 8, 10, 0.96) 100%
    );
  }
}

/* Responsive — iPhone & Android */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { height: 68px; }
  .brand img { height: 36px; }
  .nav-mobile { max-height: calc(100dvh - 68px); }
  .section { padding: 60px 0; }
  .hero-cine { min-height: 480px; padding: 52px 0 56px; }
  h1 { font-size: clamp(30px, 8.2vw, 42px); }
  h2 { font-size: clamp(25px, 6.8vw, 34px); }
  .hero-lead { font-size: 16px; margin: 18px 0 26px; }
  .spec-grid, .metrics-grid, .founder-points, .footer-grid { grid-template-columns: 1fr; }
  .case-card, .pillar, .contact-card { padding: 24px 20px; }
  .cta-band { padding: 30px 22px; }
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .map-frame { min-height: 300px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}
