:root {
  --ink: #24100f;
  --maroon: #7b1718;
  --maroon-dark: #4d0c0f;
  --gold: #b87917;
  --saffron: #bf641d;
  --cream: #eadfc8;
  --parchment: #ded1b7;
  --rose: #dbc2b9;
  --leaf: #ced8c2;
  --sky: #c9d4da;
  --wheat: #d9c8a5;
  --lotus: #d6c9d8;
  --muted: #6f5751;
  --line: rgba(123, 23, 24, 0.18);
  --shadow: 0 18px 50px rgba(77, 12, 15, 0.12);
}

body.dark-mode {
  --ink: #f2eadb;
  --maroon: #c2575b;
  --maroon-dark: #341012;
  --gold: #d4a340;
  --saffron: #c98235;
  --cream: #312920;
  --parchment: #28231d;
  --rose: #3a2a28;
  --leaf: #2d3429;
  --sky: #27323a;
  --wheat: #3b3123;
  --lotus: #352d39;
  --muted: #d3c3a9;
  --line: rgba(230, 204, 161, 0.2);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(234, 223, 200, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(77, 12, 15, 0.06);
}

body.dark-mode .site-header {
  background: rgba(40, 35, 29, 0.98);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 8px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1b1005;
  background: #eadfc8 url("Images/KITENGELA NB.png") center/92% auto no-repeat;
  border: 1px solid rgba(123, 23, 24, 0.22);
  font-size: 0;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--maroon);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 6px;
  width: 100%;
}

.nav-links a,
.icon-link,
.button,
button,
.menu-button,
summary {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active,
.icon-link:hover,
.icon-link.active {
  border-color: var(--line);
  color: var(--maroon);
  background: rgba(123, 23, 24, 0.1);
}

.cart-link {
  width: 42px;
  min-width: 42px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}

.profile-icon {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--wheat);
}

.theme-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--wheat);
  color: var(--maroon);
  font-size: 20px;
  font-weight: 900;
}

.profile-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid var(--maroon);
  border-radius: 50%;
  box-shadow: 0 17px 0 -4px var(--wheat), 0 17px 0 -2px var(--maroon);
  transform: translateY(-6px);
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-color: var(--line);
  background: var(--wheat);
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--maroon);
  display: block;
  content: "";
}

.menu-button span::before {
  transform: translateY(-7px);
}

.menu-button span::after {
  transform: translateY(5px);
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(340px, 88vw);
  height: 100vh;
  padding: 26px;
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

body.dark-mode .menu-drawer {
  background: var(--parchment);
}

.menu-drawer h2 {
  font-size: 24px;
}

.menu-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--maroon);
  font-weight: 800;
}

.drawer-close {
  float: right;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wheat);
  cursor: pointer;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(36, 16, 15, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.menu-toggle:checked ~ .menu-drawer {
  transform: translateX(0);
}

.menu-toggle:checked ~ .menu-scrim {
  opacity: 1;
  pointer-events: auto;
}

.header-mantra,
.footer-mantra {
  border-top: 1px solid rgba(123, 23, 24, 0.1);
  padding: 8px 16px;
  text-align: center;
  color: var(--maroon);
  font-size: 14px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: var(--maroon);
  background: var(--maroon);
  color: var(--cream);
  font-weight: 800;
}

body.dark-mode .button {
  color: #fff3dc;
}

.button.secondary {
  background: transparent;
  color: var(--maroon);
}

body.dark-mode .button.secondary {
  color: #f0c977;
}

.button:hover,
button:hover {
  border-color: #9d2023;
  background: #9d2023;
  color: var(--cream);
}

.button.secondary:hover {
  border-color: var(--maroon);
  background: var(--maroon);
  color: var(--cream);
}

.section-inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  padding: 62px 0 38px;
  background:
    linear-gradient(rgba(77, 12, 15, 0.72), rgba(77, 12, 15, 0.78)),
    url("assets/community-placeholder.svg") center/cover no-repeat;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}

body.dark-mode .page-hero {
  background:
    linear-gradient(rgba(92, 22, 25, 0.54), rgba(48, 16, 17, 0.72)),
    url("assets/community-placeholder.svg") center/cover no-repeat;
}

.page-hero p {
  color: rgba(255, 248, 234, 0.82);
}

.home-welcome {
  min-height: 58vh;
  display: grid;
  align-items: end;
  padding: 86px 0 52px;
  background:
    linear-gradient(rgba(77, 12, 15, 0.38), rgba(77, 12, 15, 0.84)),
    url("assets/community-placeholder.svg") center/cover no-repeat;
  color: var(--cream);
}

body.dark-mode .home-welcome {
  background:
    linear-gradient(rgba(92, 22, 25, 0.38), rgba(48, 16, 17, 0.68)),
    url("assets/community-placeholder.svg") center/cover no-repeat;
}

