/* eGov Gambia — public information site.
   Clean, plain, government-style: white surfaces, generous whitespace, one
   accent color (the platform's established orange), no marketing gloss —
   in the spirit of gov.uk / service-public.fr. Layout conventions (card
   style, spacing, typography stack) follow the Neighbourhood Watch portal's
   design system. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e6e8ec;
  --text: #16181d;
  --text-2: #5b6472;
  --text-3: #8a93a2;
  --accent: #B65A12;
  --accent-dark: #954A0E;
  --accent-soft: #FFF3EA;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1080px;
}

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

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

header.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

nav.site-nav {
  display: flex;
  gap: 28px;
}

nav.site-nav a {
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
}

nav.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero carousel (auto-advancing) ---------- */

.hero-carousel {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #1a1d22;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.15) 0%, rgba(10,10,12,0.78) 100%);
}

.hero-slide .hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 0 24px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero-slide .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-slide h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  max-width: 720px;
  margin-bottom: 12px;
}

.hero-slide p.lead {
  font-size: 16.5px;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover { background: rgba(0,0,0,0.55); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

@media (max-width: 640px) {
  .hero-carousel { height: 400px; }
  .hero-slide h1 { font-size: 26px; }
}

/* ---------- Sections ---------- */

section { padding: 48px 0; }

section h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

section p.section-lead {
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card .photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--accent-soft);
}

/* Shown instead of .photo when the real image file hasn't been supplied yet */
.service-card .photo-fallback {
  width: 100%;
  height: 140px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.service-card .body { padding: 18px 22px 22px; }

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.contact-item .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.contact-item .value {
  font-size: 16px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 10px;
}

.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Document pages ---------- */

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 32px 0;
}

.doc h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.doc .doc-meta { color: var(--text-3); font-size: 13.5px; margin-bottom: 28px; }
.doc p { margin-bottom: 16px; white-space: pre-line; }
.doc .doc-loading, .doc .doc-error { color: var(--text-2); padding: 24px 0; }

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer.site-footer .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site-footer .links a {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}

footer.site-footer .copyright {
  color: var(--text-3);
  font-size: 13px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  nav.site-nav { gap: 16px; }
}
