/* ==========================================================================
   Nkwoegwu Kingdom — Design System
   Palette: rich royal green + gold accents on warm cream.
   Typography: Cormorant Garamond (display) + Source Sans 3 (body).
   ========================================================================== */

:root {
  /* Ivory Palace — warm ivory + gold, with a deep charcoal for contrast. */
  --green: #2e2a20;
  --green-800: #201d16;
  --green-700: #3b3527;
  --green-600: #4a4230;
  --gold: #c9a24b;
  --gold-soft: #e7d29c;
  --gold-deep: #9c7a2b;
  --coral: #b0432b;
  --cream: #faf5ea;
  --cream-2: #f2e8d5;
  --ink: #241f1c;
  --muted: #5d574e;
  --white: #ffffff;
  --shadow: 0 18px 42px -24px rgba(46, 42, 32, 0.5);
  --radius: 14px;
  --maxw: 1180px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

a {
  color: var(--green-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}
h3 {
  font-size: 1.4rem;
}

.container {
  width: min(var(--maxw), 100% - 2.5rem);
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--green);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--green);
}
.btn-gold:hover {
  background: var(--gold-soft);
}
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--green);
}
.btn-green {
  background: var(--green-600);
  color: var(--cream);
}
.btn-green:hover {
  background: var(--green);
}

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid rgba(156, 122, 43, 0.35);
  box-shadow: 0 1px 12px rgba(46, 42, 32, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-crest {
  font-size: 2.1rem;
  color: var(--gold-deep);
  line-height: 1;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */
.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.header-nav a {
  display: block;
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-nav a:hover {
  text-decoration: none;
  color: var(--gold-deep);
}
.header-nav a[aria-current="page"] {
  color: var(--gold-deep);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ------------------------------ Home hero ------------------------------- */
.hero {
  position: relative;
  color: var(--ink);
  background: var(--cream-2);
  background-image: radial-gradient(
      circle at 12% 18%,
      rgba(201, 162, 75, 0.32),
      transparent 46%
    ),
    radial-gradient(circle at 88% 92%, rgba(201, 162, 75, 0.22), transparent 52%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}
.hero .eyebrow {
  color: var(--gold-deep);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
}
.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 7.5rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 1px rgba(156, 122, 43, 0.35);
  margin: 0.2rem 0 0.4rem;
}
.hero-title-sub {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink);
  margin: 0;
}
.hero-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-deep);
  margin: 0.2rem 0 0;
}
.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
/* Portrait feathered into the ivory background — no hard frame */
.hero-portrait {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 34rem;
}
.hero-portrait img {
  display: block;
  width: 100%;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 32%;
  background: transparent;
  border-radius: 18px;
  -webkit-mask-image: radial-gradient(
    ellipse 82% 88% at 50% 44%,
    #000 46%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 82% 88% at 50% 44%,
    #000 46%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* ------------------------------ Feature strip --------------------------- */
.feature-strip {
  background: var(--cream);
  border-top: 1px solid rgba(156, 122, 43, 0.28);
  border-bottom: 1px solid rgba(156, 122, 43, 0.28);
  padding: 1.6rem 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.feature + .feature {
  border-left: 1px solid rgba(156, 122, 43, 0.22);
}
.feature:hover {
  text-decoration: none;
  background: var(--cream-2);
  transform: translateY(-2px);
}
.feature-thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(156, 122, 43, 0.4);
}
.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.1;
}
.feature-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ------------------------------ Sections -------------------------------- */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section--tint {
  background: var(--cream-2);
}
.section--green {
  background: var(--gold);
  color: var(--ink);
}
.section--green h2,
.section--green h3 {
  color: var(--green);
}
.section--green .eyebrow {
  color: var(--green);
}
.section--green .rule {
  background: var(--green);
}
.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.lead {
  font-size: 1.18rem;
  color: var(--muted);
}
.section--green .lead {
  color: rgba(36, 31, 28, 0.85);
}

/* Decorative gold divider */
.rule {
  width: 72px;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 1.2rem 0;
}
.center .rule {
  margin-inline: auto;
}

/* ------------------------------ Grid & cards ---------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.card h3 {
  margin-top: 0;
}
.card .card-icon {
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--coral);
}

/* Feature split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Stat band */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.stat .stat-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: rgba(36, 31, 28, 0.8);
}

/* Village chips */
.villages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.village-chip {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  color: var(--green);
  box-shadow: var(--shadow);
}
.village-chip small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Notice / callout */
.notice {
  background: #fff8e8;
  border: 1px solid var(--gold-soft);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.notice strong {
  color: var(--coral);
}

/* ------------------------------ Page hero ------------------------------- */
.page-hero {
  background: var(--cream-2);
  background-image: radial-gradient(
      circle at 12% 20%,
      rgba(201, 162, 75, 0.34),
      transparent 44%
    ),
    radial-gradient(circle at 88% 120%, rgba(201, 162, 75, 0.24), transparent 48%);
  color: var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 3px solid var(--gold);
}
.page-hero .eyebrow {
  color: var(--gold-deep);
}
.page-hero h1 {
  color: var(--green);
}
.page-hero-lede {
  font-size: 1.2rem;
  max-width: 46rem;
  color: var(--muted);
}

.page-body {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-body h2 {
  margin-top: 2rem;
}
.page-body ul,
.page-body ol {
  padding-left: 1.3rem;
}
.page-body li {
  margin-bottom: 0.4rem;
}
.prose {
  max-width: 46rem;
}

/* ------------------------------ Gallery --------------------------------- */
.gallery {
  columns: 3 240px;
  column-gap: 1rem;
}
.gallery figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.gallery figure:hover img {
  transform: scale(1.04);
}
.gallery figcaption {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------ Footer ---------------------------------- */
.site-footer {
  background: var(--green);
  color: var(--cream);
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand .brand-crest {
  font-size: 2.2rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.3rem 0 0.2rem;
}
.footer-tagline,
.footer-ruler {
  color: var(--gold-soft);
  font-size: 0.92rem;
  margin: 0.2rem 0;
}
.footer-col h3 {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.4rem;
}
.footer-col a {
  color: var(--cream);
  font-size: 0.94rem;
}
.footer-col a:hover {
  color: var(--gold);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(231, 207, 149, 0.25);
  padding: 1.4rem 0;
  font-size: 0.86rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--gold-soft);
}
.footer-motto {
  font-style: italic;
  max-width: 32rem;
  text-align: right;
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 12px 24px rgba(46, 42, 32, 0.12);
  }
  .site-header {
    position: sticky;
  }
  .header-inner {
    position: relative;
  }
  .header-nav.open {
    max-height: 90vh;
    overflow-y: auto;
    border-bottom: 3px solid var(--gold);
  }
  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1.25rem 1rem;
  }
  .header-nav a {
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid rgba(156, 122, 43, 0.15);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }
  .header-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 1.4rem;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature + .feature {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-portrait {
    order: -1;
    max-width: 22rem;
  }
  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .split-media {
    order: -1 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-motto {
    text-align: left;
  }
  .gallery {
    columns: 2 160px;
  }
}
