/* Roadside Jesus — site styles
   Palette from the brand board: red (trust), black (action), gray (quality), light (care). */

:root {
  --accent: #d2121a;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --gray: #4a4a4a;
  --mute: #9a9a9a;
  --light: #f4f4f2;
  --paper: #ffffff;
  --line: rgba(10, 10, 10, 0.08);
  --amber: #f5a300;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
svg { flex: none; }

.page { background: var(--light); overflow-x: clip; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

.disp {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.eyebrow--red { color: var(--accent); }
.eyebrow--mute { color: var(--mute); }
.eyebrow--sm { font-size: 11px; letter-spacing: 0.24em; }

/* Buttons: skewed parallelograms, echoing the italic wordmark */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 4px;
  transform: skewX(-9deg);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.25s, color 0.25s;
}
.btn > span { display: inline-flex; align-items: center; gap: 12px; transform: skewX(9deg); }
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover { transform: skewX(-9deg) translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45); }
.btn:hover svg { transform: translateX(5px); }
.btn--red { background: var(--accent); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 46px; padding: 0 22px; }
:is(.btn, .navlink, .tile, .dock a):focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Ticker */
.ticker {
  display: flex;
  align-items: center;
  height: 40px;
  background: var(--ink);
  color: #e9e9e6;
}
.mq { overflow: hidden; white-space: nowrap; }
.mq__track { display: inline-flex; animation: mq 36s linear infinite; }
.mq__track--rev { animation-direction: reverse; animation-duration: 44s; }
.mq__item { display: inline-flex; align-items: center; flex: none; }
.ticker .mq__item { gap: 28px; padding-right: 28px; font-size: 11px; }
.ticker .sep { color: #6e6e6e; }
.ticker .tick { width: 7px; height: 7px; background: var(--accent); transform: skewX(-12deg); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 244, 242, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav__row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav__logo { flex: none; }
.nav__logo img { height: 54px; width: auto; }
.nav__links { display: flex; gap: 36px; }
.nav__cta { display: flex; align-items: center; gap: 22px; }
.navlink {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 14px 2px;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.navlink:hover::after { transform: scaleX(1); }
.nav__phone { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; font-stretch: 112%; }

/* Mobile menu (shown where the inline nav links are hidden) */
.menu { display: none; position: static; }
.menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  top: calc(100% + 6px);
  width: min(300px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.35);
  animation: rise 0.3s var(--ease) both;
}
.menu__panel a {
  padding: 14px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu__panel a:hover { background: var(--light); }
.menu__phone { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 4px 4px !important; font-stretch: 112%; font-weight: 800 !important; letter-spacing: 0.06em !important; }

/* Hero */
.hero {
  min-height: calc(100svh - 116px); /* ticker 40px + nav 76px: the road strip lands on the fold */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(-66deg, rgba(10, 10, 10, 0) 0 26px, rgba(10, 10, 10, 0.035) 26px 27px);
}
.streak { position: absolute; left: 0; animation: streak 5.5s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
.streak--1 { top: 22%; width: 22%; height: 3px; background: linear-gradient(90deg, rgba(210, 18, 26, 0), var(--accent)); }
.streak--2 { top: 58%; width: 30%; height: 2px; background: linear-gradient(90deg, rgba(10, 10, 10, 0), var(--ink)); animation-delay: 1.6s; }
.streak--3 { top: 74%; width: 16%; height: 3px; background: linear-gradient(90deg, rgba(210, 18, 26, 0), var(--accent)); animation-delay: 3.1s; }
.hero__inner {
  flex: 1;
  justify-content: center;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(22px, 3vw, 32px);
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 84px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 999px;
}
.beacon { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: beacon 1.6s ease-in-out infinite; }
.hero__logo { width: min(840px, 100%); }
.hero__logo img { width: 100%; animation: tow 1.15s cubic-bezier(0.16, 0.84, 0.24, 1) both; animation-delay: 0.2s; }
.hero__lede { max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; width: 100%; }
.road {
  position: relative;
  height: 64px;
  background: var(--ink);
  border-top: 4px solid var(--accent);
  display: flex;
  align-items: center;
}
.road__line {
  width: 100%;
  height: 4px;
  background-image: linear-gradient(90deg, #e9e9e6 0 64px, rgba(0, 0, 0, 0) 64px 120px);
  background-size: 120px 4px;
  background-repeat: repeat-x;
  animation: road 1.1s linear infinite;
}

/* Services */
/* Nav-target sections fill the viewport so the next section never peeks in at the fold */
.services, .how, .book { scroll-margin-top: 76px; }
.services {
  background: var(--ink);
  color: #fff;
  padding-top: clamp(64px, 9vw, 120px);
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
}
.services__inner { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); margin-block: auto; }
.services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.services__slogan { flex: 1 1 380px; max-width: 600px; }
.services__slogan img { width: 100%; }
.services__intro { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; gap: 20px; }
.services__intro p:last-child { color: #c9c9c6; font-size: 18px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px 30px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: #4a4a4a; background: #161616; }
.card:hover::after { transform: scaleX(1); }
.card svg { transition: transform 0.45s var(--ease); }
.card:hover svg { transform: translateX(4px) skewX(-6deg); }
.card h3 { font-size: 20px; line-height: 1.05; }
.card p { font-size: 15px; color: #b5b5b2; }
.vehicles { margin-top: clamp(56px, 8vw, 104px); padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid #2a2a2a; }
.vehicles .mq__item { gap: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); font-size: clamp(44px, 8vw, 112px); }
.vehicles .dot { width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--accent); }
.vehicles .outline { color: rgba(0, 0, 0, 0); -webkit-text-stroke: 1.5px #8a8a8a; }

/* How it works */
.how {
  padding: clamp(64px, 9vw, 128px) 0;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.how__inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.how__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.how__title { display: flex; flex-direction: column; gap: 18px; }
.how__title h2 { font-size: clamp(34px, 5.4vw, 72px); }
.how__mark { width: clamp(96px, 13vw, 170px); flex: none; animation: float 6s ease-in-out infinite; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__rule { height: 3px; background: var(--ink); }
.step__num { font-size: 64px; color: var(--accent); }
.step h3 { font-size: 22px; }
.step p { color: var(--ink-2); }

/* About */
.about__card {
  display: flex;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.about__photo { flex: 1.25 1 420px; min-height: 300px; position: relative; overflow: hidden; background: var(--ink); }
.about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 35% 50%;
  animation: pan 16s ease-in-out infinite alternate;
}
.about__tag {
  position: absolute;
  left: 20px; bottom: 20px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
  border-left: 3px solid var(--accent);
}
.about__body { flex: 1 1 340px; display: flex; flex-direction: column; gap: 26px; padding: clamp(28px, 4.5vw, 60px); }
.about__body > img { width: 210px; }
.about__body p { color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.values li { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.values i { width: 18px; height: 18px; border-radius: 50%; }

/* Book / contact */
.book { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.book__lines { position: absolute; inset: 0; background: repeating-linear-gradient(-66deg, rgba(0, 0, 0, 0) 0 26px, rgba(0, 0, 0, 0.07) 26px 27px); }
.book__inner { position: relative; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.book__title { display: flex; flex-direction: column; gap: 18px; }
.book__title h2 { font-size: clamp(38px, 6.6vw, 92px); }
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 190px;
  padding: 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.6); }
.tile svg { transition: transform 0.45s var(--ease); }
.tile:hover svg { transform: translate(5px, -5px); }
.tile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tile__body { display: flex; flex-direction: column; gap: 8px; }
.tile__big { font-size: 26px; white-space: nowrap; }
.book__grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.tile__note { font-size: 14px; }
.tile--ink { background: var(--ink); color: #fff; }
.tile--ink .tile__note, .tile--ink .eyebrow { color: #b5b5b2; }
.tile--paper { background: var(--paper); color: var(--ink); }
.tile--paper .tile__note, .tile--paper .eyebrow { color: var(--gray); }
.tile--glass { background: rgba(0, 0, 0, 0.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.tile--glass:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 26px 50px -22px rgba(0, 0, 0, 0.6); }
.tile__email { font-size: 19px; font-weight: 800; font-stretch: 112%; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) 0 0; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; padding-bottom: clamp(40px, 6vw, 72px); }
.footer__brand { display: flex; flex-direction: column; gap: 22px; flex: 1 1 280px; }
.footer__brand img { width: 260px; }
.footer__brand .eyebrow { font-size: 11px; color: #c9c9c6; letter-spacing: 0.26em; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col .eyebrow { font-size: 11px; color: var(--mute); margin-bottom: 6px; }
.footer__col .name { font-weight: 800; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; }
.footer__col .soft { color: #b5b5b2; }
.footer__col .navlink { padding: 10px 0; align-self: flex-start; font-size: 15px; letter-spacing: 0.04em; text-transform: none; }
.footer__nav { display: flex; flex-direction: column; font-size: 15px; }
.footer__nav .eyebrow { font-size: 11px; color: var(--mute); margin-bottom: 10px; }
.footer__nav .navlink { padding: 12px 0; align-self: flex-start; }
.footer__bar { border-top: 1px solid #2a2a2a; }
.footer__bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--mute); }

/* Phone action dock */
.dock {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 30;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid #2a2a2a;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.dock a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dock__call { background: #fff; color: var(--ink); }
.dock__book { flex: 1.4; background: var(--accent); color: #fff; }

/* Load and scroll motion */
.in { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tow {
  0% { opacity: 0; transform: translateX(-14%) skewX(-10deg); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes beacon { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 163, 0, 0.55); } 50% { box-shadow: 0 0 0 9px rgba(245, 163, 0, 0); } }
@keyframes streak {
  0% { transform: translateX(-120%) skewX(-24deg); opacity: 0; }
  15% { opacity: 1; }
  60%, 100% { transform: translateX(520%) skewX(-24deg); opacity: 0; }
}
@keyframes road { to { background-position-x: -120px; } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes pan { from { transform: scale(1.08) translateX(-2%); } to { transform: scale(1.08) translateX(2%); } }
@keyframes rv { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .draw { transform-origin: left; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Breakpoints */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  .nav__phone { display: none; }
  .nav__book { min-height: 44px; padding: 0 18px; font-size: 12px; }
  .dock { display: flex; }
  .nav__logo img { height: 44px; }
  .nav__cta { gap: 10px; }
  /* the sticky dock carries Call / Book on phones, so the hero drops its own buttons
     and leaves room for the dock so the road strip is not hidden behind it */
  .hero__cta { display: none; }
  .hero { min-height: calc(100svh - 116px - 70px - env(safe-area-inset-bottom)); }
}
