/* =========================================================
   W.A Celulares — Design System
   Base: tela cinematográfica preta, tipografia grande e precisa,
   cor racionada em um único acento (verde da marca), zero sombra,
   raio de 28px como assinatura, superfícies em vidro fosco.
   ========================================================= */

:root {
  /* --- Cores --- */
  --black: #000000;
  --charcoal: #121214;
  --surface: #18191c;
  --surface-2: #202226;
  --hairline: rgba(255, 255, 255, 0.09);
  --silk: #f5f5f7;
  --muted: #9a9ea6;
  --dim: #6b6f76;

  --brand: #29e673;        /* verde de ação — único acento cromático */
  --brand-strong: #17c161;
  --brand-dim: #0f7a3d;
  --brand-wash: rgba(41, 230, 115, 0.12);
  --circuit: rgba(41, 230, 115, 0.35);

  /* --- Tipografia --- */
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  /* --- Espaçamento (base 4px) --- */
  --sp-4: 4px;  --sp-8: 8px;  --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-28: 28px; --sp-32: 32px;
  --sp-40: 40px; --sp-48: 48px; --sp-60: 60px; --sp-80: 80px;
  --sp-104: 104px; --sp-144: 144px;

  /* --- Raios --- */
  --r-pill: 9999px;
  --r-card: 28px;
  --r-input: 210px;
  --r-small: 10px;

  --page-max: 1200px;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--silk);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--silk);
}

h1 { font-size: 64px; line-height: 1.06; letter-spacing: -0.012em; }
h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.006em; }
h3 { font-size: 28px; line-height: 1.14; letter-spacing: 0; }
h4 { font-size: 19px; line-height: 1.2; letter-spacing: 0.004em; }

p { margin: 0; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

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

.section {
  padding: var(--sp-104) 0;
}
.section--tight { padding: var(--sp-60) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-24);
  margin-bottom: var(--sp-48);
}
.section-head p { max-width: 46ch; margin-top: var(--sp-12); }

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(1);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--sp-24);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 40px; width: auto; }
.nav__brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: var(--sp-32);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--silk); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}
.nav__toggle {
  display: none;
  position: relative;
  z-index: 10;
  background: none;
  border: none;
  color: var(--silk);
  font-size: 24px;
  cursor: pointer;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--brand);
  color: #001b0c;
}
.btn--primary:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  color: var(--silk);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-80) 0 var(--sp-104);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, var(--brand-wash), transparent 60%),
    var(--black);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-48);
  align-items: center;
}
.hero__eyebrow { margin-bottom: var(--sp-20); }
.hero h1 { margin-bottom: var(--sp-20); }
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero__lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: var(--sp-32);
}
.hero__actions { display: flex; gap: var(--sp-16); flex-wrap: wrap; }

.hero__visual {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 720/1359;
  background: #000000;
}
.hero__visual img {
  width: 100%; height: 100%; object-fit: contain;
}
.hero__stats {
  display: flex;
  gap: var(--sp-40);
  margin-top: var(--sp-48);
  padding-top: var(--sp-32);
  border-top: 1px solid var(--hairline);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--brand);
}
.hero__stat span { font-size: 13px; color: var(--dim); }

/* ================= SERVICES ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--sp-28);
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover {
  border-color: var(--circuit);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-wash);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-20);
}
.service-card h4 { margin-bottom: var(--sp-8); }
.service-card p { font-size: 15px; }

/* ================= PROCESS (linha do fluxo de atendimento) ================= */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
  position: relative;
}
.process__step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--sp-24);
}
.process__index {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 13px;
  margin-bottom: var(--sp-16);
}
.process__step h4 { margin-bottom: 8px; font-size: 17px; }
.process__step p { font-size: 14px; }

