@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --river-blue: #005eb8;
  --forest-green: #009639;
  --sunshine-yellow: #ffd200;
  --night: #0e1a24;
  --sand: #f6f1e7;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  color: var(--night);
  background: radial-gradient(circle at top, #fff9db 0%, #f4f8ff 40%, #ecf6ef 100%);
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--night);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Critical above-the-fold styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--river-blue);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.logo-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
}

.logo-flag svg {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.logo-text {
  font-size: 1.1rem;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--white);
  position: absolute;
  top: 100%;
  right: 1rem;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.nav.nav-open .nav-links {
  display: flex;
}

.nav-links a,
.search-toggle {
  font-weight: 600;
  border: none;
  background: none;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--night);
  display: block;
}

.search-form {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav.search-open .search-form {
  display: flex;
}

.search-form input {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}

.search-form button {
  background: var(--night);
  color: var(--white);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.2rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 36rem;
}

.hero-media {
  border-radius: var(--radius);
  min-height: 280px;
  background: linear-gradient(120deg, rgba(0, 94, 184, 0.3), rgba(0, 150, 57, 0.25)),
    url("https://placehold.co/1400x900?text=Smiling+Coast+of+Africa") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--forest-green);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--river-blue);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--river-blue);
  color: var(--river-blue);
}

main {
  display: block;
}

.section {
  padding: 4rem 1.2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section.alt {
  background: var(--sand);
  border-radius: 28px;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0.8rem;
}

.callout {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.news-ticker {
  background: var(--river-blue);
  color: var(--white);
  padding: 1rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.page-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem 1.2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.map-section {
  padding: 1rem 1.2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.map-frame {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

#gambia-map {
  width: 100%;
  height: 420px;
  border-radius: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

th {
  background: var(--night);
  color: var(--white);
}

.accordion {
  display: grid;
  gap: 1rem;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion-panel {
  padding: 0 1.5rem 1.2rem;
  display: none;
}

.accordion-item.active .accordion-panel {
  display: block;
}

.site-footer {
  background: var(--night);
  color: var(--white);
  padding: 3rem 1.2rem 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.footer-grid h3 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.newsletter {
  display: grid;
  gap: 0.75rem;
}

.newsletter input {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: none;
}

.newsletter button {
  background: var(--sunshine-yellow);
  border: none;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.footer-note {
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 720px) {
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-left: auto;
  }

  .nav-toggle {
    display: none;
  }

  .search-form {
    display: flex;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 719px) {
  #gambia-map {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
