/* =========================================================
   Singh Mobile Mechanic — warm earth editorial
   Palette: paper / espresso ink / terracotta / moss
   ========================================================= */

:root {
  --bg:        #f5efe4;
  --bg-2:      #efe6d6;
  --surface:   #fbf7ee;
  --ink:       #2b1e14;
  --ink-soft:  #5a4635;
  --ink-faint: #8a7663;
  --accent:    #c25a37;
  --accent-dk: #9d4526;
  --secondary: #6a7a4a;
  --rule:      #d9cbb4;
  --rule-soft: #e6dbc7;
  --warm-light: rgba(255, 214, 150, 0.55);
  --shadow:    0 1px 2px rgba(43, 30, 20, .06), 0 12px 32px -18px rgba(43, 30, 20, .35);

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --glow-y: 12%;
}

/* ---------- dark mode ---------- */
html[data-theme="dark"] {
  --bg:        #1a1310;
  --bg-2:      #221a15;
  --surface:   #241b16;
  --ink:       #f2e8da;
  --ink-soft:  #cbb9a4;
  --ink-faint: #9c8873;
  --accent:    #e07a52;
  --accent-dk: #f0906a;
  --secondary: #9aab74;
  --rule:      #3b2d24;
  --rule-soft: #33261e;
  --warm-light: rgba(200, 120, 60, 0.22);
  --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg:        #1a1310;
    --bg-2:      #221a15;
    --surface:   #241b16;
    --ink:       #f2e8da;
    --ink-soft:  #cbb9a4;
    --ink-faint: #9c8873;
    --accent:    #e07a52;
    --accent-dk: #f0906a;
    --secondary: #9aab74;
    --rule:      #3b2d24;
    --rule-soft: #33261e;
    --warm-light: rgba(200, 120, 60, 0.22);
    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }

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

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.25rem; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* ---------- background glow (signature axis) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% var(--glow-y), var(--warm-light) 0, transparent 62%);
  transition: background-position .2s linear;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 .75rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }

p { margin: 0 0 1.1em; }

/* =========================================================
   MASTHEAD
   ========================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: .7rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 3px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.brand__text em {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { display: flex; gap: 1.35rem; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.masthead__actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem .8rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle__icon {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -4px -3px 0 0 var(--bg);
}
html[data-theme="dark"] .theme-toggle__icon,
html:not([data-theme="light"]) .theme-toggle__icon { }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle__icon {
    background: var(--accent);
    box-shadow: none;
  }
}
html[data-theme="dark"] .theme-toggle__icon { background: var(--accent); box-shadow: none; }

.call-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: .5rem .95rem;
  min-height: 44px;
  justify-content: center;
  border-radius: 4px;
  transition: background .18s ease, transform .18s ease;
}
.call-btn:hover { background: var(--accent-dk); color: #fff; }
.call-btn__label { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.call-btn__num { font-family: var(--serif); font-size: 1rem; font-weight: 600; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
  position: relative;
  font-variation-settings: 'wght' 300, 'opsz' 120;
  max-width: 16ch;
}

/* signature: hover swaps the phrase */
.hero__title .default,
.hero__title .alt {
  display: block;
  transition: opacity .35s ease;
}
.hero__title .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  pointer-events: none;
}
.hero__title:hover .default,
.hero__title:focus-within .default { opacity: 0; }
.hero__title:hover .alt,
.hero__title:focus-within .alt { opacity: 1; }

.hero__standfirst {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.75;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--wide { width: 100%; }
.btn--big { font-size: 1.15rem; padding: 1rem 2.2rem; min-height: 58px; }

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.hero__facts span { font-size: .82rem; color: var(--ink-faint); }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.hero__figure figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--ink-faint);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: .7rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr .85fr;
    padding-top: clamp(3rem, 7vw, 6rem);
  }
}

/* =========================================================
   BROADSHEET (three-column newspaper)
   ========================================================= */
.broadsheet {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
}

.broadsheet__head {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 22ch;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.columns { max-width: 100%; }
.columns p { max-width: none; }

.columns .lede {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}
.columns .lede::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: .82;
  font-weight: 600;
  padding: .06em .1em 0 0;
  color: var(--accent);
}

