/* ============ PerfectCar Auto Center ============ */
@font-face { font-family: "Display"; src: url("../fonts/display-800.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Display"; src: url("../fonts/display.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Texto"; src: url("../fonts/texto.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Texto"; src: url("../fonts/texto-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0b1020;
  --navy-2: #121a33;
  --navy-3: #1b2547;
  --red: #e11d2e;
  --red-2: #ff3345;
  --white: #f5f7fb;
  --silver: #c9ced8;
  --muted: #8f99b3;
  --paper: #eef1f6;
  --ink: #111626;
  --ink-muted: #545d74;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(4, 8, 20, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Texto", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Display", "Arial Narrow", sans-serif; font-style: italic; font-weight: 800; line-height: 1.02; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ============ Botões ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 "Texto", sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(225, 29, 46, .7); }
.btn--red:hover { background: var(--red-2); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); }
.btn--sm { padding: .7em 1.15em; font-size: .92rem; }
.btn--block { width: 100%; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 300; background: var(--navy);
  display: grid; place-content: center; justify-items: center; gap: 14px;
}
.preloader__track, .preloader__fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.preloader__track { stroke: var(--navy-3); }
.preloader__fill { stroke: var(--red); stroke-dasharray: 252; stroke-dashoffset: 252; animation: gauge 1s var(--ease) forwards; }
.preloader__needle { stroke: var(--white); stroke-width: 4; stroke-linecap: round; transform-origin: 100px 110px; transform: rotate(-90deg); animation: needle 1s var(--ease) forwards; }
.preloader__txt { font: 800 italic 1.6rem "Display", sans-serif; color: var(--silver); letter-spacing: .04em; }
.preloader__txt b { color: var(--red); }
@keyframes gauge { to { stroke-dashoffset: 0; } }
@keyframes needle { to { transform: rotate(90deg); } }
.preloader.is-done { opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }

/* ============ Nav ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(11, 16, 32, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .6); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand__mark { width: 52px; height: 34px; }
.brand__ticks path { stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.brand__car { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linejoin: round; }
.brand__name { font: 800 italic 1.45rem/1 "Display", sans-serif; letter-spacing: .02em; color: var(--silver); display: grid; }
.brand__name b { color: var(--red); display: contents; }
.brand__name small { font: 700 italic .62rem/1 "Display", sans-serif; letter-spacing: .28em; color: #fff; background: var(--red); padding: 3px 6px 2px; margin-top: 4px; justify-self: start; border-radius: 2px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--silver); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); background: var(--navy); overflow: hidden; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11, 16, 32, .96) 0%, rgba(11, 16, 32, .82) 42%, rgba(11, 16, 32, .25) 100%),
  linear-gradient(0deg, rgba(11, 16, 32, .9) 0%, transparent 35%); }
.hero__content { position: relative; padding: 120px 0 96px; }
.hero__title { font-size: clamp(2.9rem, min(7.4vw, 10vh), 6.2rem); max-width: 12ch; margin-bottom: .35em; }
.hero__title em { color: var(--red); font-style: inherit; }
.hero__lead { max-width: 52ch; color: var(--silver); font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.hero__chips li { font-size: .85rem; color: var(--silver); border: 1px solid rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 999px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--red); border-radius: 2px; animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.status { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); margin-bottom: 22px; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 1.8s infinite; }
.status.is-closed .status__dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ============ Faixa ============ */
.ticker { background: var(--red); color: #fff; overflow: hidden; padding: 14px 0; transform: skewY(-1.2deg); margin-top: -12px; position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font: 800 italic 1.35rem/1 "Display", sans-serif; text-transform: uppercase; letter-spacing: .03em; padding: 0 22px; white-space: nowrap; }
.ticker span::after { content: "●"; font-size: .5em; vertical-align: middle; margin-left: 44px; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ Seções ============ */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tight { padding: 48px 0 clamp(72px, 10vw, 110px); }
.section--dark { background: var(--navy); color: var(--white); }
.section__head { max-width: 680px; margin-bottom: 36px; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section__lead { color: var(--ink-muted); }
.container .eyebrow, .eyebrow { font-weight: 600; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* Abas de serviço */
.tabs { display: inline-flex; gap: 6px; padding: 5px; background: #fff; border-radius: 999px; box-shadow: 0 4px 18px -10px rgba(0, 0, 0, .3); margin-bottom: 28px; max-width: 100%; overflow-x: auto; }
.tabs__btn { border: 0; background: none; cursor: pointer; font: 600 .92rem "Texto", sans-serif; color: var(--ink-muted); padding: .7em 1.2em; border-radius: 999px; white-space: nowrap; transition: background .25s, color .25s; }
.tabs__btn.is-active { background: var(--navy); color: #fff; }

/* Cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(4, 8, 20, .6); }
.card.is-hidden { display: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.7rem; margin-bottom: .3em; }
.card__body p { color: var(--ink-muted); font-size: .98rem; flex: 1; }
.card__tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); background: var(--paper); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.card__tag--red { color: #fff; background: var(--red); }
.card__link { font-weight: 600; color: var(--red); text-decoration: none; display: inline-flex; gap: 6px; }
.card__link span { transition: transform .25s; }
.card__link:hover span { transform: translateX(4px); }
.card--cta { background: linear-gradient(150deg, var(--navy-2), var(--navy)); color: var(--white); justify-content: flex-end; min-height: 320px; position: relative; }
.card__gauge { width: 62%; max-width: 230px; margin: 34px auto 0; }
.card--cta .card__tag { background: rgba(255, 255, 255, .1); color: var(--silver); }
.card--cta .card__body p { color: var(--silver); }
.card--cta .btn { align-self: flex-start; }

/* ============ Orçamento ============ */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote__text p { color: var(--silver); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--white); }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(225, 29, 46, .18); color: var(--red-2); font-weight: 700; font-size: .85rem; }
.quote__form { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; padding: 0; }
.field small { color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem "Texto", sans-serif; color: var(--ink); background: var(--paper);
  border: 2px solid transparent; border-radius: 10px; padding: .8em .9em; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); background: #fff; }
.field textarea { resize: vertical; }
.field .is-invalid { border-color: var(--red); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pills label { cursor: pointer; position: relative; }
.pills input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: .5em 1em; border-radius: 999px; background: var(--paper); font-size: .92rem; font-weight: 600; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.pills input:checked + span { background: var(--navy); color: #fff; }
.pills input:focus-visible + span { border-color: var(--red); }
.form__error { color: var(--red); font-weight: 600; font-size: .92rem; margin: 0; }

/* ============ Óleo ============ */
.oil { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: #fff; border-radius: 24px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.oil::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.oil__text p { color: var(--ink-muted); }
.oil__calc { display: grid; gap: 14px; }
.oil__result { background: var(--navy); color: var(--white); border-radius: 14px; padding: 18px 20px; }
.oil__when { font: 800 italic 1.7rem/1.1 "Display", sans-serif; text-transform: uppercase; margin-bottom: .3em; }
.oil__when b { color: var(--red-2); }
.oil__note { color: var(--silver); font-size: .92rem; }

/* ============ Equipe ============ */
.team { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.team__photo { margin: 0; position: relative; }
.team__photo img { border-radius: 20px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.team__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: 20px; z-index: -1; }
.team__photo { z-index: 0; }
.team__photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 16, 32, .85); padding: 6px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.team__text p { color: var(--silver); }
.team__text strong { color: var(--white); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.facts strong { font: 800 italic 1.25rem/1.1 "Display", sans-serif; text-transform: uppercase; color: var(--white); }
.facts span { font-size: .85rem; color: var(--muted); }

/* ============ Dicas ============ */
.tips { display: grid; gap: 12px; max-width: 860px; }
.tip { background: #fff; border-radius: 14px; box-shadow: 0 8px 26px -18px rgba(0, 0, 0, .5); overflow: hidden; }
.tip summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; gap: 16px; position: relative; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); transition: transform .3s; }
.tip[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tip__n { font: 800 italic 1.4rem "Display", sans-serif; color: var(--red); }
.tip p { padding: 0 22px 20px 64px; margin: 0; color: var(--ink-muted); }

/* ============ História ============ */
.story { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.story img { border-radius: 14px; width: 100%; aspect-ratio: 361 / 255; object-fit: cover; }
.story h3 { font-size: 1.9rem; }
.story p { color: var(--ink-muted); }

/* ============ Contato ============ */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.contact address { font-style: normal; display: flex; gap: 12px; font-size: 1.1rem; color: var(--white); margin-bottom: 24px; }
.contact address .ico { color: var(--red); margin-top: 4px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--navy-3); font-weight: 400; color: var(--silver); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 600; }
.hours tr.is-today th::after { content: "hoje"; margin-left: 8px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__map { min-height: 380px; border-radius: 20px; overflow: hidden; border: 1px solid var(--navy-3); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ============ Rodapé ============ */
.footer { background: #070a15; color: var(--muted); padding: 28px 0 90px; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer strong { color: var(--silver); }
.footer a { color: var(--silver); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5); transition: transform .25s; }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* Revelar no scroll (só com JS) */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* ============ Responsivo ============ */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
}
@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav__toggle span { width: 24px; height: 2px; background: #fff; transition: transform .3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1; box-shadow: 0 20px 40px -20px #000; }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--navy-3); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav { background: rgba(11, 16, 32, .92); backdrop-filter: blur(10px); }
  .quote, .team, .contact, .oil { grid-template-columns: 1fr; }
  .team__photo { max-width: 460px; }
  .story { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tabs__btn { flex: 1; white-space: normal; line-height: 1.2; padding: .7em .5em; font-size: .85rem; }
  .hero__content { padding: 110px 0 90px; }
  .hero__shade { background: linear-gradient(0deg, rgba(11, 16, 32, .97) 10%, rgba(11, 16, 32, .75) 60%, rgba(11, 16, 32, .55) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .card__img { aspect-ratio: 16 / 9; }
  .team__photo::before { inset: 10px -6px -10px 10px; }
  .field-row { grid-template-columns: 1fr 92px; }
  .tip p { padding-left: 22px; }
  .brand__name { font-size: 1.25rem; }
  .brand__mark { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
