/* Je'don Group, institutional site (jedon.org)
   Navy, ivory and orange. Serif headings, plain body, mono labels.
   Phone first: every layout starts as one column and widens. */

:root {
  --navy: #023562;
  --deep: #011e3a;
  --deeper: #00142a;
  --orange: #f38227;
  --orange-ink: #c4610f;
  --sky: #a9cdfb;
  --ivory: #f7f5f0;
  --paper: #fffdf9;
  --white: #f6f9fc;
  --ink: #0f1f33;
  --body: #3d4f66;
  --muted: #6a7b90;
  --line: #e3ddd1;
  --line-dark: rgba(246, 249, 252, 0.14);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --wrap: 1160px;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
h4 { font-size: 1.1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--orange); color: var(--deep); padding: 10px 16px; border-radius: 8px; }

.label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin: 0 0 14px;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.6; color: var(--body); max-width: 40em; }
.muted { color: var(--muted); }
.rule { width: 56px; height: 3px; background: var(--orange); border: 0; margin: 0 0 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem; text-decoration: none;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--deep); }
.btn-primary:hover { background: #ff9440; }
.btn-ghost { border-color: rgba(246, 249, 252, 0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(243, 130, 39, 0.5); padding-bottom: 2px; }
.arrow-link:hover { border-bottom-color: var(--orange); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.nav { display: none; }
.nav a {
  color: rgba(246, 249, 252, 0.82); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--orange); }
.header-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: var(--white); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; background: var(--deep); border-top: 1px solid var(--line-dark);
  padding: 10px var(--gutter) 26px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.35rem;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn { margin-top: 22px; width: 100%; font-family: var(--sans); font-size: 1rem; border: 0; }
.mobile-menu .menu-note { margin-top: 18px; font-size: 0.88rem; color: rgba(246, 249, 252, 0.6); }

@media (min-width: 980px) {
  .nav { display: flex; gap: 28px; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 8px 18px; font-size: 0.9rem; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
  .brand img { height: 40px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--deep); color: rgba(246, 249, 252, 0.8); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .label { color: var(--orange); }
.section-dark .lead { color: rgba(246, 249, 252, 0.82); }
.section-dark .muted { color: rgba(246, 249, 252, 0.6); }
.section-dark .arrow-link { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: 40px; }
@media (min-width: 760px) { .section { padding: 104px 0; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 520px at 85% 10%, #08345f 0%, var(--deep) 60%);
  color: rgba(246, 249, 252, 0.84);
  padding: 72px 0 64px;
}
.hero h1 { color: var(--white); max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: rgba(246, 249, 252, 0.84); }
.hero .label { color: var(--orange); }
.hero-mark {
  position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: 0.07; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .btn-row { margin-top: 30px; }
@media (min-width: 760px) {
  .hero { padding: 120px 0 104px; }
  .hero-mark { width: 560px; right: -40px; bottom: -80px; }
}
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
@media (min-width: 760px) { .page-hero { padding: 96px 0 84px; } }

/* Facts strip */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 52px; }
.fact { background: var(--deep); padding: 18px 18px 20px; }
.fact b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--white); line-height: 1.2; }
.fact span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 249, 252, 0.6); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } .fact { padding: 24px; } }

/* Grids and cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-gap-lg { gap: 28px; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--mono); font-size: 0.78rem; color: var(--orange-ink); letter-spacing: 0.1em; margin-bottom: 14px; display: block; }
.section-paper .card { background: var(--ivory); }
.section-dark .card { background: rgba(246, 249, 252, 0.04); border-color: var(--line-dark); }

/* Statements */
.statement {
  border-left: 3px solid var(--orange); padding: 4px 0 4px 22px; margin: 0;
}
.statement p { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.4; color: var(--ink); margin: 0; }
.section-dark .statement p { color: var(--white); }
.statement cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Split layout */
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-wide { grid-template-columns: 1.1fr 0.9fr; } }

