/* ============================================================================
   Solution Offering detail pages (/offerings/{slug}).
   rf-of- prefix. Dark hero (copy + colored-text meta row + video plate +
   hairline stat floor) / WHAT-YOU-GET as full-bleed alternating zigzag bands
   (white/dark/paper/white; copy opposite a giant red editorial numeral, the
   homepage ZigzagServices treatment, no spine machinery) / dark HOW / paper
   WHY / red CTA band.
   ============================================================================ */

/* ---- HERO ---------------------------------------------------------------- */
.rf-of-hero {
  position: relative;
  background: var(--rf-dark);
  padding: 148px 24px 0;
  overflow: hidden;
}
.rf-of-hero__glow {
  position: absolute; top: -180px; right: -160px;
  width: 700px; height: 700px; border-radius: 999px;
  background: rgba(167, 37, 44, 0.10);
  filter: blur(160px);
  pointer-events: none;
}
.rf-of-hero__inner {
  position: relative; z-index: 1;
  max-width: 1300px; margin-inline: auto;
}
.rf-of-hero__h1 {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.03; letter-spacing: -0.03em;
  color: #fff; margin: 0;
}
.rf-of-hero__tag {
  margin-top: 14px;
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--rf-red-light);
}
/* Offer meta: colored text, not pill chips (pills are banned site-wide;
   audit OFF-02). Tones carry via color only, items separated by middots. */
.rf-of-hero__chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 26px; }
.rf-of-chip { display: inline-block; font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em; }
.rf-of-chip + .rf-of-chip::before { content: "\00B7"; margin-right: 14px; color: rgba(255,255,255,0.3); font-weight: 400; }
.rf-of-chip.is-free { color: #fff; }
.rf-of-chip.is-red { color: var(--rf-red-light); }
.rf-of-chip.is-neutral { color: rgba(255,255,255,0.6); }
.rf-of-hero__sub {
  margin-top: 26px;
  font-size: 18px; line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
}
.rf-of-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 38px; }
.rf-of-hero__related {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: #fff; text-decoration: none;
  padding-block: 11px; /* ~44px tap target (audit OFF-08) */
  transition: color 0.3s var(--rf-ease);
}
.rf-of-hero__related:hover { color: var(--rf-red-light); }
.rf-of-hero__related-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.1);
}
.rf-of-hero__pdf {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  padding-block: 11px; /* ~44px tap target (audit OFF-08) */
  transition: color 0.3s var(--rf-ease);
}
.rf-of-hero__pdf:hover { color: #fff; }

.rf-of-hero__media {
  position: relative;
  margin-top: 40px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
  box-shadow: 0 24px 55px -30px rgba(0,0,0,0.6);
  aspect-ratio: 16 / 9;
}
.rf-of-hero__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.rf-of-hero__media.is-vertical { aspect-ratio: 9 / 16; max-width: 300px; margin-inline: auto; }

.rf-of-hero__stats {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 56px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 40px 0 44px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
.rf-of-stat__num {
  font-weight: 900; font-size: 34px; line-height: 1;
  letter-spacing: -0.02em; color: #fff;
}
.rf-of-stat__num.is-accent { color: var(--rf-red-light); }
.rf-of-stat__label { margin-top: 10px; font-weight: 600; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.5); }

@media (min-width: 1024px) {
  .rf-of-hero { padding: 172px 48px 0; }
  .rf-of-hero__inner.has-media {
    display: grid; grid-template-columns: 1fr minmax(0, 500px);
    gap: 64px; align-items: center;
  }
  .rf-of-hero__media { margin-top: 0; }
  .rf-of-hero__media.is-vertical { margin-inline: auto; } /* centered in the 500px column (audit OFF-05) */
  .rf-of-hero__stats { grid-template-columns: repeat(4, 1fr); gap: 0 24px; margin-top: 64px; }
  .rf-of-stat { padding: 0 24px; }
  .rf-of-stat:first-child { padding-left: 0; }
  .rf-of-stat + .rf-of-stat { border-left: 1px solid rgba(255,255,255,0.1); }
  .rf-of-stat__num { font-size: 42px; }
}

/* ---- WHAT YOU GET, deliverables zigzag ------------------------------------
   The homepage ZigzagServices treatment: full-bleed alternating color bands
   (white / dark / paper / white), copy on one side sliding in with replay,
   the big red editorial numeral as the row's visual on the other. ---------- */
.rf-of-get {
  background: #fff;
  /* The slide-in reveal transforms extended the document 47px past the
     viewport on phones (audit OFF-01); clip horizontal overflow here. */
  overflow-x: clip;
}
.rf-of-get__header { padding: 72px 24px 8px; }
.rf-of-get__header-inner { max-width: 1300px; margin-inline: auto; }
.rf-of-get__h2 {
  font-weight: 800; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--rf-ink); margin: 0; max-width: 900px;
}

