/* ============================================================
   Services archive grid (.arc-title / .arc-filters live in layout.css)
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Single service page
   ============================================================ */

/* Page hero (green) */
.pg-hero {
  position: relative;
  background: var(--lgm-green);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
}
.pg-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 680px;
}
.pg-hero .lgm-breadcrumb { justify-content: center; color: rgba(255,255,255,0.88); }
.pg-hero__eb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--lgm-gold);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pg-hero__eb-dash { display: block; width: 28px; height: 1.5px; background: var(--lgm-gold); opacity: 0.7; }
.pg-hero__h1 { color: #fff; font-size: 68px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; margin: 0; }
.pg-hero__sub { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.65; max-width: 500px; }
/* .pg-hero__cta is defined once in components.css (loaded globally). */

/* ============================================================
   Content + sticky booking sidebar (single service, Direction A):
   left = intro + numbered steps, right = a booking card that
   sticks to the viewport as you scroll (shop "buy box" pattern).
   ============================================================ */
.svc-layout-wrap {
  background: var(--lgm-bg);
  padding: var(--lgm-section-y) 0;
}
.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: start;
}
/* No bookable resources → single, centred column. */
.svc-layout--solo {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

/* — Main column — */
.svc-main { min-width: 0; }
.svc-main__photo {
  height: 260px;
  border-radius: var(--lgm-radius-lg);
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
}
.svc-intro { margin-bottom: 30px; }
.svc-intro__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lgm-gold-ink);
  margin-bottom: 12px;
}
.svc-intro__h {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--lgm-navy);
  text-wrap: balance;
}
.svc-intro__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--lgm-fg-muted);
  max-width: 60ch;
}

/* — Numbered steps checklist — */
.svc-steplist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lgm-line);
}
.svc-steplist__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--lgm-line);
  align-items: start;
}
.svc-steplist__n {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--lgm-gold-ink);
  opacity: 0.9;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
/* Icon variant: a rounded green chip in place of the number. */
.svc-steplist__n--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lgm-green-050, rgba(15, 93, 58, 0.08));
  color: var(--lgm-green);
  opacity: 1;
  font-size: 20px;
  letter-spacing: 0;
}
.svc-steplist__n--icon i {
  line-height: 1;
}
.svc-steplist__n--icon img,
.svc-steplist__n--icon svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.svc-steplist__t {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lgm-green);
}
.svc-steplist__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lgm-fg-muted);
}

/* — Main CTA (scrolls to the booking sidebar) — */
.svc-main__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  background: var(--lgm-green);
  color: #fff;
  border-radius: var(--lgm-radius-pill);
  padding: 12px 27px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.svc-main__cta:hover { background: var(--lgm-green-deep); color: #fff; transform: translateY(-1px); }
.svc-main__cta-arrow { font-size: 16px; line-height: 1; }

/* — Sticky booking sidebar (clean — no box; the widget's own cards
     provide the structure) — */
.svc-aside {
  /* Sticky offset = pinned prayer bar (50px) + the header once it has
     shrunk to its scrolled height (72px). */
  --svc-sticky-top: calc(var(--lgm-prayer-bar-h) + 72px);
  position: sticky;
  top: calc(var(--svc-sticky-top) + 16px);
  align-self: start;
  scroll-margin-top: calc(var(--svc-sticky-top) + 16px);
}
.svc-aside .lgm-ae-widget { margin: 0; }

/* Force the two-column booking widget to stack inside the narrow rail
   (its own responsive rule only fires below an 860px viewport). Scoped to
   the real two-column layout so a solo booking keeps the widget's own shape. */
@media (min-width: 980px) {
  .svc-layout:not(.svc-layout--solo) .svc-aside .lgm-ae-bk-layout { grid-template-columns: 1fr; gap: 20px; }
  .svc-layout:not(.svc-layout--solo) .svc-aside .lgm-ae-bk-picker,
  .svc-layout:not(.svc-layout--solo) .svc-aside .lgm-ae-bk-forms { min-width: 0; max-width: none; }
}

/* FAQ accordion */
.faq-wrap { padding: 70px 0 60px; background: #fff; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--lgm-line); margin-top: 8px; }
.faq__item { border-bottom: 1px solid var(--lgm-line); overflow: hidden; }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--lgm-green);
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s;
}
.faq__q:hover { color: #0A4A2E; }
.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--lgm-green);
  -webkit-mask-image: url("../../images/icon-chevron-down.svg");
          mask-image: url("../../images/icon-chevron-down.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: transform 0.3s ease;
}
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 4px;
}
.faq__item.is-open .faq__a { max-height: 600px; padding-bottom: 20px; }
.faq__a p { font-size: 14px; color: var(--lgm-fg-muted); line-height: 1.7; margin: 0; }

/* FAQ --c numbered variant */
.faq-wrap--c .faq { counter-reset: faq-q; }
.faq-wrap--c .faq__item { counter-increment: faq-q; }
.faq-wrap--c .faq__q { font-size: 17px; padding: 22px 4px; gap: 20px; }
.faq-wrap--c .faq__q::before {
  content: "Q" counter(faq-q);
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--lgm-gold);
  opacity: 0.3;
  min-width: 42px;
  line-height: 1;
}
.faq-wrap--c .faq__item.is-open .faq__q::before { opacity: 0.85; }
.faq-wrap--c .faq__item.is-open .faq__q { color: var(--lgm-navy); }

/* ============================================================
   Booking card intro — the heading above the LGM Bookings widget
   inside the sticky sidebar (.lgm-ae-widget is styled by the plugin).
   ============================================================ */
.svc-book__intro { margin: 0 0 18px; }
.svc-book__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lgm-gold-ink); margin-bottom: 6px;
}
/* The booking sidebar's heading and subtitle were removed in 1.0.3 — the
   widget introduces itself, so only the small "Booking" eyebrow remains. */

/* ============================================================
   Responsive — below 980px the sidebar drops under the content
   and stops sticking; the booking widget reverts to its own layout.
   ============================================================ */
@media (max-width: 979px) {
  .svc-layout { grid-template-columns: 1fr; gap: 34px; }
  .svc-layout--solo { grid-template-columns: 1fr; }
  .svc-aside {
    position: static;
    scroll-margin-top: calc(var(--lgm-prayer-bar-h) + 64px + 12px);
  }
}
@media (max-width: 768px) {
  .pg-hero--c, .pg-hero { min-height: 360px; padding: 60px 20px 70px; }
  .pg-hero__h1 { font-size: 40px; letter-spacing: -0.5px; }
  .svc-intro__h { font-size: 28px; }
  .svc-main__photo { height: 210px; }
}
