/* Fabius Group — shared stylesheet
   Navy #0B1F3A / gold #B08D57, Cormorant Garamond + EB Garamond.
   One file for all pages; edit here, not per page. */

:root {
  --navy: #0B1F3A;
  --navy-panel: #11294B;
  --gold: #B08D57;
  --light: #E6E9EC;
  --steel-text: #7C8E9C;
  --rule: rgba(176, 141, 87, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  background-color: var(--navy);
  color: var(--light);
  line-height: 1.65;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--navy); }
::-moz-selection { background: var(--gold); color: var(--navy); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); width: 100%; }

a.skip {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 10px 18px; z-index: 10; text-decoration: none;
}
a.skip:focus { left: 0; }

/* ---------- Nav ---------- */
.site-nav { border-bottom: 1px solid var(--rule); background: var(--navy); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 16.8px clamp(20px, 5vw, 32px);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px 16px; flex-wrap: wrap;
}
.nav-brand {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  color: var(--gold); font-size: 22.4px; font-weight: 600;
  letter-spacing: 0.05em; text-decoration: none; line-height: 1;
}
.nav-links a {
  color: var(--steel-text); text-decoration: none;
  font-size: 12.8px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-left: 24px; transition: color 200ms ease;
}
.nav-links a:first-child { margin-left: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

main { flex: 1 0 auto; }

/* ---------- Type ---------- */
.hero { padding: clamp(3rem, 8vh, 5rem) 0 clamp(1.5rem, 4vh, 2.5rem); }
.kicker {
  font-size: clamp(0.95rem, 1.9vw, 1.15rem); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; line-height: 1.3;
}
h1 {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem); font-weight: 500; line-height: 1.14; color: var(--light);
  text-wrap: balance;
}
h2 {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem); font-weight: 500; margin-bottom: 12px; color: var(--light);
  text-wrap: balance;
}
h3 { font-size: 1.28rem; font-weight: 500; color: var(--gold); margin-bottom: 8px; line-height: 1.3; }
.lede { font-size: clamp(1.2rem, 2.1vw, 1.42rem); color: var(--steel-text); max-width: 760px; margin-top: 20px; text-wrap: pretty; }
.sec-intro { color: var(--steel-text); font-size: 1.2rem; max-width: 800px; margin-bottom: 30px; text-wrap: pretty; }
.em { color: var(--light); }
section { padding: clamp(2.6rem, 6vh, 3.8rem) 0; border-top: 1px solid var(--rule); }
p + p { margin-top: 1.05em; }
.prose { max-width: 760px; font-size: 1.18rem; color: var(--steel-text); text-wrap: pretty; }
.prose strong { color: var(--light); font-weight: 500; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
/* Four-item grids read better 2x2 than 3+1 */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card {
  background: var(--navy-panel); border: 1px solid var(--rule); padding: 24px 26px;
}
.card p { font-size: 1.08rem; color: var(--steel-text); }
.card .num {
  display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-text); margin-bottom: 10px;
}

/* ---------- Numbered capability blocks ---------- */
.caps { counter-reset: cap; margin-top: 8px; }
.cap {
  border-top: 1px solid var(--rule); padding: 26px 0;
  display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; align-items: start;
}
.cap:first-child { border-top: 0; padding-top: 6px; }
.cap::before {
  counter-increment: cap; content: counter(cap, decimal-leading-zero);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; color: var(--gold);
  line-height: 1; padding-top: 4px;
}
.cap h3 { font-size: 1.45rem; }
.cap p { color: var(--steel-text); font-size: 1.14rem; max-width: 760px; text-wrap: pretty; }