.rf-of-zz__row { position: relative; }
.rf-of-zz__band {
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
}
.rf-of-zz__row.is-white .rf-of-zz__band { background: #fff; }
.rf-of-zz__row.is-dark .rf-of-zz__band { background: var(--rf-dark); }
.rf-of-zz__row.is-paper .rf-of-zz__band { background: var(--rf-paper); }
.rf-of-zz__row-inner {
  position: relative;
  max-width: 1300px;
  margin-inline: auto;
  padding: 48px 24px;
}
.rf-of-zz__grid { display: grid; gap: 24px; align-items: center; }
.rf-of-zz__chip {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--rf-red);
}
.rf-of-zz__row.is-dark .rf-of-zz__chip { color: var(--rf-red-light); }
.rf-of-zz__title {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--rf-ink);
}
.rf-of-zz__row.is-dark .rf-of-zz__title { color: #fff; }
.rf-of-zz__desc { font-size: 15px; line-height: 1.65; margin: 0; max-width: 480px; color: var(--rf-gray-3); }
.rf-of-zz__row.is-dark .rf-of-zz__desc { color: rgba(255,255,255,0.55); }
.rf-of-zz__numcol { display: flex; align-items: center; }
.rf-of-zz__num {
  font-weight: 900;
  font-size: 88px;
  line-height: 0.78;
  letter-spacing: -0.05em;
  user-select: none;
  color: var(--rf-red);
}
.rf-of-zz__row.is-dark .rf-of-zz__num { color: var(--rf-red-light); }

@media (max-width: 1023px) {
  /* Stacked: numeral above the copy, home-style left alignment. The numeral
     carries the count, so the text kicker would repeat it (audit OFF-06). */
  .rf-of-zz__numcol { order: -1; }
  .rf-of-zz__num { font-size: 64px; }
  .rf-of-zz__chip { display: none; }
}
@media (min-width: 1024px) {
  .rf-of-get__header { padding: 104px 48px 16px; }
  .rf-of-zz__row-inner { padding: 72px 48px; }
  .rf-of-zz__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .rf-of-zz__title { font-size: 34px; }
  .rf-of-zz__desc { font-size: 16px; }
  .rf-of-zz__num { font-size: 200px; }
  .rf-of-zz__numcol { justify-content: center; }
  /* Row alternation: copy LEFT / numeral RIGHT, flipping each row. */
  .rf-of-zz__row.is-reverse .rf-of-zz__text { order: 2; }
  .rf-of-zz__row.is-reverse .rf-of-zz__numcol { order: 1; }
}

/* ---- HOW IT WORKS -------------------------------------------------------- */
.rf-of-how { background: var(--rf-dark); padding: 80px 24px; }
.rf-of-how__inner { max-width: 1300px; margin-inline: auto; }
.rf-of-how__head { max-width: 820px; }
.rf-of-how__h2 {
  font-weight: 800; font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 48px;
}
.rf-of-how__grid { display: grid; gap: 36px; }
.rf-of-phase { border-top: 2px solid var(--rf-red); padding-top: 22px; }
.rf-of-phase__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rf-of-phase__ph { font-weight: 800; font-size: 15px; color: var(--rf-red-light); }
.rf-of-phase__t { font-weight: 600; font-size: 13px; color: rgba(255,255,255,0.4); }
.rf-of-phase__name {
  margin: 8px 0 0;
  font-weight: 900; font-size: 24px; line-height: 1.15;
  letter-spacing: -0.01em; color: #fff;
}
.rf-of-phase__desc { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.55); }
@media (min-width: 900px) {
  .rf-of-how { padding: 100px 48px; }
  .rf-of-how__grid { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .rf-of-phase__name { font-size: 26px; }
}

/* ---- WHY ARCHITECTNOW ---------------------------------------------------- */
.rf-of-why { background: var(--rf-paper); padding: 80px 24px; }
.rf-of-why__inner { max-width: 1300px; margin-inline: auto; }
.rf-of-why__h2 {
  font-weight: 800; font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--rf-ink); margin: 0 0 44px;
}
.rf-of-why__grid { display: grid; gap: 32px; }
.rf-of-why__item { display: flex; align-items: flex-start; gap: 16px; }
.rf-of-why__dot {
  flex-shrink: 0; margin-top: 8px;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--rf-red);
}
.rf-of-why__t { margin: 0; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--rf-ink); }
.rf-of-why__d { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--rf-gray-4); }
@media (min-width: 900px) {
  .rf-of-why { padding: 100px 48px; }
  .rf-of-why__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
}

