@font-face {
  font-family: "Averia Serif Libre";
  src: url("/fonts/averia-serif-libre-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averia Serif Libre";
  src: url("/fonts/averia-serif-libre-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171414;
  --night: #0f0d0d;
  --white: #ffffff;
  --mist: #f3f3f4;
  --line: #e7e3e0;
  --orange: #ff5a1f;
  --orange-deep: #e0430a;
  --orange-text: #b33507;
  --muted: #5d5a58;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --serif: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 40px -24px rgba(23, 20, 20, 0.45);
  --fallback-photo: url("/images/placeholder-mountains.svg");
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.serif {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Photo slots: the real image paints over an illustrated fallback until it exists. */
.photo {
  background-color: #2a2422;
  background-image: var(--img, none), var(--fallback-photo);
  background-size: cover, cover;
  background-position: center, center bottom;
}

.img-hero {
  --img: url("/images/hero-van.jpg");
}
.img-arrival {
  --img: url("/images/arrival.jpg");
}
.img-hvac {
  --img: url("/images/card-hvac.jpg");
}
.img-plumbing {
  --img: url("/images/card-plumbing.jpg");
}
.img-electrical {
  --img: url("/images/card-electrical.jpg");
}
.img-towing {
  --img: url("/images/card-towing.jpg");
}

/* Layout frames */
.frame {
  width: min(1240px, 100% - 2rem);
  margin: 1rem auto;
}
.frame--tight {
  margin-top: 0;
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255, 90, 31, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--light {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn--dark {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* HERO */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: min(860px, 92vh);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 22, 24, 0.72) 0%, rgba(10, 22, 24, 0.38) 45%, rgba(10, 22, 24, 0.05) 75%),
    linear-gradient(0deg, rgba(10, 22, 24, 0.55) 0%, rgba(10, 22, 24, 0) 35%);
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 3vw, 2.25rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand__mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__nav a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  text-decoration: none;
}
.hero__nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}
.hero__nav .hero__signin {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.hero__menu {
  display: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.mobile-nav {
  position: absolute;
  top: 4.6rem;
  right: 1.25rem;
  z-index: 3;
  display: grid;
  min-width: 200px;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav a {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
}
.mobile-nav a:hover {
  background: var(--mist);
}

.hero__body {
  align-self: center;
  padding: 1rem clamp(1.25rem, 4.5vw, 4rem) 2rem;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
}

.call-types {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  max-width: 18rem;
  font-size: 0.85rem;
}
.call-types li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.call-types li span:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.hero__inset {
  position: absolute;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: 7.4rem;
  width: clamp(180px, 22vw, 290px);
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: var(--radius-md);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__inset figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.25);
}

/* Booking bar */
.booking {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
  margin: 0 clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem);
  border-radius: var(--radius-md);
  background: rgba(16, 26, 28, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.booking__field {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.booking__field label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}
.booking__field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.1rem 1.4rem 0.1rem 0;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right center / 16px no-repeat;
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.booking__field select option {
  color: var(--ink);
}
.booking__submit {
  margin: 0.5rem;
  padding: 0 1.6rem;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.booking__submit:hover {
  transform: translateY(-1px);
  background: #ff7340;
}

/* QUOTE */
.quote {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.quote h2,
.highlights h2,
.how h2,
.faq h2 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}
.quote__intro p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 28rem;
}
.quote__intro .quote__assumptions {
  font-size: 0.85rem;
}
.quote__plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--mist);
}
.plan h3 {
  font-size: 1.05rem;
}
.plan__desc {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 2.8em;
}
.plan__price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}
.plan__price small {
  margin-left: 0.3rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}
.plan__rate {
  font-size: 0.82rem;
  color: var(--muted);
}
.plan .btn {
  margin-top: 0.5rem;
}
.plan--featured {
  background: var(--ink);
  color: var(--white);
}
.plan--featured .plan__desc,
.plan--featured .plan__rate,
.plan--featured .plan__price small {
  color: rgba(255, 255, 255, 0.7);
}
.plan--featured .btn {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.plan__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
}

/* HIGHLIGHTS */
.highlights {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 2fr;
  grid-template-areas:
    "intro cards"
    "controls controls";
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.highlights__intro {
  grid-area: intro;
  align-self: center;
}
.highlights__intro p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 22rem;
}

.cards {
  grid-area: cards;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, calc((100% - 3.75rem) / 4));
  justify-content: start;
  gap: 1.25rem;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.cards::-webkit-scrollbar {
  display: none;
}
.card {
  scroll-snap-align: start;
}
.card[hidden] {
  display: none;
}
.card--mid {
  margin-top: 3rem;
}
.card--low {
  margin-top: 1.5rem;
}
.card__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
}
.card--mid .card__photo {
  aspect-ratio: 1 / 1;
}
.card h3 {
  font-size: 0.98rem;
}
.card__meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.card__by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
}

.highlights__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(320px, 100%);
  padding: 0.3rem 0.3rem 0.3rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
}
.search > svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.search .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.search__empty {
  flex: 1;
  font-size: 0.85rem;
  color: var(--muted);
}
.arrows {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

/* HOW */
.how {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "pill pill"
    "title transcript"
    "steps transcript";
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.how .pill {
  grid-area: pill;
  justify-self: start;
}
.how h2 {
  grid-area: title;
  margin-bottom: 2rem;
}
.steps {
  grid-area: steps;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.steps__num {
  grid-row: span 2;
  font-size: 1.6rem;
  color: var(--orange);
}
.steps h3 {
  font-size: 1.05rem;
}
.steps p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.transcript {
  grid-area: transcript;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--mist);
}
.transcript__label {
  font-size: 0.78rem;
  color: var(--muted);
}
.msg {
  max-width: 88%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
}
.msg--caller {
  justify-self: end;
  background: var(--white);
  border-bottom-right-radius: 4px;
}
.msg--agent {
  background: var(--ink);
  color: var(--white);
  border-bottom-left-radius: 4px;
}
.msg--system {
  justify-self: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 90, 31, 0.12);
  color: var(--orange-text);
  font-size: 0.78rem;
  font-weight: 600;
}

/* FAQ */
.faq > * {
  max-width: 880px;
  margin-inline: auto;
}
.faq h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--orange);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding-bottom: 1.2rem;
  color: var(--muted);
  max-width: 44rem;
}

