/* Auto Moto Escola Vargas */

:root {
  --ink: #01041A;
  --white: #FFFFFF;
  --soft: #D9D8E6;
  --line: rgba(255, 255, 255, .18);
  --panel: rgba(2, 8, 36, .68);
  --red: #E0102A;
  --green: #4BE083;

  --display: "Sora", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --h1: clamp(2.375rem, 6.1vw, 5.75rem);
  --h2: clamp(2rem, 4.1vw, 3.75rem);
  --lead: clamp(1.125rem, 1.45vw, 1.3125rem);
  --gutter: clamp(16px, 3.4vw, 48px);
  --gap: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* O fundo fica parado enquanto o conteúdo rola. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 52% at -4% 100%, #0A7CE8 0%, #0658C2 38%, rgba(4, 50, 140, 0) 100%),
    radial-gradient(42% 46% at 46% 56%, rgba(10, 70, 190, .92) 0%, rgba(8, 50, 150, 0) 100%),
    radial-gradient(40% 58% at 16% 26%, rgba(10, 62, 156, .9) 0%, rgba(8, 40, 120, 0) 100%),
    radial-gradient(34% 40% at 74% 34%, rgba(8, 44, 130, .62) 0%, rgba(6, 30, 100, 0) 100%),
    #01041A;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
section[id] { scroll-margin-top: 24px; }

h1, h2, h3, dt { font-family: var(--display); }
h1 { font-size: var(--h1); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: var(--h2); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: var(--lead); line-height: 1.45; max-width: 36em; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
::selection { background: var(--white); color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 8px; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--white); border-radius: 6px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--small { min-height: 46px; padding: 10px 20px; font-size: 1rem; }
.btn--wide { width: 100%; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-underline-offset .2s var(--ease); }
.link:hover { text-underline-offset: 8px; }

/* ---------- Topo ---------- */
.nav { display: flex; align-items: center; gap: 28px; padding-block: clamp(14px, 1.7vw, 24px); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 0; }
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.hero { padding-top: clamp(24px, 3.4vw, 52px); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(20px, 2.4vw, 34px); }
.hero__row .btn { flex: none; }
/* As colunas seguem a proporção de cada foto: mesma altura e nenhum corte. */
.hero__photos { display: grid; grid-template-columns: 859fr 1418fr 1040fr; gap: 14px; margin-top: clamp(28px, 3.2vw, 46px); }
.hero__photos figure { overflow: hidden; border-radius: 4px; }
.hero__photos img { width: 100%; }

/* ---------- Números ---------- */
.numbers { padding-top: var(--gap); }
.numbers h2 { max-width: 15em; }
.numbers dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; margin-top: clamp(36px, 5vw, 72px); }
.numbers dt { font-size: clamp(2.5rem, 5.3vw, 5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.numbers dd { margin-top: 12px; font-size: var(--lead); color: var(--soft); }

/* ---------- Categorias ---------- */
.cats { padding-top: var(--gap); }
.cats h2 { margin-bottom: clamp(32px, 4.4vw, 60px); }
.cat { display: grid; grid-template-columns: minmax(130px, 2fr) 4fr 5fr; gap: clamp(20px, 3.4vw, 56px); align-items: center; padding-block: clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--line); }
.cat:last-child { border-bottom: 1px solid var(--line); }
.cat__letter { font-family: var(--display); font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.cat h3 { font-size: clamp(1.625rem, 2.6vw, 2.375rem); }
.cat p { margin: 10px 0 16px; max-width: 31em; }
.cat figure { justify-self: end; overflow: hidden; border-radius: 4px; }
.cat img { height: clamp(240px, 24vw, 340px); width: auto; }

/* ---------- Automático ---------- */
.auto { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: var(--gap); }
.auto figure { overflow: hidden; border-radius: 4px; }
.auto img { width: 100%; }
.auto .lead { margin: 20px 0 28px; }

/* ---------- Como funciona ---------- */
.how { padding-top: var(--gap); }
.how ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.2vw, 32px); margin-top: clamp(32px, 4.4vw, 60px); }
.how li { padding-top: 18px; border-top: 1px solid var(--line); }
.how span { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; color: var(--soft); }
.how h3 { font-size: clamp(1.375rem, 1.8vw, 1.625rem); margin: 34px 0 8px; }

/* ---------- Orçamento ---------- */
.quote { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: var(--gap); }
.quote .lead { margin-top: 18px; }
.quote__phone { margin-top: 24px; }
.quote__phone a { font-weight: 700; }
.panel { background: var(--panel); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: clamp(22px, 3vw, 40px); }
.form { display: grid; gap: 22px; }
.field span, .seg legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field input { width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; color: var(--white); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; }
.field input::placeholder { color: var(--soft); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg legend { grid-column: 1 / -1; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; height: 100%; padding: 12px 14px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; transition: background-color .2s, color .2s; }
.seg small { display: block; margin-top: 2px; font-family: var(--text); font-size: .9375rem; font-weight: 600; }
.seg input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; min-height: 32px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); flex: none; }

/* ---------- Onde ---------- */
.where { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: var(--gap); }
.where figure { overflow: hidden; border-radius: 4px; }
.where img { width: 100%; }
.where .lead { margin-top: 10px; }
.where .link { display: inline-block; }
.hours { width: 100%; max-width: 480px; margin: 26px 0; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.hours th { text-align: left; font-weight: 500; }
.hours th, .hours td { padding: 7px 10px; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { background: rgba(255, 255, 255, .14); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.status.is-open i { background: var(--green); }
.status.is-closed i { background: #FF8A90; }

/* ---------- Rodapé ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 36px; border-top: 1px solid var(--line); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 1rem; }
.foot a { text-decoration: none; font-weight: 600; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 5px; }

.dock { display: none; }

/* ---------- Entradas ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .seg span, .link { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .auto, .quote, .where { grid-template-columns: 1fr; }
  .how ol { grid-template-columns: 1fr 1fr; }
  .how h3 { margin-top: 14px; }
  .numbers dl { grid-template-columns: 1fr; justify-content: stretch; gap: 26px; }
  .numbers dt { font-size: clamp(2.75rem, 10vw, 4.5rem); }
  .cat { grid-template-columns: 110px 1fr 1fr; }
  .cat figure { justify-self: stretch; }
  .cat img { width: 100%; height: auto; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  .brand { font-size: 1rem; }
  .nav .btn { display: none; }
  .hero__row .btn { width: 100%; }
  .hero__photos { grid-template-columns: 859fr 1040fr; gap: 8px; }
  .hero__photos .ph-b { grid-column: 1 / -1; grid-row: 1; }
  .cat { grid-template-columns: 1fr; gap: 12px; }
  .cat figure { justify-self: stretch; }
  .cat img { width: 100%; height: auto; }
  .cat__letter { font-size: 4.5rem; }
  .how ol { grid-template-columns: 1fr; gap: 22px; }
  .seg span { font-size: 1.3125rem; padding: 10px; }
  .seg small { font-size: .875rem; }
  .hours th, .hours td { padding-inline: 6px; white-space: nowrap; }
  .foot ul { flex-direction: column; }
  .dock {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    min-height: 62px; padding: 12px 16px;
    background: var(--white); color: var(--ink);
    font-weight: 800; font-size: 1.0625rem; text-decoration: none;
  }
}