/* ================= SUCATA (banda light) ================= */
.band-light {
  background: var(--silk);
  color: var(--charcoal);
}
.band-light h2, .band-light h3, .band-light h4 { color: var(--charcoal); }
.band-light p { color: #55585e; }
.band-light .eyebrow { color: var(--brand-dim); }
.band-light .eyebrow::before { background: var(--brand-dim); box-shadow: none; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  align-items: center;
}
.split__media {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 720/1083;
  background: #000000;
}
.split__media img { width: 100%; height: 100%; object-fit: contain; }

.checklist { list-style: none; margin: var(--sp-24) 0 0; padding: 0; display: grid; gap: var(--sp-12); }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #3a3d42;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--brand);
}

/* ================= FORM (orçamento) ================= */
.form-card {
  background: var(--surface);
  border: 1px solid rgba(41, 230, 115, 0.35);
  border-radius: var(--r-card);
  padding: var(--sp-32);
}
.form-row { display: grid; gap: var(--sp-16); margin-bottom: var(--sp-16); }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  background: var(--black);
  border: 1.5px solid rgba(41, 230, 115, 0.45);
  color: var(--silk);
  border-radius: var(--r-small);
  padding: 13px 16px;
  font-family: var(--font-text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; border-radius: 18px; }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
input::placeholder, textarea::placeholder { color: var(--dim); }

.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--sp-20);
}
.checkbox-row input { width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-row label { margin: 0; font-size: 14px; color: var(--silk); }

.alert {
  border-radius: var(--r-small);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: var(--sp-20);
  border: 1px solid;
}
.alert--success { background: var(--brand-wash); border-color: var(--brand-dim); color: var(--brand); }
.alert--error { background: rgba(255, 90, 90, 0.1); border-color: #a83232; color: #ff8080; }

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--sp-60) 0 var(--sp-32);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-40);
  margin-bottom: var(--sp-48);
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-16); }
.footer__brand img { height: 36px; width: auto; }
.footer h5 { font-size: 13px; color: var(--dim); margin-bottom: var(--sp-16); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { font-size: 14px; color: var(--muted); }
.footer a:hover { color: var(--brand); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-24);
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--dim);
}

/* ================= WHATSAPP FLOAT ================= */
.wa-float {
  position: fixed;
  bottom: var(--sp-24);
  right: var(--sp-24);
  z-index: 60;
  background: var(--brand);
  color: #001b0c;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ================= GALERIA DE TRABALHOS ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
}
.gallery-item {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: var(--silk);
  font-size: 12px;
  padding: 20px 12px 10px;
}
.empty-gallery {
  border: 1px dashed var(--hairline);
  border-radius: var(--r-card);
  padding: var(--sp-48) var(--sp-24);
  text-align: center;
}
.empty-gallery p { font-size: 15px; color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* ================= APARELHOS À VENDA ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
}
.product-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__media {
  aspect-ratio: 1/1;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: var(--sp-20); flex: 1; display: flex; flex-direction: column; }
.product-card__body h4 { color: var(--charcoal); font-size: 17px; margin-bottom: 6px; }
.product-card__body p { font-size: 13px; color: #6b6f76; flex: 1; margin-bottom: var(--sp-16); }
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  padding-top: var(--sp-16);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.product-card__price { font-family: var(--font-mono); font-size: 16px; color: var(--brand-dim); font-weight: 600; }

/* ================= DEPOIMENTOS ================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--sp-24);
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars { color: var(--brand); font-size: 15px; letter-spacing: 2px; margin-bottom: var(--sp-16); }
.testimonial-card__text { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.testimonial-card__author {
  margin-top: var(--sp-16);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--hairline);
  font-size: 14px; font-weight: 600; color: var(--silk);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; aspect-ratio: 720/1359; max-height: 80vh; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; aspect-ratio: 720/1083; max-height: 70vh; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .services-grid, .process { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: var(--sp-24); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .product-card__footer { flex-wrap: wrap; }
  .product-card__footer .btn { width: 100%; }
  .section { padding: var(--sp-60) 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
