/* ==========================================================================
   ADSI (Awka) Multipurpose Cooperative Society — styles.css
   Palette pulled from the Society's crest: deep emerald, bronze/gold,
   supporting blue, warm paper background.
   Type: Fraunces (display) + IBM Plex Sans (body) + IBM Plex Mono (figures)
   Fonts are self-hosted — see assets/css/fonts.css, loaded before this file.
   ========================================================================== */

:root {
  --emerald: #04553B;
  --emerald-dark: #04321F;
  --bronze: #9A6F3E;
  --gold: #C79A54;
  --blue: #0B5E7F;
  --paper: #FAF7EF;
  --ink: #17251F;
  --line: rgba(4, 50, 31, 0.14);

  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --radius: 4px;
  --wrap-width: 1180px;
  --shadow-sm: 0 2px 10px rgba(4, 50, 31, 0.08);
  --shadow-md: 0 12px 32px rgba(4, 50, 31, 0.14);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--emerald-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.3em; }
p { margin: 0 0 1em; color: #3B453F; }
.wrap { max-width: var(--wrap-width); margin: 0 auto; padding: 0 24px; }
.mt-lg { margin-top: 2.5rem; }

/* ---------- Accessibility: skip link & focus ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--emerald-dark);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
main:focus-visible { outline: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.9em;
}
.ledger-bg--dark .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--emerald-dark); }
.btn--gold:hover { background: #d6ad68; box-shadow: var(--shadow-sm); }
.btn--dark { background: var(--emerald-dark); color: var(--paper); }
.btn--dark:hover { background: var(--emerald); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.ledger-bg--dark .btn--outline { color: var(--paper); }
.btn--outline:hover { background: rgba(4, 50, 31, 0.06); }
.ledger-bg--dark .btn--outline:hover { background: rgba(250, 247, 239, 0.1); }
.btn--sm { padding: 0.5em 1em; font-size: 0.82rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--emerald-dark);
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--bronze);
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav ul a:hover { color: var(--emerald); }
.main-nav ul a.active { color: var(--emerald); border-color: var(--gold); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 0; position: relative; overflow: hidden; }
.ledger-bg--dark {
  background: var(--emerald-dark);
  color: var(--paper);
  background-image:
    linear-gradient(rgba(4, 50, 31, 0.94), rgba(4, 50, 31, 0.94)),
    repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(250,247,239,0.04) 35px, rgba(250,247,239,0.04) 36px);
}
.ledger-bg--dark h1, .ledger-bg--dark h2, .ledger-bg--dark h3, .ledger-bg--dark h4 { color: var(--paper); }
.ledger-bg--dark p { color: rgba(250, 247, 239, 0.78); }
.ledger-bg {
  background-color: #F1ECDD;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(4,50,31,0.05) 35px, rgba(4,50,31,0.05) 36px);
}
.hero .wrap {
  display: block;
  max-width: 74ch;
  padding-bottom: 48px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 1.8em; flex-wrap: wrap; }
.hero-stamp-col { display: flex; justify-content: center; align-items: center; }

/* ---------- Hero carousel (broad, full-bleed within the green band) ---------- */
hero-carousel { display: block; }
.hero-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  outline: none;
}
.hero-carousel:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track { transition: none; }
}
.hero-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.hero-carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel-slide.is-placeholder {
  background:
    linear-gradient(rgba(4,50,31,0.35), rgba(4,50,31,0.75)),
    repeating-linear-gradient(135deg, rgba(199,154,84,0.12) 0px, rgba(199,154,84,0.12) 2px, transparent 2px, transparent 22px),
    var(--emerald);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.hero-carousel-placeholder-icon { display: none; color: var(--gold); opacity: 0.6; }
.is-placeholder .hero-carousel-placeholder-icon { display: block; }
.is-placeholder .hero-carousel-caption {
  position: static;
  background: none;
  padding: 0;
  font-style: italic;
  color: rgba(250, 247, 239, 0.6);
}
.hero-carousel-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 28px;
  background: linear-gradient(to top, rgba(4,50,31,0.85), transparent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 239, 0.4);
  background: rgba(4, 50, 31, 0.5);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.hero-carousel-btn:hover { background: rgba(4, 50, 31, 0.8); }
.hero-carousel-btn--prev { left: 16px; }
.hero-carousel-btn--next { right: 16px; }
.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-carousel-dot.is-active { background: var(--gold); }

/* ---------- Seal ---------- */
.seal {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal svg { width: 100%; height: 100%; }
.split-media .seal { width: 170px; height: 170px; margin: 0 auto; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 4px;
}
.trust-item .label {
  display: block;
  font-size: 0.82rem;
  color: var(--bronze);
}

/* ---------- Section rhythm ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------- Page head (interior pages) ---------- */
.page-head { padding: 64px 0 56px; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { max-width: 60ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 1.2em;
}
.breadcrumb a { color: rgba(250, 247, 239, 0.7); }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- Ledger list ---------- */
.ledger-list { display: flex; flex-direction: column; gap: 0; max-width: 860px; margin: 0 auto; }
.ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row:first-child { border-top: 1px solid var(--line); }
.ledger-row .mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--bronze);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ledger-row h4 { color: var(--emerald-dark); }
.ledger-row p { margin: 0; font-size: 0.95rem; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.split-media { display: flex; align-items: center; justify-content: center; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--emerald-dark);
  background: var(--paper);
  border: 1px solid var(--bronze);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--emerald-dark);
  color: var(--paper);
  border-radius: 8px;
  padding: 52px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin-bottom: 0.7em; }
.cta-band .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 20px 20px;
  border-top: 3px solid var(--gold);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bronze);
  display: block;
  margin-bottom: 10px;
}
.step p { font-size: 0.9rem; margin: 0; }

/* ---------- Doc table ---------- */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.doc-table thead th {
  background: var(--emerald-dark);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc-table tbody tr:last-child th, .doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody th { color: var(--emerald-dark); font-weight: 600; width: 40%; }
.doc-table .figure { font-family: var(--font-mono); font-weight: 600; color: var(--emerald); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-dark);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.info-card .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bronze);
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-dark); color: rgba(250, 247, 239, 0.85); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 239, 0.14);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--font-display); color: var(--paper); font-weight: 600; }
.footer-brand img { width: 34px; height: 34px; }
.footer-grid h4 {
  color: var(--gold);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; line-height: 1.5; }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(250, 247, 239, 0.55);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-carousel { height: 320px; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-carousel { height: 260px; }
  .hero-carousel-btn { width: 34px; height: 34px; font-size: 1.2rem; }
  .site-header .wrap { height: 66px; }
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 16px;
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 10px 0; }
  .nav-toggle { display: inline-flex; order: 2; }
  .main-nav > a.btn--gold { order: 3; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-strip .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 64px 0; }
}
