/* ============================================================================
   redesign-pages.css — OPTIONAL "Level 2" layout classes
   Supports the upgraded home.html and clouddba.html drafts in this folder.
   Link AFTER base.css (which provides the design tokens in :root):

     <link rel="stylesheet" href="{{ static('css/base.css') }}" />
     <link rel="stylesheet" href="{{ static('css/redesign-pages.css') }}" />

   Or merge these rules into base.css. All classes are namespaced `rdx-` so
   they never collide with the legacy selectors. These pages opt OUT of the
   legacy left-sidebar #main layout (they set their own full-width main), so
   place them on routes where you want the richer marketing treatment.
   ============================================================================ */

/* full-bleed main override for redesign pages (cancels legacy margin-left:300px) */
main.rdx{ display:block; margin:0; }
.rdx-wrap{ max-width:1160px; margin:0 auto; padding:0 32px; }

/* ---- top-bar chrome for rdx pages ----
   The marketing pages go full-bleed, so base.html's absolute left #sidebar
   nav and corner #logo would overlap the hero. Hide the sidebar and pull the
   logo up into the fixed header so it reads as a conventional top nav bar.
   (:has() targets only pages whose <main> carries the .rdx class.) */
body:has(main.rdx) #sidebar{ display:none; }
body:has(main.rdx) #logo{ position:fixed; top:0; left:0; height:56px; width:auto;
  margin:0; padding:0 0 0 32px; z-index:11; display:flex; align-items:center; }
body:has(main.rdx) #logo img{ width:auto; height:34px; margin:0; }

