/*
Theme Name: Kabardian Group
Theme URI: https://kabardian.com
Author: Kabardian Group
Description: Custom classic theme for The Kabardian Group — an operator-led private capital firm. Five static page templates with all editable copy wired into Advanced Custom Fields (ACF Pro). Built to the V1.4 brand system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
License: Proprietary — all rights reserved
Text Domain: kabardian
*/

/* ===================================================================
   Kabardian Group — Statement Geometric
   Alternating navy/off-white panels. Logo symbol as architectural motif.

   Sections:
     1. Design CSS  — ported verbatim from the approved source/styles.css
                      (only change: ../assets/ -> assets/ for theme root)
     2. Accessibility additions  — focus-visible rings (README request)
     3. Editor emphasis  — amber <em> inside prose so the WYSIWYG
                            "italic" button reproduces the design intent
     4. Responsive  — mobile breakpoints (none were authored upstream)
   =================================================================== */


/* ===================================================================
   1. DESIGN CSS  (approved, ported verbatim)
   =================================================================== */

:root {
  --navy: #0F2A4A;
  --navy-deep: #0A1E36;
  --navy-mid: #1A3B5F;
  --amber: #C9700E;
  --amber-soft: #E0883A;
  --ink: #141414;
  --grey: #707071;
  --grey-soft: #9AA6B4;
  --rule: #DCDEDA;
  --rule-strong: #C8CCD2;
  --rule-navy: rgba(255,255,255,0.14);
  --off-white: #F4F4F4;
  --white: #FFFFFF;
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off-white);
}

a { color: var(--amber); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  background: var(--off-white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}
.brand img { width: 32px; height: 32px; display: block; }
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
/* Active link — design used a.active; WordPress menus emit
   .current-menu-item / .current_page_item on the <li>. */
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  color: var(--navy);
  position: relative;
}
.nav-links a.active::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after,
.nav-links .current-menu-ancestor > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -27px;
  height: 2px;
  background: var(--amber);
}
.nav-links a:hover { color: var(--amber); opacity: 1; }

/* Hamburger toggle — hidden on desktop, shown at <=768px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero — navy statement panel ─────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 140px 0 140px;
}
.hero .container { position: relative; z-index: 2; }
.hero-mark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}
.hero-mark img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin: 0 0 32px;
}
.display {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--white);
  margin: 0 0 40px;
  max-width: 960px;
  text-wrap: balance;
}
.display em {
  font-style: normal;
  color: var(--amber-soft);
}
.display .br { display: block; }
.lede {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  max-width: 720px;
  margin: 0;
}
.lede + .lede { margin-top: 18px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 56px;
}

/* ─── Panel system — alternating ──────────────────────────────── */
.panel { padding: 120px 0; position: relative; }
.panel--off { background: var(--off-white); color: var(--ink); }
.panel--white { background: var(--white); color: var(--ink); }
.panel--navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.panel--navy a { color: var(--amber-soft); }

.panel-mark {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  pointer-events: none;
}
.panel-mark img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.panel-mark.tr {
  bottom: auto; left: auto;
  top: -80px; right: -80px;
}

