/* ===========================================================================
   Car Care Of Lawton — "The Honest Bay"
   Palette grounded in the shop's real green-on-charcoal signage.
   Display: Bricolage Grotesque · Body/UI: Spline Sans (both self-hosted woff2)
   =========================================================================== */

/* ---- Fonts (variable latin slices, self-hosted) ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("./fonts/bricolage-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Spline Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/spline-latin.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  /* color */
  --ink:        #1a221d;   /* deep warm charcoal-green (sign panel) */
  --ink-soft:   #36433b;
  --paper:      #f3f1e9;   /* warm shop paper */
  --paper-2:    #ebe8dd;
  --surface:    #ffffff;
  --brand:      #4f9e2a;   /* the real CC green, deepened for AA */
  --brand-deep: #356d1c;
  --brand-tint: #e6f0db;
  --rust:       #c2562d;   /* single warm signal accent (the signature line) */
  --line:       #d8d3c4;
  --line-soft:  #e4e0d4;
  --muted:      #5d655d;
  --star:       #d39a23;

  /* type */
  --display: "Bricolage Grotesque", "Spline Sans", system-ui, sans-serif;
  --body:    "Spline Sans", system-ui, -apple-system, sans-serif;

  /* scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.7vw, 1.95rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.7rem, 2.1rem + 3vw, 4.6rem);

  /* space + shape */
  --gut: clamp(1.15rem, 3vw, 2rem);
  --maxw: 1140px;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(26,34,29,.06), 0 14px 34px -18px rgba(26,34,29,.28);
  --shadow-sm: 0 1px 2px rgba(26,34,29,.07), 0 6px 16px -10px rgba(26,34,29,.22);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.02em; margin: 0; font-weight: 800; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--rust);   /* the signature rust hairline, used sparingly */
}
.lede { color: var(--ink-soft); font-size: var(--step-1); max-width: 56ch; }

/* ---- Buttons ---- */
.btn {
  --bg: var(--brand);
  --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -0.01em;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 22px -14px rgba(53,109,28,.9);
}
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ===================== Header ===================== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__row {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { flex: none; width: 40px; height: 40px; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.16rem; letter-spacing: -0.025em; line-height: 1; }
.brand__name small { display: block; font-family: var(--body); font-weight: 500; font-size: .66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-deep); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.head-cta { display: inline-flex; align-items: center; gap: .9rem; }
.head-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; color: var(--ink); letter-spacing: -0.01em;
}
.head-phone svg { width: 18px; height: 18px; color: var(--brand-deep); }
@media (max-width: 880px) { .nav { display: none; } }
@media (max-width: 560px) { .head-phone span { display: none; } }

/* ===================== Hero ===================== */
.hero { position: relative; padding-block: clamp(2.6rem, 5vw, 4.4rem) clamp(2.4rem, 4vw, 3.6rem); }
.hero__grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1.08fr 0.92fr; align-items: center;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--body); font-weight: 600; font-size: .78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: .42rem .8rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.hero h1 { font-size: var(--step-4); }
.hero h1 .grn { color: var(--brand-deep); }
.hero__sub { margin: 1.3rem 0 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__trust {
  margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center;
}
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.trust-item svg { width: 22px; height: 22px; color: var(--brand-deep); flex: none; }
.trust-item b { color: var(--ink); font-weight: 600; }

/* hero media — stacked photo + posted service board (the signature) */
.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.1;
  border: 1px solid var(--line);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__rating {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: .55rem;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  color: var(--paper); padding: .5rem .8rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; backdrop-filter: blur(4px);
}
.hero__rating .stars { color: var(--star); letter-spacing: 1px; }
.hero__rating b { font-weight: 700; }

/* The signature: a posted "shop service board" echoing the painted window list */
.board {
  margin-top: -26px; margin-left: clamp(0px, 3vw, 26px);
  position: relative; z-index: 2;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 18px 40px -22px rgba(26,34,29,.7);
  border: 1px solid #2c352e;
}
.board::before {
  /* faux pin / tape detail — subject-true posted-board cue */
  content: ""; position: absolute; top: -7px; left: 50%; translate: -50% 0;
  width: 54px; height: 13px; border-radius: 3px;
  background: var(--rust); opacity: .9;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.board__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.board__title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.board__title small { color: var(--brand); font-weight: 600; }
.board__list { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .9rem; margin: 0; padding: 0; list-style: none; }
.board__list li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; padding: .3rem 0;
  border-bottom: 1px dashed #303a32;
}
.board__list li:last-child, .board__list li:nth-last-child(2) { border-bottom: 0; }
.board__list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--brand); flex: none; rotate: 45deg; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 540px; }
  .board { margin-left: 0; }
}

/* ===================== Marquee strip ===================== */
.strip {
  background: var(--ink); color: var(--paper);
  overflow: hidden; border-block: 1px solid #2c352e;
}
.strip__track {
  display: flex; gap: 3rem; align-items: center;
  padding-block: .85rem; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  letter-spacing: .02em;
  animation: marquee 32s linear infinite;
}
.strip__track span { display: inline-flex; align-items: center; gap: 3rem; }
.strip__track .sep { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; justify-content: center; flex-wrap: wrap; gap: 1.5rem; white-space: normal; }
}

