/* ==========================================================================
   PD Auto Mechanical Services — prospect concept
   Honest workshop, job-card motif. Cream paper, oil ink, stamp red, teal.
   ========================================================================== */

:root {
  /* Palette — proposed demo direction (no verified brand colours) */
  --paper: #f3eee4;         /* workshop cream */
  --paper-2: #e9e1d2;
  --card: #fffdf8;
  --oil: #1f1d1a;           /* oil-dark ink */
  --oil-2: #2c2924;
  --red: #c8372d;           /* job-card stamp red */
  --red-dark: #a42a22;
  --teal: #1f6f6b;          /* service-manual teal */
  --teal-soft: #7fb3ad;
  --khaki: #cbbfa8;

  --text: #1f1d1a;
  --text-soft: #5a5348;
  --on-dark: #f3eee4;
  --on-dark-soft: #c2b9a8;
  --line: #d9cfbd;
  --focus: #1f6f6b;

  --font-display: "Rockwell", "Rockwell Nova", "Roboto Slab", "Zilla Slab", "Arvo", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --section: clamp(4rem, 9vw, 7rem);

  --radius: 6px;
  --container: 71.25rem;
  --container-wide: 85rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 var(--space-2); }

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

.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--container-wide)); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--oil);
  color: var(--on-dark);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.eyebrow--light { color: var(--teal-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--lg { min-height: 3.4rem; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--oil); color: var(--oil); }
.btn--outline:hover { background: var(--oil); color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 228, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 4px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 2px rgba(243, 238, 228, .35);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.brand-sub {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: .2rem;
}

.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--red); }

.header-call { padding-inline: .9rem; min-height: 2.6rem; }
.header-call span { display: none; }

@media (min-width: 30rem) {
  .header-call span { display: inline; }
}
@media (min-width: 64rem) {
  .site-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
.hero h1 { max-width: 16ch; margin-bottom: var(--space-3); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.22rem); color: var(--text-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--space-4) 0 var(--space-3); }