/* ---------- List ---------- */
ul.xp { list-style: none; margin-top: 8px; }
ul.xp li {
  position: relative; padding: 0 0 0 24px; margin-bottom: 16px;
  color: var(--steel-text); font-size: 1.14rem; line-height: 1.55; max-width: 900px;
}
ul.xp li strong { color: var(--light); font-weight: 500; }
ul.xp li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 1px solid var(--gold); color: var(--light);
  background: transparent; text-decoration: none; cursor: pointer;
  padding: 14px 36px; font-size: 0.85rem; font-family: inherit;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--gold); color: var(--navy); }
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.primary:hover { background: #c6a06a; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta { text-align: center; padding: clamp(3rem, 7vh, 4.5rem) 0; border-top: 1px solid var(--rule); }
.cta p { color: var(--steel-text); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Facts strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  column-gap: 32px;
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
}
.fact {
  border-top: 1px solid var(--rule); padding: 14px 0 16px;
  display: flex; flex-direction: column; gap: 5px;
}
.fact .fk { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
.fact .fv { font-size: 1.02rem; color: var(--light); line-height: 1.35; }

/* ---------- Homepage hero ---------- */
.home-hero { text-align: center; padding: clamp(2.8rem, 7vh, 4.5rem) 0 clamp(2rem, 5vh, 3rem); }
.seal { width: clamp(76px, 13vw, 108px); height: auto; display: block; margin: 0 auto 1.5rem; }
.wordmark {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  color: var(--gold); font-weight: 500; letter-spacing: 0.04em;
  font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.05;
}
.rule { width: 110px; height: 1px; background: var(--gold); border: 0; margin: 1.5rem auto 1.8rem; opacity: 0.9; }
.home-hero .hero-head {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 500; line-height: 1.2;
  color: var(--light); max-width: 20ch; margin: 0 auto; text-wrap: balance;
}
.home-hero .hero-lede {
  color: var(--steel-text); font-size: clamp(1.15rem, 2vw, 1.35rem);
  max-width: 60ch; margin: 1.4rem auto 0; text-wrap: pretty;
}
.home-hero .cta-row { justify-content: center; }

/* ---------- Parties ----------
   Ruled editorial columns rather than a filled lattice: an odd item count
   leaves no empty cell to show through. */
.parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); column-gap: 40px; }
.party { border-top: 1px solid var(--rule); padding: 20px 0 22px; }
.party h3 { font-size: 1.18rem; margin-bottom: 6px; }
.party p { font-size: 1.05rem; color: var(--steel-text); text-wrap: pretty; }

/* ---------- Exhibit ---------- */
.exhibit { background: var(--navy-panel); border: 1px solid var(--rule); padding: 30px 32px; max-width: 820px; }
.exhibit h3 { font-size: 1.5rem; }
.exhibit p { color: var(--steel-text); font-size: 1.12rem; margin-bottom: 20px; }

/* ---------- Leadership ---------- */
.portrait { width: 100%; max-width: 280px; height: auto; border: 1px solid var(--rule); display: block; }
.bio-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.bio-grid .prose { max-width: none; }

/* ---------- Contact form ---------- */
form { max-width: 640px; }
.field { margin-bottom: 22px; }
.field label { display: block; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--navy-panel); color: var(--light);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 13px 15px; font-family: inherit; font-size: 1.1rem; line-height: 1.5;
  transition: border-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: #7C8E9C; opacity: 0.75; }
#form-success { display: none; max-width: 640px; background: var(--navy-panel); border: 1px solid var(--gold); padding: 28px 32px; }
#form-success h2 { color: var(--gold); font-size: 1.6rem; margin-bottom: 8px; }
#form-success p { color: var(--light); font-size: 1.1rem; }
#form-success a { color: var(--gold); }
.direct { border-top: 1px solid var(--rule); padding: clamp(2rem, 5vh, 3rem) 0; display: flex; flex-wrap: wrap; gap: 28px 48px; }
.detail .label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-text); margin-bottom: 6px; }
.detail .value { font-size: 1.25rem; color: var(--light); }
.detail a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(176, 141, 87, 0.4); padding-bottom: 2px; }
.detail a:hover { border-bottom-color: var(--gold); }

/* ---------- Footer ---------- */
footer {
  flex-shrink: 0; border-top: 1px solid var(--rule); padding: 30px 0 44px;
  font-size: 0.82rem; color: var(--steel-text); text-align: center; line-height: 1.8;
}
footer a { color: var(--steel-text); text-decoration: none; }
footer a:hover { color: var(--gold); }
.sba-icons { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 20px 0 14px; }
.sba-icons img { height: 82px; width: auto; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .bio-grid { grid-template-columns: 1fr; gap: 26px; }
  .portrait { max-width: 220px; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 24px; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .nav-links a { margin: 0; }
  .cap { grid-template-columns: 1fr; gap: 6px; }
  .cap::before { font-size: 1.5rem; }
  .sba-icons img { height: 66px; }
}
