:root {
  --bg: #0d0d0f;
  --bg-alt: #151517;
  --surface: #1b1b1e;
  --text: #f2f0ec;
  --text-muted: #a8a6a1;
  --accent: #ff4d1c;
  --accent-dark: #d63c11;
  --border: rgba(255,255,255,0.08);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,77,28,0.35);
}
.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--text);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { width: 18px; height: 18px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 32px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: #0d0d0f;
  background-image:
    linear-gradient(180deg, rgba(13,13,15,0.35) 0%, rgba(13,13,15,0.88) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(255,77,28,0.15), transparent 55%),
    url('../images/hero-bg.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 2px, transparent 2px, transparent 60px);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-kicker {
  color: var(--accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ===== Sections generic ===== */
.section { padding: 110px 0; }
.eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.eyebrow-light { color: #ff9a7a; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 22px;
}
.section-title-light { color: #fff; }
.section-lead {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ===== Sobre ===== */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.photo-frame {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  background: linear-gradient(160deg, #202024, #141416);
}
.photo-placeholder .icon-moto { width: 64px; height: 64px; opacity: 0.5; }
.photo-placeholder span { font-size: 0.85rem; text-align: center; padding: 0 20px; }

/* ===== Media swap (real photo with graceful placeholder fallback) ===== */
.media-swap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, #202024, #141416);
}
.media-swap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-swap .media-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 4px;
  text-align: center;
  padding: 0 20px;
}
.media-swap .media-fallback .icon-moto { width: 56px; height: 56px; opacity: 0.5; }
.media-swap .media-fallback span { font-size: 0.8rem; }
.media-swap.media-missing img { display: none; }
.media-swap.media-missing .media-fallback { display: flex; }

.media-swap--portrait { aspect-ratio: 4 / 5; }
.media-swap--wide { aspect-ratio: 16 / 8; border-radius: 8px; }
.media-swap--wide .media-fallback { border-radius: 8px; }

.sobre-text p { color: var(--text-muted); margin-bottom: 18px; }
.sobre-text strong { color: var(--text); }
.sobre-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
}

/* ===== Motoclube Insanos ===== */
.insanos {
  background: linear-gradient(180deg, #151517 0%, #0d0d0f 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.insanos-header { max-width: 680px; margin-bottom: 56px; }
.insanos-lead { color: var(--text-muted); font-size: 1.05rem; }
.insanos-content {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.insanos-badge {
  display: flex;
  justify-content: center;
}
.insanos-badge .media-swap {
  width: 220px;
  border-radius: 8px;
  border: 2px solid var(--border);
}
.insanos-badge .media-fallback { border-radius: 8px; }
.badge-emblem {
  width: 110px; height: 110px;
  color: var(--accent);
}
.badge-text {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.insanos-info p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.02rem; }
.insanos-list { margin-bottom: 32px; }
.insanos-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text);
}
.insanos-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ===== Galeria / Rolês ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-placeholder {
  aspect-ratio: 16/10;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: linear-gradient(150deg, #1d1d20, #131315);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-item--wide .gallery-placeholder { aspect-ratio: 16/8; }
.gallery-placeholder .icon-moto { width: 44px; height: 44px; opacity: 0.45; }
.gallery-placeholder span { font-size: 0.8rem; }
.gallery-item:hover .gallery-placeholder {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.gallery-item .media-swap:not(.media-swap--wide) { aspect-ratio: 16/10; border-radius: 8px; }
.gallery-item .media-swap:not(.media-swap--wide) .media-fallback { border-radius: 8px; }
.gallery-item .media-swap .media-fallback .icon-moto { width: 44px; height: 44px; opacity: 0.45; }
.gallery-item .media-swap .media-fallback span { font-size: 0.8rem; }
.gallery-item:hover .media-swap {
  transform: translateY(-4px);
}
.gallery-item:hover .media-swap.media-missing .media-fallback {
  border-color: var(--accent);
}
.gallery-item .media-swap { transition: transform 0.2s ease; }
.gallery-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Compre sua Moto ===== */
.comprar {
  position: relative;
  text-align: center;
  padding: 130px 0;
  overflow: hidden;
}
.comprar-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,77,28,0.25), transparent 60%),
    linear-gradient(180deg, #171719, #0d0d0f);
}
.comprar-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.comprar-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}
.comprar-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Contato ===== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contato-grid > div > p { color: var(--text-muted); margin-bottom: 28px; }
.contato-links { display: flex; flex-direction: column; gap: 16px; }
.contato-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contato-link:hover { border-color: var(--accent); transform: translateX(4px); }
.contato-icon { font-size: 1.2rem; }

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-form h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.lead-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 6px;
}
.lead-form input,
.lead-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.lead-form .btn { margin-top: 20px; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; }
.footer-link {
  color: var(--accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sobre-grid,
  .insanos-content,
  .contato-grid {
    grid-template-columns: 1fr;
  }
  .sobre-media { max-width: 320px; margin: 0 auto; }
  .insanos-badge { order: -1; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13,13,15,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 12px 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav .nav-link { padding: 14px 0; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--wide { grid-column: span 2; }

  .section { padding: 80px 0; }

  .hero-bg { background-position: left center, left center, left center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
