/* ============================================================
   AMG Mobile Truck And Auto Inc.
   Palette: bleached cream + oxblood + navy
   Type: deliberately wrong weight (thin display / heavy body)
   Layout: full-bleed image gallery
   Motion: anchor-positioned scroll-linked labels (no JS)
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg:      #f4ecdc;
  --bg-2:    #ece0c9;
  --ink:     #1a1b2e;
  --ink-soft:#3b3c52;
  --accent:  #6b1f1a;
  --accent-2:#8a2c24;
  --secondary:#1e2a4a;
  --line:    rgba(26, 27, 46, 0.16);
  --line-soft: rgba(26, 27, 46, 0.09);
  --card:    rgba(255, 252, 245, 0.62);
  --shadow:  0 1px 0 rgba(26,27,46,.06), 0 18px 40px -28px rgba(26,27,46,.45);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(1.15rem, 4vw, 3.5rem);
  --measure: 62ch;
  --radius: 3px;
}

html[data-theme="dark"] {
  --bg:      #14151f;
  --bg-2:    #1b1c29;
  --ink:     #f2e9d8;
  --ink-soft:#c9c2b4;
  --accent:  #d98a7c;
  --accent-2:#e8a294;
  --secondary:#9fb0d8;
  --line:    rgba(242, 233, 216, 0.20);
  --line-soft: rgba(242, 233, 216, 0.10);
  --card:    rgba(255, 255, 255, 0.045);
  --shadow:  0 1px 0 rgba(0,0,0,.4), 0 18px 40px -28px rgba(0,0,0,.9);
}

/* ---------- 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;
  font-family: var(--sans);
  font-weight: 700;              /* body runs heavy — the inversion */
  font-optical-sizing: auto;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -5%,  rgba(107, 31, 26, 0.16) 0, transparent 62%),
    radial-gradient(ellipse 65% 50% at 100% 12%, rgba(30, 42, 74, 0.16) 0, transparent 58%),
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(107, 31, 26, 0.10) 0, transparent 60%),
    linear-gradient(178deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-wrap: pretty;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.015em; }
h1 { font-weight: 200; }          /* extra-thin display */
h2 { font-weight: 300; }
h3 { font-weight: 500; line-height: 1.16; letter-spacing: -0.005em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.section-head {
  max-width: 46rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
.section-note {
  margin-top: 1.1rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-weight: 500;
}

section { padding: clamp(3.5rem, 9vw, 7rem) var(--gut); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--gut);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 0.55rem; }
.wordmark-main {
  font-family: var(--display);
  font-weight: 200;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.wordmark-sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.site-nav { display: flex; gap: 1.35rem; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.head-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle-icon {
  width: 0.72rem; height: 0.72rem; border-radius: 50%;
  background: currentColor;
  box-shadow: inset -3px -2px 0 0 var(--bg);
}

/* ---------- call button ---------- */
.call-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  background: var(--accent);
  color: #fdf6e8;
  text-decoration: none;
  border-radius: var(--radius);
  line-height: 1.15;
  transition: background .18s ease, transform .18s ease;
}
.call-btn:hover { background: var(--accent-2); color: #fdf6e8; transform: translateY(-1px); }
.call-btn-label {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85;
}
.call-btn-num { font-family: var(--display); font-weight: 400; font-size: 1.02rem; letter-spacing: 0.01em; }
.call-btn--lg { padding: 0.85rem 1.5rem; }
.call-btn--lg .call-btn-num { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); }
.call-btn--block { width: 100%; align-items: flex-start; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.ghost-btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 0; }

.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%;
  height: clamp(46vh, 58vw, 78vh);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,31,0.10) 0%, rgba(20,21,31,0.42) 100%);
  pointer-events: none;
}

.hero-copy {
  max-width: 68rem;
  margin: -3.5rem auto 0;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.15rem, 4vw, 3rem) 0;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 1rem + 8.5vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero-lede {
  max-width: 44rem;
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.28rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.9rem 0 2.4rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 5vw, 4rem);
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-facts div { padding: 0.35rem 0; }
.hero-facts dt {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.15rem;
}
.hero-facts dd { margin: 0; font-size: 0.95rem; font-weight: 700; }

