:root {
  --bg: #0D0D24;
  --bg-soft: #12122c;
  --blue: #3765D0;
  --blue-dark: #414791;
  --gray-light: #E0E0E0;
  --white: #FFFFFF;
  --text-muted: #a9adc9;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1160px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; margin-bottom: 4px; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow.center, h2.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(55, 101, 208, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(55, 101, 208, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 36, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.brand { display: flex; align-items: center; justify-self: start; }
.brand-logo { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; justify-self: center; white-space: nowrap; }
.header-cta { justify-self: end; }
.nav-toggle { justify-self: end; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; color: var(--white); position: relative; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  border-radius: 2px;
}
.header-cta { margin-left: 24px; padding: 10px 22px; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 140px;
  background-image:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 28%, rgba(13,13,36,0.78) 48%, rgba(13,13,36,0.35) 68%, rgba(13,13,36,0.15) 100%),
    url('img/hero-bg.jpg');
  background-size: cover;
  background-position: right center;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(55,101,208,0.22) 0%, rgba(65,71,145,0.08) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero-sub { font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 156px 0 64px;
}
.page-hero-glow {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(55,101,208,0.2) 0%, rgba(65,71,145,0.07) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 620px; font-size: 1.05rem; }

.page-hero--img {
  height: 92vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 64px 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}
.page-hero--img > .container { width: 100%; }
.page-hero--img.page-hero--quemsomos { background-image: linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(13,13,36,0.7) 46%, rgba(13,13,36,0.25) 68%, rgba(13,13,36,0.1) 100%), url('img/page-hero-quemsomos.jpg'); }
.page-hero--img.page-hero--qualidade { background-image: linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(13,13,36,0.7) 46%, rgba(13,13,36,0.25) 68%, rgba(13,13,36,0.1) 100%), url('img/page-hero-qualidade.jpg'); }
.page-hero--img.page-hero--marcas { background-image: linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(13,13,36,0.7) 46%, rgba(13,13,36,0.25) 68%, rgba(13,13,36,0.1) 100%), url('img/page-hero-marcas.jpg'); }
.page-hero--img.page-hero--contato { background-image: linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(13,13,36,0.7) 46%, rgba(13,13,36,0.25) 68%, rgba(13,13,36,0.1) 100%), url('img/page-hero-contato.jpg'); }

@media (max-width: 720px) {
  .page-hero--img {
    background-image: none !important;
    height: auto;
    padding: 110px 0 40px;
  }
}

/* Sobre */
.sobre { padding: 90px 0; background: var(--bg-soft); }
.sobre-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.sobre-text { max-width: 680px; }
.sobre-text p strong { color: var(--white); }
.sobre-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sobre-list-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sobre-list-item p { font-size: 0.9rem; margin: 0; }
.sobre-card {
  background: linear-gradient(160deg, rgba(55,101,208,0.18), rgba(65,71,145,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sobre-stat { display: flex; flex-direction: column; gap: 4px; }
.sobre-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--white); line-height: 1.25; }
.sobre-stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Marcas */
.marcas { padding: 100px 0; }
.marcas h2 { margin-bottom: 48px; }
.marcas-intro { max-width: 640px; font-size: 1.05rem; margin-bottom: 48px; }
.marcas-closing { max-width: 640px; font-size: 1.05rem; margin: 40px 0 0; }
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.marca-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 170px;
  padding: 24px 32px;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.marca-card-desc {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  opacity: 0.6;
}
.marca-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.marca-card img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
}
.section-link:hover { color: var(--gray-light); }
.section-link svg { transition: transform 0.15s ease; }
.section-link:hover svg { transform: translateX(3px); }

/* Como funciona */
.como-funciona { padding: 100px 0 40px; }
.como-funciona h2 { max-width: 560px; margin-bottom: 48px; }
.como-funciona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.como-funciona-step { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.como-funciona-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}
.como-funciona-step h3 { margin-bottom: 8px; }
.como-funciona-step p { margin: 0; }

/* Home quick links */
.home-links { padding: 40px 0 120px; }
.home-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-link-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-link-card:hover { transform: translateY(-3px); border-color: rgba(55,101,208,0.4); }
.home-link-card h3 { color: var(--white); }
.home-link-card p { font-size: 0.92rem; margin-bottom: 16px; }
.home-link-card .section-link { margin-top: 0; }

/* Política de Qualidade */
.qualidade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.qualidade-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.qualidade-card h3 { color: var(--white); }
.qualidade-card p { margin-bottom: 0; font-size: 0.95rem; }
.qualidade-intro { max-width: 700px; }
.qualidade-closing { max-width: 680px; margin: 48px 0 0; font-size: 1.05rem; }

/* Contato page */
.contato-page { padding: 0 0 100px; }
.contato-intro { max-width: 640px; font-size: 1.05rem; margin: 80px 0 8px; }
.contato-page-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contato-info-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 12px 36px;
}
.contato-info-item { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.contato-info-item:last-child { border-bottom: none; }
.contato-info-value { color: var(--white); font-size: 1rem; font-weight: 500; text-decoration: none; display: block; }
.contato-info-value:hover { color: var(--gray-light); }
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.contato-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-cta { padding: 100px 0 32px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  padding-bottom: 72px;
}
.footer-headline h2 { text-wrap: balance; margin-bottom: 16px; }
.footer-headline .eyebrow { margin-bottom: 8px; }
.footer-headline-sub { margin-bottom: 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .contato-label { margin-bottom: 2px; }
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 24px; opacity: 0.85; }
.footer-bottom p { margin: 0; font-size: 0.82rem; }
.footer-bottom.standalone { border-top: none; padding: 48px 0; }
.footer-bottom-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: color 0.15s ease;
}
.footer-credit:hover { color: var(--white); }
.footer-credit-logo { height: 12px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-credit-symbol { height: 14px; margin-right: 2px; }
.footer-credit:hover .footer-credit-logo { opacity: 1; }

/* Responsive */
@media (max-width: 860px) {
  .sobre-inner { grid-template-columns: 1fr; gap: 40px; }
  .marcas-grid, .home-links-grid, .como-funciona-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .qualidade-grid { grid-template-columns: 1fr; }
  .contato-page-grid { grid-template-columns: 1fr; }
  .sobre-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; opacity: 1; }
  .nav a.active::after { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero { padding: 90px 0 70px; }
}