.open-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-soft);
  margin: 0;
}
.open-status::before {
  content: "";
  width: .65rem; height: .65rem;
  border-radius: 50%;
  background: var(--khaki);
  flex: none;
}
.open-status.is-open { color: var(--teal); }
.open-status.is-open::before { background: #2e9e6a; box-shadow: 0 0 0 4px rgba(46, 158, 106, .18); }
.open-status.is-closed { color: var(--red-dark); }
.open-status.is-closed::before { background: var(--red); }

/* Job card */
.jobcard-wrap { margin: 0; display: flex; justify-content: center; }
.jobcard {
  position: relative;
  width: min(100%, 25rem);
  background:
    repeating-linear-gradient(var(--card) 0 2.1rem, #eee5d4 2.1rem calc(2.1rem + 1px));
  border: 1px solid var(--line);
  border-top: 10px solid var(--teal);
  border-radius: 4px;
  padding: 1.25rem 1.5rem 4.5rem;
  transform: rotate(2deg);
  box-shadow: 0 2px 0 var(--line), 0 30px 50px -30px rgba(31, 29, 26, .5);
}
.jobcard::before {
  content: "";
  position: absolute;
  top: -1.4rem; left: 50%;
  width: 4.5rem; height: 1.6rem;
  margin-left: -2.25rem;
  background: var(--khaki);
  border-radius: 4px 4px 2px 2px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.jobcard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--oil);
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}
.jobcard-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em; }
.jobcard-brand { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.jobcard-fields { margin: 0 0 .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.jobcard-fields dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.jobcard-fields dd { margin: 0; }
.hand { font-family: var(--font-hand); color: #23408e; font-size: 1.05rem; }
.jobcard-checks { list-style: none; margin: 0 0 .75rem; padding: 0; }
.jobcard-checks li { display: flex; align-items: center; gap: .7rem; min-height: 2.1rem; font-weight: 600; }
.tick {
  position: relative;
  width: 1.15rem; height: 1.15rem;
  border: 2px solid var(--oil);
  border-radius: 2px;
  flex: none;
}
.tick::after {
  content: "";
  position: absolute;
  left: .15rem; top: -.35rem;
  width: .55rem; height: 1rem;
  border-right: 3px solid #23408e;
  border-bottom: 3px solid #23408e;
  transform: rotate(40deg);
}
.jobcard-notes .label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.jobcard-notes p { margin: .1rem 0 0; line-height: 2.1rem; }
.stamp {
  position: absolute;
  right: 1.2rem; bottom: 1.1rem;
  padding: .3rem .8rem;
  border: 3px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: .88;
  mix-blend-mode: multiply;
}

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 44rem; margin-bottom: var(--space-4); }

/* Services */
.services { background: var(--card); border-block: 1px solid var(--line); }
.car-diagram {
  max-width: 52rem;
  margin: 0 auto var(--space-6);
}
.car-diagram svg { width: 100%; height: auto; }

.service-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--oil);
}
.service-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--line);
}
.service-list h3 { margin-bottom: .3rem; }
.service-list p { margin: 0; color: var(--text-soft); }
.num {
  display: grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.num--teal { background: var(--teal); }
.num--ring { background: var(--oil); box-shadow: inset 0 0 0 3px var(--red); }

@media (min-width: 48rem) {
  .service-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
}
@media (min-width: 70rem) {
  .service-list { grid-template-columns: repeat(3, 1fr); }
}

/* Why */
.why { background: var(--oil); color: var(--on-dark); }
.why-grid { display: grid; gap: var(--space-6); }
.why-intro p:not(.eyebrow) { color: var(--on-dark-soft); max-width: 28rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.why-list li {
  padding: var(--space-3);
  border: 1px solid rgba(243, 238, 228, .14);
  border-left: 6px solid var(--red);
  border-radius: 4px;
  background: var(--oil-2);
}
.why-list li:nth-child(even) { border-left-color: var(--teal-soft); }
.why-list p { margin: 0; color: var(--on-dark-soft); }

@media (min-width: 48rem) {
  .why-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .why-grid { grid-template-columns: 1fr 1.6fr; gap: var(--space-8); align-items: start; }
}

/* Travellers */
.travel { background: var(--paper-2); padding-block: clamp(3rem, 7vw, 5rem); }
.travel-inner { display: grid; gap: var(--space-4); align-items: center; }
.travel h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.travel p { color: var(--text-soft); max-width: 40rem; }
.travel-sign {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  justify-self: start;
  padding: 1rem 1.4rem;
  background: #1d6b3f;
  color: #fff;
  border: 3px solid #fff;
  outline: 3px solid #1d6b3f;
  border-radius: 6px;
  font-weight: 700;
}
.sign-route {
  padding: .1rem .6rem;
  background: #f2c200;
  color: var(--oil);
  border-radius: 3px;
  font-size: 1.3rem;
}
.sign-town { font-size: 1.6rem; letter-spacing: .02em; }

@media (min-width: 52rem) {
  .travel-inner { grid-template-columns: auto 1fr; gap: var(--space-8); }
}

/* Visit */
.visit-grid { display: grid; gap: var(--space-4); align-items: start; }
.address { font-style: normal; font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-4); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hours-card, .call-prep {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 8px solid var(--teal);
  border-radius: 4px;
  padding: var(--space-4);
}
.call-prep { border-top-color: var(--red); }
.hours-card h3, .call-prep h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.open-status--card { margin-bottom: var(--space-2); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .5rem 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--teal); }
.call-prep ul { margin: 0; padding-left: 1.2rem; }
.call-prep li { padding: .25rem 0; }

@media (min-width: 52rem) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 72rem) {
  .visit-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .visit-grid > div:first-child { grid-column: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--oil);
  color: var(--on-dark-soft);
  padding: var(--space-8) 0 calc(var(--space-4) + 4.5rem);
  font-size: .95rem;
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(243, 238, 228, .14);
}
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--on-dark); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclosure { margin: var(--space-3) 0 0; font-size: .8rem; opacity: .75; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-bottom: var(--space-4); }
}

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(243, 238, 228, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.call-bar .btn { width: 100%; }
.call-bar .btn span { font-weight: 500; opacity: .9; }
@media (min-width: 48rem) {
  .call-bar { display: none; }
}

/* ---------- Copied-number toast (desktop) ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 70;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.2rem;
  background: var(--oil);
  color: var(--on-dark);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 47.99rem) {
  .toast { bottom: 5.5rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
