/* ===== Theme: edit these variables to customize colors & fonts ===== */
:root {
  --burgundy: #1f6b3a;
  --burgundy-dark: #0f1a13;
  --gold: #f2c218;
  --gold-light: #ffe066;
  --green: #1f6b3a;
  --parchment: #ffffff;
  --cream: #f6f8f2;
  --ink: #141414;
  --muted: #555b55;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 12px 30px -12px rgba(15, 26, 19, 0.35);
  /* small accent colors: red & blue */
  --red: #a3192b;
  --blue: #1d4e89;
  --red-tint: #fbeef0;
  --blue-tint: #eaf1f8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ethiopic: "Noto Serif Ethiopic", serif;
  --max: 1180px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--burgundy);
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--burgundy);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: 1.5rem;
}
.container {
  width: min(var(--max), 92%);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  padding: 0.6rem 1rem;
  z-index: 999;
}
.skip:focus {
  left: 1rem;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Tilf (Ethiopian woven) border strip */
.tilf {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 14px,
    var(--gold) 14px 28px,
    #111 28px 42px,
    var(--red) 42px 44px,
    var(--blue) 44px 46px
  );
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.nav-wrap {
  width: min(1600px, 96%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  min-height: 74px;
  padding-block: 0.75rem;
}
.nav-wrap > nav {
  margin-inline-start: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--burgundy);
}
.nav-wrap .brand,
.nav-wrap .brand > span {
  min-width: 0;
}
.nav-wrap .brand strong,
.nav-wrap .brand small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--green);
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  display: block;
  line-height: 1.1;
}
.brand small {
  font-family: var(--ethiopic);
  color: #9a7a00;
  font-size: 0.8rem;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}
.nav-menu a,
.dd-toggle {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-menu a:hover,
.dd-toggle:hover {
  background: var(--green);
  color: var(--white);
}
.nav-menu a.active {
  box-shadow: inset 0 -3px 0 var(--gold);
  color: var(--green);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--burgundy-dark) !important;
  color: var(--gold) !important;
}
.has-dd {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}
.dropdown a {
  color: var(--ink);
  display: block;
}
.dropdown a:hover {
  background: var(--cream);
  color: var(--burgundy);
}
.has-dd:hover .dropdown,
.has-dd:focus-within .dropdown,
.has-dd.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--burgundy-dark) !important;
  font-weight: 600;
}
.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px auto;
  transition: 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1060px) {
  .nav-wrap {
    width: 92%;
    flex-wrap: nowrap;
    gap: 1rem;
  }
  .nav-wrap > nav {
    margin-inline-start: 0;
  }
  .hamburger {
    display: block;
    flex-shrink: 0;
    margin-inline-start: auto;
  }
  .nav-menu {
    position: fixed;
    inset: 74px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 1rem 4%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav-menu.open {
    transform: none;
  }
  .nav-menu a,
  .dd-toggle {
    padding: 0.9rem;
    font-size: 1.05rem;
    width: 100%;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--cream);
    box-shadow: none;
    border: 0;
  }
  .has-dd:hover .dropdown {
    display: none;
  }
  .has-dd.open .dropdown {
    display: block;
  }
  .dropdown a {
    color: var(--ink);
  }
  .dropdown a:hover {
    background: #fff6cc;
    color: var(--green);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(10, 15, 12, 0.35), rgba(10, 15, 12, 0.55)),
    url(../images/hero.jpg) center/cover;
}
.hero h1 {
  color: var(--white);
}
.hero .geez {
  font-family: var(--ethiopic);
  color: var(--gold-light);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.hero p {
  max-width: 640px;
  margin: 1rem auto 2rem;
  font-size: 1.15rem;
  opacity: 0.92;
}
.page-hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(31, 107, 58, 0.82), rgba(31, 107, 58, 0.88)),
    url(../images/community.jpg) center/cover;
}
.page-hero h1 {
  color: var(--white);
}
.page-hero p {
  color: var(--gold-light);
  max-width: 640px;
  margin: 0.6rem auto 0;
}
.crumbs {
  font-size: 0.85rem;
  margin-top: 1rem;
  opacity: 0.8;
}
.crumbs a {
  color: var(--gold-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--burgundy-dark);
}
.btn-gold:hover {
  background: var(--gold-light);
}
.btn-outline {
  border-color: var(--gold-light);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
}
.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--cream);
}
.section-dark {
  background: #fff8d6;
  color: var(--ink);
}
.section-dark h2,
.section-dark h3 {
  color: var(--green);
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7a00;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-head p {
  color: var(--muted);
  margin-top: 0.8rem;
}
.section-dark .section-head p {
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold);
  margin: 0.8rem 0;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--gold);
}
.grid {
  display: grid;
  gap: 1.6rem;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .g3,
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  section {
    padding: 3.5rem 0;
  }
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.split p {
  margin-top: 1rem;
  color: var(--muted);
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 18px -8px rgba(15, 26, 19, 0.18);
  border-top: 4px solid var(--gold);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  opacity: 0;
  transition: 0.25s;
}
.card:hover::after {
  opacity: 1;
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--burgundy);
  margin-bottom: 1rem;
}
.card .icon svg {
  width: 26px;
  height: 26px;
}
.section-dark .card {
  background: var(--white);
}

