/* ============================================================
   Eliman's Automotive Workshop
   Palette: black + white + one colour per section
   ============================================================ */

:root {
  --bg-section-1: #0a0a0a;
  --bg-section-2: #e10600;
  --bg-section-3: #003c8a;
  --bg-section-4: #f4ff33;

  --ink: #f5f5f2;
  --ink-dim: rgba(245, 245, 242, .72);
  --ink-faint: rgba(245, 245, 242, .5);
  --dark-ink: #0a0a0a;
  --dark-ink-dim: rgba(10, 10, 10, .74);

  --line: rgba(245, 245, 242, .18);
  --line-dark: rgba(10, 10, 10, .22);

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, .95rem + .25vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-section-1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><g fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'><path d='M0 0h24v24H0z'/><path d='M12 0v24M0 12h24'/></g><circle cx='12' cy='12' r='1.1' fill='%23ffffff' fill-opacity='0.07'/></svg>");
  background-size: 24px 24px;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.02; letter-spacing: -.02em; margin: 0; font-weight: 800; }

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

:focus-visible {
  outline: 3px solid currentColor;
  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;
}

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

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem var(--pad);
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: .95rem;
  min-height: 44px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--bg-section-4);
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-text em { font-style: normal; color: var(--bg-section-4); }

.topnav {
  display: none;
  gap: 1.4rem;
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.topnav a {
  text-decoration: none;
  color: var(--ink-dim);
  padding: .5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.topnav a:hover { color: var(--ink); }

.call-btn {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem 1rem;
  background: var(--bg-section-2);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid transparent;
}
.call-btn:hover { background: #fff; color: var(--dark-ink); }
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

@media (min-width: 760px) {
  .topnav { display: flex; }
  .call-btn { margin-inline-start: 0; }
}

/* ---------- section shell ---------- */

.sec {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.sec-hero   { background-color: var(--bg-section-1); }
.sec-services { background-color: var(--bg-section-2); color: #fff; --line: rgba(255,255,255,.24); }
.sec-work   { background-color: var(--bg-section-3); color: #fff; --line: rgba(255,255,255,.24); }
.sec-hours  { background-color: var(--bg-section-4); color: var(--dark-ink); --line: var(--line-dark); }
.sec-find   { background-color: var(--bg-section-1); }
.sec-close  { background-color: var(--bg-section-2); color: #fff; --line: rgba(255,255,255,.24); border-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 1.1rem;
  opacity: .8;
}

.sec-title {
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem);
  max-width: 22ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

/* ---------- motion: fade + rise on scroll enter ---------- */

@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec > .wrap,
    .band-track > .band-item {
      animation: fadeRise 420ms var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}

/* ---------- hero ---------- */

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.stacked {
  font-size: clamp(2.4rem, 1rem + 8.5vw, 6rem);
  margin-bottom: 1.5rem;
}
.stacked span { display: block; }
.stacked span:nth-child(2) { margin-left: 2em; color: var(--bg-section-4); }
.stacked span:nth-child(3) { margin-left: -0.06em; }

.lede {
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), translate 180ms var(--ease);
}
.btn-solid { background: var(--bg-section-4); color: var(--dark-ink); border-color: var(--bg-section-4); }
.btn-solid:hover { background: #fff; border-color: #fff; translate: 0 -2px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--ink); }
.btn-invert { background: #fff; color: var(--bg-section-2); border-color: #fff; }
.btn-invert:hover { background: var(--bg-section-4); border-color: var(--bg-section-4); color: var(--dark-ink); }

.hero-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.hero-shot figcaption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-shot { margin-bottom: 2.5rem; }
}

/* ---------- broken bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}

.card {
  grid-column: 1 / -1;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}
.card h3 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  margin-bottom: .7rem;
}
.card p { color: rgba(255,255,255,.86); font-size: .97rem; }
.tagline {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}

@media (min-width: 820px) {
  .card-a { grid-column: 1 / 4; }
  .card-b { grid-column: 4 / 7; }
  .card-c { grid-column: 2 / 6; background: rgba(0,0,0,.24); }
  .card-d { grid-column: 1 / 3; }
  .card-e { grid-column: 3 / 7; }
  .card-f { grid-column: 2 / 6; background: rgba(0,0,0,.24); }
}

/* ---------- drag band ---------- */

.band-hint {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.25rem;
}

.band {
  overflow: hidden;
  cursor: grab;
  padding-block: .5rem 1rem;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }

.band-track {
  display: flex;
  gap: var(--gap);
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}

.band-item {
  margin: 0;
  width: min(78vw, 380px);
  flex: 0 0 auto;
}
.band-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.28);
}
.band-item figcaption {
  margin-top: .8rem;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}
.band-item figcaption strong {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .3rem;
}

/* ---------- hours ---------- */

.hours-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.hours-copy p { color: var(--dark-ink-dim); max-width: 46ch; }
.hours-note {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
  align-self: start;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--line-dark);
}
.hours-table th {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: 40%;
}
.hours-table td { font-variant-numeric: tabular-nums; }
.hours-table tr.closed td { color: rgba(10,10,10,.5); }

@media (min-width: 860px) {
  .hours-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- find us ---------- */

.find-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.find-copy p { color: var(--ink-dim); max-width: 48ch; }

.contact-list {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.contact-list dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .3rem;
}
.contact-list dd { margin: 0; }
.contact-list a { text-decoration-color: var(--bg-section-4); text-underline-offset: 3px; }

.big-phone {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--bg-section-4);
}
.big-phone:hover { text-decoration: underline; }

.find-shot { margin: 0; }
.find-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.find-shot figcaption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-faint);
}

@media (min-width: 900px) {
  .find-grid { grid-template-columns: 1.1fr .9fr; }
  .find-shot { margin-top: 3.5rem; }
}

/* ---------- closing ---------- */

.close-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.close-line {
  font-size: clamp(2rem, 1.2rem + 4.6vw, 4.2rem);
}
.close-side p { color: rgba(255,255,255,.86); max-width: 42ch; margin-bottom: 1.5rem; }

@media (min-width: 860px) {
  .close-grid { grid-template-columns: 1.2fr .8fr; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-section-1);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
.footer-inner { display: grid; gap: 1rem; justify-items: start; }
.footer-line {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--ink-dim);
  margin: 0;
}
.footer-line a { color: var(--bg-section-4); text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }

.claim-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-dim);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  padding: .5rem .8rem;
  text-decoration: none;
}
.claim-banner:hover { color: var(--ink); background: rgba(255,255,255,.12); }

.muted { margin: 0; font-size: .78rem; color: var(--ink-faint); }
.muted a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
