/* =========================================================================
   Arnold's Garage - single stylesheet.
   Plain CSS, mobile-first, no build step. Edit the variables below to
   re-skin the whole site (colors, fonts, spacing).
   ========================================================================= */

:root {
  /* Brand colors. */
  --c-bg:        #ffffff;
  --c-surface:   #f4f5f7;
  --c-ink:       #16202b;
  --c-ink-soft:  #4a5866;
  --c-brand:     #b3261e;
  --c-brand-dk:  #8f1c16;
  --c-brand-lt:  #e2635b;   /* lighter red for accents on dark backgrounds */
  --c-navy:      #16202b;
  --c-navy-2:    #1f2c3a;
  --c-navy-ink:  #eef2f6;
  --c-line:      #d7dce1;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
          "Noto Sans", sans-serif;

  --maxw: 1080px;
  --radius: 12px;
  --shadow:    0 2px 8px rgba(22, 32, 43, .08);
  --shadow-lg: 0 12px 30px rgba(22, 32, 43, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-dk); }
a:hover { color: var(--c-brand); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--surface { background: var(--c-surface); }
.lead { font-size: 1.2rem; color: var(--c-ink-soft); max-width: 62ch; }
:target { scroll-margin-top: 90px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; font-weight: 700; margin: 0 0 .8rem;
  color: var(--c-brand);
}

/* Accent rule under section headings for a bit of polish. */
.section-title { position: relative; padding-bottom: .5rem; margin-bottom: 1rem; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3rem; height: 3px; border-radius: 3px; background: var(--c-brand);
}

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--c-brand); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-brand); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--c-brand-dk); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--c-navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--c-brand-dk); border-color: var(--c-brand); }
.btn--outline:hover { background: var(--c-brand); color: #fff; }

a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid #ffbf47; outline-offset: 2px;
}

/* Button groups: always keep a gap, even when buttons wrap/stack. */
.btn-group { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-group--center { justify-content: center; }
@media (max-width: 460px) { .btn-group .btn { width: 100%; text-align: center; } }

/* --- Header / nav --- */
.site-header {
  background: var(--c-navy); color: var(--c-navy-ink);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .9rem; position: relative;
}
.brand { font-weight: 800; font-size: 1.3rem; color: var(--c-navy-ink); text-decoration: none; letter-spacing: .2px; white-space: nowrap; }
.brand span { color: var(--c-brand-lt); }
.nav { display: flex; align-items: center; gap: .25rem 1.4rem; flex-wrap: wrap; }
.nav a {
  color: var(--c-navy-ink); text-decoration: none; font-weight: 600;
  padding: .35rem .1rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--c-brand-lt); color: #fff; }
.nav__cta {
  background: var(--c-brand); color: #fff !important;
  padding: .5rem 1rem !important; border-radius: var(--radius);
  border-bottom: none !important;
}
.nav__cta:hover { background: var(--c-brand-dk); }

/* Hamburger toggle (hidden on desktop). */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--c-navy-ink);
  padding: .35rem; cursor: pointer; border-radius: 8px;
}
.nav-toggle:hover { color: #fff; }
.nav-toggle svg { width: 1.9rem; height: 1.9rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  /* Keep the logo and close button above the full-screen panel. */
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .nav {
    display: none; z-index: 1;
    position: fixed; top: 0; left: 0; right: 0;
    min-height: 50vh; max-height: 100vh;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-navy);
    padding: 5.5rem 1.5rem 2rem;
    overflow-y: auto;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1.1rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); white-space: normal; font-size: 1.15rem; }
  .nav__cta { margin-top: auto; text-align: center; border-bottom: 0 !important; font-size: 1.05rem; }
  html.nav-open { overflow: hidden; }
}

/* Dimmed backdrop behind the half-height mobile menu (added by menu.js). */
.nav-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.55); }

/* --- Hero --- */
.hero {
  position: relative; color: var(--c-navy-ink);
  background:
    linear-gradient(115deg, rgba(16,22,30,.94) 0%, rgba(16,22,30,.86) 45%, rgba(16,22,30,.6) 100%),
    var(--c-navy) url("../images/garage.webp") center / cover no-repeat;
}
.hero .container { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero .eyebrow { color: var(--c-brand-lt); }
.hero h1 { color: #fff; max-width: 20ch; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero .lead { color: #dbe2e9; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.hero__meta { margin-top: 1.75rem; color: #dbe2e9; font-size: 1rem; }
.hero__meta a { color: #fff; }

/* --- Grid / cards --- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }

/* Lift service cards on hover; keep a red top accent on hover. */
article.card { border-top: 3px solid transparent; }
article.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top-color: var(--c-brand); }

/* Subtle service icons. */
.card__icon { display: inline-flex; margin-bottom: .7rem; color: var(--c-brand); }
.card__icon svg { width: 1.85rem; height: 1.85rem; }

/* --- Checklist (USPs) --- */
.checklist { list-style: none; margin: 0; }
.checklist.card { padding: 2rem 2.1rem; }
.checklist li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.checklist li:last-child { margin-bottom: 0; }
.checklist .check { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .18em; }

/* --- Tables (opening hours, prices) --- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
}
caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--c-line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--c-navy); color: var(--c-navy-ink); }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: #fafbfc; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Opening hours: right-align times, mute closed days, and a short helper line. */
table.hours td { text-align: right; font-variant-numeric: tabular-nums; }
table.hours tr.is-closed th, table.hours tr.is-closed td { color: var(--c-ink-soft); }
.hours-note {
  display: flex; gap: .6rem; align-items: flex-start;
  margin: 0 0 1.1rem; color: var(--c-ink-soft); font-size: .98rem;
}
.hours-note::before {
  content: ""; flex: 0 0 auto; width: .55rem; height: .55rem; margin-top: .5em;
  border-radius: 50%; background: var(--c-brand);
}

/* --- Contact layout --- */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 1.1rem; }
.contact-list .label { display: block; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-soft); margin-bottom: .1rem; }

/* --- Callout box --- */
.note {
  border-left: 4px solid var(--c-brand); background: var(--c-bg);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

/* --- Map embed --- */
.map-wrap {
  margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--c-line);
}
.map-embed { display: block; width: 100%; height: 420px; max-height: 60vh; border: 0; }

/* --- Footer --- */
.site-footer { background: var(--c-navy); color: var(--c-navy-ink); }
.site-footer .container { padding-block: 3rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { font-size: 1.05rem; color: #fff; }
.site-footer address { font-style: normal; color: #cdd6df; line-height: 1.8; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2a3947;
  font-size: .9rem; color: #9fb0bd; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
