/* Auto Moto Escola Vargas */

/* Fontes hospedadas no próprio site (mais rápido que buscar no Google Fonts). */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/montserrat-latin.woff2?v=06b16db7a9) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/opensans-latin.woff2?v=d8e4fe0452) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #16429A;
  --blue-dark: #0F2F72;
  --ink: #14203C;
  --muted: #47526B;
  --white: #FFFFFF;
  --tint: #F2F5FB;
  --line: #D8DEEA;
  --green: #12A150;

  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --text: "Open Sans", "Segoe UI", Arial, sans-serif;

  --h2: clamp(1.75rem, 3vw, 2.625rem);
  --gutter: clamp(16px, 3.4vw, 48px);
  --gap: clamp(72px, 8.5vw, 124px);
  --radius: 8px;
  --shadow: 0 10px 28px rgba(15, 47, 114, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(2.125rem, 4.7vw, 4.25rem); line-height: 1.18; letter-spacing: -.01em; }
h2 { font-size: var(--h2); line-height: 1.22; letter-spacing: -.005em; color: var(--blue); text-wrap: balance; }
h3 { line-height: 1.28; }
.center { text-align: center; }

/* Botões, menu e rótulos usam a fonte dos títulos. */
.btn, .brand, .link, .nav__links a, .topbar, .foot a, .dock,
.field span, .seg legend, .seg small, .check span, .hours caption {
  font-family: var(--display);
  font-weight: 600;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .how :focus-visible, .foot :focus-visible, .topbar :focus-visible { outline-color: var(--white); }
::selection { background: var(--blue); color: var(--white); }

.wrap { width: 100%; max-width: 1280px; 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: 54px; padding: 12px 30px;
  font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--tint); }
.btn--ghost { color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--blue); }
.btn--small { min-height: 36px; padding: 4px 16px; font-size: .9375rem; white-space: nowrap; }
.btn--wide { width: 100%; }
.link { font-size: 1.0625rem; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Topo ---------- */
.topbar { background: var(--blue-dark); color: var(--white); font-size: .75rem; line-height: 1.25; }
.topbar__in { display: flex; justify-content: space-between; gap: 24px; padding-block: 2px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 12px rgba(15, 47, 114, .1); }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 50px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-size: 1rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a { color: var(--ink); text-decoration: none; font-size: .875rem; padding: 4px 0; white-space: nowrap; }
.nav__links a:hover { color: var(--blue); }

/* ---------- Abertura ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(500px, 74vh, 660px); background: var(--blue-dark); color: var(--white); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(12, 38, 100, .68); }
.hero__in { position: relative; z-index: 1; text-align: center; padding-block: 56px 120px; }
.hero__sub { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.65; max-width: 40em; margin: 18px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ---------- Destaques ---------- */
.highlights { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -76px; }
.hl { background: var(--white); padding: 34px 26px 30px; text-align: center; box-shadow: var(--shadow); }
.hl:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hl:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.hl__icon { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hl h2 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); margin-top: 12px; }
.hl p { margin-top: 6px; font-size: .9375rem; line-height: 1.65; color: var(--muted); }
.hl--blue { background: var(--blue); color: var(--white); }
.hl--blue .hl__icon { stroke: var(--white); }
.hl--blue h2, .hl--blue p { color: var(--white); }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; padding-top: var(--gap); }
.about__main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__text p { margin: 16px 0 26px; font-size: 1.0625rem; }

/* ---------- Categorias ---------- */
.cats { margin-top: var(--gap); padding-block: var(--gap); background: var(--tint); }
.cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 30px); margin-top: clamp(32px, 3.6vw, 52px); }
.cat { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat figure { position: relative; }
.cat img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cat img.pos-ab { object-position: 96% 50%; }
.cat__badge { position: absolute; left: 0; bottom: 0; min-width: 64px; padding: 6px 16px; text-align: center; background: var(--blue); color: var(--white); font-family: var(--display); font-size: 1.625rem; font-weight: 700; line-height: 1.5; }
.cat__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.cat h3 { font-size: 1.5rem; color: var(--blue); }
.cat p { flex: 1; margin: 8px 0 20px; }
.cat .btn { width: 100%; }

/* ---------- Automático ---------- */
.auto { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: center; padding-top: var(--gap); }
.auto__text p { margin: 16px 0 26px; font-size: 1.0625rem; }
.auto__text .auto__note { margin: -8px 0 26px; padding: 12px 16px; font-size: .9375rem; line-height: 1.6; background: var(--tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.auto__note strong { color: var(--blue); }
.auto__photos { display: grid; grid-template-columns: 1333fr 1040fr; gap: 12px; }
.auto figure { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.auto img { width: 100%; }

/* ---------- Como funciona ---------- */
.how { margin-top: var(--gap); padding-block: var(--gap); background: var(--blue); color: var(--white); }
.how h2 { color: var(--white); }
.how ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2.4vw, 34px); margin-top: clamp(32px, 3.6vw, 52px); }
.how span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--blue); font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.how h3 { font-size: 1.25rem; margin: 16px 0 6px; }
.how p { font-size: .9375rem; line-height: 1.7; }

/* ---------- Página 404 ---------- */
.erro { padding-block: clamp(72px, 12vw, 160px); text-align: center; }
.erro h1 { color: var(--blue); font-size: clamp(2rem, 4vw, 3rem); }
.erro p { margin: 14px auto 0; max-width: 34em; }
.erro__acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 28px !important; }

