/* ============================================================
   Swahili Nations EU e.V. — Design tokens
   Palette inspired by the Swahili coast: indigo night, ocean
   teal, spice clay and sun-bleached sand. The repeating
   triangle band echoes the printed borders of kanga cloth,
   which traditionally carry Swahili proverbs (methali).
   ============================================================ */

:root {
  --ink:        #1B2A4A;   /* indigo — headings, primary text */
  --teal:       #146B6B;   /* ocean teal — links, secondary accent */
  --clay:       #B75834;   /* spice clay — CTAs, highlights */
  --gold:       #C9A036;   /* gold — kanga pattern, small accents */
  --sand:       #FFFFFF;   /* warm sand — alt section background */ #F4ECDB; 
  --paper:      #FFFFFF;   /* warm white — page background */
  --ink-soft:   #4B5A78;   /* muted body text on light bg */
  --line:       #E4D9C3;   /* hairline borders on sand/paper */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  /* background-color: var(--paper); */
  background-color: #ffffff;
  color: var(--ink-soft);
  line-height: 1.55;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--teal);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

/* ---------------- Kanga border — signature divider ----------------
   A repeating strip of triangles referencing the woven/printed
   borders that frame every kanga cloth. Used wherever one
   section of the page hands off to the next. */

.kanga-border {
  height: 14px;
  width: 100%;
  
  /* background-image: */
    /* url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpolygon points='0,14 10,0 20,14' fill='%23B75834'/%3E%3Cpolygon points='20,14 30,0 40,14' fill='%23146B6B'/%3E%3Ccircle cx='10' cy='11' r='1.4' fill='%23C9A036'/%3E%3Ccircle cx='30' cy='11' r='1.4' fill='%23F4ECDB'/%3E%3C/svg%3E"); */
  /* background-repeat: repeat-x; */
  background-size: 40px 14px;
}

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

.site-header {
  /* background-color: var(--paper); */
   background-color: whitesmoke;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.logo-text p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  margin-left: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  border-bottom-color: var(--gold);
  color: var(--teal);
}

.main-nav a.active {
  border-bottom-color: var(--clay);
  color: var(--clay);
}

.nav-toggle {
  display: none;
}

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

.hero {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--clay);
  color: var(--paper);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(183, 88, 52, 0.28);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Kanga proverb card — a swatch of "fabric" carrying a Swahili
   proverb, echoing the printed sayings found on real kanga cloth. */

.kanga-card {
  background-color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--sand);
  position: relative;
}

.kanga-card .kanga-border {
  filter: brightness(1.05);
}

.kanga-card-body {
  padding: 30px 26px 26px;
}

.kanga-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.kanga-card .proverb-sw {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 10px;
}

.kanga-card .proverb-de {
  font-size: 0.92rem;
  color: var(--sand);
  opacity: 0.85;
}

/* ---------------- Content sections ---------------- */

.content-section {
  padding: 52px 0;
}

.content-section.alt {
  background-color: var(--sand);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 30px;
}

.section-head .eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

.content-section h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.content-section p {
  margin-bottom: 14px;
  max-width: 68ch;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Focus-area cards */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.focus-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.content-section.alt .focus-card {
  background-color: var(--paper);
}

.focus-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--clay);
}

.focus-icon svg {
  width: 100%;
  height: 100%;
}

.focus-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.focus-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
  max-width: none;
}

/* ---------------- Events ---------------- */

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-date {
  background-color: var(--ink);
  color: var(--sand);
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-date::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  display: inline-block;
}

.event-body {
  padding: 20px 18px 22px;
}

.event-body h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 10px;
}

.event-body p.desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.notice-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background-color: var(--sand);
}

.notice-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.notice-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ---------------- Gallery ---------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--sand);
  border: 1px solid var(--line);
  cursor: pointer;
}

.gallery-item .frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .caption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(27, 42, 74, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  color: var(--sand);
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--sand);
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

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

.site-footer {
   /* background-color: var(--ink);  */
  background-color: whitesmoke;
  color: black;
  margin-top: 24px;
}

.footer-inner {
  padding: 40px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}

.footer-proverb .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.footer-proverb .proverb-sw {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  /* color: var(--paper); */
  color: black;
  margin-bottom: 6px;
}

.footer-proverb .proverb-de {
  font-size: 0.88rem;
  opacity: 0.8;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.92rem;
  opacity: 0.92;
}

.footer-contact a {
  /* color: var(--sand); */
  color: black;
  text-decoration: underline;
  text-decoration-color: rgba(244, 236, 219, 0.4);
}

.footer-legal {
  border-top: 1px solid rgba(244, 236, 219, 0.15);
  padding: 16px 0;
  font-size: 0.8rem;
  opacity: 0.7;
}
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.visitor-counter strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.visitor-icon {
  font-size: 1.2rem;
}

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
    margin-top: 6px;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 18px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }
}

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