/* ═══════════════════════════════════════════════════════════════════════════════════════
   rv-home.css: index.php only, the "Why GRIP" part of the home page (from #why_grip down
   to the founder quote). Loaded by index.php through $css2 (partials/head.php), after
   rv-header.css. The hero, header and footer are not styled here.

   House palette (as assets/css/rv-platform.css): maroon #710202, navy #1A2E4A, teal #006D77,
   blue #2E5E8C, purple #5B2A86, amber #D98E04, green #2E7D32, each with a light tint.
   Accents are set with .rh-a-<name>. Each block has its own layout and the backgrounds
   alternate (light, white, tint, navy). Plain HTML/CSS: no JS, no chart library, no CDN.
   Contrast: accent text (--ink) on white or on the tint, white text only on the dark
   accents; amber is used as a fill with dark text (#4a3000) only.
   ═══════════════════════════════════════════════════════════════════════════════════════ */

.rh {
  --navy: #1A2E4A; --maroon: #710202; --teal: #006D77; --blue: #2E5E8C;
  --purple: #5B2A86; --amber: #D98E04; --green: #2E7D32;
  --text: #2C2C2A; --mut: #5b6472; --line: #e3e7ee;
  color: var(--text);
}
.rh *, .rh *::before, .rh *::after { box-sizing: border-box; }
/* index.php gives every .container a frosted card and every ul a 40px line height: undo both here */
.page-wrapper .rh .container { background: transparent !important; backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important; border-radius: 0 !important; }
.rh ul, .rh ol { list-style: none; margin: 0; padding: 0; line-height: 1.5; }