/* ---------- Perguntas frequentes ---------- */
.faq { padding-top: var(--gap); }
.faq__list { max-width: 860px; margin: clamp(28px, 3.4vw, 44px) auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.625rem; font-weight: 600; line-height: 1; color: var(--blue); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 4px 20px; color: var(--muted); }
.faq details a { color: var(--blue); font-weight: 600; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; padding-block: var(--gap); }
.contact__form > p, .contact__where > p { margin-top: 8px; font-size: 1.0625rem; }
.form { display: grid; gap: 20px; margin-top: 24px; }
.field span, .seg legend { display: block; font-size: 1rem; margin-bottom: 6px; padding: 0; }
.field input { width: 100%; min-height: 54px; padding: 12px 16px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #AEB7CB; border-radius: var(--radius); }
.field input::placeholder { color: #5B6580; }
.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: 10px 14px; font-family: var(--display); font-size: 1.375rem; font-weight: 700; line-height: 1.25; color: var(--blue); background: var(--white); border: 1px solid #AEB7CB; border-radius: var(--radius); transition: background-color .2s, color .2s; }
.seg small { display: block; font-size: .875rem; }
.seg input:checked + span { background: var(--blue); color: var(--white); border-color: var(--blue); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 1rem; cursor: pointer; min-height: 32px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }

.hours { width: 100%; margin: 20px 0; border-collapse: collapse; }
.hours caption { text-align: left; font-size: 1rem; padding-bottom: 8px; }
.hours th { text-align: left; font-weight: 400; }
.hours th, .hours td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { background: var(--tint); color: var(--blue); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.status.is-open i { background: var(--green); }
.status.is-closed i { background: #D4121E; }

/* ---------- Rodapé ---------- */
.foot { background: var(--blue-dark); color: var(--white); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; }
.foot .brand { color: var(--white); margin-right: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: .9375rem; }
.foot a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 5px; }

.dock { display: none; }

/* ---------- Entradas ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .6s 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 { transition: none; }
}

@media (max-width: 1180px) {
  .nav__links { gap: 16px; }
  .nav__in .brand span { display: none; }
  .how ol { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .topbar__in span:nth-child(2) { display: none; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .hl, .hl:first-child, .hl:last-child { border-radius: 0; }
  .about, .auto, .contact { grid-template-columns: 1fr; }
  .auto__photos { max-width: 720px; }
  .cats__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  body { padding-bottom: 62px; }
  .topbar { display: none; }
  .nav__in { min-height: 50px; }
  .nav__in .brand span { display: inline; }
  .brand { font-size: .9375rem; }
  .brand img { width: 36px; height: 36px; }
  .nav .btn { display: none; }
  .hero { min-height: 460px; }
  .hero__in { padding-block: 44px 96px; }
  .hero__actions .btn { width: 100%; }
  .highlights { margin-top: -60px; }
  .hl { padding: 24px 12px 20px; }
  .hl__icon { width: 36px; height: 36px; }
  .hl h2 { font-size: 1.1875rem; }
  .cats__grid { grid-template-columns: 1fr; }
  .how ol { grid-template-columns: 1fr; }
  .how li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .how span { grid-row: span 2; }
  .how h3 { margin: 0; }
  .btn { width: 100%; }
  .seg span { font-size: 1.1875rem; padding: 8px 10px; }
  .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: 60px; padding: 12px 16px;
    background: var(--blue); color: var(--white);
    font-size: 1.0625rem; text-decoration: none;
    box-shadow: 0 -4px 14px rgba(15, 47, 114, .22);
  }
}
