/* ============================================================
   VT Auto Mobile Repair Services
   Composition: cafe warmth · kinetic weight shift · one-shot
   load orchestration · museum wall labels · hover phrase swap ·
   scroll-following soft glow
   ============================================================ */

:root {
  --bg: #f4ead8;
  --bg-tint: #ecdfc9;
  --surface: #fbf5e9;
  --ink: #3a2415;
  --ink-soft: #6a5340;
  --accent: #6b1f1a;
  --accent-soft: #8c332c;
  --secondary: #5a5e3a;
  --line: #d6c4a6;
  --warm-light: rgba(255, 214, 150, 0.55);
  --glow-y: 18%;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1410;
    --bg-tint: #241a14;
    --surface: #261b14;
    --ink: #f2e6d4;
    --ink-soft: #c3ab92;
    --accent: #e08a72;
    --accent-soft: #f0a68f;
    --secondary: #b3b98a;
    --line: #463326;
    --warm-light: rgba(255, 168, 92, 0.16);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--accent); }

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

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

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

/* ---------- scroll-following soft light source ---------- */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle 60vmax at 50% var(--glow-y),
    var(--warm-light) 0,
    transparent 62%
  );
  transition: background 0.6s linear;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.6rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- call button ---------- */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  background: var(--accent);
  color: #fdf6ea;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.call-btn:hover { background: var(--accent-soft); transform: translateY(-1px); }

.call-btn--lg {
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
}

.call-dot {
  width: 8px; height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  max-width: 940px;
}

.eyebrow,
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  position: relative;
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  font-variation-settings: "wght" 200, "opsz" 120;
  transition: font-variation-settings 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
  margin-bottom: 1.5rem;
  cursor: default;
}

.hero-title:hover,
.hero-title:focus-visible {
  font-variation-settings: "wght" 900, "opsz" 120;
}

.hero-title .default,
.hero-title .alt {
  display: block;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.hero-title .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  transform: translateY(0.12em);
  pointer-events: none;
}

.hero-title:hover .default,
.hero-title:focus-visible .default {
  opacity: 0;
  transform: translateY(-0.12em);
}

.hero-title:hover .alt,
.hero-title:focus-visible .alt {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section--tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
}

.section-lede { color: var(--ink-soft); }

/* ---------- museum wall labels ---------- */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.5rem);
}

.work { display: flex; flex-direction: column; }

.work-fig {
  margin: 0 0 1.1rem;
  overflow: hidden;
  background: var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.work-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.work:hover .work-fig img { transform: scale(1.035); }

.work .label h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.label-meta {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.label-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.label-price {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  counter-reset: step;
}

.steps li {
  padding-top: 1.5rem;
  border-top: 2px solid var(--secondary);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.steps p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split-copy h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  margin-bottom: 1.25rem;
}

.split-copy p { color: var(--ink-soft); }

.split-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.split-aside h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.92rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--accent);
}

.aside-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- hours ---------- */
.hours-table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  font-size: 1rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.hours-table th {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
}

.hours-table td {
  text-align: right;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.hours-note {
  max-width: 56ch;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.visit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.visit-card--accent {
  border-color: var(--accent);
  border-width: 2px;
}

.visit-card h3 {
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.visit-card address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.big-phone {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.big-phone a { text-decoration: none; }
.big-phone a:hover { text-decoration: underline; }

.visit-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  columns: 2;
  column-gap: 1.25rem;
}
.area-list li { margin-bottom: 0.4rem; color: var(--ink-soft); }

/* ---------- closing ---------- */
.closing {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.closing-line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  max-width: 26ch;
  margin: 0;
  text-wrap: balance;
}

.closing-sub {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin: 0;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 5rem;
}

.foot-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.foot-inner p { margin: 0 0 0.4rem; }

.foot-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.foot-col--right { text-align: right; }

.foot-small {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.foot-claim {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.claim-banner:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: underline;
}

.attribution {
  position: static;
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.55;
  margin: 1.5rem 0 0;
  font-family: var(--sans);
}
.attribution a { color: inherit; }

/* ============================================================
   one-shot page-load orchestration
   ============================================================ */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.site-head {
  animation: slide-down 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.eyebrow { animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.12s both; }
.hero-title { animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.24s both; }
.hero-sub { animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.36s both; }
.hero-actions { animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.48s both; }
.hero-facts { animation: fade-in 0.8s ease 0.6s both; }

@starting-style {
  .site-head { opacity: 0; }
  .eyebrow, .hero-title, .hero-sub, .hero-actions { opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .foot-col--right { text-align: left; }
}

@media (max-width: 720px) {
  .head-inner { gap: 0.5rem 1rem; }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 1.1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .brand-text em { display: none; }
  .hero-title .alt { position: static; }
  .hero-title:hover .default,
  .hero-title:focus-visible .default { opacity: 1; transform: none; }
  .hero-title:hover .alt,
  .hero-title:focus-visible .alt { opacity: 0; }
  .area-list { columns: 1; }
  .hours-table td { font-size: 0.85rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-head,
  .eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-facts {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .call-dot { animation: none !important; }
  .work:hover .work-fig img { transform: none; }
  .call-btn:hover { transform: none; }
  .glow { transition: none; }
}