/* CTA */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 22, 24, 0.6);
}
.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}
.cta p {
  color: rgba(255, 255, 255, 0.88);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* FOOTER */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1240px, 100% - 2rem);
  margin: 1.5rem auto 2.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer nav {
  display: flex;
  gap: 1.25rem;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .booking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking__field:nth-child(2n) {
    border-right: 0;
  }
  .booking__field {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .booking__submit {
    grid-column: 1 / -1;
  }
  .hero__inset {
    display: none;
  }
  .quote,
  .highlights,
  .how {
    grid-template-columns: 1fr;
  }
  .highlights {
    grid-template-areas:
      "intro"
      "cards"
      "controls";
  }
  .how {
    grid-template-areas:
      "pill"
      "title"
      "steps"
      "transcript";
  }
  .cards {
    grid-auto-columns: minmax(220px, 42%);
  }
}

@media (max-width: 760px) {
  .hero__nav {
    display: none;
  }
  .hero__menu {
    display: inline-grid;
  }
  .hero {
    min-height: auto;
  }
  .hero__body {
    padding-top: 2.5rem;
  }
  .booking {
    grid-template-columns: 1fr;
  }
  .booking__field {
    border-right: 0;
  }
  .quote__plans {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-auto-columns: 72%;
  }
  .card--mid,
  .card--low {
    margin-top: 0;
  }
  .card--mid .card__photo {
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
