/* Go Electric — design tokens (sistema 2026)
   Identidade: amarelo CTA (#ffdd00) + âmbar (#feb912) + ink quente (#231f20) + branco + cinzas neutros.
   Badges de status: verde (#00D084 10%) para sucesso, laranja (#FF6900 10%) para atenção. */

:root {
  /* Marca */
  --brand:          #ffdd00;       /* amarelo principal — CTAs */
  --brand-hover:    #feb912;       /* âmbar — hover e gradient pair */
  --ink:            #231f20;       /* preto quente — header, footer, títulos fortes */
  --ink-soft:       #2b2f33;       /* grafite — variações, cards on dark */
  --on-brand:       #231f20;       /* texto sobre amarelo */
  --on-ink:         #ffffff;       /* texto sobre preto */
  --on-ink-muted:   rgba(255, 255, 255, 0.7);

  /* Aliases semânticos do sistema de design */
  --amber:          #feb912;       /* alias de brand-hover (uso explícito do âmbar) */
  --graphite:       #2b2f33;       /* alt dark — cards em fundo escuro */
  --mist:           #e5e7eb;       /* divisor claro */

  /* Superfícies */
  --bg:             #ffffff;
  --bg-alt:         #fafafa;
  --bg-muted:       #f5f5f5;
  --surface:        #ffffff;
  --border:         #f2f2f2;       /* borda muito suave (cards) */
  --border-strong:  #e5e5e5;

  /* Tipografia */
  --text:           #0f0f0f;       /* títulos e corpo */
  --text-muted:     #4a4a4a;
  --text-dim:       #8a8a8a;
  --divider:        rgba(0, 0, 0, 0.08);

  /* Status badges */
  --status-success-bg: rgba(0, 208, 132, 0.10);
  --status-success-fg: #003d27;
  --status-warn-bg:    rgba(255, 105, 0, 0.10);
  --status-warn-fg:    #3d1900;

  /* Layout */
  --max-w:          1320px;
  --gutter:         clamp(16px, 4vw, 40px);
  --radius:         4px;
  --radius-lg:      10px;

  /* Tipografia */
  --font-sans:      "Hanken Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display:   "Hanken Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Sombras */
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:      0 20px 40px rgba(0, 0, 0, 0.12);

  --ease:           cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Aliases retrocompatíveis (pages.css ainda usa os nomes antigos) */
  --brand-deep:     var(--ink);
  --brand-darker:   var(--ink);
  --brand-soft:     var(--ink-soft);
  --accent:         var(--brand);
  --accent-soft:    var(--brand-hover);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
a:hover { color: var(--brand-hover); }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* === Brand / Logo === */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--on-ink);
}
.brand__img {
  display: block;
  height: 38px;
  width: auto;
}
@media (max-width: 640px) {
  .brand__img { height: 30px; }
}

