/* ==========================================================================
   ZedHome — About-intro section
   Used by public/about.php (page intro) AND public/index.php ("Why choose
   ZedHome" section): both render the same .about-intro markup, so it lives
   here instead of being duplicated. A two-column split: copy, live numbers and
   two calls to action on the left; a photo with two overlapping badges on the
   right.

   Type: the heading, the numbers and the badge titles use the display face
   (Bricolage Grotesque) like every other section heading on the site; all
   other text is body text (Manrope). Nothing is set below weight 400.
   ========================================================================== */

.about-intro {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--color-surface);
}
.about-intro .container--wide { max-width: 1400px; }

.about-intro__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-intro__text { max-width: 560px; }

.about-intro__heading {
  margin-bottom: var(--space-5);
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.about-intro__heading .local-knowledge { color: var(--color-brand-dark); }

.about-intro__lead {
  margin-bottom: var(--space-3);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text);
}
.about-intro__body {
  margin-bottom: var(--space-4);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text-soft);
}
.about-intro__body:last-of-type { margin-bottom: 0; }

/* Live numbers: the count-up itself is driven by data-count-to (components.js). */
.about-intro__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  column-gap: clamp(24px, 3vw, 36px);
  margin-top: var(--space-10);
}
.about-intro__stat {
  padding-right: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--color-border-strong);
}
.about-intro__stat:last-child { padding-right: 0; border-right: 0; }
.about-intro__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-brand-dark);
}
.about-intro__stat-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-soft);
}

.about-intro__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 14px;
  margin-top: var(--space-10);
}
@media (max-width: 420px) {
  .about-intro__actions { grid-auto-flow: row; grid-auto-columns: initial; }
}

.about-intro__visual { position: relative; max-width: 88%; margin-inline: auto; }
.about-intro__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
/* Slide reveal: a solid panel covers the photo, then slides down and off,
   opening onto the image. It reuses the section's [data-reveal]/.is-visible
   scroll trigger (see components.js), so there is no extra JS. */
.about-intro__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-surface);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
[data-reveal].is-visible .about-intro__photo::after { transform: translateY(100%); }

/* Badges: held back until the photo has slid open, then they fade and rise in on top of it. */
.about-intro__badge {
  position: absolute;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-3);
  align-items: center;
  max-width: 260px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-standard) 1.15s, transform 0.6s var(--ease-standard) 1.15s;
}
[data-reveal].is-visible .about-intro__badge { opacity: 1; transform: none; }
.about-intro__badge--top { top: -28px; left: -24px; }
.about-intro__badge--bottom { right: -24px; bottom: -28px; }
.about-intro__badge-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-brand-dark);
  color: #fff;
}
.about-intro__badge-icon svg { width: 15px; height: 15px; }
.about-intro__badge strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-ink);
}
.about-intro__badge p {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--color-text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .about-intro__photo::after { transform: translateY(100%); transition: none; }
  .about-intro__badge { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .about-intro__grid { grid-template-columns: 1fr; gap: 48px; }
  .about-intro__text { max-width: none; }
  .about-intro__visual { order: -1; max-width: 422px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .about-intro { padding-block: 48px; }
  .about-intro__stats { column-gap: 22px; margin-top: var(--space-6); }
  .about-intro__stat { min-width: 0; padding-right: 12px; }
  .about-intro__stat-num { font-size: 1.75rem; }
  .about-intro__stat-label { margin-top: 6px; font-size: var(--fs-xs); }
  .about-intro__actions { margin-top: var(--space-6); }
  .about-intro__badge { max-width: 200px; padding: 10px 12px; column-gap: var(--space-3); }
  .about-intro__badge--top { top: -20px; left: -10px; }
  .about-intro__badge--bottom { right: -10px; bottom: -20px; }
  .about-intro__badge-icon { width: 28px; height: 28px; }
  .about-intro__badge-icon svg { width: 13px; height: 13px; }
  .about-intro__badge strong { font-size: var(--fs-sm); }
  .about-intro__badge p { font-size: var(--fs-2xs); }
}

/* ==========================================================================
   About page (public/about.php only) — .ab-* sections
   The page reads as one story in four beats: why (statement + copy), what
   (four things you can do), trust (how the marketplace is kept honest) and
   a closing invitation to list. Sections are separated by space and
   hairlines rather than boxed cards; numbers are live and modest in size.
   The .about-intro rules above are left untouched for index.php.
   ========================================================================== */

.ab-eyebrow { margin: 0 0 var(--space-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-brand-dark); }
.ab-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.ab-head__title { margin: 0; font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.ab-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 700; color: var(--color-ink); }
.ab-link svg { width: 15px; height: 15px; color: var(--color-brand-dark); transition: transform var(--dur-fast) var(--ease-standard); }
.ab-link:hover { color: var(--color-brand-dark); }
.ab-link:hover svg { transform: translateX(2px); }

/* ---- 1. Why: statement left, copy right ---- */
.ab-intro { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); background: var(--color-surface); }
.ab-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-intro__title { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); line-height: 1.14; letter-spacing: -0.025em; text-wrap: balance; }
.ab-intro__body p { max-width: 58ch; margin: 0 0 var(--space-4); font-size: var(--fs-body); line-height: 1.75; color: var(--color-text); }
.ab-intro__body p:last-child { margin-bottom: 0; }
.ab-intro__body .ab-lead { font-size: var(--fs-lead); font-weight: 600; line-height: 1.6; color: var(--color-ink); }


