/* ==========================================================
   MARCIO'S BIKE — Design tokens
   Paleta: grafite, mostarda de sinalização, ferrugem, osso, verde-oficina
   ========================================================== */
:root {
  --graphite: #1A1A18;
  --graphite-soft: #24241f;
  --bone: #F2EFE6;
  --bone-dim: #E4E0D2;
  --mustard: #E8A93B;
  --rust: #C15A32;
  --workshop-green: #2D3B2E;
  --line: rgba(242,239,230,0.14);
  --line-dark: rgba(26,26,24,0.12);

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  background: var(--bone);
  color: var(--graphite);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,24,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}
.logo-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.logo-img {
  object-fit: contain;
  border-radius: 0;
  background: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.logo-text {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.logo-sub { color: var(--mustard); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: var(--bone-dim);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--mustard); }
.nav-cta {
  background: var(--rust);
  color: var(--bone) !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: #a84c29; color: var(--bone) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--bone);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--graphite);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 0;
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(232,169,59,0.08), transparent 45%),
                     radial-gradient(circle at 80% 70%, rgba(193,90,50,0.10), transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mustard);
  border: 1px solid rgba(232,169,59,0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rust);
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}
.hero-title .line[data-line="1"] { animation-delay: 0.1s; }
.hero-title .line[data-line="2"] { animation-delay: 0.25s; }
.hero-title .line[data-line="3"] { animation-delay: 0.4s; }
.hero-title .accent { color: var(--mustard); }

.hero-desc {
  margin-top: 26px;
  font-size: 1.08rem;
  color: var(--bone-dim);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.55s;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.7s;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--rust);
  color: var(--bone);
  box-shadow: 0 8px 24px rgba(193,90,50,0.35);
}
.btn-primary:hover { background: #a84c29; transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(242,239,230,0.35);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--mustard); color: var(--mustard); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* Marquee de fotos no rodapé do hero */
.marquee-wrap {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 34%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 85%, transparent);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollMarquee 42s linear infinite;
}
.marquee-track .m-item {
  position: relative;
  height: clamp(140px, 22vw, 210px);
  aspect-ratio: 3/4;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.marquee-track .m-item:nth-child(odd) { transform: rotate(-3deg); }
.marquee-track .m-item:nth-child(even) { transform: rotate(4deg); }
.marquee-track .m-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ CHAIN DIVIDER (signature element) ============ */
.chain-divider {
  background: var(--graphite);
  padding: 10px 0 34px;
  overflow: hidden;
}
.chain-track {
  height: 22px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--mustard) 0px, var(--mustard) 14px,
    transparent 14px, transparent 18px,
    var(--rust) 18px, var(--rust) 32px,
    transparent 32px, transparent 36px
  );
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: 700px;
  margin: 0 auto 56px;
  padding: 0 24px;
  text-align: center;
}
.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--mustard); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.section-title.light { color: var(--bone); }

/* ============ SERVIÇOS ============ */
.services { padding: 100px 24px; max-width: 1240px; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,26,24,0.1);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--workshop-green);
  margin-bottom: 18px;
  position: relative;
}
.service-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  background: var(--mustard);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.service-icon[data-icon="wrench"]::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.77z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.77z'/%3E%3C/svg%3E");
}
.service-icon[data-icon="gear"]::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}
.service-icon[data-icon="build"]::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 21h18M9 8h1M9 12h1M9 16h1M14 8h1M14 12h1M14 16h1M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 21h18M9 8h1M9 12h1M9 16h1M14 8h1M14 12h1M14 16h1M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16'/%3E%3C/svg%3E");
}
.service-icon[data-icon="bolt"]::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.94rem; color: #4a4a44; margin-bottom: 16px; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
  display: block;
}

/* ============ PROCESSO ============ */
.processo {
  background: var(--workshop-green);
  color: var(--bone);
  padding: 100px 24px;
}
.process-line {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-line::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 10px, transparent 10px 18px);
}
.process-step {
  position: relative;
  padding: 0 18px;
  text-align: left;
}
.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--graphite);
  background: var(--mustard);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; color: rgba(242,239,230,0.75); }

/* ============ LOJA ============ */
.loja { padding: 100px 24px; max-width: 1240px; margin: 0 auto; }
.loja-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.loja-item { text-align: left; }
.loja-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  margin-bottom: 14px;
  filter: saturate(0.95);
}
.loja-item h4 { font-size: 1.02rem; margin-bottom: 6px; }
.loja-item p { font-size: 0.88rem; color: #4a4a44; }

/* ============ DEPOIMENTOS ============ */
.depoimentos { padding: 100px 24px; max-width: 1240px; margin: 0 auto; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: #fff;
  border-left: 4px solid var(--mustard);
  border-radius: 4px 14px 14px 4px;
  padding: 28px 26px;
  box-shadow: 0 6px 20px rgba(26,26,24,0.06);
}
.testi-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.testi-card cite {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--rust);
  font-style: normal;
}

/* ============ CONTATO ============ */
.contato { background: var(--graphite); color: var(--bone); }
.contato-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.contato-text p {
  margin-top: 18px;
  color: var(--bone-dim);
  max-width: 460px;
}
.contato-info { margin: 26px 0 30px; }
.contato-info li {
  font-size: 0.96rem;
  color: var(--bone-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.contato-info strong { color: var(--bone); }
.contato-img {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transform: rotate(2deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ============ FOOTER ============ */
.footer { background: #0f0f0d; color: var(--bone-dim); padding: 50px 24px 30px; }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo { justify-content: center; margin-bottom: 16px; }
.footer-note { font-size: 0.92rem; margin-bottom: 20px; }
.footer-copy { font-family: var(--font-mono); font-size: 11.5px; opacity: 0.5; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-line::before { display: none; }
  .loja-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contato-inner { grid-template-columns: 1fr; }
  .contato-visual { order: -1; max-width: 340px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--graphite);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.nav-links-open { display: flex; }
  .nav-burger { display: flex; }
  .hero { padding-top: 120px; }
  .services-grid { grid-template-columns: 1fr; }
  .loja-grid { grid-template-columns: 1fr; }
}