.panel-head {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.panel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 8px 0 0;
}
.panel--navy .panel-label { color: var(--amber-soft); }
.panel-title {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
.panel--navy .panel-title { color: var(--white); }
.panel-title em { font-style: normal; color: var(--amber); }
.panel-title .dim { color: var(--navy); }
.panel--navy .panel-title em { color: var(--amber-soft); }
.panel--navy .panel-title .dim { color: var(--white); }

.panel-body { font-size: 18px; line-height: 1.65; max-width: 820px; margin-bottom: 48px; }
.panel-body:last-child { margin-bottom: 0; }
.panel-body strong { color: var(--navy); font-weight: 600; }
.panel--navy .panel-body strong { color: var(--white); }
.panel-body p { margin: 0 0 20px; }
.panel-body p:last-child { margin-bottom: 0; }
.panel--navy .panel-body { color: rgba(255,255,255,0.82); }

/* ─── Two-column structural display ───────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 60px 0 0;
  border-top: 2px solid var(--navy);
}
.panel--navy .split { border-top-color: var(--white); }
.split > article {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.panel--navy .split > article { border-right-color: var(--rule-navy); }
.split > article:last-child { border-right: none; padding-right: 0; padding-left: 48px; }
.split .num {
  position: absolute;
  top: 48px;
  right: 60px;
  font-size: 56px;
  font-weight: 200;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.45;
}
.panel--navy .split .num { color: var(--amber-soft); }
.split > article:last-child .num { right: 12px; }
.split .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 24px;
}
.split h3 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.15;
  max-width: 380px;
}
.panel--navy .split h3 { color: var(--white); }
.split p { font-size: 16px; line-height: 1.6; max-width: 460px; margin: 0; color: var(--ink); }
.panel--navy .split p { color: rgba(255,255,255,0.78); }

/* ─── Criteria list (vertical, numbered) ──────────────────────── */
.panel-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 36px 0 0;
  max-width: 1100px;
  text-wrap: balance;
  grid-column: 2;
}
.panel-sub em {
  font-style: normal;
  color: var(--amber);
}
.panel--navy .panel-sub { color: var(--white); }
.panel--navy .panel-sub em { color: var(--amber-soft); }
.criteria-list {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}
.criteria-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.criteria-list li:last-child { border-bottom: 1px solid var(--rule); }
.criteria-list .cl-num {
  font-size: 52px;
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 0.85;        /* aligns optical top of digits with cap-height of h4 */
  padding-top: 4px;
}
.criteria-list .cl-body { max-width: 820px; }
.criteria-list .cl-body h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  line-height: 1.35;
}
.criteria-list .cl-body h4:last-child { margin-bottom: 0; }
.criteria-list .cl-body p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: var(--ink);
}

/* ─── Grid of criteria/points ─────────────────────────────────── */
.grid-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.panel--navy .grid-points { border-color: var(--rule-navy); }
.grid-points > article {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.panel--navy .grid-points > article { border-color: var(--rule-navy); }
.grid-points .gp-num {
  font-size: 44px;
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.panel--navy .grid-points .gp-num { color: var(--amber-soft); }
.grid-points .ix {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 20px;
}
.panel--navy .grid-points .ix { color: var(--amber-soft); }
.grid-points h4 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.25;
}
.panel--navy .grid-points h4 { color: var(--white); }
.grid-points p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--ink); }
.panel--navy .grid-points p { color: rgba(255,255,255,0.78); }

/* ─── Process row — 4 cards ───────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--navy);
}
.panel--navy .process { border-top-color: var(--white); }
.process > article {
  padding: 40px 20px 40px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.panel--navy .process > article { border-right-color: var(--rule-navy); }
.process > article:not(:first-child) { padding-left: 20px; }
.process > article:last-child { border-right: none; padding-right: 0; }
.process .step-n {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.process h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.panel--navy .process h4 { color: var(--white); }
.process p { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--ink); }
.panel--navy .process p { color: rgba(255,255,255,0.78); }

/* ─── CTA strip ───────────────────────────────────────────────── */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip .panel-mark {
  opacity: 0.05;
  right: -40px; left: auto;
  top: -120px; bottom: auto;
  width: 380px; height: 380px;
}
.cta-strip .container { position: relative; z-index: 2; }
.cta-row {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}
.cta-question {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 720px;
  line-height: 1.15;
  color: var(--white);
}
.cta-btns { display: flex; gap: 14px; flex-shrink: 0; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--amber);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--amber);
  transition: all .2s;
}
.cta-btn:hover { background: transparent; color: var(--amber-soft); opacity: 1; }
.cta-btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.cta-btn.ghost:hover { border-color: var(--white); color: var(--white); }
.cta-btn .arr { font-weight: 300; }

/* ─── Homepage edge points ────────────────────────────────────── */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-navy);
  margin-top: 40px;
}
.edge-grid > article {
  background: var(--navy);
  padding: 40px 36px;
}
.edge-grid .num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--amber-soft);
  margin-bottom: 18px;
}
.edge-grid h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.edge-grid p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0; }

