/* ==========================================================================
   ElectroForça — Sistema de Design
   Paleta: aço industrial + âmbar de sinalização (baliza anti-colisão)
   ========================================================================== */

:root {
  --charcoal: #171d22;
  --steel: #232e36;
  --steel-light: #3a4a56;
  --steel-line: #445561;
  --paper: #eceff1;
  --paper-dim: #d3d9dc;
  --amber: #f5a623;
  --amber-dark: #c97f0e;
  --rust: #c1440e;
  --green: #4c7a52;
  --white: #ffffff;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--charcoal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.03em; }

p { margin: 0 0 1em; color: var(--steel-light); }
a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* ---------- Assinatura visual: faixa de perigo (hazard strip) ---------- */
.hazard-strip {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0px, var(--amber) 14px,
    var(--charcoal) 14px, var(--charcoal) 28px
  );
}

/* ---------- Assinatura visual: baliza pulsante (beacon) ---------- */
.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6);
  animation: beacon-pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes beacon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .beacon-dot { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------------------------- Header / Nav ---------------------------- */
header.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 34px; }
.logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-text span { color: var(--amber); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--paper-dim);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--amber);
}
.nav-cta {
  background: var(--amber);
  color: var(--charcoal) !important;
  padding: 10px 18px !important;
  font-weight: 600;
  border: none !important;
}
.nav-cta:hover { background: var(--white); color: var(--charcoal) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-line);
  color: var(--white);
  padding: 8px 10px;
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--charcoal);
    border-top: 1px solid var(--steel-line);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }
}

/* ------------------------------ Hero ---------------------------------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Carrossel de fotos de fundo */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-carousel .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-carousel .slide.active { opacity: 1; }

/* Camada charcoal semi-transparente sobre as fotos */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(23, 29, 34, 0.94) 0%,
    rgba(23, 29, 34, 0.86) 42%,
    rgba(23, 29, 34, 0.6) 100%
  );
}

.hero > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  color: var(--paper-dim);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-art { position: relative; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--amber);
  display: block;
}
.hero-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero > .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 280px; }
}
.hero.hero-photo > .container { grid-template-columns: 1fr; max-width: 760px; }
.hero.hero-photo { min-height: 560px; display: flex; align-items: center; }

/* ---------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 13px 24px;
  border: 2px solid var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--charcoal); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn-ghost { background: transparent; border-color: var(--paper-dim); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--steel); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ------------------------------ Sections -------------------------------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark p { color: var(--paper-dim); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-steel { background: var(--steel); color: var(--white); }
.section-steel p { color: var(--paper-dim); }
.section-steel h2 { color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head p { max-width: 52ch; margin: 0; }

/* ------------------------------ Grids ----------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ------------------------------ Cards ----------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--paper-dim);
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--amber); transform: translateY(-3px); }
.card .icon-badge { margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-dark);
  letter-spacing: 0.03em;
}

.icon-badge {
  width: 56px;
  height: 56px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.icon-badge img { width: 28px; height: 28px; }

.card-dark {
  background: var(--steel);
  border: 1px solid var(--steel-line);
  color: var(--white);
}
.card-dark p { color: var(--paper-dim); }
.card-dark .icon-badge { background: var(--amber); }

/* --------------------------- Product cards ------------------------------ */
.product-card {
  background: var(--white);
  border: 1px solid var(--paper-dim);
  display: flex;
  flex-direction: column;
}
.product-card .thumb {
  background: var(--steel);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card .thumb img { width: 44%; }
.product-card .thumb .sku {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.product-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1rem; margin-bottom: 6px; }
.product-card p { font-size: 0.88rem; flex: 1; }
.stock-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-top: 12px;
}

/* --------------------------- Partner strip ------------------------------ */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--paper-dim);
  border: 1px solid var(--paper-dim);
}
.partner-row .partner-cell {
  flex: 1 1 180px;
  background: var(--white);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.partner-cell .wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-transform: uppercase;
  text-align: center;
}

/* --------------------------- Branch / filiais ---------------------------- */
.branch-card {
  border: 1px solid var(--paper-dim);
  background: var(--white);
  padding: 26px;
  display: flex;
  gap: 18px;
}
.branch-card .pin { flex-shrink: 0; width: 30px; height: 30px; margin-top: 2px; }
.branch-card h3 { margin-bottom: 4px; }
.branch-card .country-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 8px;
  display: block;
}
.branch-card address { font-style: normal; font-size: 0.9rem; color: var(--steel-light); margin-bottom: 8px; }
.branch-card .phone { font-family: var(--font-mono); font-size: 0.85rem; color: var(--charcoal); }

/* --------------------------- Timeline (Sobre) ---------------------------- */
.timeline { border-left: 2px solid var(--amber); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 40px 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background: var(--amber);
  border: 2px solid var(--charcoal);
  border-radius: 50%;
}
.timeline-item .year {
  font-family: var(--font-mono);
  color: var(--amber-dark);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 6px;
}

/* --------------------------- Stats band ---------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}
.stats-band .stat {
  padding: 32px 24px;
  border-right: 1px solid var(--steel-line);
}
.stats-band .stat:last-child { border-right: none; }
.stats-band .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--amber);
  display: block;
}
.stats-band .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat:nth-child(2) { border-right: none; }
}

/* --------------------------- Forms ---------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-light);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--paper-dim);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
textarea { resize: vertical; min-height: 120px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Breadcrumb / page hero --------------------- */
.page-banner {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 0 40px;
}
.page-banner p { color: var(--paper-dim); max-width: 60ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--paper-dim);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--amber); }

/* --------------------------- Category filter chips ----------------------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border: 1px solid var(--paper-dim);
  background: var(--white);
  text-transform: uppercase;
  cursor: pointer;
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

/* --------------------------- Footer ---------------------------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--paper-dim);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid var(--steel-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-line);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Utilities ---------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  background: var(--paper-dim);
  color: var(--steel);
}
