/* ============================================================
   RF AUTO — Mecânica Geral Automóvel
   Estética: preto · vermelho racing · branco · industrial
   ============================================================ */

:root {
  --black:      #000000;  /* = fundo dos logótipos (JPEG sem transparência) — logos têm de assentar aqui */
  --black-2:    #101013;
  --black-3:    #1a1a1f;
  --panel:      #16161a;
  --line:       #2a2a31;
  --white:      #f4f4f5;
  --grey:       #a1a1aa;
  --grey-2:     #71717a;

  --red:        #e11019;
  --red-bright: #ff2630;
  --red-dark:   #b00d14;

  --wa:         #25d366;
  --wa-dark:    #1da851;

  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
  --radius: 14px;

  --font-head: 'Archivo Black', 'Archivo', system-ui, sans-serif;  /* títulos */
  --font-ui:   'Archivo', system-ui, sans-serif;                   /* nav, rótulos, botões */
  --font-body: 'Archivo', system-ui, sans-serif;                   /* corpo */

  --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .7rem 1.1rem; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- typography ---------- */
h1,h2,h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.04; text-transform: uppercase; letter-spacing: -.2px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 2.5px;
  font-size: .82rem; font-weight: 600; color: var(--grey);
}
.eyebrow__bar { width: 30px; height: 3px; background: var(--red); display: inline-block; }
.accent { color: var(--red-bright); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  font-size: .92rem; padding: .72rem 1.3rem; border-radius: 10px;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s;
  white-space: nowrap; line-height: 1;
}
.btn .ico { width: 1.05em; height: 1.05em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); box-shadow: 0 10px 26px -12px var(--red); }
.btn--red:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--red); color: #fff; }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(244,244,245,.35); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); box-shadow: 0 10px 26px -14px var(--wa); }
.btn--wa:hover { background: var(--wa-dark); }

.link-strong { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .5px; color: var(--grey); border-bottom: 1px solid transparent; }
.link-strong:hover { color: #fff; border-color: var(--red); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: rgba(0,0,0,.94); border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px #000; }
.header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 92px; padding-block: .35rem; transition: min-height .25s var(--ease); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 140px; width: auto; transition: height .25s var(--ease); }
.is-scrolled .header__inner { min-height: 70px; }
.is-scrolled .brand__logo { height: 60px; }

.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1.2px;
  font-size: .9rem; font-weight: 500; color: var(--grey); position: relative; padding: .3rem 0;
  transition: color .18s;
}
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .22s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: .6rem; }
.btn--phone span { font-size: .9rem; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: clamp(560px, 88vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(10,10,11,.96) 0%, rgba(10,10,11,.82) 38%, rgba(10,10,11,.35) 70%, rgba(10,10,11,.6) 100%),
    linear-gradient(to top, var(--black) 2%, transparent 30%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vh, 6rem); }
.hero__title {
  font-family: var(--font-head);
  font-weight: 400; letter-spacing: -.5px; line-height: 1.0;
  font-size: clamp(2.4rem, 6.3vw, 4.9rem); margin: 1.1rem 0 1.2rem; max-width: 17ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #d4d4d8; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero__badges {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); margin-top: 2.6rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong { font-family: var(--font-ui); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .5px; }
.hero__badges span { color: var(--grey); font-size: .9rem; }

.hero__scroll {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 1.4rem; color: var(--grey); animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--black-2); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .8rem 0 .7rem; }
.section__sub { color: var(--grey); font-size: 1.08rem; }

.grid { display: grid; gap: 1.1rem; }
.grid--services { grid-template-columns: repeat(5, 1fr); gap: .9rem; }
@media (max-width: 1100px) { .grid--services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .grid--services { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; position: relative; overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--red); transition: height .3s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: #38383f; background: #1b1b20; }
.card:hover::before { height: 100%; }
.card__icon { display: inline-flex; margin-bottom: 1rem; color: var(--red); }
.card__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: color .22s; }
.card:hover .card__icon { color: var(--red-bright); }
.card h3 { font-size: 1.12rem; margin-bottom: .45rem; letter-spacing: .3px; }
.card p { color: var(--grey); font-size: .96rem; }

