/* ==========================================================
   NOMAD ENERGY AMERICA — Subpage layouts
   Built on the design tokens (ds.css) and shared chrome (home.css).
   Covers: page hero, content sections, product blocks, spec grids,
   feature lists, data panels, stat bands, card grids, capability
   matrix, timeline, quote band, FAQ, contact, CTA band.
   ========================================================== */

/* ---------- Shared section scaffolding ---------- */
.pg-section { padding: var(--section-y) 0; }
.pg-section--tight { padding: var(--section-y-tight) 0; }
.pg-section--bone { background: var(--bg-subtle); }
.pg-section--navy { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.pg-section--blue { background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.pg-grid-overlay::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid-overlay); background-size: 80px 80px; opacity: .5; }
.pg-h2 { font-size: var(--type-h2); color: var(--text-strong); margin: 14px 0 0; }
.pg-h2.pg-on-dark { color: var(--text-inverse); }
.pg-red { color: var(--accent-red); }
.pg-lead { font-size: 19px; color: var(--text-body); line-height: 1.6; }
.pg-section--navy .pg-lead, .pg-section--blue .pg-lead { color: rgba(255,255,255,.85); }
.pg-prose p { color: var(--text-body); margin-bottom: 16px; font-size: 16px; }
.pg-section--navy .pg-prose p, .pg-section--blue .pg-prose p { color: rgba(255,255,255,.82); }
.pg-head { max-width: 760px; margin-bottom: 52px; }
.pg-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.pg-head--center .nea-eyebrow { justify-content: center; }
.pg-head .nea-eyebrow { margin-bottom: 16px; }
.pg-head p { margin-top: 18px; color: var(--text-body); font-size: 17px; }
.pg-section--navy .pg-head p, .pg-section--blue .pg-head p { color: rgba(255,255,255,.8); }
.pg-link { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent-red); transition: gap var(--dur) var(--ease); }
.pg-link:hover { gap: 12px; }

/* ---------- PAGE HERO ---------- */
.pg-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  padding: 96px 0 84px; }
.pg-hero__bg { position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 18% 25%, rgba(30,71,184,.45), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(228,0,43,.38), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%); }
.pg-hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: var(--grid-overlay); background-size: var(--grid-size);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000 10%, transparent 80%); }
.pg-hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center 35%; }
.pg-hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(3,7,15,.95) 0%, rgba(6,18,42,.82) 42%, rgba(6,18,42,.46) 100%); }
.pg-hero__inner { position: relative; z-index: 2; max-width: 880px; }
.pg-crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-bottom: 26px; }
.pg-crumbs a { color: var(--red-400); }
.pg-crumbs .sep { opacity: .4; }
.pg-hero__inner .nea-tag { margin-bottom: 22px; }
.pg-hero__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(46px, 6.5vw, 92px); line-height: .92; letter-spacing: -.025em; margin: 0 0 24px; color: #fff; }
.pg-hero__title .pg-red { color: var(--red-400); }
.pg-hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 640px;
  color: rgba(255,255,255,.85); margin: 0; }

/* ---------- PRODUCT / CONTENT BLOCK (alternating) ---------- */
.pg-block { padding: var(--section-y) 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg-base); }
.pg-block--alt { background: var(--bg-subtle); }
.pg-block--dark { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; border-bottom-color: var(--border-inverse); }
.pg-block--dark .pg-block__bg { position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(228,0,43,.12), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(30,71,184,.18), transparent 50%); }
.pg-block__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.pg-block__grid--reverse .pg-block__media { order: -1; }
.pg-block__copy h2 { font-size: var(--type-h2); color: var(--text-strong); margin: 16px 0 16px; }
.pg-block--dark .pg-block__copy h2 { color: #fff; }
.pg-block--dark .pg-block__copy p, .pg-block--dark .pg-lead { color: rgba(255,255,255,.82); }
.pg-block__media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: var(--navy-800); position: relative; }
.pg-block__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-block__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(3,7,15,.4) 100%); }