/* === Buttons === */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--on-brand);
  cursor: pointer;
  text-decoration: none;
  transition: all 180ms var(--ease);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.button:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(239, 177, 33, 0.35);
}
.button--large {
  padding: 16px 32px;
  font-size: 16px;
}
.button--outline {
  background: transparent;
  color: var(--on-brand);
  border-color: var(--ink);
}
.button--outline:hover {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: none;
}
.button--outline-light {
  background: transparent;
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.35);
}
.button--outline-light:hover {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.button--whatsapp {
  background: #25d366;
  color: #fff;
}
.button--whatsapp:hover {
  background: #1ebe5a;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

/* === Status badges === */
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.badge--success {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
}
.badge--warn {
  background: var(--status-warn-bg);
  color: var(--status-warn-fg);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav > a,
.site-nav__group > button {
  padding: 10px 14px;
  color: var(--on-ink);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  transition: background 150ms, color 150ms;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav > a:hover,
.site-nav__group:hover > button,
.site-nav__group--open > button {
  color: var(--brand);
}
.site-nav > a[aria-current="page"] { color: var(--brand); }

.site-nav__group { position: relative; }
.site-nav__caret {
  font-size: 10px;
  opacity: 0.7;
}
.site-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}
.site-nav__sub a {
  display: block;
  padding: 8px 12px;
  color: var(--on-ink);
  font-size: 14px;
  border-radius: var(--radius);
}
.site-nav__sub a:hover {
  background: rgba(255, 213, 0, 0.08);
  color: var(--brand);
}
.site-nav__group:hover .site-nav__sub,
.site-nav__group--open .site-nav__sub {
  display: block;
}

.site-nav__cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  font-size: 13px !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-ink);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.site-header.is-nav-open .nav-toggle__icon { background: transparent; }
.site-header.is-nav-open .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-nav-open .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav__cta { margin-left: 0; margin-top: 8px; }
  .site-nav__sub {
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    display: none;
  }
  .site-nav__group--open .site-nav__sub { display: block; }
  .site-nav__group > button { width: 100%; justify-content: space-between; }
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer a { color: var(--on-ink-muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer h3 {
  color: var(--on-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.site-footer p { margin-bottom: 6px; font-size: 14px; line-height: 1.7; }
.site-footer__grid {
  /* Brand cresce na esquerda (flex:1), e o wrapper .site-footer__cols à direita
     contém Navegar/Contato/Siga. Sem column-gap no parent — o espaçamento entre
     brand e o grupo é controlado por `margin-inline: auto` no wrapper, garantindo
     centralização exata do grupo entre brand e a borda direita. */
  display: flex;
  flex-wrap: wrap;
  gap: 40px 0;
  align-items: flex-start;
  margin-bottom: 32px;
}
.site-footer__col {
  flex: 0 0 auto;
  min-width: 160px;
  max-width: 220px;        /* impede que conteúdo longo (endereço) estique a coluna */
}
.site-footer__col--wide {
  max-width: 360px;        /* coluna Contato: cabe o endereço completo numa linha só */
}
/* Só a brand (col direta do grid) — não pegar a Navegar dentro do wrapper. */
.site-footer__grid > .site-footer__col:first-child {
  flex: 1 1 280px;
  max-width: 380px;
}
/* Wrapper das 3 colunas da direita (Navegar/Contato/Siga). Margens auto nas
   2 pontas distribuem igualmente o espaço sobrando entre a coluna brand e a
   borda direita → o grupo das 3 fica perfeitamente centralizado. */
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
  margin-inline: auto;
}
@media (max-width: 800px) {
  .site-footer__col,
  .site-footer__col:first-child {
    flex: 1 1 calc(50% - 28px);
    max-width: none;
  }
}
@media (max-width: 540px) {
  .site-footer__col,
  .site-footer__col:first-child {
    flex: 1 1 100%;
    max-width: none;
  }
}
.site-footer__brand-img { height: 60px; width: auto; margin-bottom: 14px; }
.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer__phone-icon {
  color: #25D366;
  flex-shrink: 0;
}
.site-footer__phone:hover .site-footer__phone-icon { color: #25D366; }
.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__credit { display: inline-flex; align-items: center; }
.site-footer__credit img { display: block; opacity: 0.85; transition: opacity 0.2s ease; }
.site-footer__credit a:hover img { opacity: 1; }

/* === Sections (genérico) === */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a6b00;
  font-weight: 700;
  margin-bottom: 12px;
}
.section--ink .section__eyebrow { color: var(--brand); }
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
  color: var(--text);
}
.section--ink .section__title { color: var(--on-ink); }
.section__lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}
.section--ink .section__lead { color: var(--on-ink-muted); }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
}

/* === Forms (compartilhado entre /contato/ e home inline) === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .contact-form .row { grid-template-columns: 1fr; }
}
.contact-form .field { display: grid; gap: 6px; }
.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms, box-shadow 150ms;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.20);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input[type="file"] {
  padding: 8px;
  font-size: 13px;
  background: var(--bg-muted);
  cursor: pointer;
}
.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}
.alert--success {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-left: 3px solid #00D084;
}
.alert--error {
  background: var(--status-warn-bg);
  color: var(--status-warn-fg);
  border-left: 3px solid #FF6900;
}

.contact-info {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.contact-info h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 18px 0 8px;
  font-weight: 700;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-info a { color: var(--text); font-weight: 500; }
.contact-info a:hover { color: var(--brand-hover); }

/* === WhatsApp flutuante === */
.fab-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform 180ms var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