/* ─── Pull quote / statement ──────────────────────────────────── */
.statement {
  padding: 100px 0;
  background: var(--off-white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.statement .quote {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.statement .quote em { font-style: normal; color: var(--amber); }

/* ─── Belief / numbered list ──────────────────────────────────── */
.belief-list { list-style: none; margin: 60px 0 0; padding: 0; }
.belief-list li {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.belief-list li:first-child { border-top: 2px solid var(--navy); }
.belief-list li > span {
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 880px;
  display: block;
}

/* ─── Founder ─────────────────────────────────────────────────── */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  margin-top: 32px;
}
.founder-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #DCDEDA 0%, #9AA6B4 100%);
  position: relative;
  overflow: hidden;
  margin-top: 10px;   /* aligns top edge with cap-height of "J" in "Jonty" */
}
.founder-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 2;
}
.founder-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/symbol-color.png') center/60% no-repeat;
  opacity: 0.18;
  filter: grayscale(0.4);
}
.founder-portrait .ph {
  position: absolute;
  bottom: 16px; left: 16px;
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.founder-name {
  font-size: 36px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.founder-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 32px;
}
.founder-bio p { font-size: 16.5px; line-height: 1.65; margin: 0 0 18px; color: var(--ink); }
.founder-bio p:first-of-type {
  font-size: 20px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  padding-left: 24px;
  border-left: 2px solid var(--amber);
  margin-bottom: 28px;
}

/* ─── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 40px;
  border: 1px solid var(--rule);
}
.contact-card {
  background: var(--off-white);
  padding: 40px;
}
.contact-card h4 {
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.contact-card .pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.contact-card p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--ink); }

.contact-direct {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0 110px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.contact-direct .panel-mark {
  opacity: 0.05;
  width: 480px; height: 480px;
  right: -120px; left: auto;
  top: -120px; bottom: auto;
}
.contact-direct .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 96px;
  align-items: start;
}
.contact-direct .cd-intro { padding-top: 8px; }
.contact-direct .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--amber-soft);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.contact-direct h3 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 28px;
  line-height: 1.08;
  text-wrap: balance;
  max-width: 460px;
}
.contact-direct .note {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  max-width: 400px;
  margin: 0;
  line-height: 1.65;
}

/* ─── Contact form (placeholder for WordPress form plugin) ───── */
.kb-form { display: flex; flex-direction: column; gap: 24px; }
.kb-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.kb-field { display: flex; flex-direction: column; gap: 8px; }
.kb-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.kb-field input,
.kb-field select,
.kb-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  padding: 8px 0 12px;
  outline: none !important;
  border-radius: 0;
  transition: border-color .2s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.kb-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.kb-field input::placeholder,
.kb-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.kb-field input:focus,
.kb-field select:focus,
.kb-field textarea:focus { border-bottom-color: var(--amber-soft); }
.kb-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-position: calc(100% - 14px) 17px, calc(100% - 8px) 17px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}
.kb-field select option { background: var(--navy); color: var(--white); }
.kb-submit {
  align-self: flex-start;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--amber);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--amber);
  cursor: pointer;
  transition: all .2s;
}
.kb-submit:hover { background: transparent; color: var(--amber-soft); }
.kb-submit .arr { font-weight: 300; }

/* Admin-only hint shown in the form slot before a shortcode is set. */
.kb-form-placeholder {
  border: 1px dashed rgba(255,255,255,0.35);
  padding: 28px 32px;
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  line-height: 1.6;
}
.kb-form-placeholder strong { color: var(--white); }