/* ---------- SPEC GRID (3 × 2 key/value/unit) ---------- */
.pg-specgrid { display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--accent-navy); border-bottom: 2px solid var(--accent-navy); margin: 28px 0; }
.pg-block--dark .pg-specgrid { border-color: var(--border-inverse-strong); }
.pg-specgrid__item { padding: 18px 18px 18px 0; border-right: 1px solid var(--border-subtle); }
.pg-block--dark .pg-specgrid__item { border-right-color: var(--border-inverse); }
.pg-specgrid__item:nth-child(3n) { border-right: 0; }
.pg-specgrid__item:nth-child(n+4) { border-top: 1px solid var(--border-subtle); padding-top: 18px; }
.pg-block--dark .pg-specgrid__item:nth-child(n+4) { border-top-color: var(--border-inverse); }
.pg-specgrid__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.pg-block--dark .pg-specgrid__k { color: var(--text-inverse-faint); }
.pg-specgrid__v { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--text-strong); line-height: 1; }
.pg-block--dark .pg-specgrid__v { color: #fff; }
.pg-specgrid__u { font-size: 14px; color: var(--accent-red); margin-left: 2px; }

/* ---------- FEATURE LIST (red dash) ---------- */
.pg-features { list-style: none; margin: 22px 0; }
.pg-features li { position: relative; padding: 8px 0 8px 30px; color: var(--text-body); font-size: 15px; }
.pg-block--dark .pg-features li { color: rgba(255,255,255,.8); }
.pg-features li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 2px; background: var(--accent-red); }

/* ---------- STAT ROW (value + label trio) ---------- */
.pg-statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 26px 0;
  padding-top: 22px; border-top: 1px solid var(--border-strong); }
.pg-block--dark .pg-statrow { border-top-color: var(--border-inverse); }

/* ---------- PULL QUOTE ---------- */
.pg-pullquote { border-left: 3px solid var(--accent-red); padding: 6px 0 6px 22px; margin-top: 26px;
  font-family: var(--font-display); font-weight: 400; text-transform: none; font-size: 19px;
  line-height: 1.4; color: var(--text-strong); letter-spacing: 0; }
.pg-block--dark .pg-pullquote { color: #fff; }

/* ---------- STAT BAND (dark, 4-up) ---------- */
.pg-statband { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
  padding: 64px 0; position: relative; overflow: hidden; }
.pg-statband::before { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(228,0,43,.16), transparent 60%); }
.pg-statband__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }

/* ---------- CARD GRID (use cases, values, compliance) ---------- */
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pg-cards--4 { grid-template-columns: repeat(4, 1fr); }
.pg-card { background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent-red); padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.pg-card:nth-child(3n+2) { border-top-color: var(--accent-blue); }
.pg-card:nth-child(3n) { border-top-color: var(--accent-navy); }
.pg-cards--4 .pg-card:nth-child(4n+2) { border-top-color: var(--accent-blue); }
.pg-cards--4 .pg-card:nth-child(4n+3) { border-top-color: var(--accent-navy); }
.pg-cards--4 .pg-card:nth-child(4n) { border-top-color: var(--accent-red); }
.pg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pg-card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-red); margin-bottom: 16px; }
.pg-card__seal { margin-bottom: 16px; }
.pg-card h4 { font-size: 19px; color: var(--text-strong); margin-bottom: 10px; line-height: 1.15; }
.pg-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; }

/* ---------- DATA PANEL (label → value rows) ---------- */
.pg-datapanel { background: var(--surface-card); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm); padding: 30px; }
.pg-block--dark .pg-datapanel, .pg-section--navy .pg-datapanel {
  background: rgba(255,255,255,.04); border-color: var(--border-inverse); backdrop-filter: blur(14px); }
.pg-datapanel__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-red); margin-bottom: 14px; }
.pg-datarow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.pg-block--dark .pg-datarow, .pg-section--navy .pg-datarow { border-bottom-color: var(--border-inverse); }
.pg-datarow:last-child { border-bottom: 0; }
.pg-datarow__k { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.pg-block--dark .pg-datarow__k, .pg-section--navy .pg-datarow__k { color: var(--text-inverse-muted); }
.pg-datarow__v { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-strong); white-space: nowrap; }
.pg-block--dark .pg-datarow__v, .pg-section--navy .pg-datarow__v { color: #fff; }
.pg-datarow__v--red { color: var(--accent-red); }
.pg-datarow__v--blue { color: var(--accent-blue); }

/* ---------- CAPABILITY MATRIX ---------- */
.pg-matrix-wrap { overflow-x: auto; }
.pg-matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
.pg-matrix thead th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 13px; letter-spacing: .08em; color: var(--text-strong); text-align: center;
  padding: 16px 14px; border-bottom: 2px solid var(--accent-navy); }
.pg-matrix thead th:first-child { text-align: left; }
.pg-matrix thead th.pg-matrix__nomad { color: var(--accent-red); }
.pg-matrix tbody td { padding: 14px; text-align: center; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-display); }
.pg-matrix tbody th { text-align: left; font-weight: 400; font-family: var(--font-body); font-size: 15px;
  color: var(--text-body); padding: 14px; border-bottom: 1px solid var(--border-subtle); }
.pg-matrix__nomad-col { background: rgba(228,0,43,.04); }
.pg-matrix__yes { color: var(--accent-red); font-size: 18px; font-weight: 700; }
.pg-matrix__no { color: var(--border-strong); font-size: 18px; }