/* ---------- marquee strip ---------- */
.strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--secondary) 6%, transparent);
  padding: 0.85rem 0;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.strip-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: slide 46s linear infinite;
}
.strip-track span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.strip-track span::before { content: "— "; color: var(--accent); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.services { max-width: 82rem; margin: 0 auto; }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.service h3 { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem); color: var(--ink); }
.service p { color: var(--ink-soft); font-weight: 500; max-width: 62ch; margin: 0; }

@media (min-width: 46rem) {
  .service { grid-template-columns: minmax(14rem, 22rem) 1fr; align-items: start; }
}

/* ---------- full-bleed gallery ---------- */
.gallery {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  background: var(--bg-2);
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}
.gallery-item img {
  width: 100%;
  height: clamp(38vh, 52vw, 72vh);
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter .5s ease, transform .7s ease;
}
.gallery-item:hover img { filter: saturate(1); transform: scale(1.012); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem var(--gut) 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f6efe1;
  background: linear-gradient(180deg, transparent 0%, rgba(18,19,28,0.78) 100%);
}

@media (min-width: 52rem) {
  .gallery-item--half { grid-column: span 6; }
  .gallery-item--half img { height: clamp(34vh, 30vw, 52vh); }
}

/* ---------- fleet ---------- */
.fleet { max-width: 82rem; margin: 0 auto; }
.fleet-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.fleet-card {
  background: var(--card);
  padding: clamp(1.3rem, 3vw, 2rem);
  backdrop-filter: blur(6px);
}
.fleet-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.fleet-card p { color: var(--ink-soft); font-weight: 500; font-size: 0.94rem; margin: 0; }
.fleet-note {
  margin-top: 1.6rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.94rem;
}

/* ---------- process ---------- */
.process { max-width: 82rem; margin: 0 auto; }
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.process-list li {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}
.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 200;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.process-list h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.process-list p { color: var(--ink-soft); font-weight: 500; font-size: 0.93rem; margin: 0; }

/* ---------- service area ---------- */
.area { max-width: 82rem; margin: 0 auto; }
.area-body { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .area-body { grid-template-columns: 1.15fr 0.85fr; } }

.area-text p { color: var(--ink-soft); font-weight: 500; max-width: 58ch; }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  align-content: start;
}
.area-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.area-tag {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}

/* ---------- visit / hours ---------- */
.visit { max-width: 82rem; margin: 0 auto; }
.visit-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 52rem) { .visit-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.hours-card, .contact-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hours-card h3, .contact-card h3 { font-size: 1.35rem; margin-bottom: 1rem; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); }
.hours th { font-weight: 700; }
.hours td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr.closed th, .hours tr.closed td { color: var(--accent); }
.hours-note { margin-top: 1.1rem; font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); }

.contact-lead { color: var(--ink-soft); font-weight: 500; font-size: 0.94rem; margin-bottom: 1.1rem; }
.address {
  font-style: normal;
  margin: 1.5rem 0 0.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}
.address-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.address-hint { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1.3rem; }

/* ---------- closing ---------- */
.closing {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}
.closing h2 { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.2rem); margin-bottom: 1.1rem; }
.closing p { color: var(--ink-soft); font-weight: 500; max-width: 40rem; margin: 0 auto 2rem; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gut) 5rem;
  background: color-mix(in srgb, var(--secondary) 5%, transparent);
}
.foot-inner { max-width: 82rem; margin: 0 auto; }
.foot-name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}
.foot-meta { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); margin: 0 0 0.25rem; }
.foot-meta--dim { color: var(--ink-soft); opacity: 0.8; }

.claim-banner {
  display: inline-block;
  margin: 1.6rem 0 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

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

/* ---------- anchor-positioned scroll labels (no JS) ---------- */
.scroll-label {
  position: absolute;
  position-anchor: --heading;
  position-area: right span-block;
  margin-left: 1.5rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: label-in linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 32%;
  pointer-events: none;
}
@keyframes label-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* fallback for browsers without anchor positioning */
@supports not (position-anchor: --x) {
  .scroll-label {
    position: static;
    display: block;
    margin: 0 0 0.7rem;
    opacity: 1;
    animation: none;
  }
}
@media (max-width: 60rem) {
  .scroll-label { position: static; display: block; margin: 0 0 0.7rem; opacity: 1; animation: none; }
}

/* ---------- 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;
  }
  .strip-track { animation: none; }
  .gallery-item:hover img { transform: none; }
  .scroll-label { opacity: 1; animation: none; }
}