/* ---- 2. What: four columns divided by hairlines ---- */
.ab-offer { padding-block: clamp(56px, 8vw, 96px); }
.ab-offer__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-border-strong); }
.ab-offer__list li { display: flex; flex-direction: column; padding: var(--space-6) var(--space-6) 0 0; }
.ab-offer__list li + li { padding-left: var(--space-6); border-left: 1px solid var(--color-border); }
.ab-offer__num { font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-soft); font-variant-numeric: tabular-nums; }
.ab-offer__list h3 { margin: var(--space-3) 0 var(--space-2); font-size: 1.125rem; }
.ab-offer__list p { flex: 1; margin: 0 0 var(--space-5); font-size: var(--fs-base); line-height: 1.65; color: var(--color-text); }

/* ---- 3. Trust: photo + list ---- */
.ab-trust { padding-block: clamp(56px, 8vw, 96px); background: var(--color-surface); border-block: 1px solid var(--color-border); }
.ab-trust__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-trust__media { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--color-border); }
.ab-trust__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.ab-trust__list { margin: var(--space-8) 0 0; padding: 0; list-style: none; }
.ab-trust__list li { position: relative; padding: var(--space-5) 0 var(--space-5) var(--space-8); border-top: 1px solid var(--color-border); }
.ab-trust__list li:last-child { border-bottom: 1px solid var(--color-border); }
.ab-trust__list li::before {
  content: "";
  position: absolute; left: 0; top: calc(var(--space-5) + 3px);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-verified-light) no-repeat center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23197A42' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ab-trust__list h3 { margin: 0 0 4px; font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; letter-spacing: 0; }
.ab-trust__list p { margin: 0; font-size: var(--fs-base); line-height: 1.6; color: var(--color-text); }

/* ---- 4. Join: a plain closing band ---- */
.ab-join { padding-block: clamp(48px, 7vw, 88px); }
.ab-join__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6) var(--space-10); align-items: center; }
.ab-join__title { margin: 0 0 var(--space-2); font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); letter-spacing: -0.02em; }
.ab-join__inner p { max-width: 52ch; margin: 0; font-size: var(--fs-body); color: var(--color-text); }
.ab-join__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }

@media (max-width: 1080px) {
  .ab-offer__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-offer__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ab-offer__list li:nth-child(n+3) { margin-top: var(--space-4); border-top: 1px solid var(--color-border); }
  .ab-join__inner { grid-template-columns: minmax(0, 1fr); }
  .ab-join__actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .ab-intro__grid, .ab-trust__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-trust__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .ab-offer__list { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .ab-offer__list li, .ab-offer__list li + li { padding: var(--space-5) 0 0; border-left: 0; border-top: 1px solid var(--color-border); margin-top: 0; }
  .ab-offer__list li:nth-child(n+3) { margin-top: 0; }
  .ab-join__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
}

/* ==========================================================================
   "ZedHome today" live figures band (partials/stats-band.php).
   Shared by the homepage and the About page (both load this file).
   ========================================================================== */
.stats-band { overflow: hidden; }
.stats-band__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--color-border-strong); font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--color-ink); }
.stats-band__title span { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--color-text-soft); }
/* Cells wrap (5 / 3+2 / 2+2+1) so the last row always fills the width.
   Every cell draws its own left and top rule; the band clips the outer ones. */
