/* ============================================================
   African Bikers World — shared theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-raised: #f7f5f1;
  --bg-raised-2: #efebe4;
  --border: rgba(0, 0, 0, 0.1);
  --text: #201d1a;
  --text-muted: #5b564d;
  --rust: #c1440e;
  --rust-dark: #9c3609;
  --gold: #a66a10;
  --teal: #3fb8b0;
  --plum: #a374db;
  --whatsapp: #25d366;
  --radius: 14px;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  margin: 0;
  line-height: 1.2;
}
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Header
   ============================================================ */
.abw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.abw-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.abw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.abw-brand img { height: 42px; width: auto; }
.abw-brand-text strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.05rem; letter-spacing: 0.01em; }
.abw-brand-text span { display: block; font-size: 0.72rem; color: var(--rust); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.abw-nav { display: flex; align-items: center; gap: 2px; }
.abw-nav a {
  padding: 9px 13px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
}
.abw-nav a:hover, .abw-nav a.is-active, .abw-dropdown-toggle:hover { color: var(--text); background: var(--bg-raised); }

.abw-dropdown { position: relative; }
.abw-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.abw-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: none;
  min-width: 190px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 60;
}
.abw-dropdown.is-open .abw-dropdown-menu { display: block; }
.abw-dropdown-menu a { display: flex; padding: 9px 12px; border-radius: 7px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; text-decoration: none; }
.abw-dropdown-menu a:hover { background: var(--bg-raised-2); color: var(--text); }
.abw-dropdown-menu a.is-current { color: var(--rust); font-weight: 700; }

.abw-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.abw-burger span { width: 18px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

/* ============================================================
   Mobile menu
   ============================================================ */
.abw-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: none;
  overflow-y: auto;
  padding: 90px 24px 40px;
}
.abw-mobile-menu.is-open { display: block; }
.abw-mm-section { margin-bottom: 28px; }
.abw-mm-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}
.abw-mobile-menu a {
  display: block;
  padding: 13px 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.abw-mobile-menu a.is-current { color: var(--rust); font-weight: 700; }

/* ============================================================
   Hero
   ============================================================ */
.abw-hero {
  text-align: center;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(193, 68, 14, 0.06), transparent 60%);
}
.abw-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--text); }
.abw-hero .abw-hero-sub {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.abw-hero .abw-hero-tagline { margin-top: 16px; color: var(--text-muted); font-size: 0.95rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.abw-hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ============================================================
   Section divider
   ============================================================ */
.abw-divider { display: flex; align-items: center; gap: 16px; margin: 44px 0 24px; }
.abw-divider::before, .abw-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.abw-divider span {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
   Layout: sidebar (desktop) + content column
   ============================================================ */
.abw-layout { display: flex; align-items: flex-start; gap: 36px; padding-top: 34px; }
.abw-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.abw-sidebar h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.abw-area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.abw-area-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.87rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.abw-area-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); flex-shrink: 0; }
.abw-area-pill:hover { border-color: var(--rust); }
.abw-area-pill.search-all { border: 1px dashed var(--gold); color: var(--gold); }
.abw-area-pill.is-current { border-color: var(--rust); color: var(--rust); font-weight: 700; }

.abw-content { flex: 1; min-width: 0; }

/* ============================================================
   Sponsor block
   ============================================================ */
.abw-sponsor {
  display: flex;
  gap: 26px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.abw-sponsor > a, .abw-sponsor > img { flex-shrink: 0; width: 240px; }
.abw-sponsor img { width: 100%; border-radius: 10px; object-fit: cover; }
.abw-sponsor h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 10px; }
.abw-sponsor p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 14px; }

/* ============================================================
   Business / event cards
   ============================================================ */
.abw-card {
  display: flex;
  gap: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rust);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.abw-card-img { flex-shrink: 0; width: 200px; }
.abw-card-img img { width: 100%; height: 140px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.abw-card-body { flex: 1; min-width: 0; }
.abw-card h3 { font-size: 1.25rem; color: var(--text); }
.abw-card .abw-card-note {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Barlow', sans-serif;
}
.abw-card .abw-card-addr { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }
.abw-card .abw-card-text { color: var(--text-muted); font-size: 0.92rem; margin-top: 10px; white-space: pre-line; }

.abw-card.abw-card-sponsor-style { border-left: 1px solid var(--border); }
.abw-card.abw-card-sponsor-style .abw-card-img { width: 240px; }
.abw-card.abw-card-sponsor-style .abw-card-img img { height: auto; }
.abw-card.abw-card-sponsor-style h3 { color: var(--gold); font-size: 1.4rem; }
.abw-card.abw-card-sponsor-style .abw-card-text:first-of-type { margin-top: 8px; }

/* ============================================================
   Buttons
   ============================================================ */
.abw-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.abw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background .15s, border-color .15s, filter .15s;
}
.abw-btn svg { width: 15px; height: 15px; }
.abw-btn-call { background: var(--rust); color: #fff; border-color: var(--rust); }
.abw-btn-call:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.abw-btn-email { background: transparent; border-color: var(--gold); color: var(--gold); }
.abw-btn-email:hover { background: rgba(216, 162, 74, 0.12); }
.abw-btn-web { background: transparent; border-color: var(--text-muted); color: var(--text-muted); }
.abw-btn-web:hover { border-color: var(--text); color: var(--text); }
.abw-btn-whatsapp { background: var(--whatsapp); color: #06301b; border-color: var(--whatsapp); }
.abw-btn-whatsapp:hover { filter: brightness(1.08); }
.abw-btn-gallery { background: transparent; border-color: var(--plum); color: var(--plum); }
.abw-btn-gallery:hover { background: rgba(163, 116, 219, 0.14); }
.abw-btn-location { background: transparent; border-color: var(--teal); color: var(--teal); }
.abw-btn-location:hover { background: rgba(63, 184, 176, 0.14); }
.abw-submit-btn { border: none; }
.abw-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Fact list (events)
   ============================================================ */
.abw-fact-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.abw-fact-list li { background: var(--bg-raised-2); border-radius: 8px; padding: 8px 12px; }
.abw-fact-list .fact-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); font-family: 'Oswald', sans-serif; margin-bottom: 2px; }
.abw-fact-list .fact-value { font-size: 0.9rem; color: var(--text); }