/* ---- CTA band ------------------------------------------------------------ */
.rf-of-cta {
  position: relative;
  background: var(--rf-red);
  padding: 72px 24px 80px;
  overflow: hidden;
  text-align: center;
}
.rf-of-cta__deep {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--rf-red-deep));
  pointer-events: none;
}
.rf-of-cta__inner { position: relative; max-width: 900px; margin-inline: auto; }
.rf-of-cta__h2 {
  font-weight: 800; font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; margin: 0;
}
.rf-of-cta__sub { margin: 16px 0 0; font-weight: 500; font-size: 17px; color: rgba(255,255,255,0.75); }
.rf-of-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px;
  background: #fff; color: var(--rf-red);
  font-weight: 700; font-size: 15.5px;
  padding: 15px 32px; border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s var(--rf-ease), box-shadow 0.3s var(--rf-ease);
}
.rf-of-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }

/* ===========================================================================
   MOBILE UX PASS (2026-07-18). Shared offering-detail template (8 slugs).
   Mobile-breakpoint-gated; desktop untouched.
=========================================================================== */
@media (max-width: 767px) {
  /* OFFER-M01: keep the 2x2 stat grid from being blown apart by long word
     stats (columns can shrink below content), and shrink the is-long values. */
  .rf-of-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Sized to hold the longest word stat ('Complimentary', 13 ch) inside the
     ~150px 2x2 column at 360-430 without spilling into the next cell. */
  .rf-of-stat__num.is-long { font-size: min(18px, 4.8vw); line-height: 1.15; letter-spacing: -0.02em; }

  /* OFFER-M02: on a wrapped chip row the middot separator orphaned at the start
     of the wrapped line; separate by gap alone on phones. */
  .rf-of-chip + .rf-of-chip::before { content: none; margin: 0; }
  .rf-of-hero__chips { gap: 4px 18px; }

  /* OFFER-M03: recover ~64px so the primary CTA reaches the fold. */
  .rf-of-hero { padding-top: 112px; }
  .rf-of-hero__chips { margin-top: 18px; }
  .rf-of-hero__sub { margin-top: 18px; }
  .rf-of-hero__ctas { margin-top: 28px; }

  /* OFFER-M04: replace the horizontal +-70px slide (that fought the scroll and
     forced the overflow clip) with a gentle 24px rise on phones. Scoped to the
     hidden state via :not(.is-visible) so the revealed transform:none still
     wins; refresh-reveal.js also disables replay below 768. */
  .rf-of-zz__text[data-reveal="left"]:not(.is-visible),
  .rf-of-zz__text[data-reveal="right"]:not(.is-visible),
  .rf-of-zz__numcol[data-reveal="left"]:not(.is-visible),
  .rf-of-zz__numcol[data-reveal="right"]:not(.is-visible) { transform: translateY(24px); }

  /* OFFER-M05: even the ragged hero/section-head wraps on long offer names. */
  .rf-of-hero__h1,
  .rf-of-hero__tag,
  .rf-of-get__h2 { text-wrap: balance; }
}
