/* ==========================================================================
   ElevatteLife — services.css
   Our Services page only (loaded by services/index.php, scoped under
   body.page-services). Brand palette only: white, mint, deep green, small
   orange accent. The hero is the home hero component (home.css .hm-hero);
   this file adds the image frame, the alternating service rows and the
   "Not sure which one to choose?" chooser.
   ========================================================================== */

/* --------------------------------------------------- Spacing system ------ */
/* Section padding: desktop 96 / tablet 72 / mobile 56. */
body.page-services {
  --section-y: 96px;
}

@media (max-width: 1024px) {
  body.page-services { --section-y: 72px; }
}

@media (max-width: 640px) {
  body.page-services { --section-y: 56px; }
}

/* ----------------------------------------------------------- Hero -------- */
.page-services .sv-hero {
  --hm-header-h: 97px;   /* this page's header is taller than the home one */
  min-height: min(calc(100svh - var(--hm-header-h)), 640px);
}

.page-services .sv-hero__crumb {
  margin-bottom: 18px;
}

/* 4:5 image, max 440px wide, shrinks on short windows to stay above the fold. */
.page-services .sv-hero__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 440px, calc((100svh - var(--hm-header-h, 97px) - 110px) * 4 / 5));
  min-width: 260px;
}

/* Rounded frame, the same treatment as the About hero and the service rows. */
.page-services .sv-hero__img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 30px 60px -34px rgba(24, 32, 27, 0.35);
}

.page-services .sv-hero__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Numerology · Vastu · Holistic": the home name card with a green icon. */
.page-services .sv-hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
}

.page-services .sv-hero__badge::before {
  content: none;
}

.page-services .sv-hero__badge-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand-mid);
}

.page-services .sv-hero__badge-icon svg {
  width: 18px;
  height: 18px;
}

.page-services .sv-hero__badge-text {
  display: grid;
  gap: 2px;
}

.page-services .sv-hero__badge .hm-hero__card-role {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------------------------------------------------- Services list -------- */
.page-services .sv-list {
  background: var(--surface);
}

.page-services .sv-rows {
  margin-top: 40px;
}

/* Two columns: content + matching image, alternating sides. */
.page-services .sv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: 64px;
  padding-block: 64px;
  border-top: 1px solid var(--line-brand);
}

.page-services .sv-row:last-child {
  border-bottom: 1px solid var(--line-brand);
}

.page-services .sv-row--flip {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}

.page-services .sv-row--flip .sv-row__media {
  order: -1;
}

.page-services .sv-row__body {
  max-width: 560px;
}

.page-services .sv-row--flip .sv-row__body {
  justify-self: end;
}

.page-services .sv-row__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--brand);   /* all four numbers deep green */
}

.page-services .sv-row__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.page-services .sv-row__tag svg {
  width: 15px;
  height: 15px;
}

.page-services .sv-row__title {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  color: var(--brand);
}

.page-services .sv-row__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.page-services .sv-row__list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-services .sv-row__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
}

.page-services .sv-row__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand-mid);
}

.page-services .sv-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.page-services .sv-row__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 380px;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 50px -30px rgba(24, 32, 27, 0.3);
}

/* 4:5 capped at 380px tall: keep the frame's width in proportion. */
.page-services .sv-row .sv-row__media {
  width: min(100%, 304px);
  justify-self: center;
}

.page-services .sv-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll motion: the image slides in from its own side, text fades up. */
.reveal-init .page-services .sv-row__media[data-reveal] {
  transform: translateX(30px);
}

.reveal-init .page-services .sv-row--flip .sv-row__media[data-reveal] {
  transform: translateX(-30px);
}

.reveal-init .page-services .sv-row__media[data-reveal].is-visible {
  transform: none;
}

/* ------------------------------------------ Which one is right for me? --- */
.page-services .sv-chooser {
  background: var(--bg);
}

.page-services .sv-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.page-services .sv-choices > li {
  display: flex;
}

.page-services .sv-choice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line-brand);
  border-radius: 20px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.page-services .sv-choice:hover,
.page-services .sv-choice:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(14, 124, 64, 0.35);
  box-shadow: 0 4px 10px rgba(24, 32, 27, 0.05), 0 26px 50px -24px rgba(24, 32, 27, 0.3);
}

.page-services .sv-choice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--brand);
}

.page-services .sv-choice__icon svg {
  width: 20px;
  height: 20px;
}

.page-services .sv-choice__need {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--brand);
}

.page-services .sv-choice__svc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--brand-mid);
}

.page-services .sv-choice__svc svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.page-services .sv-choice:hover .sv-choice__svc svg {
  transform: translateX(3px);
}

/* -------------------------------------------------------- Responsive ----- */
@media (max-width: 860px) {
  .page-services .sv-hero {
    min-height: 0;
  }

  .page-services .sv-hero__crumb { order: 0; }

  .page-services .sv-hero .hm-hero__title {
    font-size: clamp(28px, 8.2vw, 36px);
  }

  /* Image max ~280px tall (224 x 280 at 4:5), centred. */
  .page-services .sv-hero__frame {
    width: 224px;
    min-width: 0;
    max-width: 100%;
  }

  /* Desktop line breaks (home type size fits 3 clean lines); natural wrap here. */
  .page-services .sv-br {
    display: none;
  }

  /* Wider than the image so it overlaps both edges, but inside the screen. */
  .page-services .sv-hero__badge {
    left: -20px;
    right: -20px;
    bottom: -28px;   /* overlaps the image's bottom edge, like the home card */
    padding: 10px 14px 10px 10px;
    white-space: normal;
  }

  .page-services .sv-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Rows: image on top (max ~220px tall), then content; no alternating. */
  .page-services .sv-row,
  .page-services .sv-row--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 48px;
  }

  .page-services .sv-row .sv-row__media,
  .page-services .sv-row--flip .sv-row__media {
    order: -1;
    width: 100%;
    aspect-ratio: auto;
    height: 220px;
    max-height: none;
  }

  .page-services .sv-row--flip .sv-row__body {
    justify-self: stretch;
  }

  .page-services .sv-row__body {
    max-width: none;
  }

  .reveal-init .page-services .sv-row__media[data-reveal],
  .reveal-init .page-services .sv-row--flip .sv-row__media[data-reveal] {
    transform: translateY(16px);
  }

  .page-services .sv-choices {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .page-services .sv-choice {
    padding: 22px;
  }
}

/* Rows are text-only (images removed): one column, same spacing, dividers
   and typography; the content keeps its readable width. */
.page-services .sv-row,
.page-services .sv-row--flip {
  grid-template-columns: minmax(0, 1fr);
}

.page-services .sv-row--flip .sv-row__body {
  justify-self: start;
}

.page-services .sv-row__body {
  max-width: 720px;
}
