body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); transform: translateY(-2px); }

.btn-whatsapp--nav {
  padding: 0.6em 1.2em;
  font-size: 0.95rem;
  display: none;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-orange); color: var(--color-orange); }

.btn-lg { padding: 1em 2em; font-size: 1.15rem; }
.btn-block { width: 100%; }

.icon-wa { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(10, 13, 18, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand-logo {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--color-orange); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(247, 148, 29, 0.16), transparent 70%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fallback-img {
  position: absolute;
  inset: 0;
}
.hero-fallback-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  opacity: 0.35;
}
.hero-fallback-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-bg) 15%, rgba(10, 13, 18, 0.35) 55%, rgba(10, 13, 18, 0.1) 100%);
}

body.has-3d .hero-fallback-img { display: none; }
body:not(.has-3d) .hero-canvas { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: var(--space-6);
}

.eyebrow, .section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 4px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 999px;
  animation: scrollCue 1.8s ease-in-out infinite;
}

/* ===== Sections ===== */
.section {
  padding-block: var(--space-6);
}
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 26ch;
  margin-bottom: var(--space-5);
}

.grid { display: grid; gap: var(--space-3); }

.grid-services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-differentials { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247, 148, 29, 0.4); }

.card-service h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.card-service p { color: var(--color-text-muted); font-size: 0.98rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(247, 148, 29, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
  padding: var(--space-3) var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.badge svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 1.6;
}
.badge span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

/* ===== Localização ===== */
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.localizacao-text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
  max-width: 50ch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 1.8;
  flex: none;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}
.map-frame { width: 100%; height: 100%; border: 0; }

/* ===== Depoimentos ===== */
.card-testimonial { display: flex; flex-direction: column; gap: var(--space-3); }
.testimonial-quote { font-size: 1.05rem; color: var(--color-text); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-2); }
.testimonial-author small { display: block; color: var(--color-text-muted); }
.avatar-initial {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(247, 148, 29, 0.16);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}

/* ===== Footer ===== */
.site-footer {
  background: #05070a;
  padding-block: var(--space-5);
  padding-bottom: calc(var(--space-5) + 70px);
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5em; }
.footer-logo { height: 38px; width: auto; margin-bottom: var(--space-2); }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0.06em;
}
.footer-meta, .footer-copy, .footer-credits { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-credits:empty { display: none; }

/* ===== Mobile CTA bar ===== */
.mobile-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: var(--space-2) var(--space-3);
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .localizacao-text { font-size: 1.15rem; }
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .btn-whatsapp--nav { display: inline-flex; }
  .mobile-cta-bar { display: none; }
  .site-footer { padding-bottom: var(--space-5); }

  .localizacao-grid { grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 859px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav ul { flex-direction: column; padding: var(--space-3); gap: var(--space-2); }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
