.detail-journey,
.detail-faq {
  display: grid;
  align-items: start;
  color: #f4f6ef;
  font-family: Inter, Arial, sans-serif;
  scroll-margin-top: var(--cf-header-clearance, 92px);
  padding-inline: max(clamp(12px, 2vw, 32px), calc((100% - 1500px) / 2));
}

.detail-journey {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "photo copy";
  align-items: center;
  column-gap: clamp(22px, 2.8vw, 43px);
  padding-block: clamp(36px, 5vw, 74px);
  background: var(--cf-dark);
}

.detail-journey-copy { grid-area: copy; min-width: 0; }

.detail-journey h2,
.detail-faq h2 {
  margin: 0;
  color: #f4f6ef;
  font-size: clamp(32px, 4.15vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.043em;
  text-transform: uppercase;
  text-wrap: balance;
}

.detail-journey h2 span,
.detail-faq h2 span { color: #b5d674; }

.detail-journey header p,
.detail-faq-intro > p {
  max-width: 48ch;
  margin: 13px 0 0;
  color: #c5c8c0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
}

.detail-journey-steps {
  position: relative;
  display: grid;
  --journey-step-gap: clamp(17px, 2.2vw, 31px);
  gap: var(--journey-step-gap);
  margin: clamp(20px, 2.3vw, 34px) 0 clamp(20px, 2.2vw, 32px);
  padding: 0;
  list-style: none;
  counter-reset: journey-step;
}

.detail-journey-steps li:not(:last-child)::after {
  position: absolute;
  inset: 19px auto calc(-19px - var(--journey-step-gap)) 19px;
  width: 1px;
  background: var(--theme-primary);
  transform-origin: top;
  content: "";
}

.detail-journey-steps li {
  position: relative;
  padding-inline-start: 54px;
  counter-increment: journey-step;
}

.detail-journey-steps li::before {
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 0;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #b5d67480;
  border-radius: 50%;
  background: #131a10;
  color: #d4e9b1;
  font-size: 13px;
  font-weight: 800;
  content: counter(journey-step, decimal-leading-zero);
}

.detail-journey-steps h3 {
  margin: 0 0 5px;
  color: #f1f4ed;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.detail-journey-steps p {
  max-width: 67ch;
  margin: 0;
  color: #bfc4b9;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
}

.detail-journey-figure {
  grid-area: photo;
  display: grid;
  min-width: 0;
  margin: 0;
}

.detail-journey-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  object-fit: cover;
  border: 1px solid #b5d6743b;
  border-radius: 22px;
  background: var(--cf-surface);
  box-shadow: 0 16px 55px #b5d67412;
}

.detail-journey-greeting {
  position: relative;
  margin: -33px clamp(12px, 2vw, 26px) 0;
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid #b5d67465;
  border-radius: 15px;
  background: linear-gradient(135deg, rgb(30 35 26 / .97), rgb(13 15 12 / .95));
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px #0008;
}

.detail-journey-greeting strong {
  color: #cfe99e;
  font-size: clamp(19px, 1.6vw, 24px);
}

.detail-journey-greeting p {
  margin: 5px 0 0;
  color: #e0e4da;
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.45;
}

.detail-next-cta {
  display: inline-flex;
  min-height: 48px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 8px 19px;
  border: 1px solid #b5d674;
  border-radius: 10px;
  background: #b5d674;
  color: #131b10;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.detail-next-cta:hover { background: #d1e99f; color: #131b10; }
.detail-next-cta:focus-visible,
.detail-faq :is(summary, a):focus-visible { outline: 2px solid #b5d674; outline-offset: 4px; }

.detail-faq {
  --faq-row-gap: clamp(22px, 3.3vw, 46px);
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--faq-row-gap);
  padding-block: clamp(46px, 7vw, 102px);
  background: var(--cf-dark);
}

.detail-faq-backdrop {
  position: absolute;
  z-index: -1;
  grid-row: 2 / auto;
  inset: calc(-1 * var(--faq-row-gap)) 0 0;
  clip-path: inset(0);
  pointer-events: none;
}

.detail-faq-backdrop::before {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, #05050596, #050505e3 50%, #05050596),
    var(--faq-photo, url("/detailing/faq-palm-coast-muscle-cars.webp")) center / cover no-repeat;
  content: "";
}

.detail-faq-backdrop::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--cf-dark) 0%,
    #050505d9 7%,
    #05050592 17%,
    #05050555 34%,
    #05050565 59%,
    #050505a6 77%,
    #050505eb 93%,
    var(--cf-dark) 100%
  );
  content: "";
}

.detail-faq-intro { text-align: center; }
.detail-faq h2 { font-size: clamp(32px, 3.8vw, 54px); }
.detail-faq-intro > p { margin-inline: auto; }

.detail-faq-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  text-align: center;
}

.detail-faq-contact > a[href^="tel:"] {
  color: #cfe99e;
  text-underline-offset: 3px;
}
.detail-faq-contact > a[href^="tel:"]:hover { color: #e9f7d0; }

.detail-faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 28px);
  width: min(100%, 1200px);
  scroll-margin-top: var(--cf-header-clearance, 92px);
}

.detail-faq-list {
  border: 1px solid #ffffff21;
  border-radius: 17px;
  background: var(--cf-glass-background);
  -webkit-backdrop-filter: var(--cf-glass-filter);
  backdrop-filter: var(--cf-glass-filter);
}

.detail-faq-list details + details { border-top: 1px solid #ffffff18; }
.detail-faq-list details[open] { background: #15201174; }
.detail-faq-list details:first-child { border-radius: 16px 16px 0 0; }
.detail-faq-list details:last-child { border-radius: 0 0 16px 16px; }

.detail-faq-list summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px, 2vw, 25px);
  border-radius: inherit;
  color: #f4f6ef;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 750;
  line-height: 1.32;
  list-style: none;
  cursor: pointer;
}

