/* Williams Automotive — clean, bright, confident. Hand-written, no build step. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Whites & greys */
  --white:    #ffffff;   /* page background */
  --grey-50:  #f8fafc;   /* alternating section bands */
  --grey-100: #f1f5f9;   /* soft fills */
  --grey-200: #e2e8f0;   /* hairlines, dividers */
  --grey-400: #94a3b8;   /* decorative only on white (2.6:1); captions on navy (6.9:1) */
  --grey-500: #64748b;   /* small muted text on white (4.8:1) */
  --grey-600: #475569;   /* body text (7.6:1) */
  --grey-900: #0f172a;   /* headline ink (17.9:1) */

  /* Blues */
  --blue-50:  #eff6ff;   /* tint washes */
  --blue-100: #dbeafe;   /* soft fills, badges */
  --blue-300: #93c5fd;   /* light accent; text on navy (9.6:1) */
  --blue-500: #3b82f6;   /* primary: large text, big buttons, non-text (3.7:1) */
  --blue-600: #2563eb;   /* small-text buttons (5.2:1 with white) */
  --blue-700: #1d4ed8;   /* link text on white (6.7:1), hover/pressed */
  --blue-950: #0b1f45;   /* navy: reviews band, footer (white 16:1) */

  --grad-blue: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  --grad-sky:  linear-gradient(180deg, var(--blue-50), var(--white));

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 28px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -16px rgba(15, 23, 42, .2);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--grey-600); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe, canvas { display: block; max-width: 100%; }
a { color: var(--blue-700); }
h1, h2, h3 { margin: 0; color: var(--grey-900); }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--grey-900); font-weight: 650; }
::selection { background: var(--blue-100); color: var(--grey-900); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 16px; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -.032em; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 56ch; margin-top: 18px; }
.grad { color: var(--blue-700); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
/* blue underline that draws in when its heading reveals */
.uline { background: linear-gradient(var(--blue-500), var(--blue-500)) no-repeat 0 94% / 0% 4px; transition: background-size 1s var(--ease) .25s; padding-bottom: 2px; }
.is-in .uline, .no-js .uline { background-size: 100% 4px; }

.stars { color: var(--blue-500); letter-spacing: .08em; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--grey-600); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--grey-400); flex: none; }
.is-open-now .dot { background: #16a34a; }
.is-open-now .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #16a34a; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .5; } 70%, to { transform: scale(3); opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .3s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--blue { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .2), 0 8px 20px -8px rgba(37, 99, 235, .55); }
.btn--blue:hover { background: var(--blue-700); }
/* large-text buttons (19px bold) may use the brighter blue-500 and still pass AA */
.btn--lg, .btn--xl { background: var(--blue-500); font-size: 1.1875rem; font-weight: 700; min-height: 60px; padding: 0 30px; border-radius: 14px; }
.btn--xl { min-height: 68px; padding: 0 36px; font-size: 1.3rem; }
.btn--lg:hover, .btn--xl:hover { background: var(--blue-700); }
.btn--lg svg, .btn--xl svg { width: 21px; height: 21px; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .95rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--ghost-light { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--grey-200), 0 6px 20px -12px rgba(15, 23, 42, .18); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-blue); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { color: var(--grey-900); font-weight: 750; font-size: 1.02rem; letter-spacing: -.015em; }
.brand__text small { color: var(--grey-500); font-size: .74rem; font-weight: 500; }
.nav__links { display: none; gap: 30px; }
.nav__links a { color: var(--grey-600); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:hover { color: var(--grey-900); }
.nav__call { display: none; }
.nav__toggle { width: 46px; height: 46px; border: 0; background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer; margin-right: -8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--grey-900); }
@media (min-width: 1000px) { .nav__links { display: flex; } .nav__call { display: inline-flex; } .nav__toggle { display: none; } }

.menu { position: fixed; inset: 0; z-index: 150; }
.menu[hidden] { display: none; }
.menu__scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); opacity: 0; transition: opacity .3s; }
.menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: var(--white); padding: 76px 24px 28px; display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; box-shadow: var(--shadow-lg); }
.menu.is-open .menu__scrim { opacity: 1; }
.menu.is-open .menu__panel { transform: none; }
.menu__close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--grey-900); cursor: pointer; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { color: var(--grey-900); text-decoration: none; font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; padding: 14px 0; border-bottom: 1px solid var(--grey-200); }
.menu__status { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92svh, 940px); display: flex; align-items: center; padding: calc(var(--nav-h) + 56px) 0 96px; background: var(--white); overflow: hidden; isolation: isolate; }
.hero__wash { position: absolute; left: 0; top: 0; width: 900px; height: 900px; z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, rgba(219, 234, 254, .7), rgba(239, 246, 255, 0)); pointer-events: none; will-change: transform; transform: translate3d(40vw, 0, 0); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { position: relative; }
.hero__title { font-size: clamp(3.1rem, 10.5vw, 8rem); line-height: .96; font-weight: 800; letter-spacing: -.05em; margin: 4px 0 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .09s; }
/* starts at .01 opacity, not 0, so the headline is still the LCP element immediately */
@keyframes rise { from { opacity: .01; transform: translateY(.45em); } }
.hero__sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 54ch; }
@media (max-width: 480px) { .hero .eyebrow { font-size: .7rem; letter-spacing: .1em; } }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--grey-600); font-size: .95rem; text-decoration: none; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--grey-200); transition: box-shadow .2s; }
.hero__rating b { color: var(--grey-900); }
.hero__rating:hover { box-shadow: inset 0 0 0 1px var(--blue-300); }