/* ---------- TIMELINE ---------- */
.pg-timeline { position: relative; max-width: 820px; margin: 8px auto 0; }
.pg-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.pg-timeline__item { position: relative; padding: 0 0 36px 40px; }
.pg-timeline__item:last-child { padding-bottom: 0; }
.pg-timeline__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 0 4px var(--bg-base); }
.pg-timeline__item:nth-child(2)::before { background: var(--accent-blue); }
.pg-timeline__item:nth-child(4)::before { background: var(--accent-blue); }
.pg-timeline__yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-red); }
.pg-timeline__item h4 { margin: 7px 0 8px; font-size: 21px; color: var(--text-strong); }
.pg-timeline__item p { font-size: 15px; color: var(--text-body); line-height: 1.6; }

/* ---------- SPLIT (prose + side card) ---------- */
.pg-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.pg-sidecard { background: var(--grad-navy); color: #fff; border-radius: var(--radius-md);
  padding: 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.pg-sidecard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--flag-bar); }
.pg-sidecard h3 { color: #fff; margin-bottom: 24px; font-size: var(--type-h3); }
.pg-sidecard__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 24px 0;
  border-top: 1px solid var(--border-inverse); border-bottom: 1px solid var(--border-inverse); margin-bottom: 22px; }
.pg-sidecard__foot { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.6); }

/* ---------- QUOTE BAND ---------- */
.pg-quote { background: var(--grad-red); color: #fff; padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.pg-quote::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1.5px, transparent 1.5px); background-size: 48px 48px; }
.pg-quote__inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.pg-quote__mark { font-family: var(--font-display); font-size: 120px; line-height: 1; color: rgba(255,255,255,.25); margin-bottom: -26px; }
.pg-quote p { font-family: var(--font-display); font-weight: 400; text-transform: none; letter-spacing: -.01em;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; margin-bottom: 28px; }
.pg-quote__attr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }

/* ---------- FAQ ---------- */
.pg-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.pg-faq__q { font-size: 18px; color: var(--text-strong); margin-bottom: 9px; }
.pg-faq__a { font-size: 15px; color: var(--text-body); line-height: 1.65; }

/* ---------- CONTACT ---------- */
.pg-contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.pg-channels { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
.pg-channel { padding-bottom: 22px; border-bottom: 1px solid var(--border-inverse); }
.pg-channel:last-child { border-bottom: 0; }
.pg-channel h4 { font-size: 17px; color: #fff; margin-bottom: 7px; }
.pg-channel p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 9px; line-height: 1.55; }
.pg-channel a { font-family: var(--font-mono); font-size: 13px; color: var(--red-400); letter-spacing: .02em; }
.pg-channel a:hover { color: #fff; }
.pg-hqcard { margin-top: 26px; border: 1px solid var(--border-inverse); background: rgba(6,18,38,.5); padding: 24px; }
.pg-hqcard__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-400); display: block; margin-bottom: 10px; }
.pg-hqcard__v { font-family: var(--font-display); font-size: 16px; color: #fff; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; }
.pg-formnote { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.62); margin-bottom: 20px; }
.pg-formnote strong { color: #fff; }
.pg-finefoot { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.45); margin-top: 14px; line-height: 1.6; }

/* ---------- CTA BAND ---------- */
.pg-cta { background: var(--navy-900); color: #fff; padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.pg-cta__bg { position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(228,0,43,.28), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(30,71,184,.28), transparent 50%); }
.pg-cta__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.pg-cta .nea-eyebrow { justify-content: center; margin-bottom: 18px; }
.pg-cta h2 { font-size: clamp(38px, 5.5vw, 72px); color: #fff; margin-bottom: 22px; }
.pg-cta h2 .pg-red { color: var(--red-400); }
.pg-cta p { max-width: 600px; margin: 0 auto 36px; font-size: 18px; color: rgba(255,255,255,.82); }
.pg-cta__buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .pg-block__grid, .pg-split, .pg-contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .pg-block__grid--reverse .pg-block__media { order: 0; }
  .pg-cards, .pg-cards--4 { grid-template-columns: 1fr 1fr; }
  .pg-statband__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .pg-faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pg-cards, .pg-cards--4 { grid-template-columns: 1fr; }
  .pg-statband__grid { grid-template-columns: 1fr 1fr; }
  .pg-statrow { grid-template-columns: 1fr 1fr; }
  .pg-specgrid { grid-template-columns: 1fr 1fr; }
  .pg-specgrid__item:nth-child(3n) { border-right: 1px solid var(--border-subtle); }
  .pg-specgrid__item:nth-child(2n) { border-right: 0; }
  .pg-specgrid__item:nth-child(n+3) { border-top: 1px solid var(--border-subtle); padding-top: 18px; }
}