.detail-faq-list summary::-webkit-details-marker { display: none; }
.detail-faq-list summary::after {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #b5d6744e;
  border-radius: 50%;
  color: #cfe99e;
  font-size: 20px;
  font-weight: 500;
  content: "+";
}

.detail-faq-list summary:hover,
.detail-faq-list details[open] summary { color: #d9edb2; }
.detail-faq-list details[open] summary::after { content: "−"; }

.detail-faq-answer p {
  max-width: 70ch;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 25px) 18px;
  color: #c2c8bd;
  font-size: 15px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .detail-journey-steps .cf-reveal-pending::after { scale: 1 0; }
  .detail-journey-steps .cf-reveal-pending > *,
  .detail-journey-steps .cf-reveal-pending::before { opacity: 0; }

  .detail-journey-steps .cf-reveal-visible:not(:last-child)::after {
    animation: journey-line .28s ease-in-out var(--cf-reveal-delay) backwards;
  }
  .detail-journey-steps .cf-reveal-visible::before,
  .detail-journey-steps .cf-reveal-visible > * {
    animation: cf-reveal .54s cubic-bezier(.22, 1, .36, 1) var(--cf-reveal-delay) backwards;
  }

  @keyframes journey-line { from { scale: 1 0; } }
}

@media (761px <= width <= 1240px) {
  .detail-journey { align-items: start; }

  .detail-journey-figure {
    position: sticky;
    top: var(--cf-header-clearance, 130px);
  }
}

@media (761px <= width <= 1240px) and (max-height: 640px) {
  .detail-journey-figure img {
    max-height: max(140px, calc(100svh - var(--cf-header-clearance, 130px) - 160px));
    object-position: 64% 40%;
  }
}

@media (max-width: 760px) {
  .detail-journey { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .detail-faq { --faq-row-gap: 24px; }
  .detail-faq-columns { grid-template-columns: minmax(0, 1fr); }
  .detail-journey { grid-template-areas: "copy" "photo"; }
  .detail-journey-figure img { border-radius: 16px; }
  .detail-faq-backdrop::before { background-position: center, 68% center; }
}

@media (max-width: 460px) {
  .detail-journey .detail-next-cta { width: 100%; }
}

.cf-home .detail-contact {
  padding: clamp(36px, 4.8vw, 76px) clamp(12px, 2vw, 32px) clamp(46px, 6vw, 92px);
  border-top: 0;
  border-bottom: 1px solid #ffffff18;
  background: var(--cf-dark);
}

.detail-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  width: min(100%, 1320px);
  margin-inline: auto;
  gap: clamp(24px, 5vw, 76px);
}

.detail-contact-copy { min-width: 0; }
.detail-contact-copy h2 {
  margin: 0;
  color: #f4f6ef;
  font-size: clamp(34px, 4.15vw, 58px);
  line-height: 1.04;
  letter-spacing: -.043em;
  text-transform: uppercase;
}
.detail-contact-copy h2 span { color: #b5d674; }
.detail-contact-copy > p { max-width: 46ch; margin: 13px 0 22px; color: #c5c8c0; line-height: 1.5; }

.detail-contact-links {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 0 0 18px;
  font-style: normal;
}

.detail-contact-links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: #f4f6ef;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.detail-contact-links a span { color: #c5c8c0; font-size: 14px; }
.detail-contact-links strong {
  font-size: clamp(17px, 1.4vw, 21px);
  text-decoration: underline;
  text-decoration-color: #b5d67475;
  text-underline-offset: 4px;
}
.detail-contact-links a:hover strong { color: #d9edb2; text-decoration-color: currentColor; }
.detail-contact-copy > .detail-contact-location { color: #cfe99e; font-weight: 700; margin: 0 0 18px; }
.detail-contact a:focus-visible { outline: 2px solid #b5d674; outline-offset: 3px; }

.detail-contact-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(340px, 34vw, 500px);
  border: 1px solid #ffffff28;
  border-radius: 20px;
  background: var(--cf-surface);
}
.detail-contact-map .cf-service-map-canvas { position: absolute; inset: 0; }
.detail-contact-map .cf-service-map-canvas::after { content: none; }
.cf-home .detail-contact-map .maplibregl-canvas { filter: grayscale(1) brightness(1.4); }
.detail-contact-map .detail-contact-pin {
  width: 44px;
  height: 44px;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.detail-contact-pin::before,
.detail-contact-pin::after {
  position: absolute;
  top: 26px;
  left: 50%;
  translate: -50% -50%;
  content: "";
}

.detail-contact-pin::before {
  width: 25px;
  height: 25px;
  border: 1px solid var(--theme-primary-light);
  border-radius: 50% 50% 50% 0;
  background: var(--theme-primary);
  box-shadow: 0 2px 12px #000b;
  rotate: -45deg;
}

.detail-contact-pin::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cf-dark);
}

.detail-contact-pin:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: -1px;
  border-radius: 12px;
}

.detail-contact-map #cf-map-status {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  top: 14px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #111511;
  color: #e0e4da;
  font-size: 14px;
}

@media (max-width: 760px) {
  .detail-contact-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-contact-map { min-height: 320px; border-radius: 14px; }
}


@media (hover: none), (max-width: 850px) {
  .detail-faq-backdrop::before { position: absolute; }
}

@media (max-width: 850px) {
  .detail-faq { --faq-photo: url("/detailing/faq-palm-coast-muscle-cars-960.webp"); }
}

@media (pointer: coarse) {
  .detail-contact-map .maplibregl-ctrl-group button {
    width: 42px;
    height: 42px;
  }
}