.services__cta { margin-top: 2rem; color: var(--grey); font-size: 1.02rem; }
.services__cta a { color: #fff; border-bottom: 2px solid var(--red); font-weight: 600; }
.services__cta a:hover { color: var(--red-bright); }

/* ---------- RFMOTO band ---------- */
.moto {
  background:
    radial-gradient(900px 380px at 80% 50%, rgba(225,16,25,.16), transparent 60%),
    #000;
  border-block: 1px solid var(--line);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  position: relative;
}
.moto__inner { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.moto__logo { width: clamp(140px, 22vw, 210px); height: auto; flex-shrink: 0; }
.moto__text { flex: 1; min-width: 260px; }
.moto__text h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
.moto__text p { color: var(--grey); margin: .7rem 0 1.3rem; max-width: 50ch; font-size: 1.05rem; }
.moto__text strong { color: #fff; }

/* ---------- why ---------- */
.grid--why { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.why { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--black); position: relative; }
.why__num { font-family: var(--font-ui); font-weight: 700; font-size: 2.4rem; color: transparent; -webkit-text-stroke: 1.5px var(--red); display: block; line-height: 1; margin-bottom: .7rem; }
.why h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.why p { color: var(--grey); font-size: .98rem; }

/* ---------- about ---------- */
.about { max-width: 1040px; text-align: center; }
.about__text p { color: #d4d4d8; margin: 1rem auto 0; font-size: 1.06rem; max-width: 64ch; }
.about__text strong { color: #fff; }
.about__contactline { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
.infolist { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.infolist li { display: flex; gap: .9rem; align-items: flex-start; }
.infolist__ico { font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.infolist strong { display: block; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--grey); margin-bottom: .15rem; }
.infolist a:hover { color: var(--red-bright); }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- form ---------- */
.contact__form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); }
.form__intro { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .85rem; color: var(--grey); margin-bottom: .35rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--black); border: 1px solid var(--line); border-radius: 9px;
  color: var(--white); padding: .75rem .85rem; font: inherit; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,16,25,.18); }
.field input.invalid, .field textarea.invalid { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(255,38,48,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__note { font-size: .85rem; color: var(--grey); margin-top: .9rem; }
.form__note a { color: #fff; border-bottom: 1px solid var(--red); }
.form__status { margin-top: .8rem; font-size: .92rem; min-height: 1.2em; }
.form__status.ok { color: var(--wa); }
.form__status.err { color: var(--red-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #000; border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand img { height: 54px; width: auto; margin-bottom: .8rem; }
.footer__brand p { color: var(--grey); font-size: .92rem; }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a { color: var(--grey); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; }
.footer__nav a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: .5rem; color: var(--grey); }
.footer__contact a:hover { color: #fff; }
.footer__bar { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--grey-2); font-size: .82rem; }
.footer__by { display: inline-flex; align-items: center; gap: .5rem; }
.footer__by-link { display: inline-flex; align-items: center; }
.footer__by-logo { height: 11px; width: auto; opacity: .8; transition: opacity .2s; }
.footer__by:hover .footer__by-logo { opacity: 1; }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.callbar { display: none; }

/* ============================================================
   GALERIA (carrossel) + FAQ + LIGHTBOX
   ============================================================ */
.container--narrow { max-width: 820px; }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .3rem var(--pad) 1rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; scroll-padding-inline: var(--pad);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--red-bright); outline-offset: -4px; }
.slide {
  flex: 0 0 auto; height: clamp(260px, 42vh, 440px); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); scroll-snap-align: center;
  background: #000; cursor: zoom-in; padding: 0; position: relative; line-height: 0;
}
.slide img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .4s var(--ease); }
.slide:hover img { transform: scale(1.05); }
.slide::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; pointer-events: none; }
.slide:hover::after, .slide:focus-visible::after { box-shadow: inset 0 0 0 2px var(--red); }

.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(0,0,0,.55);
  border: 1px solid var(--line); color: #fff; font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .18s, border-color .18s, opacity .2s;
}
.carousel__nav:hover { background: var(--red); border-color: var(--red); }
.carousel__nav--prev { left: clamp(8px, 1.5vw, 22px); }
.carousel__nav--next { right: clamp(8px, 1.5vw, 22px); }
.carousel__nav[disabled] { opacity: .25; pointer-events: none; }
@media (max-width: 760px) { .carousel__nav { display: none; } }  /* mobile usa swipe */

.faq { display: grid; gap: .7rem; }
.faq__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-family: var(--font-ui);
  text-transform: uppercase; letter-spacing: .5px; font-size: 1.02rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; transition: color .18s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--red); font-size: 1.6rem; line-height: 1; transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--red-bright); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--grey); }
.faq__a p { font-size: 1rem; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.95); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px -20px #000; }
.lightbox__close { position: absolute; top: 16px; right: 20px; font-size: 2.4rem; color: #fff; width: 48px; height: 48px; line-height: 1; }
.lightbox__close:hover { color: var(--red-bright); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.5); border: 1px solid var(--line); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__prev { left: clamp(8px, 2vw, 26px); }
.lightbox__next { right: clamp(8px, 2vw, 26px); }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--grey); font-size: .85rem; font-family: var(--font-ui); letter-spacing: 1.5px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brand__logo { height: 72px; }
  .header__inner { min-height: 80px; }
  .is-scrolled .brand__logo { height: 52px; }
  .is-scrolled .header__inner { min-height: 64px; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.2rem;
    transform: translateY(-130%); transition: transform .3s var(--ease); margin: 0;
  }
  .is-scrolled .nav { inset-block-start: 64px; }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; width: 100%; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn--phone span { display: none; }
  .btn--phone { padding: .65rem .8rem; }
  .header__cta .btn--wa span { display: none; }
  .header__cta .btn--wa { padding: .65rem .8rem; }

  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }

  /* sticky call bar */
  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    border-top: 1px solid var(--line); background: rgba(0,0,0,.97); backdrop-filter: blur(10px);
  }
  .callbar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; font-size: .95rem; font-weight: 600; }
  .callbar__btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; }
  .callbar__btn--call { color: #fff; }
  .callbar__btn--wa { color: #fff; background: var(--wa); }
  body { padding-bottom: 56px; }
}

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