@media (min-width: 780px) {
  .columns {
    column-count: 2;
    column-gap: 2.5rem;
    column-rule: 1px solid var(--rule-soft);
  }
}
@media (min-width: 1080px) {
  .columns { column-count: 3; column-gap: 3rem; }
}

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); max-width: 62ch; }
.section-head h2 { margin-bottom: .4em; }
.section-head__note { color: var(--ink-soft); margin: 0; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service:hover {
  border-color: var(--rule);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--rule-soft);
}
.service h3 { margin: 1.2rem 1.3rem .5rem; }
.service p { margin: 0 1.3rem 1rem; font-size: .95rem; color: var(--ink-soft); }
.service__meta {
  margin-top: auto !important;
  padding: .8rem 1.3rem 1.2rem;
  border-top: 1px solid var(--rule-soft);
  font-size: .78rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--secondary) !important;
  font-weight: 600;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  border-block: 1px solid var(--rule);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.steps__num {
  display: block;
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* =========================================================
   HOURS + CONTACT
   ========================================================= */
.hours { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.hours__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 860px) {
  .hours__grid { grid-template-columns: 1fr 1fr; }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: .98rem;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: .72rem .2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.hours-table th { font-weight: 500; color: var(--ink-soft); width: 45%; }
.hours-table td { font-weight: 600; }
.hours-table tr.is-closed td { color: var(--ink-faint); font-weight: 400; }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 1px solid var(--rule); }

.hours__note { font-size: .9rem; color: var(--ink-soft); }

.hours__col--contact {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  align-self: start;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid var(--rule-soft);
}
.contact-line__label {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
}
.contact-line__big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.contact-line__big:hover { color: var(--accent); }
.contact-line__value { color: var(--ink-soft); }

.contact-note {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 1.4rem 0 1.4rem;
}

/* =========================================================
   SERVICE AREA
   ========================================================= */
.area {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  border-block: 1px solid var(--rule);
}

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

.area__list h3 {
  font-size: .78rem;
  font-family: var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 .9rem;
}
.area__list h3 + .chips { margin-bottom: 2rem; }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chips li {
  font-size: .88rem;
  padding: .42rem .85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
}

.area__note { font-size: .92rem; color: var(--ink-soft); margin-top: 1.6rem; }

.area__figure { margin: 0; }
.area__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.area__figure figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--secondary);
  padding-left: .7rem;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.review {
  margin: 0;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.review__stars {
  color: var(--accent);
  letter-spacing: .18em;
  font-size: .95rem;
  margin: 0 0 .7rem;
}
.review p { font-size: .95rem; color: var(--ink-soft); }
.review footer {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}

/* =========================================================
   CLOSING
   ========================================================= */
.closing {
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.closing__line {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 auto 1.8rem;
  text-wrap: balance;
}
.closing__sub {
  font-size: .85rem;
  color: var(--ink-faint);
  margin: 1.2rem 0 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.site-footer__col p { margin: 0 0 .35rem; font-size: .9rem; color: var(--ink-soft); }
.site-footer__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink) !important;
}
.site-footer__label {
  font-size: .68rem !important;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary) !important;
  margin-bottom: .6rem !important;
}
.site-footer__col a { color: var(--ink-soft); text-decoration: none; }
.site-footer__col a:hover { color: var(--accent); text-decoration: underline; }

.site-footer__claim { padding: 1.4rem 0 0; }

.claim-banner {
  display: inline-block;
  font-size: .8rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--rule-soft) 60%, transparent);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: .5rem .85rem;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.claim-banner:hover { color: var(--accent); border-color: var(--rule); }

.site-footer__attr { padding-top: 1.2rem; }

.attribution {
  position: static;
  margin: 0;
  font-size: .72rem;
  opacity: .55;
  font-family: var(--sans);
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* =========================================================
   MOTION — kinetic hero weight shift (scroll-driven)
   ========================================================= */
@keyframes weigh {
  from { font-variation-settings: 'wght' 250, 'opsz' 120; }
  to   { font-variation-settings: 'wght' 800, 'opsz' 120; }
}

@supports (animation-timeline: scroll()) {
  .hero__title {
    animation: weigh linear both;
    animation-timeline: scroll(root);
    animation-range: 0 32vh;
  }
}

/* entrance */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero__figure,
.hero__facts { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.hero__figure { animation-delay: .1s; }
.hero__facts  { animation-delay: .2s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__title {
    animation: none !important;
    font-variation-settings: 'wght' 400, 'opsz' 120;
  }
  .hero__title .alt { display: none; }
  .hero__title:hover .default { opacity: 1; }
  body::before { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .masthead__inner { gap: .6rem; }
  .nav { order: 3; width: 100%; gap: 1rem; overflow-x: auto; padding-bottom: .2rem; }
  .nav a { font-size: .85rem; white-space: nowrap; }
  .brand__text em { display: none; }
  .call-btn__label { display: none; }
  .theme-toggle__label { display: none; }
  .theme-toggle { padding: .5rem .6rem; }
  .hero__title { max-width: none; }
}