/* Events */
.event {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 4px 18px -8px rgba(15, 26, 19, 0.18);
}
.event-date {
  flex: 0 0 76px;
  text-align: center;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 8px;
  padding: 0.6rem 0;
  font-family: var(--serif);
}
.event-date b {
  display: block;
  font-size: 2rem;
  line-height: 1;
}
.event-date span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.event h3 {
  font-size: 1.3rem;
}
.event p {
  color: var(--muted);
  font-size: 0.93rem;
}
.meta {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* Schedule table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px -8px rgba(15, 26, 19, 0.18);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 520px;
}
th {
  background: var(--burgundy);
  color: var(--white);
  text-align: left;
  padding: 1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--cream);
}
tr:nth-child(even) td {
  background: #fafcf7;
}

/* Leaders */
.leader {
  text-align: center;
}
.leader .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--cream);
  border: 4px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--burgundy);
}
.leader .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Accordion / tabs */
.accordion details {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 10px -6px rgba(15, 26, 19, 0.2);
}
.accordion summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--burgundy-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.accordion summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.5rem;
}
.accordion details[open] summary::after {
  content: "−";
  color: var(--blue);
}
.accordion details > div {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.tab {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--burgundy);
  background: none;
  color: var(--burgundy);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.tab[aria-selected="true"] {
  background: var(--burgundy);
  color: var(--white);
}
.tab-panel[hidden] {
  display: none;
}

/* Quote */
.quote {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
}
.quote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--red);
  margin-top: 1rem;
}

/* Donate */
.donate-box {
  text-align: center;
}
.donate-box .big {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--burgundy);
  margin: 0.6rem 0;
}
.copy {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: var(--cream);
  padding: 0.7rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 600;
}
.copy button {
  border: 0;
  background: var(--burgundy);
  color: var(--white);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}
ol.steps {
  text-align: left;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Forms */
form .field {
  margin-bottom: 1rem;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #d7ddd2;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.12);
}
.error {
  color: #a3192b;
  font-size: 0.82rem;
  display: none;
}
.invalid .error {
  display: block;
}
.invalid input,
.invalid textarea {
  border-color: #a3192b;
}
.form-success {
  display: none;
  background: #e6f0e7;
  color: var(--green);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-item .icon {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--gold-light);
  display: grid;
  place-items: center;
}
.contact-item .icon svg {
  width: 22px;
}
.contact-item a {
  text-decoration: none;
  font-weight: 600;
}
.map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--green), #2e8a4c);
  color: var(--white);
}
.cta-band h2 {
  color: var(--gold-light);
}
.cta-band p {
  max-width: 600px;
  margin: 1rem auto 2rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #eef5ec;
  color: var(--ink);
  padding-top: 4rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer h4 {
  color: var(--green);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.45rem;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--blue);
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  margin-bottom: 0.5rem;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--green);
}
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom > span:last-child {
  padding-right: 3.5rem;
}
.back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--burgundy-dark);
  border: 0;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
