/* ==========================================================================
   ElevatteLife — report.css
   Reports page only (report/index.php), scoped under body.page-report.
   Visual layer only; copy is unchanged. Brand palette only: white, mint,
   deep green, small orange accent (no beige, peach, gold or mustard).
   The hero is the home hero component (home.css .hm-hero).
   ========================================================================== */

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

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

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

/* Bands: white, mint, white, then the deep-green CTA. */
.page-report .rp-intro,
.page-report .rp-faq {
  background: var(--surface);
}

.page-report .rp-get {
  background: var(--bg);
}

/* ----------------------------------------------------------- Hero -------- */
.page-report .rp-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-report .rp-hero__crumb {
  margin-bottom: 18px;
}

/* Trust line: dot-separated, one line on desktop. */
.page-report .rp-hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.page-report .rp-hero__note svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--brand-mid);
}

/* 4:5 image, max 440px wide, shrinks on short windows to stay above the fold. */
.page-report .rp-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, Services and Consultation heroes. */
.page-report .rp-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-report .rp-hero__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Analysed from / Your floor plan": the home name card with a green icon. */
.page-report .rp-hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
}

.page-report .rp-hero__badge::before {
  content: none;
}

.page-report .rp-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-report .rp-hero__badge-icon svg {
  width: 18px;
  height: 18px;
}

.page-report .rp-hero__badge-text {
  display: grid;
  gap: 2px;
}

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

/* -------------------------------------------------- Feature cards -------- */
/* Nine identical cards: equal-height rows, one border, no resting shadow. */
.page-report .rp-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.page-report .rp-feature {
  padding: 28px 26px;
  border: 1px solid var(--line-brand);
  border-radius: 20px;
  background: var(--surface);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), opacity 0.7s var(--ease-out);
}

/* Shadow + slight lift on hover only. */
.page-report .rp-feature:hover {
  border-color: rgba(14, 124, 64, 0.3);
  box-shadow: 0 4px 10px rgba(24, 32, 27, 0.05), 0 24px 46px -24px rgba(24, 32, 27, 0.28);
}

.page-report .rp-feature.is-visible:hover,
html:not(.reveal-init) .page-report .rp-feature:hover {
  transform: translateY(-4px);
}

.page-report .rp-feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
}

.page-report .rp-feature__icon svg {
  width: 20px;
  height: 20px;
}

.page-report .rp-feature__title {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--brand);
}

.page-report .rp-feature__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------- What you get + How it works (mint) ------ */
.page-report .rp-get__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

/* Both headings: same eyebrow, size and top position. */
.page-report .rp-get__title {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.25;
  color: var(--brand);
}

/* 15 deliverables in two columns. */
.page-report .rp-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-report .rp-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.page-report .rp-checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand-mid);
}

/* How it works: vertical numbered timeline; the line draws on reveal. */
.page-report .rp-timeline {
  --num: 36px;
  --gap: 22px;
  position: relative;
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-report .rp-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--num) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* One connector per step, from its circle down to the next circle. */
.page-report .rp-timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--num);
  bottom: calc(var(--gap) * -1);
  left: calc(var(--num) / 2 - 1px);
  width: 2px;
  background: var(--brand-mid);
  opacity: 0.35;
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 500ms var(--ease-out);
}

.page-report .rp-timeline.is-visible .rp-timeline__step::after,
html:not(.reveal-init) .page-report .rp-timeline__step::after {
  transform: scaleY(1);
}

.page-report .rp-timeline__step:nth-child(1)::after { transition-delay: 300ms; }
.page-report .rp-timeline__step:nth-child(2)::after { transition-delay: 550ms; }
.page-report .rp-timeline__step:nth-child(3)::after { transition-delay: 800ms; }
.page-report .rp-timeline__step:nth-child(4)::after { transition-delay: 1050ms; }
.page-report .rp-timeline__step:nth-child(5)::after { transition-delay: 1300ms; }

.page-report .rp-timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--num);
  height: var(--num);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
}

.page-report .rp-timeline p {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.page-report .rp-timeline strong {
  color: var(--brand);
}

/* Notes: full width, white card, green left border (same style for both). */
.page-report .rp-notes {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.page-report .rp-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid var(--line-brand);
  border-left: 4px solid var(--brand-mid);
  border-radius: 14px;
  background: var(--surface);
}

.page-report .rp-note p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.page-report .rp-note strong {
  color: var(--brand);
}

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

.page-report .rp-note__icon svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------- FAQ ----- */
/* Every question deep green; the open one shows "−" (no colour change). */
.page-report .rp-faq .acc-trigger,
.page-report .rp-faq .acc-trigger:hover,
.page-report .rp-faq .acc-trigger[aria-expanded="true"] {
  color: var(--brand);
}

.page-report .rp-faq .acc-collapse {
  transition-duration: 350ms;
}

/* -------------------------------------------------------- Responsive ----- */
@media (max-width: 1230px) {
  /* Trust line (~600px) may wrap once the text column is narrower than that. */
  .page-report .rp-hero__note {
    white-space: normal;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .page-report .rp-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-report .rp-get__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .page-report .rp-hero {
    min-height: 0;
  }

  .page-report .rp-hero__crumb { order: 0; }
  .page-report .rp-hero__note { order: 6; }

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

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

  .page-report .rp-hero__badge {
    left: -20px;
    right: auto;
    bottom: -24px;   /* overlaps the image's bottom edge, like the home card */
    padding: 10px 14px 10px 10px;
    white-space: nowrap;
  }

  .page-report .rp-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .page-report .rp-features {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 14px;
  }

  .page-report .rp-feature {
    padding: 22px 20px;
  }

  .page-report .rp-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-report .rp-note {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-report .rp-timeline__step::after {
    transform: none;
    transition: none;
  }
}