.rh-a-navy   { --a: #1A2E4A; --t: #EEF2F7; --t2: #d9e1ec; --ink: #1A2E4A; }
.rh-a-blue   { --a: #2E5E8C; --t: #EAF1F8; --t2: #cfdff0; --ink: #2E5E8C; }
.rh-a-maroon { --a: #710202; --t: #F8ECEC; --t2: #efd2d2; --ink: #710202; }
.rh-a-green  { --a: #2E7D32; --t: #EBF5EB; --t2: #cfe7d0; --ink: #256628; }
.rh-a-purple { --a: #5B2A86; --t: #F3EDF8; --t2: #e0d2ee; --ink: #5B2A86; }
.rh-a-teal   { --a: #006D77; --t: #E6F3F4; --t2: #c6e3e6; --ink: #005a62; }
.rh-a-amber  { --a: #D98E04; --t: #FDF4E3; --t2: #f8e2b5; --ink: #7A4F00; }

/* ── Blocks (common) ─────────────────────────────────────────────────── */
.rh-sec { padding: 60px 0; scroll-margin-top: 130px; position: relative; }
.rh-bg-light { background: #f4f6fa; }
.rh-bg-white { background: #fff; }
.rh-bg-tint  { background: linear-gradient(135deg, #EEF2F7 0%, #E6F3F4 100%); }
.rh-bg-navy  { background: linear-gradient(135deg, #1A2E4A 0%, #24406b 100%); color: #fff; }
.rh-head { text-align: center; max-width: 860px; margin: 0 auto 30px; }
.rh-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--maroon); margin: 0 0 10px; }
.rh-kicker::before, .rh-kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.rh-sec h2 { font-family: Georgia, serif; font-size: clamp(25px, 3vw, 36px); font-weight: 700; line-height: 1.22; color: var(--text);
  margin: 0 0 12px; letter-spacing: -.01em; }
.rh-sec h2 em { font-style: normal; color: var(--maroon); }
.rh-lead { font-size: 16.5px; line-height: 1.65; color: #444; margin: 0 auto; max-width: 760px; }
.rh-bg-navy h2, .rh-bg-navy h2 em { color: #fff; }
.rh-bg-navy .rh-kicker { color: #f0c0c0; }
.rh-bg-navy .rh-lead { color: rgba(255,255,255,.85); }
.rh-g { font-family: Georgia, serif; font-weight: 700; color: var(--maroon); }
.rh-bg-navy .rh-g { color: #f0c0c0; }

/* ── 0. Why GRIP band ────────────────────────────────────────────────── */
.rh-band { background: linear-gradient(135deg, #1A2E4A 0%, #24406b 70%, #3a1020 100%); padding: 46px 0 38px; text-align: center;
  border-bottom: 4px solid var(--maroon); scroll-margin-top: 130px; }
.rh-band h2 { font-family: Georgia, serif; font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: #fff; margin: 0 0 10px; }
.rh-band h2 strong { color: #f0c0c0; font-family: Georgia, serif; }
.rh-band p { color: rgba(255,255,255,.86); font-size: 16.5px; line-height: 1.6; max-width: 780px; margin: 0 auto 22px; }
.rh-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rh-jump a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #fff; text-decoration: none; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.30); transition: background .15s; }
.rh-jump a:hover { background: rgba(255,255,255,.22); color: #fff; }
.rh-jump a i { color: #f0c0c0; font-size: 12px; }

/* ── 1. Failures: timeline + diagnosis + video ───────────────────────── */
.rh-tl { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; margin: 6px 0 10px !important; }
.rh-tl::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #efd2d2, #710202 45%, #710202 55%, #efd2d2); }
.rh-tl li { text-align: center; position: relative; padding: 0 4px; }
.rh-tl li b { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%;
  background: #fff; border: 3px solid var(--maroon); color: var(--maroon); font-size: 15px; font-weight: 800; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px #f4f6fa; }
.rh-tl li span { display: block; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.rh-tl-cap { text-align: center; font-size: 14px; color: var(--mut); font-style: italic; margin: 8px 0 30px; }
.rh-fail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; }
.rh-diag { background: var(--maroon); color: #fff; border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 16px 36px rgba(113,2,2,.25); }
.rh-diag h3 { font-family: Georgia, serif; font-size: 22px; color: #fff; margin: 0 0 14px; }
.rh-diag li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.92); }
.rh-diag li i { color: #f0c0c0; margin-top: 4px; flex-shrink: 0; }
.rh-diag li b { color: #fff; }
.rh-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(16,30,54,.18); background: #1A2E4A; }
.rh-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rh-video-cap { font-size: 12.5px; color: var(--mut); text-align: center; margin: 8px 0 0; }

/* ── 2. Pathways: 2 × 4 icon grid ────────────────────────────────────── */
.rh-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rh-path { background: var(--t); border: 1px solid var(--t2); border-top: 4px solid var(--a); border-radius: 14px; padding: 18px 16px; }
.rh-path i { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--a);
  color: #fff; font-size: 17px; margin-bottom: 12px; }
.rh-a-amber.rh-path i { color: #4a3000; }
.rh-path h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0 0 4px; line-height: 1.3; }
.rh-path p { font-size: 13.5px; line-height: 1.45; color: var(--mut); margin: 0; }

/* ── 3. Closing the gaps: gap → GRIP answer ──────────────────────────── */
.rh-gaps { max-width: 1040px; margin: 0 auto; }
.rh-gaps-hd, .rh-gap { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.35fr); align-items: stretch; }
.rh-gaps-hd { margin-bottom: 8px; }
.rh-gaps-hd span { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 0 16px; }
.rh-gaps-hd span:first-child { color: var(--maroon); }
.rh-gaps-hd span:last-child { color: #005a62; grid-column: 3; }
.rh-gap { margin-bottom: 10px; }
.rh-gap > div { border-radius: 12px; padding: 13px 16px; font-size: 14.5px; line-height: 1.45; display: flex; align-items: center; gap: 12px; }
.rh-gap > div:first-child { background: #fff; border: 1px solid #efd2d2; border-left: 5px solid var(--maroon); color: var(--text); font-weight: 700; }
.rh-gap > div:first-child i { color: var(--maroon); }
.rh-gap > div:last-child { background: #006D77; color: #fff; box-shadow: 0 8px 18px rgba(0,109,119,.18); }
.rh-gap > div:last-child i { color: #bfe6e9; }
.rh-gap > div i { flex-shrink: 0; font-size: 15px; }
.rh-gap .rh-to { display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 20px; font-weight: 800; }
.rh-pos { margin: 26px auto 0; max-width: 1040px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(16,30,54,.07); }
.rh-pos h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.rh-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rh-chips li { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #EEF2F7; color: var(--navy); border: 1px solid #d9e1ec; }
.rh-note { font-size: 12.5px; line-height: 1.55; color: var(--mut); margin: 12px 0 0; }

/* ── 4. Seat ladder: Board to control owner, supervisors beside ──────── */
.rh-seats { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: stretch; }
.rh-ladder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rh-tier { display: flex; gap: 8px; justify-content: center; }
.rh-tier:nth-child(1) { width: 54%; } .rh-tier:nth-child(2) { width: 66%; } .rh-tier:nth-child(3) { width: 86%; }
.rh-tier:nth-child(4) { width: 93%; } .rh-tier:nth-child(5) { width: 100%; }
.rh-seat { flex: 1 1 0; min-width: 0; background: var(--a); color: #fff; border-radius: 12px; padding: 13px 16px;
  display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 8px 18px rgba(16,30,54,.12); }
.rh-seat > i { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex;
  align-items: center; justify-content: center; font-size: 14px; }
.rh-seat h3 { font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 2px; line-height: 1.25; }
.rh-seat p { font-size: 13px; line-height: 1.42; color: rgba(255,255,255,.88); margin: 0; }
.rh-seat.rh-a-amber { background: #FDF4E3; border: 2px solid var(--amber); color: #4a3000; box-shadow: none; }
.rh-seat.rh-a-amber > i { background: var(--amber); color: #4a3000; }
.rh-seat.rh-a-amber h3 { color: #4a3000; } .rh-seat.rh-a-amber p { color: #5c3d00; }
.rh-sup { border: 2px dashed #8ba2bf; border-radius: 16px; background: #EEF2F7; padding: 20px 18px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.rh-sup > i { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.rh-sup .rh-tag { align-self: center; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: var(--navy); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.rh-sup h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.rh-sup p { font-size: 13.5px; line-height: 1.5; color: #3d4a5c; margin: 0; }
.rh-more { text-align: center; margin: 22px 0 0; }
.rh-more a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--maroon); text-decoration: none;
  padding: 9px 18px; border-radius: 999px; border: 2px solid #efd2d2; background: #fff; }
.rh-more a:hover { border-color: var(--maroon); color: var(--maroon); }

/* ── 5. Pillars: three icon badges on navy ───────────────────────────── */
.rh-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1080px; margin: 0 auto; }
.rh-pillar { text-align: center; padding: 6px 10px; }
.rh-pillar > i { display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--a); color: #fff; font-size: 32px; box-shadow: 0 0 0 7px rgba(255,255,255,.10), 0 0 0 14px rgba(255,255,255,.05); }
.rh-pillar.rh-a-amber > i { color: #4a3000; }
.rh-pillar.rh-a-teal > i { background: #0a8a96; }
.rh-pillar h3 { font-family: Georgia, serif; font-size: 21px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.rh-pillar p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.84); margin: 0 auto; max-width: 320px; }

/* ── 6. Ten themes: colour-coded tiles (theme colours of grip_platform.php) ── */
.rh-themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rh-theme { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--t2); border-top: 5px solid var(--a); border-radius: 14px;
  padding: 16px 15px 14px; text-decoration: none; color: var(--text); box-shadow: 0 6px 16px rgba(16,30,54,.06); transition: transform .15s, box-shadow .15s; }
.rh-theme:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16,30,54,.13); color: var(--text); }
.rh-theme .rh-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--t); border: 1px solid var(--t2); font-size: 20px; line-height: 1; margin-bottom: 10px; }
.rh-theme h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 4px; line-height: 1.3; }
.rh-theme small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--mut); margin-bottom: 10px; }
.rh-theme .rh-go { margin-top: auto; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.rh-theme.rh-key { background: linear-gradient(135deg, #710202 0%, #4d0101 100%); border-color: #710202; box-shadow: 0 12px 28px rgba(113,2,2,.28); }
.rh-theme.rh-key h3, .rh-theme.rh-key .rh-go { color: #fff; }
.rh-theme.rh-key small { color: rgba(255,255,255,.82); }
.rh-theme.rh-key .rh-ico { background: #fff; border-color: #fff; }
.rh-keytag { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #4d0101;
  background: #F8E2B5; padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; }

/* ── 7. FAQ ──────────────────────────────────────────────────────────── */
.rh-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; max-width: 1080px; margin: 0 auto; }
.rh-faq details { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; background: #f8fafc; }
.rh-faq details[open] { background: #fff; border-left-color: var(--maroon); }
.rh-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; color: var(--navy); font-size: 15px; }
.rh-faq summary:hover { color: var(--maroon); }
.rh-faq details p { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.6; color: #475569; }

/* ── 8. Founder quote ────────────────────────────────────────────────── */
.rh-quote { background: #1A2E4A; padding: 42px 0; }
.rh-quote figure { margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.rh-quote .rh-qm { font-family: Georgia, serif; font-size: 78px; line-height: .8; color: #c0392b; opacity: .65; grid-row: span 2; }
.rh-quote blockquote { margin: 0; font-size: 18px; font-style: italic; line-height: 1.7; color: rgba(255,255,255,.90); }
.rh-quote blockquote strong { color: #f0c0c0; font-family: Georgia, serif; font-style: normal; }
.rh-quote figcaption { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.66); line-height: 1.6; }
.rh-quote figcaption b { color: #f0c0c0; font-size: 14.5px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .rh-themes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .rh-fail { grid-template-columns: 1fr; }
  .rh-paths { grid-template-columns: repeat(2, 1fr); }
  .rh-seats { grid-template-columns: 1fr; }
  .rh-sup { order: -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 4px 12px; }
  .rh-sup > i { margin: 0; } .rh-sup .rh-tag { margin: 0; } .rh-sup h3 { margin: 0; } .rh-sup p { flex-basis: 100%; }
  .rh-faq { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .rh-sec { padding: 42px 0; }
  .rh-band { padding: 34px 0 28px; }
  .rh-lead, .rh-band p { font-size: 15.5px; }
  .rh-tl { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .rh-tl::before { display: none; }
  .rh-tl li span { font-size: 13.5px; }
  .rh-tier { width: 100% !important; flex-direction: column; }
  .rh-ladder { gap: 7px; }
  .rh-gaps-hd { display: none; }
  .rh-gap { grid-template-columns: 1fr; gap: 0; margin-bottom: 14px; }
  .rh-gap > div:first-child { border-radius: 12px 12px 0 0; }
  .rh-gap > div:last-child { border-radius: 0 0 12px 12px; }
  .rh-gap .rh-to { display: none; }
  .rh-pillars { grid-template-columns: 1fr; gap: 28px; }
  .rh-themes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rh-theme { padding: 13px 12px 12px; }
  .rh-quote figure { grid-template-columns: 1fr; }
  .rh-quote .rh-qm { grid-row: auto; font-size: 60px; }
  .rh-quote blockquote { font-size: 16px; }
}
@media (max-width: 480px) {
  .rh-paths { grid-template-columns: 1fr; gap: 10px; }
  .rh-path { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px; }
  .rh-path i { grid-row: span 2; margin: 0; }
  .rh-tl { grid-template-columns: repeat(2, 1fr); }
  .rh-theme h3 { font-size: 14px; }
  .rh-theme small { font-size: 12px; }
}
