/* ==========================================================================
   GTRI WordPress Theme V2 — Main Stylesheet
   Per V6.5 + Rev.2: light/white/cream is the PRIMARY visual character
   (Microsoft.com-style restrained clarity), NOT dark-first.
   GTRI institutional colours (navy, gold, teal, ivory) are used as accents —
   headings, buttons, cards, diagrams — within the light system, and are
   deliberately re-mapped for a dark-mode variant (toggle, top-right).
   ========================================================================== */

:root {
  /* ---- Light mode (default / primary) ---- */
  --bg: #FFFFFF;
  --bg-alt: #F7F5EF;         /* warm ivory panel */
  --surface: #FFFFFF;
  --text: #1B2430;
  --text-muted: #5B6472;
  --border: #E4E0D4;

  /* ---- GTRI institutional accent palette (used within the light system) ---- */
  --navy: #0A1930;
  --navy-2: #13294E;
  --gold: #C9972B;
  --teal: #1E8C74;
  --ivory: #F7F5EF;

  --link: #0A1930;
  --focus: #C9972B;
  --radius: 6px;
  --maxw: 1180px;
  --shadow: 0 1px 3px rgba(10,25,48,0.06), 0 1px 2px rgba(10,25,48,0.04);
  --shadow-lg: 0 8px 24px rgba(10,25,48,0.10);
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-alt: #121B2E;
  --surface: #141E33;
  --text: #E7ECF7;
  --text-muted: #A9B4C8;
  --border: #223252;

  --navy: #13294E;
  --navy-2: #0A1930;
  --gold: #E0AE4E;
  --teal: #35C7A5;
  --ivory: #17233B;

  --link: #E0AE4E;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 28px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, Segoe UI, Arial, Helvetica, sans-serif;
  color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65;
  transition: background 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: 'Courier New', Courier, monospace; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.78rem; color: var(--gold); font-weight: bold; margin-bottom: 10px;
}
h1, h2, h3 { color: var(--navy); font-weight: 800; line-height: 1.2; margin: 0 0 12px 0; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--text); }
h1 { font-size: 1.9rem; }                 /* controlled, compact page-name size per baseline */
h1.slogan { font-size: 2.1rem; color: var(--navy); }
[data-theme="dark"] h1.slogan { color: var(--gold); }
h2.sec { font-size: 1.5rem; letter-spacing: -0.2px; }
.rule { border: none; border-top: 3px solid var(--gold); width: 54px; margin: 0 0 20px 0; }
p { margin: 0 0 16px 0; }
.lead { font-size: 1.1rem; }
.text-muted { color: var(--text-muted); font-size: 0.92rem; }
.center { text-align: center; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

/* ---------- Header ---------- */
.utility-nav { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-family:'Courier New',monospace; font-size: 0.72rem; }
.utility-nav .wrap { display:flex; justify-content:flex-end; align-items:center; gap: 16px; padding: 7px 24px; flex-wrap: wrap; }
.utility-nav a { color: var(--text-muted); }
.utility-nav a:hover { color: var(--navy); }
[data-theme="dark"] .utility-nav a:hover { color: var(--gold); }
.theme-toggle {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 20px; padding: 3px 10px; cursor: pointer; font-family: 'Courier New', monospace; font-size: 0.72rem;
}

.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .mark {
  width: 32px; height: 32px; border: 1.5px solid var(--gold); border-radius: 50%; display:flex; align-items:center;
  justify-content:center; color: var(--navy); font-weight:bold; font-size: 0.9rem; font-family:'Courier New',monospace;
}
[data-theme="dark"] .site-branding .mark { color: var(--gold); }
.site-branding a { color: var(--navy); font-family:'Courier New',monospace; letter-spacing: 1px; font-weight: bold; }
[data-theme="dark"] .site-branding a { color: var(--text); }
.site-branding a:hover { text-decoration: none; }

.primary-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a {
  color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold); text-decoration: none; }

