/* Services directory. Shared navigation, buttons and final CTA use design-system.css. */
/* Reuse the About hero composition with the road photograph framed on the right. */
.guide-hero {
  --about-edge: max(var(--inset), calc((100% - 1200px) / 2 + var(--inset)), 7vw);
  --road-photo: var(--autosouq-page-hero, url("../images/mission.jpg"));
}
@media (min-width: 640px) {
  .main-content > .guide-hero { background: var(--onyx); }
  .guide-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 23%;
    background: linear-gradient(90deg, var(--onyx), rgb(16 15 13 / 94%) 16%,
      rgb(16 15 13 / 76%) 29%, rgb(16 15 13 / 32%) 45%, transparent 62%),
      var(--road-photo) 38% 52% / 202% auto no-repeat;
  }
}
@media (max-width: 899px) {
  .guide-hero { --about-edge: var(--inset); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .guide-hero::before {
    inset-inline-start: 30%;
    background-image: linear-gradient(90deg, var(--onyx), rgb(16 15 13 / 86%) 26%,
      rgb(16 15 13 / 55%) 45%, transparent 72%), var(--road-photo);
    background-size: auto, 186% auto;
    background-position: center, 35% 51%;
  }
  .guide-hero p { max-width: min(46ch, 52%); }
}
@media (max-width: 639px) {
  .guide-hero::before {
    background: linear-gradient(var(--onyx), transparent 36%),
      var(--road-photo) 47% 52% / 190% auto no-repeat;
  }
}
.main-content > .guide-directory { background: var(--white); }
.guide-directory-heading { margin-bottom: var(--s6); }
.guide-directory-heading h2, .guide-questions h2 { margin: 0; }
#compare-services { scroll-margin-top: calc(var(--nav-row) + 24px); }
.guide-price span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.guide-routes { border-top: 2px solid var(--brass); }
.guide-route {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 44px;
  align-items: center;
  gap: var(--s8);
  padding-block: var(--s8);
  border-bottom: 1px solid var(--border);
  color: var(--onyx);
}
.guide-route:is(:hover, :focus-visible) {
  background: #faf8f3;
  color: var(--onyx);
  text-decoration: none;
}
.guide-audience { display: flex; align-items: center; gap: var(--s4); }
.guide-audience > i { color: var(--dark-brass); width: 1.2em; font-size: 24px; text-align: center; }
.guide-audience h3 { margin: 0; font-size: var(--h3); }
.guide-fit { margin: 0; max-width: 40ch; color: var(--muted); }
.guide-price { display: grid; gap: var(--s1); border-left: 1px solid var(--border); padding-left: var(--s6); }
.guide-price strong { font: 600 28px/1.2 var(--font-body); color: var(--onyx); }
.guide-price small { font: 500 14px/1.5 var(--font-body); white-space: nowrap; }
.guide-route-action > span { display: none; }
.guide-route[aria-disabled="true"] .guide-route-action { display: none; }
.guide-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--onyx);
}
.guide-route:is(:hover, :focus-visible) .guide-arrow { background: var(--onyx); color: var(--white); }
.main-content > .guide-questions {
  background: #f7f4ed;
  border-top: 1px solid var(--border);
  padding-block: clamp(40px, 5vw, 72px);
}
.guide-questions-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(var(--columns), 6vw, 80px); align-items: start; }
.guide-questions-layout > div > p { margin: var(--s3) 0 0; color: var(--muted); }
.guide-contact {
  display: inline-flex;
  gap: var(--s3);
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--onyx);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-contact:is(:hover, :focus-visible) { color: var(--tobacco); }
.guide-answers { border-top: 1px solid var(--border); }
.guide-answers details { border-bottom: 1px solid var(--border); }
.guide-answers summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding-block: 18px;
  cursor: pointer;
  color: var(--onyx);
  font: 600 18px/1.45 var(--font-body);
  list-style: none;
}
.guide-answers summary::-webkit-details-marker { display: none; }
.guide-answers summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--dark-brass);
}
.guide-answers details[open] summary::after { background-size: 100% 2px, 0; }
.guide-answers details p { max-width: 60ch; margin: 0 0 var(--s6); color: var(--muted); }
@media (max-width: 999px) {
  .guide-route { grid-template-columns: 1fr 1.1fr 1fr 44px; gap: var(--s4); padding-inline: 0; }
  .guide-price { padding-left: var(--s4); }
}
@media (max-width: 767px) {
  .guide-questions-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .guide-route {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "description" "price" "action";
    gap: var(--s2) var(--s3);
    padding-block: var(--s6);
  }
  .guide-audience { grid-area: name; gap: var(--s3); }
  .guide-fit { grid-area: description; max-width: 54ch; }
  .guide-price { grid-area: price; margin-top: var(--s2); border: 0; padding: 0; }
  .guide-price strong { font-size: 24px; }
  .guide-route-action { grid-area: action; display: flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 600; }
  .guide-route-action > span { display: inline; }
  .guide-arrow { width: auto; height: auto; border: 0; color: var(--dark-brass); }
  .guide-route:is(:hover, :focus-visible) .guide-arrow { background: transparent; color: var(--onyx); }
  .guide-answers summary { font-size: 16px; }
}
