/* ============================================================
   GARAGE TWENTY — global styles
   Palette
   --paper   #F6F5FA  cool off-white base
   --ink     #16121F  near-black violet ink
   --violet  #5B2EE5  primary
   --deep    #33189C  deep violet
   --hot     #E52E9C  magenta highlight (sparingly)
   --line    #E3E0EE  hairline
   ============================================================ */

:root {
  --paper: #F7F4FA;
  --card: #FFFFFF;
  --ink: #1B0E2B;
  --muted: #63577A;
  --violet: #6414A8;
  --deep: #38085C;
  --crimson: #C21F4E;
  --hot: #E8481C;
  --line: #E7E0F0;
  --radius: 18px;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Instrument Sans", system-ui, sans-serif;
  --shadow: 0 20px 50px -20px rgba(56, 8, 92, 0.18);
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--violet); color: #fff; }

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

/* ---------- background texture ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(100, 20, 168, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 20, 168, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- nav: floating purple pill ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 20px;
  margin-top: 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 12px 0 24px;
  background: linear-gradient(120deg, var(--deep), var(--violet));
  border-radius: 999px;
  box-shadow: 0 18px 44px -16px rgba(56, 8, 92, 0.55);
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo img {
  height: 54px;
  width: auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.wordmark em {
  font-style: normal;
  color: #DDB6FF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.nav-cta {
  background: var(--hot);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: #FF6B35; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(100, 20, 168, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(110deg, var(--violet), var(--crimson) 70%, var(--hot));
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(100, 20, 168, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--hot);
}

h1, h2, h3 { line-height: 1.12; font-weight: 700; }

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 52px;
  max-width: 640px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin: 20px 0 22px;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet), var(--crimson) 60%, var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}

.hero-copy p.lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-meta div { display: flex; flex-direction: column; gap: 2px; }

.hero-meta strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-meta small { color: var(--muted); font-size: 0.82rem; }

/* hero specialism cards — a floating group that slowly trades places */
.hero-wheel {
  position: relative;
  height: 500px;
}

.wheel-orbit {
  position: absolute;
  inset: 0 0 44px 0;
}

.wheel-card {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 330px;
  height: 260px;
  margin: -130px 0 0 -195px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--s, 1));
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.7s ease, filter 0.7s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.wheel-card.pos-0 { --px: 0px;   --py: 0px;    --s: 1;   opacity: 1;    filter: none;          z-index: 4; }
.wheel-card.pos-1 { --px: 52px;  --py: -48px;  --s: 0.9; opacity: 0.55; filter: saturate(0.6); z-index: 3; pointer-events: none; }
.wheel-card.pos-2 { --px: 104px; --py: -96px;  --s: 0.8; opacity: 0.36; filter: saturate(0.5); z-index: 2; pointer-events: none; }
.wheel-card.pos-3 { --px: 156px; --py: -144px; --s: 0.7; opacity: 0.22; filter: saturate(0.4); z-index: 1; pointer-events: none; }

.info-svg { width: 100%; height: auto; flex: 1; }