/* ============================================================
   Club registry — committee officer grid
   ============================================================ */
.abw-officer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.abw-officer-card { background: var(--bg-raised-2); border-radius: 10px; padding: 14px; text-align: center; }
.abw-officer-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   Province hub selector (category landing pages)
   ============================================================ */
.abw-province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
.abw-province-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.abw-province-card:hover { transform: translateY(-3px); border-color: var(--rust); }
.abw-province-card img { width: 100%; height: 140px; object-fit: cover; }
.abw-province-card h3 { padding: 14px 16px; font-size: 1.05rem; color: var(--text); text-align: center; }

/* ============================================================
   Month selector grid (event diary hub pages)
   ============================================================ */
.abw-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0 40px;
}
.abw-month-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.abw-month-card:hover { transform: translateY(-3px); border-color: var(--rust); }
.abw-month-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.abw-month-card span {
  display: block;
  padding: 12px 8px;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-raised-2);
}

/* ============================================================
   Search box / table
   ============================================================ */
.abw-search-box { margin-top: 44px; }
.abw-search-box h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--text); }
.abw-search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
}
.abw-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.abw-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.abw-table th, .abw-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.abw-table th {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: var(--bg-raised);
}
.abw-table tr:last-child td { border-bottom: none; }
.abw-table a { color: var(--rust); font-weight: 600; text-decoration: none; }
.abw-no-results { display: none; text-align: center; color: var(--text-muted); padding: 24px; }

/* ============================================================
   Coming soon states
   ============================================================ */
.abw-coming-soon-block {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-raised);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  margin-bottom: 20px;
}
.abw-coming-soon-block h2 { color: var(--gold); margin-bottom: 8px; font-size: 1.2rem; }
.abw-coming-soon-block p { color: var(--text-muted); margin: 0; }
.abw-coming-soon-inline { text-align: center; padding: 28px; color: var(--text-muted); font-style: italic; }

/* ============================================================
   Modals (gallery / location)
   ============================================================ */
.abw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.abw-modal-overlay.is-open { display: flex; }
.abw-modal {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.abw-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.abw-modal h4 { margin-bottom: 18px; color: var(--rust); padding-right: 30px; }
.abw-modal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.abw-modal-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.abw-modal-map { width: 100%; height: 260px; border: 0; border-radius: 10px; margin-bottom: 14px; }
.abw-modal-address { color: var(--text-muted); margin-bottom: 14px; }

/* ============================================================
   Lightbox
   ============================================================ */
.abw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.abw-lightbox.is-open { display: flex; }
.abw-lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.abw-lightbox-close { position: absolute; top: 22px; right: 32px; color: #fff; font-size: 2.1rem; cursor: pointer; line-height: 1; }
.abw-lightbox-prev, .abw-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 8px;
}
.abw-lightbox-prev:hover, .abw-lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }
.abw-lightbox-prev { left: 20px; }
.abw-lightbox-next { right: 20px; }
.abw-lightbox-prev.is-hidden, .abw-lightbox-next.is-hidden { display: none; }

/* ============================================================
   Simple footer (category / event pages)
   ============================================================ */
.abw-footer { border-top: 1px solid var(--border); padding: 26px 0; margin-top: 60px; }
.abw-footer .container p { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.abw-footer a { color: var(--rust); font-weight: 600; text-decoration: none; }

/* ============================================================
   Social strip
   ============================================================ */
.abw-social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 20px;
}
.abw-social-strip img { height: 32px; width: auto; }
.abw-social-strip span { font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   Back to top
   ============================================================ */
.abw-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
}
.abw-back-to-top.is-visible { display: flex; }
.abw-back-to-top:hover { background: var(--rust-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .abw-nav { display: none; }
  .abw-burger { display: flex; }

  .abw-layout { flex-direction: column; align-items: stretch; padding-top: 0; }
  .abw-sidebar {
    position: sticky;
    left: auto;
    right: auto;
    bottom: auto;
    top: var(--header-h);
    width: auto;
    z-index: 40;
    background: var(--bg);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    margin: 0 -24px 20px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .abw-sidebar h2 { display: none; }
  .abw-area-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .abw-area-pill { white-space: nowrap; flex-shrink: 0; }

  .abw-sponsor { flex-direction: column; }
  .abw-sponsor > a, .abw-sponsor > img { width: 100%; }

  .abw-card { flex-direction: column; }
  .abw-card-img { width: 100%; }
  .abw-card-img img { height: 190px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .abw-header .container { padding: 0 16px; }
  .abw-btn-row { gap: 8px; }
  .abw-btn { padding: 8px 14px; font-size: 0.8rem; }
}