/* ─── Footer (light) ──────────────────────────────────────────── */
.footer {
  background: var(--white);
  color: var(--ink);
  padding: 88px 0 32px;
  border-top: 1px solid var(--rule);
}
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--amber); opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand .name { color: var(--navy); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.footer-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 360px;
  margin: 0;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 4px 0 22px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.footer-bottom {
  display: flex;
  justify-content: flex-start;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.005em;
}

/* Generic content (404 / fallback page.php) — keeps non-designed
   routes on-brand without inventing new design language. */
.basic-content { padding: 120px 0; }
.basic-content .panel-title { margin-bottom: 24px; }
.basic-content p { font-size: 18px; line-height: 1.65; max-width: 720px; }
.basic-content .cta-btn { color: var(--white); margin-top: 16px; }


/* ===================================================================
   2. ACCESSIBILITY ADDITIONS
   The source design's :focus states are weak. README asks for a
   visible 2px amber focus ring on keyboard navigation.
   =================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.cta-btn:focus-visible,
.kb-submit:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  opacity: 1;
}
/* On navy panels the softened amber reads cleaner against dark. */
.hero a:focus-visible,
.panel--navy a:focus-visible,
.cta-strip a:focus-visible,
.contact-direct a:focus-visible,
.contact-direct :focus-visible {
  outline-color: var(--amber-soft);
}
/* Skip link for keyboard / screen-reader users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  opacity: 1;
}


/* ===================================================================
   3. EDITOR EMPHASIS
   Body copy fields are edited in the WYSIWYG. The design expresses
   amber emphasis with <em>. These rules make the editor's plain
   "italic" button reproduce that intent — no inline styles needed.
   =================================================================== */

.panel-body em,
.founder-bio em,
.split p em,
.grid-points p em,
.process p em,
.contact-card p em,
.criteria-list .cl-body p em {
  font-style: normal;
  color: var(--amber);
}
.panel--navy .panel-body em,
.panel--navy .split p em,
.panel--navy .grid-points p em,
.panel--navy .process p em {
  color: var(--amber-soft);
}


/* ===================================================================
   4. RESPONSIVE
   No mobile breakpoints were authored upstream. Plan follows the
   README's recommended breakpoint table.
   =================================================================== */

/* ── <= 1024px : tighten, keep horizontal nav ─────────────────── */
@media (max-width: 1024px) {
  .nav-inner { padding: 22px 32px; }
  .nav-links { gap: 28px; }
  .container { padding: 0 32px; }
  .panel-head { gap: 48px; }
  .contact-direct .container { gap: 56px; }
}

/* ── <= 768px : single-column layouts, hamburger nav ──────────── */
@media (max-width: 768px) {

  /* Nav → hamburger */
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; padding: 18px 24px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 24px -16px rgba(15,42,74,0.25);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--rule);
    font-size: 15px;
  }
  /* Vertical menu: replace the underline with an amber inset bar */
  .nav-links a.active::after,
  .nav-links .current-menu-item > a::after,
  .nav-links .current_page_item > a::after,
  .nav-links .current-menu-ancestor > a::after {
    left: 0; right: auto; bottom: 0; top: 0;
    width: 3px; height: auto;
  }

  /* Vertical rhythm */
  .hero { padding: 88px 0; }
  .panel { padding: 80px 0; }
  .cta-strip { padding: 64px 0; }
  .contact-direct { padding: 72px 0 80px; }

  /* Type scaling */
  .display { font-size: clamp(30px, 7.4vw, 40px); }
  .panel-title { font-size: clamp(28px, 6.4vw, 38px); }
  .lede { font-size: 18px; }
  .panel-body { font-size: 16.5px; }

  /* Panel head stacks */
  .panel-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 48px;
  }
  .panel-label { margin-top: 0; }

  /* Two-up / four-up grids collapse to one column */
  .split,
  .panel--navy .split { grid-template-columns: 1fr; border-top-width: 2px; }
  .split > article,
  .split > article:last-child {
    padding: 36px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .panel--navy .split > article { border-bottom-color: var(--rule-navy); }
  .split > article:last-child { border-bottom: none; }
  .split .num,
  .split > article:last-child .num { right: 0; top: 36px; font-size: 44px; }
  .split h3 { max-width: none; padding-right: 64px; }
  .split p { max-width: none; }

  .grid-points { grid-template-columns: 1fr; }
  .grid-points > article { min-height: 0; }

  .process { grid-template-columns: 1fr; }
  .process > article,
  .process > article:not(:first-child),
  .process > article:last-child {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .panel--navy .process > article { border-bottom-color: var(--rule-navy); }
  .process > article:last-child { border-bottom: none; }

  .edge-grid { grid-template-columns: 1fr; }

  /* Criteria list */
  .criteria-list li { grid-template-columns: 88px 1fr; column-gap: 24px; }
  .criteria-list .cl-num { font-size: 40px; }

  /* Founder */
  .founder-card { grid-template-columns: 1fr; gap: 36px; }
  .founder-portrait { max-width: 280px; margin-top: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-direct .container { grid-template-columns: 1fr; gap: 44px; }

  /* CTA strip stacks */
  .cta-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-btns { flex-wrap: wrap; }

  /* Form fields stack */
  .kb-field-row { grid-template-columns: 1fr; }

  /* Footer stacks */
  .footer { padding: 64px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
}

/* ── <= 480px : tightest spacing ──────────────────────────────── */
@media (max-width: 480px) {
  .nav-inner { padding: 16px 20px; }
  .container { padding: 0 20px; }
  .nav-links a { padding: 14px 20px; }

  .hero { padding: 72px 0; }
  .panel { padding: 64px 0; }

  /* Criteria number drops inline above the heading */
  .criteria-list li { grid-template-columns: 1fr; row-gap: 6px; }
  .criteria-list .cl-num { font-size: 34px; padding-top: 0; line-height: 1; }

  .contact-card { padding: 28px; }
  .edge-grid > article { padding: 32px 24px; }
  .grid-points > article { padding: 28px 22px; }
  .cta-btn { width: 100%; justify-content: space-between; }
}