body.dark-mode .page-hero h1,
body.dark-mode .home-welcome h1 {
  color: #fff3dc;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

body.dark-mode .page-hero p,
body.dark-mode .home-welcome p {
  color: #f5e2c4;
}

body.dark-mode .page-hero .eyebrow,
body.dark-mode .home-welcome .eyebrow {
  color: #f0c977;
}

.home-welcome p {
  max-width: 760px;
  color: rgba(255, 248, 234, 0.84);
}

.home-welcome .eyebrow {
  color: var(--gold);
}

.section {
  padding: 58px 0;
  border-top: 1px solid rgba(123, 23, 24, 0.08);
}

.tone-gold {
  background: var(--wheat);
}

.tone-rose {
  background: var(--rose);
}

.tone-leaf {
  background: var(--leaf);
}

.tone-sky {
  background: var(--sky);
}

.tone-lotus {
  background: var(--lotus);
}

.tone-cream {
  background: var(--cream);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.stack {
  display: grid;
  gap: 18px;
}

.card,
.panel,
.accordion {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 228, 207, 0.72);
  padding: 24px;
}

.card.highlight,
.panel.highlight {
  background: rgba(238, 228, 207, 0.94);
  box-shadow: var(--shadow);
}

body.dark-mode .card,
body.dark-mode .panel,
body.dark-mode .accordion,
body.dark-mode .list-item,
body.dark-mode .reel-tile {
  background: rgba(50, 42, 33, 0.82);
}

body.dark-mode .card.highlight,
body.dark-mode .panel.highlight {
  background: rgba(61, 49, 38, 0.96);
}

.accordion {
  padding: 0;
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--maroon);
  font-weight: 900;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
}

.accordion[open] summary::after {
  content: "-";
}

.accordion-content {
  padding: 0 22px 22px;
}

.meta,
.eyebrow {
  color: var(--maroon);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.quote {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.15;
  color: var(--maroon-dark);
  margin: 0 0 16px;
}

body.dark-mode .quote {
  color: #f4dfb2;
}

.quote-source {
  color: var(--maroon);
  font-weight: 800;
}

.actions,
.download-row,
.social-row,
.related-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.72);
}

.image-reel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.reel-tile {
  flex: 0 0 min(78vw, 360px);
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(123, 23, 24, 0.12), rgba(217, 154, 30, 0.18)),
    var(--cream);
  padding: 20px;
  display: flex;
  align-items: end;
  scroll-snap-align: start;
}

body.dark-mode .reel-tile {
  background:
    linear-gradient(135deg, rgba(194, 87, 91, 0.15), rgba(212, 163, 64, 0.16)),
    var(--cream);
}

.form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eee4cf;
  color: var(--ink);
  padding: 12px;
  font: inherit;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #2f281f;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.map {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--wheat);
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  filter: saturate(0.8) contrast(0.98);
}

.footer {
  background: #4d0c0f;
  border-top: 1px solid var(--line);
  padding: 28px 0 18px;
  color: var(--cream);
}

.footer .section-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr 0.9fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  display: block;
}

.footer-logo {
  grid-column: 1;
}

.footer-logo .brand-mark {
  width: min(100%, 150px);
  height: auto;
  aspect-ratio: 1000 / 924;
  border-radius: 0;
  background-size: contain;
  background-color: transparent;
  border: 0;
}

.footer-logo div {
  display: none;
}

.footer .section-inner > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.footer .section-inner > div:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.footer .section-inner > div:nth-child(4) {
  grid-column: 4;
  grid-row: 1 / span 2;
}

.footer h2,
.footer h3 {
  color: var(--cream);
}

.footer p,
.footer address {
  color: rgba(255, 248, 234, 0.78);
  font-style: normal;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 248, 234, 0.82);
  font-weight: 700;
}

.footer a:hover {
  color: var(--gold);
}

.footer .map {
  border-color: rgba(255, 248, 234, 0.26);
  width: 220px;
  max-width: 100%;
  min-height: 92px;
  cursor: zoom-in;
  transition: width 180ms ease, min-height 180ms ease;
}

.footer .map iframe {
  height: 92px;
}

.footer .map:hover,
.footer .map:focus-within {
  width: min(520px, 100%);
  min-height: 260px;
  cursor: zoom-out;
}

.footer .map:hover iframe,
.footer .map:focus-within iframe {
  height: 260px;
}

.footer-mantra {
  grid-column: 1 / -1;
  border-top-color: rgba(255, 248, 234, 0.18);
  color: var(--gold);
  padding-bottom: 0;
}

.fineprint {
  grid-column: 1 / -1;
  color: rgba(255, 248, 234, 0.58);
  font-size: 14px;
  margin: 0;
}

.footer .social-row,
.footer .related-row {
  display: block;
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto 1fr auto auto auto;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .theme-toggle,
  .profile-icon,
  .menu-button {
    width: 40px;
    height: 40px;
  }

  .footer .section-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo,
  .footer .section-inner > div:nth-child(2),
  .footer .section-inner > div:nth-child(3),
  .footer .section-inner > div:nth-child(4),
  .footer-mantra,
  .fineprint {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 22px, 1180px);
    gap: 10px;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    font-size: 19px;
  }

  .section-inner {
    width: min(100% - 28px, 980px);
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .card,
  .panel,
  .accordion-content {
    padding-left: 18px;
    padding-right: 18px;
  }
}
