/* ==========================================================================
   Webb's Complete Auto Care
   Palette and sign-plate motif taken from the shop's logo.
   ========================================================================== */

:root {
  --navy: #15176E;
  --navy-deep: #0E0F4F;
  --red: #C8102E;
  --red-dark: #A00C24;
  --black: #000000;
  --white: #FFFFFF;
  --concrete: #ECEDEF;
  --rule: #C4C6CC;
  --bolt: #A3A5A9;
  --steel: #585B63;      /* text-safe gray */
  --text: #2A2C3A;
  --ok: #1B7431;
  --on-navy: #E6E7F3;    /* body text on navy */
  --focus: var(--navy);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-stretch: 100%;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--white); --focus: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 850; }
h3 { font-size: 1.1875rem; font-weight: 750; font-stretch: 112%; line-height: 1.25; }

p { margin: 0; max-width: 40rem; text-wrap: pretty; }
.lede { font-size: 1.1875rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 3px solid var(--black);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: var(--red-dark); color: var(--white); }

.btn-plain { background: var(--white); color: var(--navy); }
.btn-plain:hover { background: var(--concrete); color: var(--navy); }

/* ---------- Sign plate (the logo's black / white / red border with bolts) ---------- */

.plate {
  position: relative;
  background:
    radial-gradient(circle at 20px 20px, var(--bolt) 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 20px) 20px, var(--bolt) 5px, transparent 6px),
    radial-gradient(circle at 20px calc(100% - 20px), var(--bolt) 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), var(--bolt) 5px, transparent 6px),
    var(--white);
  border: 7px solid var(--black);
  border-radius: 20px;
  box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 9px var(--red);
  color: var(--text);
  --focus: var(--navy);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 5px solid var(--black);
  box-shadow: inset 0 -3px 0 var(--white), inset 0 -7px 0 var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
  padding-block: 0.6rem 0.9rem;
}
.brand { flex: none; }
.brand img { height: 4rem; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 8px;
  font: 800 1rem/1 var(--font);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  color: var(--navy);
  border-radius: 6px;
}
.site-nav a:hover { background: var(--concrete); color: var(--navy); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}
.header-call { margin-left: 0.75rem; }
.site-nav .btn-call { display: inline-flex; color: var(--white); border-radius: 8px; padding: 0.7rem 1.1rem; }
.site-nav .btn-call:hover { background: var(--red-dark); color: var(--white); }

@media (max-width: 56rem) {
  .brand img { height: 3rem; }
  .header-call { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--white);
    border-bottom: 5px solid var(--black);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.85rem 0.5rem; font-size: 1.125rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
}

/* ---------- Mobile call bar ---------- */

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
  background: var(--red);
  color: var(--white);
  border-top: 4px solid var(--black);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.125rem;
  text-decoration: none;
  --focus: var(--white);
}
.callbar:hover { color: var(--white); background: var(--red-dark); }
.callbar svg { width: 1.25em; height: 1.25em; }
.callbar:focus-visible { outline-offset: -8px; }

@media (max-width: 56rem) { body { padding-bottom: 4.25rem; } }
@media (min-width: 56.0625rem) { .callbar { display: none; } }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  --focus: var(--white);
}
.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 span { display: block; }
.hero .lede { margin-top: 1.25rem; color: var(--on-navy); max-width: 34rem; }
.hero .lede a { color: var(--white); }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.875rem); }
  .hero .phone-big { font-size: clamp(1.5rem, 2.85vw, 2.35rem); }
}