/* ---- hero (midnight) ---- */
.rdx-hero{ background:var(--pgx-midnight); color:#fff; position:relative; overflow:hidden; }
.rdx-hero::before{ content:""; position:absolute; inset:0;
  background:radial-gradient(1100px 500px at 78% -10%,rgba(27,115,232,.28),transparent 60%); }
.rdx-hero__inner{ position:relative; max-width:1160px; margin:0 auto; padding:104px 32px 92px; }
.rdx-eyebrow{ font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--pgx-blue-tint); }
.rdx-hero h1{ font-size:60px; font-weight:700; letter-spacing:-.022em; line-height:1.03;
  margin:20px 0 0; max-width:16ch; color:#fff; border:none; padding:0; }
.rdx-hero p{ font-size:19px; line-height:1.6; color:#C9D4E4; max-width:56ch; margin:24px 0 0; }
.rdx-hero__cta{ display:flex; gap:12px; margin-top:36px; flex-wrap:wrap; }
.rdx-stats{ display:flex; gap:48px; margin-top:60px; flex-wrap:wrap; }
.rdx-stat__n{ font-size:30px; font-weight:700; letter-spacing:-.01em; }
.rdx-stat__l{ font-size:13px; color:#9FB0C6; margin-top:4px; }
.rdx-rule{ width:1px; background:rgba(255,255,255,.14); }

/* buttons used on dark hero (light variants) */
.rdx-btn{ display:inline-flex; align-items:center; gap:8px; font-family:inherit;
  font-size:15px; font-weight:600; padding:14px 24px; border-radius:var(--radius);
  border:1px solid transparent; cursor:pointer; text-decoration:none; transition:background .15s var(--ease); }
.rdx-btn::before{ content:none; }            /* cancel legacy main a::before arrow */
.rdx-btn--light{ background:#fff; color:var(--pgx-midnight); }
.rdx-btn--light:hover{ background:#E9EFF7; color:var(--pgx-midnight); }
.rdx-btn--outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.28); }
.rdx-btn--outline:hover{ background:rgba(255,255,255,.08); color:#fff; }
.rdx-btn--danger{ background:var(--pgx-danger); color:#fff; }
.rdx-btn--danger:hover{ background:#a82f25; color:#fff; }

/* ---- trust bar ---- */
.rdx-trust{ background:var(--surface); border-bottom:1px solid var(--border); }
.rdx-trust__inner{ max-width:1160px; margin:0 auto; padding:30px 32px; display:flex;
  align-items:center; gap:40px; flex-wrap:wrap; }
.rdx-trust__label{ font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-muted); white-space:nowrap; }

/* ---- section heading ----
   Scope the big heading to the section's OWN heading (direct child) so it
   doesn't bleed into nested legacy components that bring their own h2 — e.g.
   the contact form's section headers or the .resource card titles. */
.rdx-section{ max-width:1160px; margin:0 auto; padding:88px 32px 0; }
.rdx-section > h2{ font-size:38px; font-weight:700; letter-spacing:-.02em; color:var(--text-strong);
  margin:14px 0 0; max-width:20ch; border:none; padding:0; }
.rdx-lead{ font-size:17px; line-height:1.6; color:var(--text-secondary,#5F6B7A); max-width:60ch; margin:16px 0 0; }

/* ---- services grid ---- */
.rdx-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:44px; }
.rdx-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 26px 24px; cursor:pointer; transition:box-shadow .16s,border-color .16s,transform .16s; }
.rdx-card::before{ content:none; }
.rdx-card:hover{ box-shadow:0 8px 28px rgba(22,32,46,.10); border-color:transparent; transform:translateY(-2px); }
.rdx-card__icon{ width:44px; height:44px; border-radius:var(--radius); background:var(--pgx-blue-wash);
  border:1px solid var(--pgx-blue-line); display:flex; align-items:center; justify-content:center;
  color:var(--pgx-blue); font-size:24px; }
.rdx-card h3{ font-size:19px; font-weight:700; letter-spacing:-.01em; color:var(--text-strong); margin:18px 0 0; border:none; }
.rdx-card__tag{ font-size:13px; font-weight:600; color:var(--pgx-blue); margin-top:3px; }
.rdx-card p{ font-size:14px; line-height:1.55; color:var(--text-secondary,#5F6B7A); margin:12px 0 0; }
.rdx-tm{ font-size:11px; color:var(--pgx-grey-400); }

/* ---- approach band ---- */
.rdx-band{ max-width:1160px; margin:64px auto 0; padding:0 32px; }
.rdx-band__inner{ background:var(--pgx-grey-50); border:1px solid var(--border); border-radius:6px;
  padding:56px 48px; display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.rdx-band__inner h2{ grid-column:1/-1; max-width:34ch; font-size:30px; font-weight:700;
  letter-spacing:-.02em; color:var(--text-strong); margin:0; border:none; }
.rdx-prop__icon{ color:var(--pgx-blue); font-size:26px; }
.rdx-prop h4{ font-size:17px; font-weight:700; color:var(--text-strong); margin:14px 0 6px; }
.rdx-prop p{ font-size:14px; line-height:1.55; color:var(--text-secondary,#5F6B7A); margin:0; }

/* ---- CTA band ---- */
.rdx-cta{ max-width:1160px; margin:64px auto 96px; padding:0 32px; }
.rdx-cta__inner{ background:var(--pgx-midnight); border-radius:8px; padding:64px 56px; display:flex;
  align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; position:relative; overflow:hidden; }
.rdx-cta__inner::before{ content:""; position:absolute; inset:0;
  background:radial-gradient(700px 300px at 90% 120%,rgba(27,115,232,.30),transparent 60%); }
.rdx-cta h2{ font-size:34px; font-weight:700; letter-spacing:-.02em; color:#fff; margin:0; max-width:20ch; border:none; }
.rdx-cta p{ font-size:16px; color:#C9D4E4; margin:12px 0 0; max-width:48ch; }
.rdx-cta__btns{ position:relative; display:flex; gap:12px; flex-wrap:wrap; }

/* ---- service detail ---- */
.rdx-detail-hero{ background:var(--surface); border-bottom:1px solid var(--border); }
.rdx-detail-hero__inner{ max-width:1160px; margin:0 auto; padding:28px 32px 56px; }
.rdx-crumbs{ font-size:13px; color:var(--text-muted); }
.rdx-crumbs a::before{ content:none; }   /* breadcrumbs opt out of the legacy "→ " link prefix */
.rdx-detail-grid{ display:grid; grid-template-columns:1fr 360px; gap:56px; margin-top:28px; align-items:start; }
.rdx-pill{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase; color:var(--pgx-blue); background:var(--pgx-blue-wash);
  border:1px solid var(--pgx-blue-line); border-radius:999px; padding:6px 12px; }
.rdx-detail-grid h1{ font-size:48px; font-weight:700; letter-spacing:-.022em; color:var(--text-strong);
  margin:18px 0 0; border:none; padding:0; }
.rdx-detail-grid > div:first-child p{ font-size:19px; line-height:1.6; color:var(--text-secondary,#5F6B7A); max-width:54ch; margin:18px 0 0; }
.rdx-aside{ background:var(--pgx-midnight); border-radius:6px; padding:30px; color:#fff; }
.rdx-aside__label{ font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--pgx-blue-tint); }
.rdx-aside__row{ display:flex; gap:12px; align-items:flex-start; }
.rdx-aside__row i{ font-size:20px; color:var(--pgx-blue-tint); }
.rdx-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.rdx-step__n{ font-size:13px; font-weight:700; color:var(--pgx-blue); }
.rdx-step h4{ font-size:16px; font-weight:700; color:var(--text-strong); margin:8px 0 6px; }
.rdx-step p{ font-size:13.5px; line-height:1.5; color:var(--text-secondary,#5F6B7A); margin:0; }

/* ---- "latest from PGX" news rail ----
   Three columns reusing the legacy news/events/commits markup. The column
   typography mirrors base.css's #sidebar-right so the included partials
   (event_list.html, commit_list.html) and .news-post/.presentation blocks
   render consistently without needing the legacy id. */
.rdx-news{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin-top:32px; align-items:start; }
.rdx-news__col{ font-size:10pt; font-weight:300; }
.rdx-news__col h2{ font-size:16pt; font-weight:600; font-style:normal; color:var(--text-strong);
  border-bottom:1px solid var(--border); margin:3px 0 10px; padding-bottom:4px; }
.rdx-news__col h3{ font-size:11pt; font-weight:600; font-style:normal; color:var(--text-strong);
  border:none; margin-top:0; }

@media (max-width:900px){
  .rdx-grid-3,.rdx-band__inner,.rdx-detail-grid,.rdx-steps,.rdx-news{ grid-template-columns:1fr; }
  .rdx-hero h1{ font-size:44px; }
}