/* ===================== Services ===================== */
.svc__head { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end; margin-bottom: 2.3rem; }
.svc__head h2 { font-size: var(--step-3); max-width: 16ch; }
.svc__head p { margin: 0; color: var(--muted); max-width: 34ch; }
.svc__grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.svc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.svc-card__ic {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.svc-card__ic svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.svc-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .svc__grid { grid-template-columns: 1fr 1fr; } .svc__head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc__grid { grid-template-columns: 1fr; } }

/* ===================== Why (grounded) ===================== */
.why { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.why__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.why__media { position: relative; }
.why__photo { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 5/4; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__badge {
  position: absolute; right: -14px; bottom: -16px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm); padding: .95rem 1.1rem;
  box-shadow: var(--shadow); text-align: center; min-width: 124px;
  border: 1px solid #2c352e;
}
.why__badge b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; color: var(--brand); }
.why__badge span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.why h2 { font-size: var(--step-3); margin-bottom: 1.3rem; max-width: 18ch; }
.pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.pts li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.pts__ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-deep); }
.pts__ic svg { width: 18px; height: 18px; }
.pts h3 { font-family: var(--display); font-weight: 700; font-size: 1.08rem; margin: .1rem 0 .15rem; }
.pts p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 820px) { .why__grid { grid-template-columns: 1fr; } .why__media { max-width: 520px; } .why__badge { right: 12px; } }

/* ===================== Reviews ===================== */
.rev__head { text-align: center; margin-bottom: 2.4rem; }
.rev__head h2 { font-size: var(--step-3); }
.rev__score { display: inline-flex; align-items: center; gap: .6rem; margin-top: .8rem; font-weight: 500; color: var(--ink-soft); }
.rev__score .stars { color: var(--star); font-size: 1.15rem; letter-spacing: 2px; }
.rev__score b { color: var(--ink); }
.rev__grid { columns: 3 280px; column-gap: 1.1rem; }
.review {
  break-inside: avoid; margin: 0 0 1.1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.45rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.review__stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; margin-bottom: .65rem; }
.review p { margin: 0 0 1rem; font-size: .95rem; color: var(--ink-soft); }
.review footer { display: flex; align-items: center; gap: .7rem; }
.review__av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; flex: none; }
.review__who { font-weight: 600; font-size: .9rem; }
.review__who span { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }

/* ===================== Night banner ===================== */
.banner { position: relative; isolation: isolate; }
.banner__img { width: 100%; height: clamp(260px, 38vw, 420px); object-fit: cover; object-position: center 60%; }
.banner__overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(16,21,18,.9) 0%, rgba(16,21,18,.66) 48%, rgba(16,21,18,.2) 100%);
}
.banner__inner { color: var(--paper); max-width: var(--maxw); }
.banner__kicker { font-family: var(--body); font-weight: 600; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; }
.banner__line { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1.5rem; max-width: 22ch; }

/* ===================== Visit + Contact ===================== */
.visit { background: var(--ink); color: var(--paper); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.2rem); }
.visit .eyebrow { color: var(--brand); }
.visit .eyebrow::before { background: var(--rust); }
.visit h2 { font-size: var(--step-3); color: var(--paper); margin-bottom: 1rem; }
.visit__intro { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 46ch; margin-bottom: 1.8rem; }
.info { display: grid; gap: 1.15rem; }
.info__row { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.info__ic { width: 38px; height: 38px; border-radius: 10px; background: #232c26; border: 1px solid #313b33; display: grid; place-items: center; color: var(--brand); flex: none; }
.info__ic svg { width: 19px; height: 19px; }
.info__row h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--paper); margin: .25rem 0 .2rem; }
.info__row a, .info__row p { color: color-mix(in srgb, var(--paper) 82%, transparent); text-decoration: none; margin: 0; font-size: .95rem; }
.info__row a:hover { color: var(--brand); }
.hours { display: grid; gap: .3rem; margin: .3rem 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 1.5rem; font-size: .92rem; color: color-mix(in srgb, var(--paper) 82%, transparent); max-width: 280px; }
.hours div span:last-child { font-variant-numeric: tabular-nums; }
.hours .closed { color: color-mix(in srgb, var(--paper) 50%, transparent); }
.hours .today { color: var(--brand); font-weight: 600; }

/* Contact card / form */
.contact-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}
.contact-card h3 { font-family: var(--display); font-weight: 800; font-size: var(--step-2); margin-bottom: .35rem; }
.contact-card > p { color: var(--muted); margin: 0 0 1.5rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: .75rem .85rem; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 104px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card .btn { width: 100%; margin-top: .4rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-status { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: var(--brand-tint); color: var(--brand-deep); border: 1px solid color-mix(in srgb,var(--brand) 35%,transparent); }
.form-status.is-err { display: block; background: #fbe7df; color: #9a3a17; border: 1px solid #e7b9a6; }
@media (max-width: 820px) { .visit__grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .field-row { grid-template-columns: 1fr; } }

/* ===================== Footer ===================== */
.site-foot { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 2.6rem 6.5rem; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; align-items: center; gap: .7rem; }
.foot__brand .brand__name { font-size: 1.05rem; }
.foot__nap { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.foot__nap a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot__nap a:hover { color: var(--brand-deep); }
.foot__legal { width: 100%; border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }

/* ===================== Mobile sticky call bar ===================== */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: .6rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; min-height: 50px; }
.callbar .btn--ghost { flex: 0 0 auto; padding-inline: 1.1rem; }
@media (max-width: 720px) { .callbar { display: flex; } }

/* ---- reveal (gated on .js) ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