/* Sector list */
.sectors { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sector { background: var(--paper); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: background-color .2s; }
.sector:hover { background: #fff; }
.sector .label { margin: 0; }
.sector h3 { margin: 0; }
.sector p { margin: 0; font-size: 0.96rem; }
@media (min-width: 700px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sectors { grid-template-columns: repeat(3, 1fr); } }

/* COVORN band */
.covorn-band { background: var(--deeper); }
.covorn-logo { height: 46px; width: auto; margin-bottom: 26px; }
.app-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.app-row img { width: 44px; height: 44px; border-radius: 11px; }
@media (min-width: 760px) { .app-row img { width: 52px; height: 52px; border-radius: 13px; } }
.legal-line { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: rgba(246, 249, 252, 0.55); margin-top: 22px; }

/* App groups (companies page) */
.app-group { margin-top: 30px; }
.app-group h4 { color: var(--white); font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.apps { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apps { grid-template-columns: repeat(3, 1fr); } }
.app {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px;
  background: rgba(246, 249, 252, 0.04); border: 1px solid var(--line-dark);
}
.app img { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.app b { display: block; color: var(--white); font-weight: 600; }
.app span { display: block; font-size: 0.9rem; color: rgba(246, 249, 252, 0.66); line-height: 1.4; }

/* Company cards */
.company { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.company-logo { background: var(--deep); display: flex; align-items: center; justify-content: flex-start; padding: 26px; min-height: 120px; }
.company-logo img { max-height: 64px; width: auto; max-width: 260px; }
.company-body { padding: 24px 26px 28px; }
.company-body h3 { margin-bottom: 4px; }
.company-body .tagline { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.tags li { font-size: 0.8rem; font-weight: 500; color: var(--navy); background: #e8eef6; border-radius: 999px; padding: 4px 12px; }
.reg { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }

.venture { padding: 22px; border: 1px dashed #cfc6b5; border-radius: var(--radius); background: transparent; }
.venture h3 { font-size: 1.2rem; margin-bottom: 6px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-ink); border: 1px solid rgba(196, 97, 15, 0.4); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }

/* Values */
.values { counter-reset: v; }
.value h3 { display: flex; gap: 12px; align-items: baseline; }
.value h3::before { counter-increment: v; content: "0" counter(v); font-family: var(--mono); font-size: 0.8rem; color: var(--orange-ink); letter-spacing: 0.1em; }

/* Story */
.story { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.story li { position: relative; padding: 0 0 32px 26px; }
.story li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
.story li:last-child { padding-bottom: 0; }
.story .when { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); display: block; margin-bottom: 4px; }
.story h3 { font-size: 1.2rem; margin-bottom: 6px; }
.story p { margin: 0; }

/* Leadership */
.portrait { border-radius: var(--radius); overflow: hidden; background: var(--deep); aspect-ratio: 1 / 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.roles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.roles li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 0.95rem; }
.roles b { color: var(--ink); }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.contact-list .label { margin-bottom: 6px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--orange-ink); }
.topics { display: grid; gap: 10px; }
.topic {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.topic span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.topic:hover { border-color: var(--orange); }
.topic svg { flex: none; width: 18px; height: 18px; color: var(--orange-ink); }

/* Call to action band */
.cta-band { background: var(--navy); color: rgba(246, 249, 252, 0.85); padding: 64px 0; }
.cta-band h2 { color: var(--white); max-width: 18em; }
.cta-band .btn-row { margin-top: 24px; }

/* Footer */
.site-footer { background: var(--deeper); color: rgba(246, 249, 252, 0.66); padding: 60px 0 34px; font-size: 0.93rem; }
.site-footer a { color: rgba(246, 249, 252, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 34px; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 249, 252, 0.5); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; font-size: 0.84rem; color: rgba(246, 249, 252, 0.5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Gentle reveal, only when JavaScript is running */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
