/* ============================================================
   OFICINA MECÂNICA — Landing Page Template
   Mobile-first. Cores e marca centralizadas em :root pra reskin rápido.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Design Tokens — TROCAR AQUI pra personalizar por cliente
   ============================================================ */

:root {
  /* Marca — trocar as 5 cores abaixo pra cada cliente real (oficina específica) */
  --primary:      #1C1F24;   /* grafite escuro — cor principal (ferramentas/mecânica) */
  --primary-dark: #0E1013;
  --primary-light:#2B3038;
  --accent:       #FF6B35;   /* laranja — cor de destaque/CTA (energia, sinalização de oficina) */
  --accent-dark:  #E8531F;

  --ink:    #10161F;
  --gray:   #5B6472;
  --gray-light: #8B94A3;
  --line:   rgba(16,22,31,0.09);
  --bg:     #F6F8FB;
  --white:  #FFFFFF;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --max-w: 1180px;
  --pad: 0 20px;
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
section { position: relative; }

/* ============================================================
   Layout
   ============================================================ */

.container { max-width: var(--max-w); margin: 0 auto; padding: var(--pad); }
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }

@media (min-width: 768px) {
  :root { --pad: 0 32px; }
  .section    { padding: 96px 0; }
  .section-sm { padding: 56px 0; }
}
@media (min-width: 1024px) {
  :root { --pad: 0 40px; }
  .section    { padding: 120px 0; }
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.rev > *:first-child { order: 2; }
}

/* ============================================================
   Typography
   ============================================================ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.kicker::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}
.kicker.light { color: var(--accent); }
.kicker.center { justify-content: center; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--primary); }
.h1 { font-size: clamp(32px, 6vw, 54px); }
.h2 { font-size: clamp(26px, 4.4vw, 38px); }
.h3 { font-size: clamp(20px, 3vw, 24px); }

.lead { font-size: 17px; line-height: 1.6; color: var(--gray); }
.body { font-size: 15px; line-height: 1.65; color: var(--gray); }
.small { font-size: 13px; color: var(--gray-light); }

.text-cream { color: var(--white); }
.op-70 { opacity: 0.7; }
.op-80 { opacity: 0.8; }

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.section-header { margin-bottom: 36px; }
@media (min-width: 768px) { .section-header { margin-bottom: 56px; } }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }

.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--primary); border: 1.5px solid rgba(11,37,69,0.25); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(11,37,69,0.08);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--white); transition: color 0.3s ease; }
.nav.scrolled .nav-brand { color: var(--primary); }
.nav-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.nav-links { display: none; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.25s ease; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav.scrolled .nav-links a:hover { color: var(--primary); }

.nav-cta { display: none; }
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 101;
}
.nav-hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.25s ease; }
.nav.scrolled .nav-hamburger span { background: var(--primary); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-hamburger { display: none; }
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a { font-size: 22px; font-weight: 700; color: var(--white); }
.nav-mobile-close { position: absolute; top: 24px; right: 24px; color: var(--white); font-size: 28px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -15%;
  width: 60%; padding-bottom: 60%;
  background: radial-gradient(circle, rgba(255,201,60,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 12.5px; color: rgba(255,255,255,0.7); }

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-visual svg { width: 42%; opacity: 0.9; }

@media (min-width: 768px) { .hero { padding: 168px 0 96px; } }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,37,69,0.1); }

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(11,37,69,0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; color: var(--primary); }

.cat-card { text-align: center; }
.cat-card .icon-badge { margin: 0 auto 16px; }

/* Diferenciais */
.diff-card { display: flex; gap: 16px; align-items: flex-start; padding: 0; border: none; }
.diff-card:hover { transform: none; box-shadow: none; }
.diff-card .icon-badge { flex-shrink: 0; margin-bottom: 0; }

/* Planos */
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--accent); border-width: 2px; box-shadow: 0 16px 44px rgba(11,37,69,0.12); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary-dark);
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 16px; border-radius: var(--r-pill);
}
.plan-price { font-size: 34px; font-weight: 800; color: var(--primary); }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--gray-light); }
.plan-list { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { font-size: 14px; color: var(--gray); display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { width: 18px; height: 18px; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   Image box / placeholder
   ============================================================ */

.img-box { overflow: hidden; border-radius: var(--r-md); position: relative; }
.img-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.img-box:hover img { transform: scale(1.05); }

.img-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: flex-end; padding: 20px;
}
.img-placeholder span { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   Carousel (depoimentos)
   ============================================================ */

.carousel { overflow: hidden; position: relative; }
.carousel-track { display: flex; transition: transform 0.5s var(--ease); }
.carousel-item { flex: 0 0 100%; }
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.testi-quote { font-size: 17px; line-height: 1.6; color: var(--primary); font-weight: 600; margin-bottom: 20px; }
.testi-author { font-size: 14px; color: var(--gray); }
.carousel-nav { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all 0.3s ease; cursor: pointer; }
.dot.active { background: var(--accent-dark); width: 22px; border-radius: 4px; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer;
}
.faq-q p { font-size: 15.5px; font-weight: 700; color: var(--primary); }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--primary); border-radius: 2px; transition: transform 0.3s ease;
}
.faq-icon::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-icon::after { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--gray); max-width: 620px; }

/* ============================================================
   Section variants
   ============================================================ */

.section-dark { background: var(--primary); color: var(--white); }
.section-dark .h2 { color: var(--white); }
.section-tint { background: var(--bg); }

/* ============================================================
   Footer
   ============================================================ */

.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 14px; }
.footer-links a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,0.65); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   WhatsApp FAB
   ============================================================ */

.wa-fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.25s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; color: white; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

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