/* Call plate */
.call-plate { padding: 2.25rem clamp(1.5rem, 4vw, 2.25rem) 2rem; }
.call-plate .status { min-height: 1.6em; margin-bottom: 0.9rem; }
.call-label { font-weight: 700; color: var(--steel); }
.phone-big {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: clamp(1.75rem, 7.5vw, 2.6rem);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.phone-big:hover { color: var(--red-dark); }
.call-plate .btn { margin-top: 1.1rem; width: 100%; }
.plate-facts {
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 2px solid var(--black);
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 1rem;
}
.plate-facts strong { color: var(--navy); }

/* Open / closed status */
.status { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.status[hidden] { display: none; }
.status::before {
  content: "";
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--steel);
  flex: none;
}
.status.is-open { color: var(--ok); }
.status.is-open::before { background: var(--ok); }
.status.is-closed { color: var(--red-dark); }
.status.is-closed::before { background: var(--red); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section-concrete { background: var(--concrete); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.25rem; }

/* Home: what we work on */
.work-list {
  display: grid;
  gap: 0 clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-list li { padding: 1.1rem 0 1.5rem; border-top: 3px solid var(--black); }
.work-list h3 { margin-bottom: 0.35rem; }
@media (min-width: 45rem) { .work-list { grid-template-columns: 1fr 1fr; } }

.section-foot { margin-top: 1.5rem; }
.text-link { font-weight: 700; font-stretch: 112%; }

/* Find the shop */
.find-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 52rem) { .find-grid { grid-template-columns: 1fr 1fr; } }
.address-block { font-style: normal; font-size: 1.1875rem; margin-top: 1rem; }
.address-block strong { color: var(--navy); }
.find-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hours table */
.hours { width: 100%; max-width: 26rem; margin-top: 1.75rem; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 750; font-stretch: 112%; color: var(--navy); font-size: 1.1875rem; padding-bottom: 0.5rem; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--navy); }
.today-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

/* Photo placeholder */
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  background: repeating-linear-gradient(-45deg, #E1E3E6 0 14px, #ECEDEF 14px 28px);
  border: 3px dashed var(--steel);
  border-radius: 12px;
  color: var(--steel);
  font-weight: 700;
  text-align: center;
}
.ph-wide { aspect-ratio: 16 / 9; }

/* Call band */
.call-band {
  background: var(--red);
  color: var(--white);
  border-top: 5px solid var(--black);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  --focus: var(--white);
}
.call-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.call-band h2 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.125rem); }
.call-band a {
  color: var(--white);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  font-stretch: 112%;
  text-decoration-thickness: 3px;
  white-space: nowrap;
}

/* ---------- Inner page header ---------- */

.page-head {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  --focus: var(--white);
}
.page-head h1 { color: var(--white); font-size: clamp(2.25rem, 6vw, 3.75rem); }
.page-head .lede { margin-top: 1rem; color: var(--on-navy); }
.page-head .lede a { color: var(--white); }

/* ---------- Services page ---------- */

.service-group + .service-group { margin-top: clamp(2.75rem, 6vw, 4rem); }
.service-group > h2 { padding-bottom: 0.9rem; border-bottom: 5px solid var(--black); box-shadow: 0 4px 0 var(--white), 0 7px 0 var(--red); margin-bottom: 0.5rem; }
.service-items {
  display: grid;
  gap: 0 clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 45rem) { .service-items { grid-template-columns: 1fr 1fr; } }
.service-items li { padding: 1.1rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.service-items h3 { margin-bottom: 0.3rem; }

.note-plate { margin-top: clamp(3rem, 7vw, 4.5rem); padding: 2rem clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.note-plate h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
.note-plate p { margin-top: 0.4rem; }

/* ---------- About page ---------- */

.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 52rem) { .about-grid { grid-template-columns: 1.1fr 1fr; } }
.about-copy { display: grid; gap: 1.1rem; }

.placeholder-text {
  display: inline;
  background: #FFF1B8;
  color: #3D3300;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 700;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0 clamp(2rem, 5vw, 3rem);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 45rem) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-top: 3px solid var(--black);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.5rem;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  color: var(--red);
}
.steps h3 { margin-bottom: 0.3rem; }

.fact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.fact-list li { padding-left: 1.25rem; position: relative; }
.fact-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; background: var(--red); border-radius: 50%; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-grid .phone-big { font-size: clamp(1.5rem, 2.85vw, 2.35rem); }
}
.contact-details { display: grid; gap: 2rem; }
.contact-details h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.contact-details address { font-style: normal; }
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 7px solid var(--black);
  border-radius: 20px;
  overflow: hidden;
  background: var(--concrete);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 404 ---------- */

.lost { padding-block: clamp(4rem, 12vw, 8rem); }
.lost .plate { padding: clamp(2rem, 5vw, 3rem); max-width: 40rem; }
.lost p { margin-top: 1rem; }
.lost .find-actions { margin-top: 1.75rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: #D5D6DB;
  border-top: 7px solid var(--red);
  padding-block: 3rem 2rem;
  font-size: 1rem;
  --focus: var(--white);
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #FFC9D2; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: auto 1fr 1fr 1fr; align-items: start; } }
.footer-logo img { height: 5.5rem; width: auto; }
.site-footer h2 { color: var(--white); font-size: 1.0625rem; font-stretch: 112%; font-weight: 750; margin-bottom: 0.6rem; }
.site-footer address { font-style: normal; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.footer-bottom { max-width: none; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3A3B40; font-size: 0.9375rem; color: #B9BBC2; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, .callbar { transition: background-color 0.15s ease, color 0.15s ease; }
}