/* ---------- trust ---------- */
.trust { border-block: 1px solid var(--grey-200); background: var(--white); }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__list li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 22px 10px; font-size: .88rem; color: var(--grey-500); line-height: 1.3; }
.trust__list li:nth-child(odd) { border-right: 1px solid var(--grey-200); }
.trust__list li:nth-child(-n+2) { border-bottom: 1px solid var(--grey-200); }
.trust__list b { display: flex; align-items: center; min-height: 34px; color: var(--grey-900); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trust__list b span[aria-hidden] { color: var(--blue-500); margin-left: 4px; }
.trust__list svg { width: 30px; height: 30px; color: var(--blue-600); }
@media (min-width: 800px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__list li { padding: 28px 12px; border-bottom: 0 !important; border-right: 1px solid var(--grey-200); }
  .trust__list li:last-child { border-right: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section--grey { background: var(--grey-50); }
.section--navy { background: var(--blue-950); color: var(--grey-200); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--grey-400); }
.head { margin-bottom: clamp(40px, 5vw, 60px); }
.head--center { text-align: center; }
.head--center .lede { margin-inline: auto; }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- story ---------- */
.story__grid { display: grid; gap: 24px 64px; align-items: center; }
.story__num { display: flex; align-items: baseline; gap: 14px; line-height: .8; }
.story__num .grad { font-size: clamp(8rem, 22vw, 15rem); font-weight: 800; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.story__num small { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: var(--grey-500); letter-spacing: -.01em; }
@media (min-width: 900px) { .story__grid { grid-template-columns: auto 1fr; } }

/* ---------- services ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { padding: 28px 26px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); margin-bottom: 20px; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.card p { font-size: 1rem; }

/* ---------- zero trickery ---------- */
.honest__title { font-size: clamp(3.4rem, 12vw, 8.5rem); line-height: .95; font-weight: 800; letter-spacing: -.055em; }
.promises { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.promise { padding: 30px 28px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 18px; box-shadow: var(--shadow-md); }
.promise__num { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.promise h3 { font-size: 1.4rem; font-weight: 750; letter-spacing: -.02em; margin: 16px 0 8px; }
.promise blockquote { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--grey-200); }
.promise blockquote p { color: var(--grey-900); font-style: italic; }
.promise cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--grey-500); }

/* ---------- megan ---------- */
.megan__grid { display: grid; gap: 40px 72px; align-items: center; }
@media (min-width: 960px) { .megan__grid { grid-template-columns: 7fr 5fr; } }
.megan__sign { margin-top: 20px; color: var(--grey-500); }
.megan__quote { position: relative; padding: 40px 34px 32px; border-radius: 24px; background: var(--grad-sky); border: 1px solid var(--blue-100); box-shadow: var(--shadow-md); }
.megan__quote::before { content: "“"; position: absolute; top: -28px; left: 26px; font-size: 7rem; line-height: 1; font-weight: 800; color: var(--blue-300); }
.megan__quote p { color: var(--grey-900); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.megan__quote figcaption { margin-top: 18px; font-size: .92rem; color: var(--grey-600); }
.megan__quote figcaption b { color: var(--grey-900); }

/* ---------- reviews (navy) ---------- */
.wall { columns: 1; column-gap: 16px; }
@media (min-width: 720px) { .wall { columns: 2; } }
@media (min-width: 1080px) { .wall { columns: 3; } }
.review { break-inside: avoid; margin-bottom: 16px; padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .35s var(--ease), background-color .35s; }
.review:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .08); }
.review__stars { color: var(--blue-300); letter-spacing: .1em; font-size: .92rem; margin-bottom: 10px; }
.review__text { color: var(--grey-200); }
.review--feature { background: rgba(59, 130, 246, .14); border-color: rgba(147, 197, 253, .3); }
.review--feature .review__text { color: #fff; font-size: 1.2rem; line-height: 1.5; font-weight: 500; }
.review mark { background: none; color: var(--blue-300); font-weight: 700; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review__who b { display: block; color: #fff; font-size: .95rem; font-weight: 600; }
.review__who small { display: block; color: var(--grey-400); font-size: .8rem; }
.avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(147, 197, 253, .16); color: var(--blue-300); font-weight: 700; }
.reply { margin: 16px 0 0 20px; padding: 12px 14px; border-left: 2px solid var(--blue-500); background: rgba(255, 255, 255, .04); border-radius: 0 10px 10px 0; }
.reply__tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 4px; }
.reply p { font-size: .95rem; color: var(--grey-200); }

/* ---------- reels ---------- */
.reels__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--grad-sky); border: 1px solid var(--blue-100); }
.reels__card .lede { margin-top: 10px; }
.reels__strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 24px; padding-bottom: 8px; }
.reels__strip iframe { flex: none; width: min(78vw, 300px); aspect-ratio: 9 / 16; border: 0; border-radius: 16px; scroll-snap-align: start; background: var(--grey-100); }

