/* Miki's Auto. Colours: yellow #FFC93C, black #111111. Never white text on yellow. */

@font-face {
  font-family: "Antonio";
  src: url("/assets/fonts/antonio-latin-700-normal.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #FFC93C;
  --black: #111111;
  --page: #F2F2F0;
  --card: #FFFFFF;
  --ink: #111111;
  --ink-soft: #4A4A48;
  --on-black: #EDEDEB;
  --on-black-soft: #B8B8B4;
  --rule: #D9D9D5;
  --display: "Antonio", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

main a:focus-visible { outline-color: var(--black); }
.hero a:focus-visible { outline-color: var(--on-black); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1rem; max-width: 62ch; }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-weight: 700;
}
.skip:focus { left: 0; z-index: 10; }

/* Header */

.site-header {
  background: var(--black);
  color: var(--on-black);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo img { width: 8.5rem; }

.nav {
  display: flex;
  gap: 1.1rem;
  white-space: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--yellow); }

/* Opening section */

.hero {
  background: var(--black);
  color: var(--on-black);
  padding: 2rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
}

.hero h1 {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0.005em;
  max-width: 13ch;
}

.lead {
  font-size: 1.1875rem;
  margin: 1.25rem 0 1.75rem;
  max-width: 34ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 6px;
  border: 2px solid transparent;
}

/* The call button is the only yellow-filled element on the site. */
.btn-call {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-call:hover { background: #FFD666; border-color: #FFD666; }

.btn-ghost {
  color: var(--on-black);
  border-color: var(--on-black-soft);
}
.btn-ghost:hover { border-color: var(--on-black); }

.btn-outline {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--page); }

/* Hero side: full plate logo (two-column widths only) and opening hours */

.hero-side {
  display: flex;
  flex-direction: column;
}

/* Phones: the full plate closes the black section, after the hours. */
.plate-logo { order: 3; margin-top: 1.75rem; }

.hours-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.hours th,
.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #3A3A38;
  text-align: left;
  font-weight: 400;
}
.hours td { text-align: right; font-weight: 700; white-space: nowrap; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

/* Body sections */

.section { padding: 3rem 0; }
.section-tight { padding-top: 0; }
.section-visit { padding-top: 0; }

.section h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.services {
  display: grid;
  gap: 1.25rem;
}

.service {
  background: var(--card);
  border-top: 6px solid var(--black);
  border-radius: 0 0 6px 6px;
  padding: 1.5rem 1.5rem 1.25rem;
}

.service h3 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}
.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); }
.service p:last-child { margin-bottom: 0; }

.more {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}
.more:hover { text-decoration-color: var(--black); }

.facts {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 0;
}

.facts div {
  border-left: 4px solid var(--yellow);
  padding-left: 1rem;
}

.facts dt {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.facts dd {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

/* Service pages */

.groups {
  display: grid;
  gap: 1.25rem;
}

.group {
  background: var(--card);
  border-top: 6px solid var(--black);
  border-radius: 0 0 6px 6px;
  padding: 1.25rem 1.5rem;
}

.group h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.group li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
}
.group li:first-child { border-top: 0; }

.group p { margin: 0; color: var(--ink-soft); }

/* Glass page: numbered car diagram beside the matching list */

.glassmap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.car {
  display: block;
  width: 100%;
  max-width: 21rem;
  height: auto;
  margin: 0 auto;
}

.glasslist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glasslist li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.glasslist li:last-child { border-bottom: 1px solid var(--rule); }

.glasslist h3 { font-size: 1.4rem; margin-bottom: 0.15rem; }
.glasslist p { margin: 0; color: var(--ink-soft); }

.num {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topics {
  display: grid;
  gap: 2rem 3rem;
}

.topics h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.topics p:last-child { margin-bottom: 0; }

.visit {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}

.visit h3 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

address {
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.9rem;
}

.plain {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  max-width: 62ch;
}
.plain li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}
.plain li:last-child { border-bottom: 1px solid var(--rule); }

.map {
  display: block;
  margin-top: 1.5rem;
  max-width: 34rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.map img { width: 100%; }

.map-credit {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.note { margin: 1.25rem 0 0; }

/* Payment marks: official files, resized only. */

.pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-top: 0.6rem;
  padding: 0.25rem 1rem;
  background: var(--card);
  border-radius: 6px;
  max-width: 100%;
  width: fit-content;
}

.pay img { display: block; width: auto; }
.pay-wallets {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pay-cash {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 1.5rem;
  padding: 0 0.45rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: calc(1.5rem - 4px);
}
.pay-cards { height: 3.1rem; margin: 0 -1rem; }
.pay-apple { height: 1.5rem; margin: 0.5rem 0; }
.pay-google { height: 2.8rem; margin: -0.3rem -0.8rem; }

@media (min-width: 30rem) {
  .pay, .pay-wallets { gap: 0.25rem 0.9rem; }
  .pay-cards { height: 3.9rem; }
  .pay-apple { height: 1.9rem; }
  .pay-cash { height: 1.9rem; line-height: calc(1.9rem - 4px); font-size: 1rem; padding: 0 0.55rem; }
  .pay-google { height: 3.5rem; margin: -0.35rem -0.9rem; }
}

.photo { margin: 1.5rem 0 0; }
.photo img { border-radius: 6px; }

/* Footer */

.site-footer {
  background: var(--black);
  color: var(--on-black-soft);
  font-size: 0.9375rem;
  padding: 2.25rem 0;
}

.footer-row {
  display: grid;
  gap: 1.25rem;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--on-black); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.legal { color: var(--on-black-soft); }

/* Wider screens */

@media (min-width: 40rem) {
  .groups { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .logo img { width: 11.5rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-row { grid-template-columns: 1.4fr 1fr; }
  .legal { grid-column: 1 / -1; }
}

@media (min-width: 48rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
  }
  .glassmap { grid-template-columns: 22rem 1fr; gap: 3rem; }
  .hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
  .hero-side { justify-self: end; width: 100%; max-width: 26rem; }
  .plate-logo { order: 0; margin: 0 0 1.5rem; }
  .plate-logo ~ .hours-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 60rem) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-grid { gap: 3rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .groups { grid-template-columns: repeat(3, 1fr); }
  .visit { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section { padding: 4rem 0; }
  .section-tight { padding-top: 0; }
  .section-visit { padding-top: 0; }
  .nav { gap: 1.75rem; }
}