.menu-toggle { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: var(--radius); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 4px; padding: 12px 0; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Hero (light by default; still supports the "compact name" rule) ---------- */
.hero { background: var(--bg-alt); padding: 46px 0 52px 0; border-bottom: 1px solid var(--border); }
.hero.hero-deep { background: var(--navy); color: #fff; }
.hero.hero-deep h1, .hero.hero-deep h1.slogan { color: #fff; }
.hero .kicker { font-family:'Courier New',monospace; letter-spacing:2.5px; color: var(--gold); font-size:0.8rem; margin-bottom: 10px; }
.hero .tagline { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; }
.hero.hero-deep .tagline { color: #cdd9f2; }
.hero .stat-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 22px; }
.hero .stat .num { font-family:'Courier New',monospace; font-size: 1.6rem; font-weight: bold; color: var(--navy); }
.hero.hero-deep .stat .num { color: #fff; }
.hero .stat .lbl { font-family:'Courier New',monospace; font-size: 0.68rem; color: var(--teal); letter-spacing: 1px; text-transform: uppercase; }
.hero .cta-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: 'Courier New', monospace; font-size: 0.8rem; letter-spacing: 0.4px; padding: 11px 20px; border-radius: var(--radius); font-weight: bold; border: 1.5px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
[data-theme="dark"] .btn-outline { color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-sm { padding: 7px 14px; font-size: 0.72rem; }

/* ---------- Sections ---------- */
section.block { padding: 50px 0; }
section.block.alt { background: var(--bg-alt); }
.pitch-panel { background: var(--navy); color: #fff; padding: 30px; border-radius: var(--radius); margin: 18px 0 28px 0; box-shadow: var(--shadow-lg); }
.pitch-panel .eyebrow { color: var(--gold); }
.pitch-panel p { color: #dfe6f5; font-size: 1.02rem; }
.pitch-panel p:last-child { margin-bottom: 0; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.benefit-card { border-left: 3px solid var(--navy); background: var(--surface); padding: 15px 18px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.benefit-card.evidence { border-left-color: var(--teal); }
.benefit-card .who { font-family: 'Courier New', monospace; font-weight: bold; color: var(--navy); text-transform: uppercase; letter-spacing: 0.4px; font-size: 0.82rem; margin-bottom: 4px; }
[data-theme="dark"] .benefit-card .who { color: var(--gold); }

.tile { display: block; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--navy); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.tile .eyebrow { margin-bottom: 6px; }
.tile h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.tile p { color: #b9c6e3; font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Trace-flow step diagram (signature element, brand carryover from brochures) ---------- */
.traceflow { display: flex; flex-wrap: wrap; gap: 18px 0; margin: 26px 0 36px 0; }
.tstep { flex: 1 1 140px; text-align: center; position: relative; padding: 0 8px; min-width: 120px; }
.tnode {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-family: 'Courier New', monospace; font-weight: bold; font-size: 0.95rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 8px auto; border: 1.5px solid var(--gold); position: relative; z-index: 1;
}
.tstep .ttitle { font-weight: bold; font-size: 0.88rem; color: var(--navy); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.2px; }
[data-theme="dark"] .tstep .ttitle { color: var(--text); }
.tstep .tdesc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.ttrace { position: absolute; top: 21px; left: calc(50% + 21px); right: calc(-50% + 21px); height: 2px; background: var(--teal); z-index: 0; }
@media (max-width: 760px) { .traceflow { flex-direction: column; } .ttrace { display: none; } .tstep { text-align: left; display:flex; gap: 14px; align-items:flex-start;} .tnode{margin:0;flex-shrink:0;} }

/* ---------- Spec table ---------- */
table.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px 0; }
.spec-table th { font-family: 'Courier New', monospace; text-align: left; font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); background: var(--navy); padding: 11px 15px; }
.spec-table td { padding: 11px 15px; border-bottom: 1px solid var(--border); }
.spec-table tr:nth-child(even) td { background: var(--bg-alt); }
.spec-table-wrap { overflow-x: auto; }

/* ---------- Plan cards + comparison matrix (PRIME / CareerLeap requirement) ---------- */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0 30px 0; }
.plan-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); box-shadow: var(--shadow); position: relative; }
.plan-card.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.plan-card .plan-badge {
  position: absolute; top: -11px; left: 18px; background: var(--gold); color: var(--navy);
  font-family: 'Courier New', monospace; font-size: 0.68rem; padding: 3px 10px; border-radius: 10px; font-weight: bold;
}
.plan-card h4 { margin: 6px 0 4px 0; font-size: 1.05rem; color: var(--navy); }
[data-theme="dark"] .plan-card h4 { color: var(--text); }
.plan-card .price { font-family: 'Courier New', monospace; font-size: 1.5rem; font-weight: bold; color: var(--navy); margin: 6px 0; }
[data-theme="dark"] .plan-card .price { color: var(--gold); }
.plan-card .price-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.plan-card .btn { width: 100%; text-align: center; }

table.compare-table { width: 100%; border-collapse: collapse; margin: 10px 0 30px 0; font-size: 0.92rem; }
.compare-table th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 0.8rem; }
.compare-table th.plan-col { text-align: center; }
.compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.compare-table td.plan-col { text-align: center; font-family: 'Courier New', monospace; }
.compare-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 0; font-weight: bold; font-size: 1rem;
  color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit;
}
[data-theme="dark"] .faq-q { color: var(--text); }
.faq-q .ind { color: var(--gold); font-family: monospace; font-size: 1.1rem; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: var(--navy); padding: 32px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.cta-band .ctatext { font-weight: bold; font-size: 1.2rem; }
.cta-band .ctabtns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer (comprehensive human nav — this IS the sitemap) ---------- */
.site-footer { background: var(--navy); color: #a9b4c8; padding: 46px 0 22px 0; }
.site-footer h4 { color: var(--gold); font-family:'Courier New',monospace; font-size: 0.76rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #cdd9f2; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 28px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-bottom { border-top: 1px solid #223252; padding-top: 16px; font-family:'Courier New',monospace; font-size: 0.75rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* ---------- Contact / forms ---------- */
.gtri-form label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 0.88rem; color: var(--navy); }
[data-theme="dark"] .gtri-form label { color: var(--text); }
.gtri-form input, .gtri-form select, .gtri-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px;
  font-family: inherit; font-size: 1rem; background: var(--surface); color: var(--text);
}
.gtri-form textarea { min-height: 120px; }
.gtri-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .gtri-form .form-row-2 { grid-template-columns: 1fr; } }
.form-notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.94rem; }
.form-notice.success { background: #e6f7f2; border: 1px solid var(--teal); color: #0d5a44; }
.form-notice.error { background: #fdecec; border: 1px solid #d64545; color: #7a1717; }

/* ---------- Placeholder testimonial marker (baseline requires explicit labelling) ---------- */
.illustrative-tag {
  display: inline-block; font-family: 'Courier New', monospace; font-size: 0.68rem; background: var(--bg-alt);
  border: 1px dashed var(--text-muted); color: var(--text-muted); padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}
