:root {
  --bg: #0D0E10;
  --bg-alt: #111215;
  --bg-footer: #0A0B0C;
  --surface: #15171A;
  --card: #121316;
  --line: #1F2125;
  --border: #26292E;
  --border-strong: #3A3D43;
  --text: #EDEAE4;
  --muted: #A9A59E;
  --subtle: #7E7B76;
  --num: #6E6B66;
  --accent: #E21B23;
  --accent-text: #EB5F65;
  --whatsapp: #25D366;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section > .container { padding-top: 120px; padding-bottom: 120px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow__line { width: 32px; height: 1px; background: var(--accent); }
.title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02;
}
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--sm { gap: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font-weight: 700; font-size: 15px; transition: background .2s, border-color .2s, color .2s;
}
.btn svg { flex-shrink: 0; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: #C4141B; color: #FFFFFF; }
.btn--ghost { border: 1px solid var(--border-strong); font-weight: 600; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--outline { border: 1px solid var(--accent); color: var(--accent-text); font-weight: 600; font-size: 14px; min-height: 48px; padding: 0 24px; align-self: flex-start; }
.btn--outline:hover { background: var(--accent); color: #FFFFFF; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* placeholder for photos still to come */
.ph {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle); font: 500 13px/1.4 var(--body);
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 16px;
}

.ph.has-img { position: relative; padding: 0; overflow: hidden; }
.ph.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(0.9) brightness(0.85);
  transition: transform .6s ease, filter .6s ease;
}
.gallery .ph.has-img:hover img { transform: scale(1.04); filter: saturate(1) brightness(0.95); }

/* header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,14,16,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 52px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 500; }

/* hero */
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(48px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.01em;
}
.hero__lead { max-width: 520px; font-size: 18px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 12px; font-size: 14px; color: var(--muted); }
.hero__checks span { display: flex; align-items: center; gap: 8px; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero__media .ph { height: 520px; }
.hero__badge {
  position: absolute; left: -24px; bottom: 32px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px 24px; display: flex; gap: 16px; align-items: center;
}
.hero__badge strong { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--accent); }
.hero__badge span { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about__photos { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about__photos .ph:first-child { height: 360px; grid-row: span 2; }
.about__photos .ph { height: 172px; }
.about__text { flex: 1 1 440px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.stats strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 600; }
.stats span { font-size: 13px; color: var(--muted); }

/* services */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head p { max-width: 360px; color: var(--muted); }
.services__wrap { display: flex; flex-direction: column; gap: 56px; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service { background: var(--bg-alt); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; min-height: 240px; transition: background .2s; }
.service:hover { background: #16171B; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__top span { font-family: var(--display); font-size: 18px; color: var(--num); }
.service h3 { font-family: var(--display); font-weight: 600; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; }
.service p { font-size: 15px; color: var(--muted); }

/* differentials */
.diffs { display: flex; flex-wrap: wrap; gap: 64px; }
.diffs__intro { flex: 1 1 340px; min-width: 0; }
.diffs__intro .ph { height: 240px; margin-top: 8px; }
.diffs__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.diff { border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 14px; background: var(--card); }
.diff__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.diff h3 { font-size: 19px; font-weight: 700; }
.diff p { font-size: 15px; color: var(--muted); }

/* gallery */
.gallery__wrap { display: flex; flex-direction: column; gap: 48px; }
.link-accent { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--accent-text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.gallery .is-big { grid-column: span 2; grid-row: span 2; }
.gallery .is-wide { grid-column: span 2; }

/* faq */
.faq { display: flex; flex-wrap: wrap; gap: 64px; }
.faq__intro { flex: 1 1 340px; min-width: 0; }
.faq__list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--border); }
.faq__list details { border-bottom: 1px solid var(--border); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 18px; font-weight: 600;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary svg { flex-shrink: 0; transition: transform .2s; }
.faq__list details[open] summary svg { transform: rotate(45deg); }
.faq__list p { padding: 0 48px 26px 0; color: var(--muted); }

/* location + hours */
.visit__wrap { display: flex; flex-direction: column; gap: 48px; }
.visit { display: flex; flex-wrap: wrap; gap: 24px; }
.map { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
.map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; background: var(--surface); }
.map__addr { display: flex; gap: 14px; align-items: flex-start; }
.map__addr svg { flex-shrink: 0; margin-top: 2px; }
.map__addr strong { display: block; }
.map__addr span { font-size: 14px; color: var(--muted); }
.hours { flex: 2 1 340px; min-width: 0; border: 1px solid var(--border); background: var(--surface); padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; }
.hours__head { display: flex; align-items: center; gap: 12px; }
.hours__head h3 { font-family: var(--display); font-weight: 600; font-size: 28px; text-transform: uppercase; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.hours__row span:first-child { color: var(--muted); }
.hours__row span:last-child { font-weight: 600; }
.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid #2F4A36; background: #132017; font-size: 13px; font-weight: 600; color: #8FD3A0; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-closed { border-color: #4A2F31; background: #201314; color: #E3A0A3; }

/* footer */
.footer { background: var(--bg-footer); }
.footer > .container { padding-top: 80px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 56px; }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 40px; border: 1px solid var(--border); background: var(--card); }
.cta-band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.05; text-transform: uppercase; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer__brand img { width: 200px; height: auto; display: block; }
.footer__brand p { font-size: 14px; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.footer__contact { gap: 6px; }
.footer__contact a { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--muted); }
.footer__contact a:hover { color: var(--text); }
.footer__contact svg { flex-shrink: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
.footer__bottom a { color: var(--muted); text-decoration: underline; }
.footer__bottom a:hover { color: var(--text); }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45); transition: transform .2s;
}
.wa-float:hover { color: #FFFFFF; transform: scale(1.06); }

/* ================= MOVIMENTO ================= */

/* content sits above the animated background */
.header { z-index: 20; }
main, .footer { position: relative; z-index: 1; }
.section--alt { background: rgba(17, 18, 21, 0.4); }
.footer { background: rgba(10, 11, 12, 0.9); }

/* background layer: outline gears, nut, wrench and red speed streaks */
.bg-motion { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bgm { position: absolute; fill: none; stroke: #FFFFFF; stroke-width: 1.6; opacity: 0.24; will-change: transform; }
.bgm--gear-a { width: 560px; height: 560px; top: -120px; right: -180px; animation: bgm-spin 120s linear infinite; }
.bgm--gear-b { width: 270px; height: 270px; top: 330px; right: 250px; stroke: #E21B23; opacity: 0.45; animation: bgm-spin 60s linear infinite reverse; }
.bgm--gear-c { width: 400px; height: 400px; bottom: -150px; left: -140px; animation: bgm-spin 90s linear infinite; }
.bgm--nut { width: 56px; height: 56px; top: 38%; left: 6%; stroke-width: 1.2; opacity: 0.36; animation: bgm-float 14s ease-in-out infinite; }
.bgm--wrench { width: 90px; height: 90px; bottom: 16%; right: 9%; stroke-width: 1; opacity: 0.34; animation: bgm-float 18s ease-in-out infinite reverse; }
.bgm-streak {
  position: absolute; left: 0; height: 2px; width: 34vw; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 40, 48, 1), transparent);
  opacity: 0; will-change: transform, opacity;
  animation: bgm-streak 11s cubic-bezier(.5, 0, .3, 1) infinite;
}
.bgm-streak--1 { top: 22%; }
.bgm-streak--2 { top: 58%; width: 22vw; animation-duration: 15s; animation-delay: 4s; }
.bgm-streak--3 { top: 84%; width: 28vw; animation-duration: 13s; animation-delay: 8s; }

@keyframes bgm-spin { to { transform: rotate(360deg); } }
@keyframes bgm-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-36px) rotate(25deg); }
}
@keyframes bgm-streak {
  0% { transform: translateX(-40vw); opacity: 0; }
  8% { opacity: 1; }
  30% { transform: translateX(130vw); opacity: 0; }
  100% { transform: translateX(130vw); opacity: 0; }
}

/* hero entrance (runs on load, no JS needed) */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } }
.hero__text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(1) { animation-delay: .1s; }
.hero__text > :nth-child(2) { animation-delay: .22s; }
.hero__text > :nth-child(3) { animation-delay: .36s; }
.hero__text > :nth-child(4) { animation-delay: .5s; }
.hero__text > :nth-child(5) { animation-delay: .64s; }
.hero .eyebrow__line { animation: grow .8s .5s cubic-bezier(.2, .7, .2, 1) both; }
.hero__media .ph { animation: wipe 1.2s .3s cubic-bezier(.7, 0, .2, 1) both; }
.hero__media .ph img { animation: settle 2.4s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero__badge { animation: pop .7s 1.2s cubic-bezier(.2, .9, .3, 1.2) both; }

/* scroll reveal (classes added by js/site.js) */
.reveal-on [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal-on [data-reveal="zoom"] { transform: scale(.94); }
.reveal-on [data-reveal="left"] { transform: translateX(-32px); }
.reveal-on [data-reveal="right"] { transform: translateX(32px); }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }

/* hover details */
.service { position: relative; }
.service::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.service:hover::before { transform: scaleX(1); }
.service__top svg { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.service:hover .service__top svg { transform: translateY(-3px) rotate(-8deg); }
.diff { transition: border-color .3s, transform .3s; }
.diff:hover { border-color: #3A3D43; transform: translateY(-4px); }
.diff__icon { transition: border-color .3s, background .3s; }
.diff:hover .diff__icon { border-color: var(--accent); background: rgba(226, 27, 35, 0.08); }
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--primary:hover::after { left: 120%; }
.faq__list details[open] p { animation: rise .45s cubic-bezier(.2, .7, .2, 1); }

/* WhatsApp button: soft pulse ring */
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: wa-ring 3.2s ease-out 2s infinite;
}
@keyframes wa-ring {
  0% { transform: scale(1); opacity: .7; }
  60%, 100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bg-motion { display: none; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* phones */
@media (max-width: 720px) {
  .section > .container { padding-top: 80px; padding-bottom: 80px; }
  .nav { display: none; }
  .header__logo img { height: 40px; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero__media .ph { height: 340px; }
  .hero__badge { left: 16px; bottom: 16px; }
  .about__photos .ph:first-child { height: 280px; }
  .about__photos .ph { height: 132px; }
  .stats strong { font-size: 32px; }
  .gallery .is-big, .gallery .is-wide { grid-column: auto; grid-row: auto; }
  .cta-band { padding: 28px 24px; }
  .faq__list p { padding-right: 0; }
  .wa-float { right: 16px; bottom: 16px; }
  .bgm--gear-a { width: 340px; height: 340px; top: -90px; right: -130px; }
  .bgm--gear-b { width: 160px; height: 160px; top: 190px; right: 120px; }
  .bgm--gear-c { width: 260px; height: 260px; bottom: -110px; left: -110px; }
  .bgm--wrench, .bgm-streak--3 { display: none; }
  .bgm-streak { width: 60vw; }
}
