/* ============================================================
   BINARY EDU — Design System
   Ink navy + warm ivory + brass. Editorial, ledger-like structure
   built for an institutional audience (banks, corporates, NGOs, govt).
   ============================================================ */

:root {
  --ink: #15213A;
  --ink-soft: #29324A;
  --paper: #F1EEE4;
  --paper-alt: #E7E1D2;
  --brass: #A6793B;
  --brass-dark: #7C5A28;
  --slate: #5B6472;
  --line: #C9C2AE;
  --line-dark: #3B4560;
  --white: #FCFBF8;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { max-width: 62ch; margin: 0 0 1.1em; color: var(--ink-soft); }

.lede { font-size: 1.2rem; color: var(--slate); max-width: 54ch; }

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Header / Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .dot { color: var(--brass); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.96rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover { background: var(--ink); color: var(--white); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--line-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-brass {
  background: var(--brass);
  color: var(--white);
  border-color: var(--brass);
}
.btn-brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); }

/* ---------- Hero ---------- */

.hero {
  padding: 108px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero .index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  margin-bottom: 22px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  max-width: 14ch;
  margin-bottom: 26px;
}

.hero .lede { margin-bottom: 40px; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
}

.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); max-width: 20ch; }

/* ---------- Pillars / grid ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 32px; }

.pillar .roman {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 18px;
}

.pillar h3 { font-size: 1.25rem; margin-bottom: 12px; }

.pillar ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pillar li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--slate);
}

/* ---------- Two column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- Quote / statement band ---------- */

.statement {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
}

.statement h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 22ch;
  font-weight: 400;
}

.statement .section-mark { color: var(--brass); }

/* ---------- List rows (services detail) ---------- */

.service-row {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1.05rem;
}

.service-row h3 { font-size: 1.4rem; margin-bottom: 14px; }

.service-row .reframe {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--brass);
  font-size: 0.94rem;
  color: var(--slate);
}

.service-row .reframe strong { color: var(--ink); font-weight: 500; }

/* ---------- Form ---------- */

form {
  max-width: 640px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 110px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note { font-size: 0.85rem; color: var(--slate); margin-top: -6px; }

/* ---------- Contact info strip ---------- */

.contact-info {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.contact-info .item .label {
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 6px;
}
.contact-info .item .value {
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--paper-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--brass); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--slate);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Fellowship / community cards ---------- */

.deal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.deal:last-child { border-bottom: 1px solid var(--line); }
.deal h3 { font-size: 1.15rem; margin-bottom: 16px; }
.deal ul { margin: 0; padding-left: 20px; color: var(--slate); font-size: 0.95rem; }
.deal li { margin-bottom: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0 !important; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .deal { grid-template-columns: 1fr; gap: 18px; }
  .hero { padding: 72px 0 64px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