.info-foot {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.info-foot strong { color: var(--hot); font-size: 1.15rem; font-weight: 600; }

.info-foot .vs { color: #B5A5CB; }

.wheel-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.wheel-dot {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.wheel-dot.active { background: var(--hot); width: 42px; }

/* per-card infographic animations (run when card faces front) */
.dyno-curve { stroke-dasharray: 330; stroke-dashoffset: 330; }
.wheel-card.active .dyno-curve { animation: draw-line 1.5s 0.35s ease-out forwards; }

.svc-ring { }
.wheel-card.active .svc-ring { animation: draw-ring 1.5s 0.35s ease-out forwards; }

.svc-ticks text { opacity: 0; }
.wheel-card.active .svc-ticks text { animation: tick-in 0.3s ease forwards; }
.wheel-card.active .svc-ticks text:nth-child(1) { animation-delay: 0.7s; }
.wheel-card.active .svc-ticks text:nth-child(2) { animation-delay: 1.1s; }
.wheel-card.active .svc-ticks text:nth-child(3) { animation-delay: 1.5s; }

.diag-wave { stroke-dasharray: 40 400; stroke-dashoffset: 440; }
.wheel-card.active .diag-wave { animation: wave-scan 2.4s 0.3s linear infinite; }
.diag-status { opacity: 0.6; }
.wheel-card.active .diag-status { animation: blink 1.2s step-end infinite; }

.lift-car { transform: translateY(0); }
.wheel-card.active .lift-car { animation: lift-up 1.2s 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.lift-ticks > g { opacity: 0; }
.wheel-card.active .lift-ticks > g { animation: tick-in 0.35s ease forwards; }
.wheel-card.active .lift-ticks > g:nth-child(1) { animation-delay: 1.6s; }
.wheel-card.active .lift-ticks > g:nth-child(2) { animation-delay: 1.9s; }
.wheel-card.active .lift-ticks > g:nth-child(3) { animation-delay: 2.2s; }

@keyframes lift-up { to { transform: translateY(-58px); } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes draw-ring { from { stroke-dashoffset: 302; } to { stroke-dashoffset: 0; } }
@keyframes tick-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wave-scan { from { stroke-dashoffset: 440; } to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0.15; } }

.card-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  line-height: 1.3;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hot);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 72, 28, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(232, 72, 28, 0); }
}

/* ---------- reviews marquee ---------- */
.reviews {
  padding: 40px 0 72px;
  overflow: hidden;
}

.marquee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.marquee-head .stars {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.marquee-head .stars b { color: var(--ink); }

.marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.review-card .r-stars { color: var(--hot); letter-spacing: 3px; font-size: 0.9rem; }

.review-card blockquote {
  margin: 12px 0 16px;
  font-size: 1rem;
  color: var(--ink);
}

.review-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- services preview ---------- */
.services-preview { padding: 72px 0; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.svc-card:hover::after { transform: scaleX(1); }

.svc-card:hover .svc-icon { background: rgba(232, 72, 28, 0.12); color: var(--hot); }

.svc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(100, 20, 168, 0.09);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--violet);
}

.svc-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.svc-card p { font-size: 0.92rem; color: var(--muted); }

.svc-more {
  margin-top: 40px;
  text-align: center;
}

/* ---------- process ---------- */
.process {
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  margin: 0 16px;
}

.process .wrap { position: relative; }

.process .section-head h2 { color: #fff; }

.process .section-head p { color: rgba(255, 255, 255, 0.6); }

.process .eyebrow { color: var(--hot); }
.process .eyebrow::before { background: var(--hot); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: background 0.3s, transform 0.3s;
}

.step:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-4px); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--hot);
  letter-spacing: 0.12em;
}

.step h3 { font-size: 1.05rem; margin: 12px 0 8px; color: #fff; }

.step p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- map ---------- */
.find-us { padding: 88px 0 72px; }

.map-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.map-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

.addr {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  border-left: 2px solid var(--hot);
  padding-left: 18px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 380px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: saturate(0.85);
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img { height: 90px; width: auto; }

.footer-logo p { margin-top: 16px; max-width: 26rem; font-size: 0.95rem; }

.footer h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; font-size: 0.95rem; }

.footer ul a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- services page ---------- */
.page-hero {
  padding: 80px 0 56px;
  text-align: left;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 18px 0 16px;
}

.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet), var(--crimson) 60%, var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 36rem; }

.svc-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.svc-detail-head { position: sticky; top: 100px; }

.svc-detail-head .svc-icon { width: 56px; height: 56px; margin-bottom: 20px; }

.svc-detail-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.svc-detail-head p { color: var(--muted); }

.svc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(100, 20, 168, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 18px;
}

.svc-items { display: grid; gap: 14px; }

.svc-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s;
}

.svc-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }

.svc-item .tick {
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 3px;
}

.svc-item h3 { font-size: 1.02rem; margin-bottom: 4px; }

.svc-item p { font-size: 0.9rem; color: var(--muted); }

.cta-band {
  margin: 56px 16px 0;
  background: linear-gradient(120deg, var(--deep), var(--violet) 45%, var(--crimson) 78%, var(--hot) 108%);
  border-radius: 32px;
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.cta-band p { color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; }

.cta-band .btn {
  background: #fff;
  color: var(--deep);
}

.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0,0,0,0.4); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail-head { position: static; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: linear-gradient(120deg, var(--deep), var(--violet));
    border-radius: 26px;
    box-shadow: 0 18px 44px -16px rgba(56, 8, 92, 0.55);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-wheel { height: 430px; }
  .wheel-card { width: 280px; height: 230px; margin: -115px 0 0 -155px; }
  .wheel-card.pos-1 { --px: 34px;  --py: -32px; }
  .wheel-card.pos-2 { --px: 68px;  --py: -64px; }
  .wheel-card.pos-3 { --px: 102px; --py: -96px; }
  .review-card { width: 300px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