/* ---------- visit ---------- */
.visit__grid { display: grid; gap: 48px 64px; align-items: center; }
@media (min-width: 960px) { .visit__grid { grid-template-columns: 1fr 1.05fr; } }
.visit__addr { margin: 12px 0 28px; font-size: 1.1rem; }
.visit__addr a { font-weight: 600; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--grey-200); text-align: left; font-weight: 500; color: var(--grey-900); }
.hours td { text-align: right; color: var(--grey-600); font-weight: 400; }
.hours__fri td b { color: var(--blue-700); font-weight: 700; }
.hours__closed th, .hours__closed td { color: var(--grey-500); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--grey-900); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.hours__note { margin: 12px 0 30px; font-size: .92rem; color: var(--grey-600); }
.visit .status { display: flex; margin-top: 16px; }
.access { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .92rem; color: var(--grey-600); }
.access svg { width: 20px; height: 20px; color: var(--blue-600); }
.map { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--grey-200); box-shadow: var(--shadow-lg); background: var(--grey-100); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--blue-950); color: var(--grey-400); padding: 64px 0 112px; font-size: .95rem; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer__brand { color: #fff; font-weight: 750; font-size: 1.15rem; letter-spacing: -.015em; margin-bottom: 6px; }
.footer__h { color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.footer a { color: var(--blue-300); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__copy { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
@media (min-width: 1000px) { .footer { padding-bottom: 56px; } }

/* ---------- mobile call bar ---------- */
.callbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 16px; background: var(--blue-600); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 12px 32px -10px rgba(29, 78, 216, .6); transform: translateY(160%); transition: transform .45s var(--ease); }
.callbar.is-shown { transform: none; }
.callbar svg { width: 20px; height: 20px; }
.callbar b { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) { .callbar { display: none; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .uline { background-size: 100% 4px; }
  .btn { transform: none !important; }
}