.stats-band__list { display: flex; flex-wrap: wrap; margin: -1px 0 0 -1px; padding: 0; list-style: none; border-bottom: 1px solid var(--color-border); }
.stats-band__list li { flex: 1 1 0; min-width: 0; border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border); }
.sb-stat { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; color: inherit; transition: background-color 250ms ease; }
.sb-stat__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--color-border); color: var(--color-ink); transition: background-color 250ms, border-color 250ms, color 250ms; }
.sb-stat__icon svg { width: 17px; height: 17px; }
.sb-stat__num { margin-top: 18px; font-family: var(--font-display); font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--color-brand-hover); }
.sb-stat__label { margin-top: 6px; font-size: var(--fs-md); font-weight: 500; color: var(--color-text); }
.sb-stat__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: var(--fs-sm); font-weight: 700; color: var(--color-brand-dark); }
.sb-stat__go svg { width: 14px; height: 14px; transition: transform 250ms ease; }
.sb-stat:hover { background: var(--color-paper); }
.sb-stat:hover .sb-stat__icon { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-brand); }
.sb-stat:hover .sb-stat__go svg { transform: translateX(4px); }
.sb-stat:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
@media (max-width: 980px) {
  .stats-band__list li { flex: 1 1 30%; }
}
@media (max-width: 640px) {
  .stats-band__list li { flex-basis: 45%; }
  .sb-stat { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-stat, .sb-stat__icon, .sb-stat__go svg { transition: none; }
}
.ab-band { margin-top: clamp(40px, 6vw, 72px); }

/* Page order is now Trust, Why, What, Join; backgrounds alternate white/paper. */
.page-about .ab-trust { border-top: 0; }
.page-about .ab-intro { background: var(--color-paper); }
.page-about .ab-offer { background: var(--color-surface); border-block: 1px solid var(--color-border); }

/* Lighter type across the About page (display face at 600, body at 500-600). */
.page-about .page-header h1,
.page-about .ab-intro__title,
.page-about .ab-head__title,
.page-about .ab-join__title,
.page-about .ab-offer__list h3 { font-weight: 600; }
.page-about .ab-trust__list h3 { font-weight: 600; }
.page-about .ab-intro__body .ab-lead { font-weight: 500; }
.page-about .ab-eyebrow,
.page-about .ab-link,
.page-about .ab-offer__num,
.page-about .sb-stat__go { font-weight: 600; }
.page-about .ab-intro__title { letter-spacing: -0.02em; }

/* "Why we exist" on a fixed photo background (clip-path + position: fixed,
   works on iOS too). Copy and the live-figures band switch to light colours. */
.ab-intro--photo { position: relative; isolation: isolate; clip-path: inset(0); background: #161312 !important; color: #fff; --color-focus: #fff; }
.ab-intro__bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ab-intro__bg img { width: 100%; height: 100%; object-fit: cover; }
.ab-intro__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 15, 14, 0) 40%, rgba(18, 15, 14, 0.45) 100%), linear-gradient(90deg, rgba(18, 15, 14, 0.9) 0%, rgba(18, 15, 14, 0.8) 55%, rgba(18, 15, 14, 0.74) 100%); }
.ab-intro--photo .ab-eyebrow { color: var(--color-brand); }
.ab-intro--photo .ab-intro__title { color: #fff; }
.ab-intro--photo .ab-intro__body p { color: rgba(255, 255, 255, 0.75); }
.ab-intro--photo .ab-intro__body .ab-lead { color: #fff; }
.ab-intro--photo .stats-band__title { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.25); }
.ab-intro--photo .stats-band__title span { color: rgba(255, 255, 255, 0.6); }
.ab-intro--photo .stats-band__list { border-bottom-color: rgba(255, 255, 255, 0.14); }
.ab-intro--photo .stats-band__list li { border-color: rgba(255, 255, 255, 0.14); }
.ab-intro--photo .sb-stat__icon { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.ab-intro--photo .sb-stat__num { color: var(--color-brand); }
.ab-intro--photo .sb-stat__label { color: rgba(255, 255, 255, 0.78); }
.ab-intro--photo .sb-stat__go { color: var(--color-brand); }
.ab-intro--photo .sb-stat:hover { background: rgba(255, 255, 255, 0.06); }
.ab-intro--photo .sb-stat:hover .sb-stat__icon { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-ink); }
@media (max-width: 860px) {
  .ab-intro__bg::after { background: rgba(18, 15, 14, 0.84); }
}

/* Scroll animation (About page). Sections fade and rise in via the site-wide
   [data-reveal] hook in components.js; lists cascade with [data-stagger].
   On top of that: the Trust photo opens with a wipe while it settles, copy
   columns follow their neighbour a beat later, and each trust point's tick
   pops in. Everything is static under prefers-reduced-motion. */
.page-about .ab-trust__media[data-reveal] { opacity: 1; transform: none; transition: none; }
/* The wipe is on the image, not the frame: a fully clipped frame would never count as "on screen". */
.page-about .ab-trust__media[data-reveal] img { clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.page-about .ab-trust__media[data-reveal].is-visible img { clip-path: inset(0); transform: none; }
.page-about .ab-trust__copy[data-reveal],
.page-about .ab-intro__body[data-reveal] { transition-delay: 160ms; }
.page-about [data-reveal] { transition-duration: 0.8s; transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.page-about .ab-trust__list li::before { transform: scale(0); transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms; }
.page-about .ab-trust__copy.is-visible .ab-trust__list li::before { transform: none; }
.page-about .ab-offer__list[data-stagger] > li { transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .page-about .ab-trust__media[data-reveal] img { clip-path: none; transform: none; transition: none; }
  .page-about .ab-trust__list li::before { transform: none; transition: none; }
}
.page-about [data-reveal].is-visible .ab-offer__list[data-stagger] > li { transform: none; }
