:root {
  --bg: #0d0e10;
  --bg-elevated: #17181b;
  --bg-elevated-2: #1f2023;
  --border: #2b2c30;
  --yellow: #ffc400;
  --yellow-dim: #cf9e00;
  --blue: #2f6fc4;
  --red: #d64545;
  --text: #f2f1ed;
  --text-muted: #a6a6ab;
  --radius: 6px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(78px + env(safe-area-inset-top, 0px));
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Work Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.15;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13,14,16,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 44px; flex-shrink: 0; }
.brand-mark img { height: 100%; width: auto; display: block; object-fit: contain; }

nav.links { display: flex; align-items: center; gap: 28px; }
nav.links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  transition: color .15s ease;
}
nav.links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--yellow); color: #17130a; }
.btn-primary:hover { background: #ffd23f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.mobile-panel { display: none; }

@media (max-width: 780px) {
  nav.links, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-panel.open { display: flex; }
  .mobile-panel a {
    padding: 12px 4px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .mobile-panel .btn { margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 84px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,196,0,0.05), transparent 40%),
    var(--bg);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--yellow);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.eyebrow-line .dash { width: 28px; height: 2px; background: var(--yellow); }
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  max-width: 14ch;
}
.hero p.lede {
  margin-top: 20px;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 17px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta div { font-size: 14px; color: var(--text-muted); }
.hero-meta strong { display: block; color: var(--text); font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 2px; }

.sign-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 3px solid var(--yellow);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255,196,0,0.08);
}
.sign-frame img { width: 100%; height: 100%; object-fit: cover; }
.sign-frame .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(13,14,16,0.85);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text);
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .sign-frame { order: -1; max-width: 100%; margin: 0 auto; }
}

/* ---------- Section Shell ---------- */
section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .eyebrow-line { color: var(--text-muted); }
.section-head .eyebrow-line .dash { background: var(--text-muted); }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 16px; max-width: 52ch; }

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.services-intro h3 { font-size: 24px; margin-bottom: 14px; }
.services-intro p { color: var(--text-muted); font-size: 15.5px; }
.services-intro p + p { margin-top: 12px; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.service-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: 1px solid var(--border); }
.service-list .tag {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--yellow);
}
.service-list h4 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 4px; }
.service-list p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Coverage ---------- */
.coverage-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto 0.8fr;
  gap: 32px;
  align-items: center;
}
.coverage-base { font-size: 15px; color: var(--text-muted); }
.coverage-base strong { color: var(--yellow); font-family: 'Oswald', sans-serif; font-weight: 600; }
.coverage-address { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }
.coverage-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}
.chip.chip-blue { border-color: var(--blue); color: #cfe0f5; }

.coverage-divider {
  width: 1px;
  align-self: stretch;
  background: repeating-linear-gradient(180deg, var(--yellow) 0 10px, transparent 10px 20px);
  opacity: 0.6;
}
.coverage-out { font-size: 14px; color: var(--text-muted); }
.coverage-out strong { display: block; font-family: 'Oswald', sans-serif; color: var(--text); font-size: 15px; margin-bottom: 8px; font-weight: 600; }

@media (max-width: 768px) {
  .coverage-box { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .coverage-divider { display: none; }
}

/* ---------- Clientes (4 colunas Desktop x 2 colunas Mobile) ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas estendidas no desktop (2 linhas de 4) */
  gap: 20px;
  width: 100%;
}

.client-bubble {
  width: 100%;
  text-align: center;
}

.client-avatar {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 10px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.client-bubble:hover .client-avatar {
  border-color: var(--yellow);
  border-style: solid;
  background: var(--bg-elevated-2);
  transform: translateY(-3px);
}

.client-avatar img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 14px;
}

.client-avatar .fallback {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px;
}

.client-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .18s ease;
}

.client-bubble:hover .client-name { color: var(--text); }

@media (max-width: 840px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr); /* Reajusta para 2 colunas em telas menores/mobile */
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    gap: 12px;
  }
  .client-avatar { height: 90px; }
  .client-avatar img { padding: 10px; }
}

/* ---------- Carousel ---------- */
.carousel { display: flex; flex-direction: column; gap: 16px; }
.carousel-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  touch-action: pan-y;
}
.carousel-track { width: 100%; height: 100%; position: relative; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(13,14,16,0.75);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: border-color .15s ease, background .15s ease;
}
.carousel-arrow:hover { border-color: var(--yellow); background: rgba(13,14,16,0.9); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-thumbs-row { display: flex; align-items: center; gap: 10px; }
.carousel-thumbs {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 4px;
}
.carousel-thumbs::-webkit-scrollbar { height: 6px; }
.carousel-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.carousel-thumb {
  flex: 0 0 92px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--bg-elevated);
  padding: 0;
  scroll-snap-align: start;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .15s ease; }
.carousel-thumb.active { border-color: var(--yellow); }
.carousel-thumb.active img, .carousel-thumb:hover img { opacity: 1; }

.thumbs-arrow {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(13,14,16,0.72);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease;
}
.thumbs-arrow:hover { border-color: var(--yellow); }

@media (max-width: 560px) {
  .carousel-thumb { flex-basis: 76px; }
  .thumbs-arrow { display: none; }
}

/* ---------- Contact / Footer ---------- */
.contact {
  border-bottom: none;
  background: linear-gradient(180deg, transparent, rgba(255,196,0,0.04));
}
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 48px;
  flex-wrap: wrap;
}
.contact-box h2 { font-size: clamp(24px, 3vw, 30px); max-width: 20ch; }
.contact-box p { color: var(--text-muted); margin-top: 10px; max-width: 40ch; font-size: 15.5px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

@media (max-width: 768px) {
  .contact-box { padding: 28px; }
}

footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--yellow); }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: #17130a;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform .15s ease, background-color .15s ease;
}
.float-wa:hover { transform: scale(1.08); background: #ffd23f; }
.float-wa svg { width: 28px; height: 28px; }

/* ---------- Animações Seguras (Fallbacks Ativos) ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}

html.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}