/* =============================================================================
   BUY TANZANIA, LOVE TANZANIA — Design System
   Warm, photographic, distinctly Tanzanian — not a generic directory.
   ============================================================================= */

/* Google Fonts */

:root {
  /* Font scale */
  --fs-xs:   .72rem;
  --fs-sm:   .82rem;
  --fs-base: .92rem;
  --fs-md:   1rem;
  --fs-lg:   1.1rem;
  /* Danger color */
  --danger:  #dc2626;
  --success: #16a34a;
  --success-tint: #dcfce7;

  --green:       #1B6B3A;
  --green-2:     #145230;
  --green-light: #E8F5EE;
  --gold:        #E8A020;
  --gold-2:      #B87A14;
  --gold-tint:   rgba(232,160,32,.14);
  --blue:        #1565A8;
  --blue-tint:   rgba(21,101,168,.10);
  --sand:        #FBF7F0;
  --g50:         #F8F4EE;
  --g100:        #F0EAE0;
  --g200:        #E0D5C4;
  --g400:        #9C8C78;
  --g500:        #7A6855;
  --g600:        #5C4D3C;
  --g800:        #2A1F14;
  --success:     #16A34A;
  --success-tint:#DCFCE7;
  --danger:      #DC2626;
  --danger-tint: #FEE2E2;
  --warning:     #D97706;
  --card:        #FFFFFF;
  --line:        #E0D5C4;
  --f-display:   'Sora', system-ui, sans-serif;
  --f-body:      'Plus Jakarta Sans', system-ui, sans-serif;
  --container:   1200px;
  --r1:          10px;
  --r2:          18px;
  --r3:          24px;
  --sh1:         0 4px 20px rgba(42,31,20,.08);
  --sh2:         0 12px 40px rgba(42,31,20,.16);
  --sh3:         0 24px 60px rgba(42,31,20,.22);
  --ease:        cubic-bezier(.22,1,.36,1);
  --green-3: #082a14;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); font-size: 16px; color: var(--g800); background: var(--sand); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { font-family: var(--f-display); line-height: 1.25; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* --- Layout ----------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-title { font-family: var(--f-display); font-size: clamp(1.5rem,3vw,2rem); font-weight: 700; color: var(--g800); }
.section-sub { color: var(--g500); margin-top: 8px; max-width: 560px; }
.section-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }

/* --- Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--r1); font-family: var(--f-body); font-size: .9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: all .2s var(--ease); white-space: nowrap; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-2); border-color: var(--green-2); text-decoration: none; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); text-decoration: none; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; text-decoration: none; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn-ghost { background: var(--g100); color: var(--g800); border-color: var(--g200); }
.btn-ghost:hover { background: var(--g200); text-decoration: none; }
.btn-wa { background: #25D366; color: #fff !important; border-color: #25D366; }
.btn-wa:hover { background: var(--green); text-decoration: none; }

/* --- Badges & status -------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-active, .badge-success { background: var(--success-tint); color: var(--green-3); }
.badge-pending, .badge-warning { background: #FEF3C7; color: #92400E; }
.badge-suspended, .badge-danger { background: var(--danger-tint); color: #991B1B; }
.badge-delisted { background: var(--g100); color: var(--g600); }
.badge-basic { background: var(--g100); color: var(--g600); }
.badge-professional { background: var(--blue-tint); color: #1E3A8A; }
.badge-premium { background: var(--gold-tint); color: var(--gold-2); }
.badge-verified { background: var(--success-tint); color: var(--success); }
.verified-icon { color: var(--success); font-size: .9em; }

/* Ownership badge */
.own-badge { padding: 2px 8px; border-radius: 12px; font-size: .68rem; font-weight: 700; text-transform: uppercase; background: var(--gold-tint); color: var(--gold-2); }

/* Capability badges */
.cap-badge { padding: 2px 8px; border-radius: 12px; font-size: .68rem; font-weight: 600; margin-right: 4px; margin-bottom: 4px; display: inline-block; }
.cap-retail { background: var(--green-light); color: var(--green-2); }
.cap-wholesale { background: var(--blue-tint); color: var(--blue); }
.cap-delivery { background: #F3E8FF; color: #6B21A8; }
.cap-export-ready { background: var(--gold-tint); color: var(--gold-2); }

/* --- Cards ------------------------------------------------------------------ */
.card { background: var(--card); border-radius: var(--r2); box-shadow: var(--sh1); overflow: hidden; }
.card:hover { box-shadow: var(--sh2); transform: translateY(-2px); transition: all .25s var(--ease); }

/* Business card */
/* =============================================================================
   BUSINESS CARD  —  image top, clean text below (story-card style)
   ============================================================================= */

.biz-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden; text-decoration: none;
  transition: box-shadow .22s ease, transform .22s ease;
}
.biz-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transform: translateY(-4px);
  text-decoration: none;
}

/* ── Cover image area ── */
.biz-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* consistent height, no cropping */
  overflow: hidden;
  background: var(--g100);
  flex-shrink: 0;
}
.biz-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .4s ease;
}
.biz-card:hover .biz-card-cover img { transform: scale(1.04); }

/* Fallback illustrated cover */
.biz-card-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.biz-cover-initials {
  font-family: var(--f-display); font-size: 2.2rem;
  font-weight: 800; color: rgba(255,255,255,.5);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  z-index: 1;
}

/* Overlay badges */
.biz-card-pkg-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: 20px;
  font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.biz-card-pkg-professional { background: #ede9fe; color: #5b21b6; }
.biz-card-pkg-premium { background: #fef3c7; color: #92400e; }
.biz-card-verified {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(22,163,74,.9); color: #fff;
  padding: 3px 9px; border-radius: 20px;
  font-size: .65rem; font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ── Card body ── */
.biz-card-body {
  padding: 18px 20px 16px;
  flex: 1; display: flex; flex-direction: column;
  gap: 0;
}

/* Meta: sector + region */
.biz-card-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 9px;
}
.biz-card-sector, .biz-card-region {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600; color: var(--g400);
  white-space: nowrap;
}
.biz-card-sector { color: var(--green); }
.biz-card-sector i, .biz-card-region i { font-size: .65rem; }

/* Business name */
.biz-card-name {
  font-family: var(--f-display); font-size: 1rem;
  font-weight: 700; color: var(--g800); line-height: 1.3;
  margin-bottom: 6px;
}

/* Tagline */
.biz-card-tagline {
  font-size: .83rem; color: var(--g500); line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Spacer */
.biz-card-spacer { flex: 1; min-height: 8px; }

/* ── Footer row: logo left, actions right ── */
.biz-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 12px;
  border-top: 1px solid var(--line); margin-top: 4px;
}
.biz-card-logo-wrap {
  flex-shrink: 0; display: flex; align-items: center;
}
.biz-card-logo-sm {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: contain; background: var(--g50);
  border: 1px solid var(--line); padding: 3px;
  display: block;
}
.biz-card-logo-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: .8rem;
  padding: 0;
}

/* Action buttons */
.biz-card-actions {
  display: flex; align-items: center; gap: 6px;
}
.biz-card-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 7px;
  font-size: .76rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--g600);
  background: #fff; transition: all .15s;
  white-space: nowrap;
}
.biz-card-action-btn:hover {
  border-color: var(--green); color: var(--green);
  text-decoration: none;
}
.biz-card-wa {
  background: #25d366; border-color: #25d366;
  color: #fff !important; padding: 6px 9px;
}
.biz-card-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff !important; }
.biz-card-view {
  background: var(--green); color: #fff; border-color: var(--green);
}
.biz-card-view:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }

/* Responsive grid */
@media (max-width: 640px) {
  .biz-card-body { padding: 16px 16px 14px; }
  .biz-card-name { font-size: .95rem; }
}


/* =============================================================================
   TOPBAR — slim contact + social bar above the main nav
   Completely independent of the header; does not scroll with it
   ============================================================================= */
.site-topbar {
  background: var(--green-3, #082a14);
  height: 36px;
  display: flex; align-items: center;
  font-size: .77rem;
  position: sticky; top: 0; z-index: 600;
}
.topbar-inner {
  display: flex; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  width: 100%;
}
.topbar-left {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  /* flex:1 stretches left side — right side sits at end */
  flex: 1;
}
.topbar-right {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
  /* margin-left:auto is the most reliable way to push to far right */
  margin-left: auto;
}
.topbar-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.72); text-decoration: none;
  transition: color .15s; font-size: .77rem;
}
.topbar-link:hover { color: var(--gold); text-decoration: none; }
.topbar-link i { font-size: .7rem; color: var(--gold); }
.topbar-social-link {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .8rem;
  text-decoration: none; transition: color .15s, background .15s;
}
.topbar-social-link:hover {
  color: #fff; background: rgba(255,255,255,.12); text-decoration: none;
}
/* Icons shown but greyed when no URL is set */
.topbar-social-dim { color: rgba(255,255,255,.25); cursor: default; }
.topbar-social-dim:hover { background: transparent; color: rgba(255,255,255,.25); }
@media (max-width: 640px) {
  .site-topbar { height: auto; }
  .topbar-inner { flex-wrap: wrap; padding: 6px 20px; gap: 8px; }
  .topbar-left { gap: 14px; }
}

/* =============================================================================
   SITE HEADER  —  PigaTech style
   Transparent over hero → solid white on scroll.  Slim, clean, modern.
   ============================================================================= */

.site-header {
  /* Sticky — sits naturally below the topbar when topbar is in flow */
  position: sticky;
  top: 0; left: 0; right: 0; z-index: 500;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
  background: transparent;
}
/* On is-home: the nav is transparent over hero which starts right below it */
/* .scrolled class swaps it to solid (JS fires this after 50px scroll) */

/* ── Scrolled / solid state (JS adds .scrolled) ── */
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.06);
}
/* Non-home pages: always solid */
body:not(.is-home) .site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.06);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  height: 70px; gap: 24px;
}

/* ── Logo ── */
.site-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; opacity: .9; }

.site-logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: #fff;
  box-shadow: 0 2px 8px rgba(232,160,32,.4); flex-shrink: 0;
  transition: transform .2s;
}
.site-logo:hover .site-logo-mark { transform: scale(1.06); }
.site-logo-text { display: flex; flex-direction: column; line-height: 1; }
.site-logo-name {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(.78rem,1.4vw,.9rem);
  color: var(--gold);        /* transparent state over hero */
  transition: color .3s;
}
.site-logo-sub {
  font-size: .58rem; font-weight: 500;
  color: rgba(255,255,255,.65); margin-top: 2px; transition: color .3s;
}
.site-header.scrolled .site-logo-name,
body:not(.is-home) .site-logo-name { color: var(--green); }
.site-header.scrolled .site-logo-sub,
body:not(.is-home) .site-logo-sub  { color: var(--g400); }

/* ── Nav links ── */
.site-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 0;
  font-size: .85rem; font-weight: 600;  /* bumped to 600 for readability */
  color: #000;   /* home transparent state — black for contrast */
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
  white-space: nowrap;
}
/* Underline bar — hidden by default */
.site-nav a::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s ease;
}
.site-nav a:hover { color: var(--green); text-decoration: none; }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--green); font-weight: 700; }

.site-header.scrolled .site-nav a,
body:not(.is-home) .site-nav a { color: var(--g700); }
.site-header.scrolled .site-nav a::after,
body:not(.is-home) .site-nav a::after { background: var(--green); }
.site-header.scrolled .site-nav a:hover,
body:not(.is-home) .site-nav a:hover { color: var(--green); }
.site-header.scrolled .site-nav a.active,
body:not(.is-home) .site-nav a.active { color: var(--green); font-weight: 600; }

/* ── Header actions ── */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* CTA pill button */
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 22px;
  font-size: .82rem; font-weight: 700; text-decoration: none;
  background: var(--gold); color: #fff;
  box-shadow: 0 2px 10px rgba(232,160,32,.35);
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--gold-2); transform: translateY(-1px); text-decoration: none; }
.site-header.scrolled .header-cta,
body:not(.is-home) .header-cta {
  background: var(--green);
  box-shadow: 0 2px 10px rgba(27,107,58,.25);
}
.site-header.scrolled .header-cta:hover,
body:not(.is-home) .header-cta:hover { background: var(--green-2); }

/* Portal icon button */
.header-portal {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12); text-decoration: none;
  transition: background .2s, color .2s;
}
.header-portal:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.site-header.scrolled .header-portal,
body:not(.is-home) .header-portal { color: var(--g600); background: var(--g100); }
.site-header.scrolled .header-portal:hover,
body:not(.is-home) .header-portal:hover { background: var(--green-light); color: var(--green); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 38px; height: 38px;
  background: rgba(255,255,255,.12); border: none; border-radius: 8px;
  cursor: pointer; padding: 8px; transition: background .2s;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .22s, opacity .22s, background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }
.site-header.scrolled .nav-toggle,
body:not(.is-home) .nav-toggle { background: var(--g100); }
.site-header.scrolled .nav-toggle span,
body:not(.is-home) .nav-toggle span { background: var(--g700); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop */
.nav-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.38); z-index: 499;
}
.nav-backdrop.active { display: block; }

/* Mobile drawer */
@media (max-width: 920px) {
  .site-nav {
    position: fixed; top: 0; right: -290px; bottom: 0; width: 270px; z-index: 500;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 84px 0 24px;
    background: #fff; box-shadow: -4px 0 28px rgba(0,0,0,.14);
    overflow-y: auto; transition: right .3s var(--ease);
  }
  .site-nav.open { right: 0; }
  .site-nav a {
    border-radius: 0; padding: 13px 28px;
    color: var(--g700) !important;
    background: transparent !important;
    border-left: 3px solid transparent;
    font-size: .92rem;
  }
  .site-nav a.active { color: var(--green) !important; border-left-color: var(--green); background: var(--green-light) !important; }
  .site-nav a:hover { background: var(--g50) !important; }
  .nav-toggle { display: flex; }
  .site-logo-sub { display: none; }
  .header-inner { padding: 0 20px; height: 62px; }
  .header-cta span { display: none; }
}

/* =============================================================================
   HERO  —  v18 layout restored + crossfade slider backgrounds
   Two-column: text+controls left, search card right.
   ============================================================================= */

/* Slide backgrounds layer (added for slider) */
.hero-slides-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--green-3);
  opacity: 0; transition: opacity .9s ease;
  /* SVG images render at full cover */
  background-repeat: no-repeat;
}
.hero-slide-bg.active { opacity: 1; }
/* No image: dark green gradient */
.hero-slide-bg:not([style]) {
  background: linear-gradient(140deg, var(--green-3) 0%, #0B3D1E 40%, var(--green-2) 100%);
}
/* Overlay sits on top of slide backgrounds */
.hero-slide-bg .hero-overlay-inner { display: none; } /* not used */

/* v18 hero shell */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--green-3);
  overflow: hidden;
  isolation: isolate;
}
body.is-home .hero { min-height: calc(100vh - 36px); }
@supports (height: 100dvh) {
  body.is-home .hero { min-height: calc(100dvh - 36px); }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5,20,10,.40) 0%,    /* top — header has its own dark bg now */
    rgba(5,20,10,.55) 40%,   /* middle — content text area */
    rgba(5,20,10,.80) 100%   /* bottom — stats bar */
  );
}
/* No-image fallback (when no slide has a background-image) */
.hero:not(:has(.hero-slide-bg[style])) {
  background: linear-gradient(140deg, var(--green-3) 0%, #0B3D1E 40%, var(--green-2) 100%);
}

.hero-geo {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.hero-geo svg { width: 100%; height: 100%; }

/* Content wrapper — fills the hero and centres content vertically */
.hero-content {
  position: relative; z-index: 3;
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between;   /* body top, stats bottom */
  padding: 80px 0 0;               /* top clears sticky nav */
  width: 100%;
}
.hero-container {
  max-width: var(--container); margin: 0 auto; padding: 0 28px; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1;
}

/* hero-content defined in hero section */

.hero-text { transition: opacity .38s ease, transform .38s ease; }
.hero-text.fading { opacity: 0; transform: translateY(10px); }

.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); margin-bottom: 18px;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800; color: #fff;
  line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88); line-height: 1.7;
  max-width: 460px; margin-bottom: 32px;
}

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

/* Two-column layout: text left, search card right */
.hero-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

/* Slider controls (below buttons) */
.hero-slider-controls {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
}
.hero-slider-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .8rem; transition: background .2s, transform .15s;
}
.hero-slider-btn:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.hero-slider-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  padding: 0; transition: background .25s, width .25s; flex-shrink: 0;
}
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

/* Search card (right column) */
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero-card-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 10px;
}
.hero-search {
  display: flex; background: #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  margin-bottom: 14px;
}
.hero-search input {
  flex: 1; padding: 13px 16px; border: none; outline: none;
  font-family: var(--f-body); font-size: .92rem;
  color: var(--g800); background: transparent; min-width: 0;
}
.hero-search button {
  padding: 13px 18px; background: var(--gold); color: #fff;
  border: none; cursor: pointer; font-size: 1rem;
  transition: background .2s; flex-shrink: 0;
}
.hero-search button:hover { background: var(--gold-2); }
.hero-quick-sectors { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-sector-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  padding: 5px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); transition: background .18s, color .18s;
}
.hero-sector-link:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.hero-sector-link i { font-size: .68rem; opacity: .75; }
.hero-sector-all { border-color: rgba(232,160,32,.5); color: var(--gold); }
.hero-sector-all:hover { background: rgba(232,160,32,.18); color: var(--gold); }

/* Stats bar */
.hero-stats-bar {
  display: flex; align-items: center; gap: 0;
  padding: 18px 0 22px;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.15);
  /* Glassmorphism strip at the bottom of the hero */
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Pull to full container width */
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; text-align: center; padding: 8px 12px;
}
.hero-stat-num {
  font-family: var(--f-display); font-size: 1.9rem;
  font-weight: 800; color: var(--gold); line-height: 1;
}
.hero-stat-lbl {
  font-size: .72rem; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 4px;
}
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 32px; }
  .hero-sub { max-width: none; }
  .hero-card { max-width: 480px; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  /* hero-content — handled in base rule */
  /* home hero-content uses flex-center from base rule */
}
@media (max-width: 600px) {
  .hero { min-height: 100svh; }
  .hero-body { gap: 24px; }
  .hero-stats-bar {
    flex-wrap: wrap; gap: 0;
    padding: 14px 20px 18px;
    margin-left: -20px; margin-right: -20px;
    padding-left: 20px; padding-right: 20px;
  }
  .hero-stat { min-width: 70px; padding: 6px 10px; }
  .hero-stat-divider { display: none; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-actions { gap: 10px; }
  .hero-card { padding: 18px; }
}

/* =============================================================================
   SEARCH PAGE — v18 classes restored
   ============================================================================= */

/* =============================================================================
   SEARCH / DIRECTORY  —  v18 layout + enhanced styling
   ============================================================================= */

/* Two-column layout: 260px sidebar + fluid results */
.search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } }

/* ── Filter sidebar (filter-panel = v18 class) ── */
.filter-panel {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  border: 1px solid var(--line);
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.filter-group:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.filter-label {
  font-family: var(--f-display);
  font-weight: 700; font-size: .85rem;
  color: var(--g800); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.filter-label i { color: var(--green); font-size: .82rem; }

.filter-select {
  width: 100%; padding: 10px 12px;
  border-radius: 9px; border: 1.5px solid var(--line);
  font-family: var(--f-body); font-size: .88rem;
  background: var(--sand); color: var(--g800);
  cursor: pointer; outline: none;
  transition: border-color .15s;
  appearance: auto;
}
.filter-select:focus { border-color: var(--green); }

/* ── Results area ── */
.results-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 20px;
  flex-wrap: wrap; gap: 12px;
}
.results-count {
  font-size: .9rem; color: var(--g500);
}
.results-count strong {
  font-family: var(--f-display); font-size: 1.1rem;
  color: var(--g800); font-weight: 800;
}
.results-count em { font-style: normal; color: var(--green); font-weight: 600; }

/* Business card grid */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center;
  gap: 6px; margin-top: 40px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 9px;
  font-size: .86rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--g600);
  padding: 0 12px; transition: all .15s;
}
.pagination a:hover {
  background: var(--green); color: #fff;
  border-color: var(--green); text-decoration: none;
}
.pagination span.current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination span.dots    { border: none; color: var(--g400); min-width: auto; }

@media (max-width: 560px) {
  .biz-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* =============================================================================
   PACKAGES / JOIN PAGE
   ============================================================================= */

/* Hero band */
.pkg-hero {
  position: relative;
  background: var(--green-3);
  padding: 100px 0 72px;
  overflow: hidden;
  text-align: center;
}
.pkg-hero-bg {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30L30 0l30 30-30 30z' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E");
  background-size: 60px;
}
.pkg-hero-content { position: relative; z-index: 1; }
.pkg-hero-title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800; color: #fff; line-height: 1.15;
  margin: 10px 0 16px;
}
.pkg-hero-sub {
  color: rgba(255,255,255,.88); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 32px; line-height: 1.65;
}

/* Package grid */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

/* Card */
.pkg-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.pkg-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.pkg-card--recommended {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(27,107,58,.15);
  transform: translateY(-6px);
}
.pkg-card--recommended:hover {
  box-shadow: 0 10px 36px rgba(27,107,58,.2);
  transform: translateY(-9px);
}

/* Popular badge */
.pkg-badge {
  position: absolute; top: 0; right: 24px;
  background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 8px rgba(27,107,58,.3);
}

/* Card header */
.pkg-card-header {
  padding: 28px 24px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.pkg-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--pkg-color) 12%, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--pkg-color);
}
.pkg-name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  color: var(--g800); line-height: 1.2; margin-bottom: 5px;
}
.pkg-desc {
  font-size: .82rem; color: var(--g500); line-height: 1.5;
}

/* Divider */
.pkg-divider { height: 1px; background: var(--line); margin: 0 24px; }

/* Features */
.pkg-features {
  list-style: none; padding: 20px 24px; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
  flex: 1;
}
.pkg-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .86rem; color: var(--g700); line-height: 1.45;
}
.pkg-check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--success-tint, #dcfce7); display: flex;
  align-items: center; justify-content: center; margin-top: 1px;
}
.pkg-check i { font-size: .62rem; color: #16a34a; }

/* CTA */
.pkg-cta {
  padding: 0 24px 24px; margin-top: auto;
}
.pkg-cta .btn {
  border-radius: 10px !important; font-size: .88rem !important;
  padding: 12px 16px !important;
}

/* Pricing note */
.pkg-note {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex; gap: 20px; align-items: flex-start;
  max-width: 680px; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.pkg-note-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.pkg-note-title {
  font-family: var(--f-display); font-weight: 700; font-size: .98rem;
  color: var(--g800); margin-bottom: 6px;
}
.pkg-note-text { font-size: .86rem; color: var(--g500); line-height: 1.6; }

/* FAQ accordion */
.pkg-faqs { display: flex; flex-direction: column; gap: 10px; }
.pkg-faq {
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.pkg-faq summary {
  padding: 16px 20px; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  color: var(--g800); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.pkg-faq summary::-webkit-details-marker { display: none; }
.pkg-faq summary::after {
  content: '\002B'; font-size: 1.1rem; color: var(--green);
  font-weight: 700; flex-shrink: 0; margin-left: 12px;
}
.pkg-faq[open] summary::after { content: '\2212'; }
.pkg-faq[open] { border-color: var(--green); }
.pkg-faq p {
  padding: 0 20px 18px; font-size: .88rem;
  color: var(--g500); line-height: 1.7; margin: 0;
}

/* Utility */
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .pkg-grid { grid-template-columns: 1fr; gap: 16px; }
  .pkg-card--recommended { transform: none; }
  .pkg-card--recommended:hover { transform: translateY(-3px); }
  .pkg-note { flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .pkg-hero { padding: 80px 0 56px; }
}

/* =============================================================================
   SITE FOOTER  —  v18 style restored + enhancements
   ============================================================================= */

.site-footer {
  background: var(--g800, #1a110a);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}

/* Four-column grid: brand (wide) + 3 menu columns */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

/* Brand column */
.footer-brand-name {
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.1rem; color: #fff; margin-bottom: 8px;
}
.footer-brand-sub {
  font-size: .84rem; line-height: 1.65;
  color: rgba(255,255,255,.55); margin-bottom: 22px;
}

/* Social icons */
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55); font-size: .95rem;
  text-decoration: none; transition: background .18s, color .18s;
}
.footer-social a:hover {
  background: var(--gold); color: #fff; text-decoration: none;
}

/* Menu columns */
.footer-col-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: .78rem; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.6); font-size: .88rem;
  text-decoration: none; transition: color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom a {
  color: rgba(255,255,255,.55); text-decoration: none;
  transition: color .15s;
}
.footer-bottom a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer { padding: 48px 0 0; }
}

/* =============================================================================
   MEMBERSHIP APPLICATION PAGE  —  apply.php
   ============================================================================= */

/* Hero band */
.apply-hero {
  background: linear-gradient(135deg, var(--green-3) 0%, var(--green-2) 100%);
  padding: 72px 0 48px; text-align: center;
}
.apply-hero-title {
  font-family: var(--f-display); font-size: clamp(1.9rem,4vw,2.8rem);
  font-weight: 800; color: #fff; margin-bottom: 10px;
}
.apply-hero-sub {
  color: rgba(255,255,255,.75); font-size: 1rem;
  max-width: 540px; margin: 0 auto; line-height: 1.65;
}

/* Steps bar */
.apply-steps-bar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0;
}
.apply-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap; gap: 0;
}
.apply-step {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--g400);
  padding: 4px 16px;
}
.apply-step.active { color: var(--green); }
.apply-step-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--g200); color: var(--g500);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
}
.apply-step.active .apply-step-num { background: var(--green); color: #fff; }
.apply-step-line {
  width: 40px; height: 1px; background: var(--line); flex-shrink: 0;
}

/* Body */
.apply-body { background: var(--sand); padding: 40px 0 72px; }
.apply-container { max-width: 720px; }

/* Success state */
.apply-success {
  background: #fff; border-radius: 20px; padding: 56px 40px;
  text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid var(--line);
}
.apply-success-icon {
  font-size: 3.5rem; color: #16a34a; margin-bottom: 20px; line-height: 1;
}
.apply-success h2 {
  font-family: var(--f-display); font-size: 1.6rem;
  font-weight: 800; color: var(--g800); margin-bottom: 12px;
}
.apply-success p { font-size: .95rem; color: var(--g600); line-height: 1.6; }
.apply-ref {
  font-family: var(--f-display); font-size: 1.1rem;
  color: var(--green); letter-spacing: .05em;
}

/* Alert */
.apply-alert {
  display: flex; align-items: center; gap: 10px;
  background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
  font-size: .9rem; font-weight: 500;
}

/* Form sections */
.apply-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  margin-bottom: 20px; overflow: hidden;
}
.apply-card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  background: var(--g50);
}
.apply-card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.apply-card-title {
  font-family: var(--f-display); font-weight: 700; font-size: .98rem; color: var(--g800);
}
.apply-card-sub { font-size: .8rem; color: var(--g500); margin-top: 2px; }

/* Fields grid */
.apply-fields {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 24px 28px;
}
.apply-field-full  { grid-column: 1 / -1; }
.apply-field-half  { grid-column: span 1; }

.apply-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--g700); margin-bottom: 7px;
}
.apply-req { color: var(--danger); margin-left: 2px; }
.apply-opt { color: var(--g400); font-weight: 400; }

.apply-input {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--f-body); font-size: .9rem; color: var(--g800);
  outline: none; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.apply-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,107,58,.1);
}
.apply-input::placeholder { color: var(--g400); }
.apply-select { cursor: pointer; }
.apply-textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

/* Checkbox */
.apply-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: .88rem; color: var(--g700); line-height: 1.5;
}
.apply-checkbox input[type=checkbox] {
  accent-color: var(--green); width: 17px; height: 17px;
  cursor: pointer; flex-shrink: 0; margin-top: 2px;
}

/* Package selector */
.apply-pkg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; padding: 24px;
}
.apply-pkg {
  position: relative; border: 2px solid var(--line);
  border-radius: 14px; padding: 20px 16px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; user-select: none;
}
.apply-pkg input[type=radio] { position: absolute; opacity: 0; width: 0; }
.apply-pkg:hover { border-color: var(--green); }
.apply-pkg.selected,
.apply-pkg:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(27,107,58,.12);
}
.apply-pkg--popular {
  border-color: var(--green);
  box-shadow: 0 2px 14px rgba(27,107,58,.14);
}
.apply-pkg-badge {
  position: absolute; top: -1px; right: 14px;
  background: var(--green); color: #fff;
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 10px; border-radius: 0 0 8px 8px;
}
.apply-pkg-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background .2s, color .2s;
}
.apply-pkg.selected .apply-pkg-icon,
.apply-pkg:has(input:checked) .apply-pkg-icon { background: var(--green); color: #fff; }
.apply-pkg-name {
  font-family: var(--f-display); font-weight: 700; font-size: .92rem; color: var(--g800);
}
.apply-pkg-desc { font-size: .76rem; color: var(--g500); line-height: 1.45; }
.apply-pkg-tick {
  font-size: 1.1rem; color: var(--green); opacity: 0; transition: opacity .2s;
}
.apply-pkg.selected .apply-pkg-tick,
.apply-pkg:has(input:checked) .apply-pkg-tick { opacity: 1; }

/* Submit button */
.apply-submit {
  width: 100%; padding: 16px 24px; border-radius: 12px;
  background: var(--green); color: #fff; border: none;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(27,107,58,.3);
}
.apply-submit:hover { background: var(--green-2); transform: translateY(-1px); }
.apply-submit-note {
  text-align: center; font-size: .78rem; color: var(--g400);
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.apply-submit-note i { color: var(--green); }

/* Responsive */
@media (max-width: 640px) {
  .apply-fields { grid-template-columns: 1fr; }
  .apply-field-half { grid-column: span 1; }
  .apply-pkg-grid { grid-template-columns: 1fr; }
  .apply-card-header { padding: 16px 18px; }
  .apply-fields { padding: 18px; }
  .apply-steps { gap: 0; }
  .apply-step { padding: 4px 8px; font-size: .76rem; }
  .apply-step-line { width: 20px; }
  .apply-success { padding: 40px 24px; }
}

/* =============================================================================
   BUSINESS PROFILE PAGE  —  business.php
   ============================================================================= */

/* ── Hero banner ── */
.biz-profile-hero {
  width: 100%; height: 360px; overflow: hidden;
  background: linear-gradient(135deg, var(--green-3) 0%, var(--green-2) 100%);
  position: relative;
}
.biz-profile-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.biz-profile-hero-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-3) 0%, var(--green-2) 100%);
}
.biz-profile-hero-fallback span {
  font-family: var(--f-display); font-size: 4rem;
  font-weight: 800; color: rgba(255,255,255,.18);
}

/* ── Profile header bar (logo + name + actions) ── */
.biz-profile-header {
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.biz-profile-header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 28px 24px;
  display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap;
}
.biz-profile-logo {
  width: 96px; height: 96px; border-radius: 16px;
  border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  object-fit: contain; background: #fff;
  margin-top: -40px; flex-shrink: 0;
}
.biz-profile-logo-fallback {
  width: 96px; height: 96px; border-radius: 16px;
  border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.8rem;
  margin-top: -40px; flex-shrink: 0;
}
.biz-profile-info { flex: 1; min-width: 0; padding-top: 12px; }
.biz-profile-name {
  font-family: var(--f-display); font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--g800); line-height: 1.15;
}
.biz-profile-tagline {
  font-size: .95rem; color: var(--g500); margin-top: 4px; line-height: 1.5;
}
.biz-profile-meta {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin: 10px 0;
  font-size: .85rem; color: var(--g600);
}
.biz-profile-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}

/* ── Two-column body ── */
.biz-profile-body {
  max-width: var(--container); margin: 0 auto;
  padding: 36px 28px 64px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; align-items: start;
}

/* ── Content sections ── */
.biz-section {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  padding: 28px; margin-bottom: 20px;
}
.biz-section:last-child { margin-bottom: 0; }
.biz-section-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1rem; color: var(--g800);
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.biz-section-title i { font-size: .9rem; }

/* ── Products grid ── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); }
.product-card-img {
  width: 100%; aspect-ratio: 1;
  overflow: hidden; background: var(--g50);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-card-body { padding: 12px 14px; }
.product-card-name {
  font-family: var(--f-display); font-weight: 700;
  font-size: .88rem; color: var(--g800); line-height: 1.3; margin-bottom: 5px;
}
.product-card-price {
  font-size: .82rem; color: var(--green);
  font-weight: 700; margin-bottom: 4px;
}
.product-card-avail { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* ── Enquiry form ── */
.enquiry-form { display: flex; flex-direction: column; gap: 0; }
.enquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.enquiry-form .form-group { margin-bottom: 0; }
.enquiry-form .form-group:last-child:not(.form-row .form-group) { margin-bottom: 14px; }
.enquiry-form .form-label { font-size: .8rem; font-weight: 600; color: var(--g700); margin-bottom: 6px; }
.enquiry-form .form-control {
  border-radius: 8px; border: 1.5px solid var(--line);
  padding: 10px 13px; font-size: .9rem; transition: border-color .15s;
}
.enquiry-form .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,107,58,.1); }

/* ── Sidebar cards ── */
.biz-sidebar-card {
  background: #fff; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 22px; margin-bottom: 16px;
}
.biz-sidebar-card:last-child { margin-bottom: 0; }
.biz-sidebar-card h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: .9rem; color: var(--g800);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.biz-sidebar-card p {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .86rem; color: var(--g700); margin-bottom: 10px; line-height: 1.5;
}
.biz-sidebar-card p i {
  font-size: .85rem; width: 18px; text-align: center;
  flex-shrink: 0; margin-top: 2px;
}
.biz-sidebar-card a:not(.btn) {
  color: var(--green); text-decoration: none; font-size: .86rem;
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  transition: color .15s;
}
.biz-sidebar-card a:not(.btn):hover { color: var(--green-2); }
.mt-4 { margin-top: 16px !important; }

/* ── Badges ── */
/* badge colours defined in business profile section */

/* ── Responsive ── */
@media (max-width: 860px) {
  .biz-profile-body { grid-template-columns: 1fr; }
  .biz-profile-hero { height: 240px; }
  .biz-profile-header-inner { padding: 0 20px 20px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .enquiry-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .biz-profile-logo, .biz-profile-logo-fallback { width: 72px; height: 72px; margin-top: -28px; }
  .biz-profile-body { padding: 20px 16px 48px; }
  .biz-section { padding: 20px 16px; }
  .biz-profile-header-inner { padding: 0 16px 16px; gap: 14px; }
}

/* =============================================================================
   SHARED CARD / SECTION UTILITIES — consistent spacing system
   ============================================================================= */

/* Standard content card */
.card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 2px 14px rgba(0,0,0,.05);
  padding: 24px;
}
.card-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: .95rem; color: var(--g800);
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--green); font-size: .9rem; }

/* Section eyebrow + title pattern (reusable) */
.section-eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--green); margin-bottom: 8px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--g800); line-height: 1.15;
}
.section-sub {
  color: var(--g500); font-size: .95rem;
  line-height: 1.65; margin-top: 8px;
}

/* Badge system — unified */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-green   { background: #dcfce7; color: #166534; }
.badge-active  { background: #dcfce7; color: #166534; }
.badge-basic   { background: var(--g100); color: var(--g600); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-blue    { background: #dbeafe; color: #1e40af; }
.badge-purple  { background: #ede9fe; color: #5b21b6; }
.badge-verified { background: #dcfce7; color: #166534; }
.badge-professional { background: #ede9fe; color: #5b21b6; }
.badge-premium { background: #fef3c7; color: #92400e; }

/* Flash messages — consistent */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 10px;
  margin-bottom: 20px; font-size: .9rem; font-weight: 500;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.flash i { font-size: 1rem; }

/* Form controls — consistent */
.form-group   { margin-bottom: 18px; }
.form-label   { display: block; font-size: .82rem; font-weight: 600; color: var(--g600); margin-bottom: 7px; }
.form-hint    { font-size: .75rem; color: var(--g400); margin-top: 5px; line-height: 1.5; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required     { color: var(--danger); }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--g700); cursor: pointer; line-height: 1.5; }
.checkbox-row input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 9px;
  font-family: var(--f-body); font-size: .92rem; color: var(--g800);
  background: #fff; outline: none; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,107,58,.09); }
.form-control::placeholder { color: var(--g400); }
.form-control-sm { padding: 8px 11px; font-size: .84rem; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Empty states */
.empty-state { text-align: center; padding: 56px 24px; color: var(--g500); }
.empty-state i { font-size: 2.8rem; color: var(--g200); display: block; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--g700); margin-bottom: 8px; }
.empty-state p { font-size: .88rem; max-width: 340px; margin: 0 auto 20px; line-height: 1.6; }

/* Utilities */
.w-100    { width: 100%; justify-content: center; }
.mt-auto  { margin-top: auto; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* =============================================================================
   PAGE HEADER — consistent across all public content pages
   (Stories, Events, Contact, Track, About sub-sections)
   ============================================================================= */
/* =============================================================================
   PAGE HERO — unified header for all non-home public pages
   Green gradient, consistent eyebrow → title → sub → breadcrumb
   ============================================================================= */

.page-hero {
  background: linear-gradient(135deg, var(--green-3) 0%, var(--green-2) 100%);
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}
/* Subtle dot grid texture */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Decorative gold accent bar at bottom of hero */
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .5;
}
.page-hero .container { position: relative; z-index: 1; }

/* Breadcrumb */
.page-hero-crumbs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-hero-crumbs a {
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color .15s;
}
.page-hero-crumbs a:hover { color: var(--gold); text-decoration: none; }
.page-hero-crumbs span {
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.9);
}
.page-hero-crumbs i {
  font-size: .6rem; color: rgba(255,255,255,.4);
}

/* Eyebrow */
.page-hero-eyebrow {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero-eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 2px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}

/* Title */
.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff; line-height: 1.1;
  margin-bottom: 12px; letter-spacing: -.01em;
}

/* Sub */
.page-hero-sub {
  font-size: .98rem; color: rgba(255,255,255,.72);
  line-height: 1.65; max-width: 560px;
}

/* Meta row (optional — e.g. "47 businesses found") */
.page-hero-meta {
  margin-top: 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.page-hero-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; color: rgba(255,255,255,.65);
}
.page-hero-meta-item i { color: var(--gold); font-size: .78rem; }
.page-hero-meta-item strong { color: #fff; }

@media (max-width: 640px) {
  .page-hero { padding: 44px 0 32px; }
  .page-hero-title { font-size: clamp(1.5rem, 6vw, 2rem); }


}

/* =============================================================================
   APPLICATION TRACKING PAGE
   ============================================================================= */
.track-result { text-align: center; padding: 32px 28px; }
.track-status-icon { font-size: 3rem; margin-bottom: 8px; line-height: 1; }
.track-status-label {
  font-family: var(--f-display); font-size: 1.3rem; font-weight: 800;
  margin-bottom: 24px;
}
.track-details {
  background: var(--g50); border-radius: 12px;
  padding: 4px 0; margin-bottom: 8px;
  border: 1px solid var(--line);
}
.track-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: .88rem; gap: 12px;
}
.track-row:last-child { border-bottom: none; }
.track-row span { color: var(--g500); }
.track-row strong { color: var(--g800); text-align: right; }

/* =============================================================================
   MISSING CSS CLASSES — resolved from full site audit
   ============================================================================= */

/* ── Hero container (index.php two-col layout) ── */

/* ── Footer column (footer.php grid columns) ── */
.footer-col { display: flex; flex-direction: column; }

/* ── CTA section (index.php call-to-action band) ── */
.cta-section {
  background: var(--green);
  padding: 80px 0; text-align: center;
}
.cta-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem,4vw,2.5rem);
  font-weight: 800; color: #fff; margin-bottom: 14px;
}
.cta-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.78);
  max-width: 500px; margin: 0 auto 28px; line-height: 1.65;
}

/* ── About page grid ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start; margin: 40px 0;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ── Apply form wrapper ── */
.apply-form { display: flex; flex-direction: column; gap: 0; }

/* ── Sitemap page ── */
.sitemap-section-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1rem; color: var(--g800);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: flex; align-items: center; gap: 8px;
}
.sitemap-list {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.sitemap-list li a {
  color: var(--g600); text-decoration: none; font-size: .88rem;
  display: flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.sitemap-list li a:hover { color: var(--green); }
.sitemap-list li a i { font-size: .75rem; color: var(--green); }

/* ── Business profile click-track links ── */
.track-phone, .track-whatsapp, .track-website {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600;
  transition: opacity .15s;
}
.track-phone:hover, .track-whatsapp:hover, .track-website:hover { opacity: .8; text-decoration: none; }
.track-whatsapp { color: #25d366; }
.track-phone    { color: var(--green); }
.track-website  { color: var(--g600); }

/* =============================================================================
   SPONSORS / PARTNERS — Homepage infinite horizontal scroller
   ============================================================================= */

.sponsors-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
}

.sponsors-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.sponsors-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--g500);
  display: flex; align-items: center; gap: 7px;
}
.sponsors-label i { color: var(--green); }
.sponsors-all-link {
  font-size: .78rem; font-weight: 600; color: var(--green);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  transition: gap .2s;
}
.sponsors-all-link:hover { gap: 8px; text-decoration: none; }

/* Track wrapper: masks the overflow */
.sponsors-track-wrap {
  position: relative; overflow: hidden;
  /* Fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* Scrolling track */
.sponsors-track {
  display: flex; align-items: center; gap: 32px;
  width: max-content;
  animation: sponsorScroll 32s linear infinite;
}
.sponsors-track:hover { animation-play-state: paused; }

@keyframes sponsorScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% because list is duplicated */
}

/* Individual logo item */
.sponsor-logo-item {
  flex-shrink: 0;
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  background: #fff; border-radius: 10px;
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
  min-width: 120px;
}
.sponsor-logo-item:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(27,107,58,.1);
}
.sponsor-logo-item img {
  height: 36px; max-width: 140px;
  object-fit: contain; filter: grayscale(30%);
  transition: filter .2s;
}
.sponsor-logo-item:hover img { filter: grayscale(0%); }
.sponsor-logo-item a {
  display: flex; align-items: center; line-height: 1;
}

/* Name pill (when no logo) */
.sponsor-name-pill {
  font-family: var(--f-display); font-weight: 700;
  font-size: .85rem; color: var(--green);
  white-space: nowrap; padding: 0 4px;
}

@media (max-width: 600px) {
  .sponsors-section { padding: 20px 0; }
  .sponsor-logo-item { height: 48px; min-width: 90px; padding: 6px 14px; }
  .sponsor-logo-item img { height: 28px; max-width: 100px; }
  .sponsors-track { gap: 20px; animation-duration: 22s; }
}

/* =============================================================================
   PARTNERS PAGE
   ============================================================================= */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.partner-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px;
  transition: box-shadow .2s, transform .2s;
}
.partner-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.partner-card-logo {
  flex-shrink: 0; width: 72px; height: 72px;
  background: var(--g50); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.partner-card-logo img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
}
.partner-card-logo a { display: flex; align-items: center; width: 100%; height: 100%; }
.partner-card-initial {
  font-family: var(--f-display); font-size: 1.3rem;
  font-weight: 800; color: var(--green);
}
.partner-card-body { flex: 1; min-width: 0; }
.partner-card-name {
  font-family: var(--f-display); font-size: .95rem;
  font-weight: 700; color: var(--g800); margin-bottom: 6px; line-height: 1.3;
}
.partner-card-name a { color: var(--g800); text-decoration: none; }
.partner-card-name a:hover { color: var(--green); }
.partner-card-desc {
  font-size: .82rem; color: var(--g500);
  line-height: 1.55; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.partner-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; color: var(--green);
  text-decoration: none; transition: gap .15s;
}
.partner-card-link:hover { gap: 8px; text-decoration: none; }
.partner-card-link i { font-size: .65rem; }
@media (max-width: 600px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card { padding: 18px; }
}

/* =============================================================================
   STORIES PAGE
   ============================================================================= */

/* Filter tabs */
.story-filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.story-filter-tab {
  padding: 8px 20px; border-radius: 24px;
  font-size: .84rem; font-weight: 600;
  text-decoration: none; transition: all .15s;
  background: #fff; color: var(--g600);
  border: 1.5px solid var(--line);
}
.story-filter-tab:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.story-filter-tab.active { background: var(--green); color: #fff; border-color: var(--green); }

/* Stories grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Story card */
.story-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none;
  transition: box-shadow .22s ease, transform .22s ease;
}
.story-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transform: translateY(-4px); text-decoration: none;
}

/* Story cover image */
.story-card-img {
  position: relative;
  height: 210px; overflow: hidden;
  background: var(--g100); flex-shrink: 0;
}
.story-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.story-card:hover .story-card-img img { transform: scale(1.04); }

.story-card-img-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green-3) 0%, var(--green-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.25);
}

/* Type badge over image */
.story-type-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(0,0,0,.55); color: #fff;
  backdrop-filter: blur(6px);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Card body */
.story-card-body {
  padding: 20px 22px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.story-card-biz {
  font-size: .72rem; font-weight: 600;
  color: var(--green); text-transform: uppercase;
  letter-spacing: .05em; display: flex; align-items: center; gap: 5px;
}
.story-card-biz i { font-size: .68rem; }
.story-card-title {
  font-family: var(--f-display); font-size: 1rem;
  font-weight: 700; color: var(--g800); line-height: 1.35;
  flex: 1;
}
.story-card-excerpt {
  font-size: .83rem; color: var(--g500); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.story-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  font-size: .74rem; color: var(--g400);
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.story-card-meta i { font-size: .68rem; }
.story-featured-dot {
  background: #fef3c7; color: #92400e;
  padding: 2px 8px; border-radius: 10px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
}

/* =============================================================================
   EVENTS PAGE
   ============================================================================= */

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px; margin-bottom: 0;
}
.events-grid-past {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Event card */
.event-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease;
}
.event-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transform: translateY(-3px); text-decoration: none;
}
.event-card-past { text-decoration: none; }
.event-card-past:hover { text-decoration: none; }

/* Event cover */
.event-card-img {
  position: relative; height: 190px;
  overflow: hidden; background: var(--g100); flex-shrink: 0;
}
.event-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.event-card:hover .event-card-img img { transform: scale(1.04); }

.event-card-img-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, #0a5a2e 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: rgba(255,255,255,.2);
}
.event-card-img-past { background: linear-gradient(135deg, var(--g600) 0%, var(--g800) 100%); }

.event-type-pill {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 20px;
  background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.event-type-past { background: var(--g600); }

/* Event card body */
.event-card-body {
  padding: 20px 22px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}

/* Date row */
.event-card-date-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 4px;
}
.event-date-block {
  display: flex; flex-direction: column; align-items: center;
  background: var(--green-light); border: 1.5px solid rgba(27,107,58,.15);
  border-radius: 10px; padding: 6px 10px;
  min-width: 48px; flex-shrink: 0;
}
.event-date-day {
  font-family: var(--f-display); font-size: 1.4rem;
  font-weight: 800; color: var(--green); line-height: 1;
}
.event-date-mon {
  font-size: .62rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px;
}
.event-date-info {
  display: flex; flex-direction: column; gap: 3px;
}
.event-card-region {
  font-size: .74rem; font-weight: 600; color: var(--g500);
  display: flex; align-items: center; gap: 4px;
}
.event-card-region i { font-size: .68rem; color: var(--green); }
.event-card-end { font-size: .72rem; color: var(--g400); }

/* Title + location + excerpt */
.event-card-title {
  font-family: var(--f-display); font-size: 1rem;
  font-weight: 700; color: var(--g800); line-height: 1.3;
}
.event-card-loc {
  font-size: .81rem; color: var(--g500);
  display: flex; align-items: center; gap: 5px;
}
.event-card-loc i { font-size: .72rem; color: var(--green); }
.event-card-excerpt {
  font-size: .82rem; color: var(--g500); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Footer row */
.event-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.event-fee {
  font-size: .8rem; font-weight: 700;
  color: var(--g600); display: flex; align-items: center; gap: 5px;
}
.event-fee i { font-size: .75rem; }
.event-fee-free { color: #16a34a; }

@media (max-width: 640px) {
  .stories-grid, .events-grid { grid-template-columns: 1fr; }
  .events-grid-past { grid-template-columns: 1fr 1fr; }
  .story-card-img, .event-card-img { height: 180px; }
}
@media (max-width: 420px) {
  .events-grid-past { grid-template-columns: 1fr; }
}

/* =============================================================================
   SECTOR GRID  —  buy-tanzania.php (v18 style)
   ============================================================================= */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.sector-tile {
  background: var(--card);
  border-radius: var(--r2);
  padding: 28px 18px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--g800);
  box-shadow: var(--sh1);
  border: 1px solid var(--line);
  transition: background .22s var(--ease), color .22s, transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.sector-tile:hover {
  background: var(--green); color: #fff;
  transform: translateY(-4px); box-shadow: var(--sh2);
  border-color: var(--green); text-decoration: none;
}
.sector-tile i {
  font-size: 2rem; color: var(--green);
  transition: color .22s;
}
.sector-tile:hover i { color: #fff; }

.sector-tile-name {
  font-family: var(--f-display);
  font-weight: 700; font-size: .9rem; line-height: 1.3;
}
.sector-tile-count {
  font-size: .74rem; color: var(--g400);
  font-weight: 500; transition: color .22s;
}
.sector-tile:hover .sector-tile-count { color: rgba(255,255,255,.7); }

.sector-tile-desc {
  font-size: .72rem; opacity: .7;
  line-height: 1.45; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 640px) {
  .sector-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .sector-tile  { padding: 22px 14px 18px; }
  .sector-tile i { font-size: 1.6rem; }
}

/* Auto-submit filter form — no special styling needed but selector used in JS */
.auto-filter-form select { cursor: pointer; }

/* .box — used in install scripts only, plain bordered box */
.box { background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px; margin-bottom:16px; }

/* .pg-btn — pagination button (used in fn.php pagination_html) */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 8px; padding: 0 10px;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--g600);
  background: #fff; transition: all .15s;
}
.pg-btn:hover { background: var(--green); color: #fff; border-color: var(--green); text-decoration: none; }
.pg-btn.current { background: var(--green); color: #fff; border-color: var(--green); }
.pg-btn.dots { border: none; color: var(--g400); min-width: auto; cursor: default; }

/* =============================================================================
   SHOPPING CART — cart.php + product card Add to Cart widget
   ============================================================================= */

/* ── Product card cart row ── */
.product-cart-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.product-qty-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 30px; height: 34px;
  background: var(--g50); border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--g700);
  transition: background .15s;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--green-light); color: var(--green); }
.qty-input {
  width: 44px; height: 34px; border: none;
  text-align: center; font-family: var(--f-body);
  font-size: .88rem; font-weight: 600; color: var(--g800);
  background: #fff; outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Cart page layout ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px; align-items: start;
}
.cart-items-col, .cart-checkout-col { display: flex; flex-direction: column; gap: 0; }

/* Cart item row */
.cart-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--f-display); font-weight: 700;
  font-size: .95rem; color: var(--g800); margin-bottom: 4px;
}
.cart-item-biz {
  font-size: .78rem; color: var(--green);
  display: flex; align-items: center; gap: 5px; margin-bottom: 4px;
}
.cart-item-biz i { font-size: .72rem; }
.cart-item-price { font-size: .8rem; color: var(--g500); }
.cart-item-controls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.cart-item-total {
  font-family: var(--f-display); font-weight: 800;
  font-size: 1rem; color: var(--green);
}
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  font-size: .76rem; color: var(--danger);
  font-family: var(--f-body); display: flex; align-items: center; gap: 4px;
  padding: 0; transition: opacity .15s;
}
.cart-item-remove:hover { opacity: .7; }

/* Summary */
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: .88rem; color: var(--g600);
  border-bottom: 1px solid var(--line);
}
.cart-summary-sub {
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.05rem; color: var(--g800); border-bottom: none; padding-top: 12px;
}
.cart-summary-note {
  font-size: .75rem; color: var(--g400);
  margin-top: 8px; line-height: 1.5;
  font-style: italic;
}

/* Payment info box */
.cart-payment-info {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--green-light); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px; font-size: .82rem;
  color: var(--green); line-height: 1.55;
}
.cart-payment-info i { flex-shrink: 0; margin-top: 2px; }
.cart-payment-info p { margin: 0; color: var(--g700); }

/* Submit */
.cart-submit-btn {
  font-size: 1rem !important; padding: 14px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 18px rgba(27,107,58,.25) !important;
}

/* Success state */
.cart-success {
  text-align: center; padding: 64px 32px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  max-width: 520px; margin: 0 auto;
}
.cart-success-icon { font-size: 3.5rem; color: #16a34a; margin-bottom: 16px; }
.cart-success h2 {
  font-family: var(--f-display); font-size: 1.6rem;
  font-weight: 800; color: var(--g800); margin-bottom: 12px;
}
.order-ref {
  font-family: var(--f-display); color: var(--green);
  font-size: 1.1rem; letter-spacing: .05em;
}

/* Empty state */
.cart-empty {
  text-align: center; padding: 64px 24px; color: var(--g500);
}
.cart-empty i { font-size: 3.5rem; color: var(--g200); display: block; margin-bottom: 16px; }
.cart-empty h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--g700); margin-bottom: 8px; }
.cart-empty p { font-size: .88rem; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .product-cart-row { flex-direction: column; align-items: stretch; }
  .product-qty-wrap  { justify-content: center; }
}

/* Cart icon in global header */
.header-cart {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--g600);
  background: var(--g100); text-decoration: none;
  transition: background .2s, color .2s;
}
.header-cart:hover { background: var(--green-light); color: var(--green); text-decoration: none; }
.header-cart-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
/* On home transparent state */
body.is-home .site-header:not(.scrolled) .header-cart {
  color: rgba(255,255,255,.8); background: rgba(255,255,255,.12);
}
body.is-home .site-header:not(.scrolled) .header-cart:hover {
  background: rgba(255,255,255,.22); color: #fff;
}


/* ==========================================================================
   Accessibility & responsive fixes (pre-deployment audit, Sep 2026)
   ========================================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; background: #1B6B3A; color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid #E8A020; outline-offset: 2px; }
#main-content:focus { outline: none; }
:focus-visible { outline: 3px solid #1565A8; outline-offset: 2px; }

/* Two-column blocks stack on phones */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* Touch targets: at least 24x24 px hit area (WCAG 2.5.8) */
.hero-dot { position: relative; }
.hero-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; transform: translate(-50%,-50%); }
.hero-slider-dots { gap: 14px; }
.topbar-link, .footer-social a, .header-cta, .qty-btn { min-height: 24px; min-width: 24px; display: inline-flex; align-items: center; justify-content: center; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Colour-contrast corrections (WCAG 1.4.3, 4.5:1 for normal text) */
:root { --g400: #6f5f4c; --success: #15803d; }
.site-logo-mark { color: #2a1f14; }
.footer-bottom { color: rgba(255,255,255,.68); }
.own-badge { color: #8a5a00; }
.btn-wa { color: #0b3d1f !important; }
.btn-wa:hover { color: #fff !important; }
.prose a, .flash a, main p a { text-decoration: underline; }
.hero-slider-dots { gap: 16px; }

/* Business card: whole card clickable via a stretched title link (no nested links) */
.biz-card { position: relative; cursor: pointer; }
.biz-card-link { color: inherit; text-decoration: none; }
.biz-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.biz-card-actions { position: relative; z-index: 2; }
.biz-card-link:focus-visible { outline: none; }
.biz-card:focus-within { outline: 3px solid #1565A8; outline-offset: 2px; }
.biz-card-action-btn { min-height: 28px; min-width: 28px; }
/* More contrast fixes */
.header-cta { color: #2a1f14; }
.header-cta span { color: inherit; }
.site-header.scrolled .header-cta, body:not(.is-home) .header-cta { color: #fff; }
.btn-gold { color: #2a1f14; }
.btn-gold:hover { background: #8a5a00; border-color: #8a5a00; color: #fff; }
.event-fee-free, .pkg-check i { color: #15803d; }
.cap-export-ready { color: #8a5a00; }
.header-cta:hover { background: #8a5a00; color: #fff; }
.site-header.scrolled .header-cta:hover, body:not(.is-home) .header-cta:hover { background: var(--green-2); }
/* Logo text sits on the light header on every page, including home */
.site-logo-name { color: var(--green) !important; }
.site-logo-sub { color: #6f5f4c !important; }

/* Tablet landscape / small laptop (921–1200px): fit logo, 7 menu items and the CTA */
@media (min-width: 921px) and (max-width: 1200px) {
  .site-nav a { padding: 8px 9px; }
  .site-logo-sub { display: none; }
  .header-cta { padding: 8px 12px; }
}
@media (min-width: 921px) and (max-width: 1060px) {
  .site-nav a { padding: 8px 6px; font-size: .8rem; }
  .header-cta span { display: none; }
  .header-cta { padding: 8px 10px; }
}

/* Stop stray 1–2px horizontal scroll from animated/off-canvas elements (clip keeps the sticky header working) */
html, body { overflow-x: clip; }


/* ==========================================================================
   Directory search (search.php hero) — all screen sizes
   ========================================================================== */
.dir-search { margin-top: 28px; max-width: 800px; }
.dir-search-bar {
  display: flex; align-items: center; gap: 4px;
  min-height: 66px; padding: 7px 7px 7px 22px;
  background: #fff; border: 2px solid transparent; border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.12);
  transition: box-shadow .2s, border-color .2s;
}
.dir-search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(232,160,32,.35), 0 14px 44px rgba(0,0,0,.3);
}
.dir-search-icon { color: var(--green); font-size: 1.15rem; flex-shrink: 0; margin-right: 8px; }
.dir-search-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 6px;
  border: none; outline: none; background: none;
  font-family: var(--f-body); font-size: 1.12rem; font-weight: 500; color: #2a1f14;
}
.dir-search-input::placeholder { color: #7a6a57; font-weight: 400; }
.dir-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.dir-search-clear {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: #f2ede8; color: #5a4a38; font-size: 1.05rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.dir-search-clear:hover { background: #e6ddd2; }
.dir-search-clear[hidden] { display: none; }
.dir-search-kbd {
  flex-shrink: 0; margin: 0 8px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid #d9cfc2; border-bottom-width: 2px; background: #faf7f3;
  font: 600 .8rem/1.2 var(--f-body); color: #6f5f4c;
}
/* Fade (not remove) on focus so nothing shifts under the pointer */
.dir-search-bar:focus-within .dir-search-kbd { visibility: hidden; }
.dir-search-kbd[hidden] { display: none; }
.dir-search-btn {
  flex-shrink: 0; height: 52px; padding: 0 30px; border: none; border-radius: 13px;
  background: var(--gold); color: #2a1f14; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 1.02rem; font-weight: 700; letter-spacing: .01em;
  transition: background .2s, color .2s, transform .15s;
}
.dir-search-btn:hover { background: #8a5a00; color: #fff; }
.dir-search-btn:active { transform: scale(.98); }

.dir-search-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.dir-search-popular-label { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; margin-right: 2px; }
.dir-search-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 15px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .86rem; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.dir-search-chip:hover, .dir-search-chip:focus-visible { background: var(--gold); border-color: var(--gold); color: #2a1f14; text-decoration: none; }
.dir-search-chip[aria-current="true"] { background: #fff; color: var(--green); border-color: #fff; }

@media (max-width: 560px) {
  .dir-search-bar { min-height: 58px; padding: 5px 5px 5px 16px; border-radius: 15px; }
  .dir-search-input { height: 46px; font-size: 1.02rem; }
  .dir-search-btn { height: 46px; width: 50px; padding: 0; justify-content: center; border-radius: 11px; }
  .dir-search-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .dir-search-kbd { display: none; }
  .dir-search-clear { width: 36px; height: 36px; }
}
@media (hover: none) { .dir-search-kbd { display: none; } }


/* ==========================================================================
   Directory page (search.php) — filters, results header, business cards
   ========================================================================== */
.dir-body { padding-top: 32px; padding-bottom: 80px; }
.dir-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }

/* Filters */
.dir-filters-wrap { position: sticky; top: 92px; }
.dir-filters { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(42,31,20,.04); }
.dir-filters-toggle { display: none; }
.dir-filters-form { padding: 22px 20px 20px; }
.dir-fgroup { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.dir-flabel { display: block; font-family: var(--f-display); font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #5a4a38; margin-bottom: 9px; padding: 0; }
.dir-select { width: 100%; height: 44px; padding: 0 38px 0 14px; border: 1.5px solid #ddd2c4; border-radius: 11px;
  background: #fbf8f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a4a38' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; font: 500 .93rem var(--f-body); color: #2a1f14; cursor: pointer; transition: border-color .15s; }
.dir-select:hover { border-color: #b9a88f; }
.dir-select:focus-visible { outline: 3px solid rgba(27,107,58,.35); outline-offset: 1px; border-color: var(--green); }
.dir-select-sm { height: 38px; width: auto; font-size: .88rem; }
.dir-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.dir-pill-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dir-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px;
  border: 1.5px solid #ddd2c4; background: #fff; color: #3d3024; font-size: .84rem; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; user-select: none; }
.dir-pill:hover { border-color: var(--green); color: var(--green); }
.dir-pill-input:checked + .dir-pill { background: var(--green); border-color: var(--green); color: #fff; }
.dir-pill-input:focus-visible + .dir-pill { outline: 3px solid rgba(27,107,58,.4); outline-offset: 2px; }
.dir-fnote { font-size: .78rem; color: #6f5f4c; line-height: 1.5; margin: 4px 0 12px; }
.dir-factions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dir-reset { font-size: .86rem; font-weight: 600; color: #8a1c12; text-decoration: underline; }

/* Results header */
.dir-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dir-results-title { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: #3d3024; margin: 0; }
.dir-results-num { font-size: 2rem; font-weight: 800; color: var(--green); margin-right: 4px; letter-spacing: -.02em; }
.dir-results-for { color: #6f5f4c; font-weight: 500; }
.dir-sort { display: flex; align-items: center; gap: 10px; }
.dir-sort label { font-size: .84rem; font-weight: 600; color: #5a4a38; }
.dir-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.dir-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 12px; border-radius: 999px;
  background: #e8f3ec; color: #14532d; font-size: .84rem; font-weight: 600; text-decoration: none; border: 1px solid #c6e2d0; }
.dir-chip:hover { background: #d3eadb; text-decoration: none; }
.dir-chip i { font-size: .78rem; }
.dir-clear-all { font-size: .84rem; font-weight: 600; color: #5a4a38; text-decoration: underline; margin-left: 4px; }

/* Cards */
.dir-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.dir-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.dir-card:hover { border-color: #c9b9a3; box-shadow: 0 10px 30px rgba(42,31,20,.09); transform: translateY(-2px); }
.dir-card:focus-within { outline: 3px solid #1565A8; outline-offset: 2px; }
.dir-card-top { display: flex; gap: 14px; align-items: center; }
.dir-mark { position: relative; flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; }
.dir-mark-img { object-fit: cover; background: #f2ede8; border: 1px solid var(--line); }
.dir-mark-icon { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #3d3024; font-size: .66rem; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.dir-card-id { min-width: 0; }
.dir-card-name { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.dir-card-link { color: #2a1f14; text-decoration: none; }
.dir-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; z-index: 1; }
.dir-card-link:focus-visible { outline: none; }
.dir-card:hover .dir-card-link { color: var(--green); }
.dir-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: .83rem; color: #6f5f4c; }
.dir-card-meta i { color: var(--green); font-size: .74rem; margin-right: 2px; }
.dir-card-products { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-prod { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 11px; border-radius: 8px;
  background: #f6f1ea; color: #3d3024; font-size: .82rem; font-weight: 500; }
.dir-prod.is-match { background: #fdecc8; color: #5c3b00; font-weight: 700; box-shadow: inset 0 0 0 1px #e8a020; }
.dir-prod-more { background: none; color: #6f5f4c; padding-left: 4px; }
.dir-card-desc { margin: 0; font-size: .87rem; line-height: 1.55; color: #5a4a38; }
.dir-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #efe7dc; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dir-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b4500;
  background: #fff4dc; padding: 4px 9px; border-radius: 6px; }
.dir-tag-verified { color: #14532d; background: #e8f3ec; }
.dir-card-actions { display: flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.dir-icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid #ddd2c4;
  color: #3d3024; background: #fff; text-decoration: none; transition: background .15s, border-color .15s; }
.dir-icon-btn:hover { background: #f6f1ea; border-color: #b9a88f; text-decoration: none; }
.dir-icon-wa { color: #0b6b3a; }
.dir-view { font-size: .86rem; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.dir-card:hover .dir-view i { transform: translateX(3px); }
.dir-view i { transition: transform .18s; font-size: .8rem; }

/* Empty state */
.dir-empty { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed #d9cfc2; border-radius: 16px; }
.dir-empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: #f6f1ea; color: #8a7a66; display: grid; place-items: center; font-size: 1.5rem; }
.dir-empty h3 { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 8px; }
.dir-empty p { color: #5a4a38; margin-bottom: 14px; }
.dir-empty-try a { display: inline-block; margin: 0 4px; font-weight: 600; color: var(--green); text-decoration: underline; }

/* Tablet & phone: results first, filters in a collapsible panel */
@media (max-width: 900px) {
  .dir-body { padding-top: 20px; }
  .dir-layout { grid-template-columns: 1fr; gap: 16px; }
  .dir-filters-wrap { position: static; }
  .dir-filters-toggle { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none;
    font-family: var(--f-display); font-weight: 700; color: #2a1f14; min-height: 52px; }
  .dir-filters-toggle::-webkit-details-marker { display: none; }
  .dir-filters-toggle i { color: var(--green); }
  .dir-filters-count { background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
  .dir-filters-chevron { margin-left: auto; transition: transform .2s; }
  .dir-filters[open] .dir-filters-chevron { transform: rotate(180deg); }
  .dir-filters-form { padding-top: 4px; border-top: 1px solid #efe7dc; }
}
@media (max-width: 560px) {
  .dir-grid { grid-template-columns: 1fr; gap: 14px; }
  .dir-card { padding: 16px; }
  .dir-results-num { font-size: 1.6rem; }
  .dir-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}


/* Legacy directory search bar (older search.php). Kept so a page that is not yet
   updated still looks right; the current page uses .dir-search instead. */
.page-hero-searchbar { display: flex; align-items: center; background: #fff; border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.25); transition: box-shadow .2s, border-color .2s; max-width: 100%; }
.page-hero-searchbar:focus-within { box-shadow: 0 8px 48px rgba(0,0,0,.32); border-color: var(--gold); }
.page-hero-searchbar i { padding: 0 6px 0 22px; color: var(--green); font-size: 1rem; flex-shrink: 0; }
.page-hero-searchbar input { flex: 1; padding: 20px 14px; background: none; border: none; outline: none;
  font-family: var(--f-body); font-size: 1.05rem; color: var(--g800); min-width: 0; }
.page-hero-searchbar input::placeholder { color: #7a6a57; font-size: 1rem; }
.page-hero-searchbar button { padding: 18px 36px; background: var(--gold); border: none; color: #2a1f14;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .2s, color .2s; }
.page-hero-searchbar button:hover { background: #8a5a00; color: #fff; }
@media (max-width: 560px) { .page-hero-searchbar button { padding: 18px 20px; } }


/* Partner logos on the homepage — double size, full colour (Oct 2026) */
.sponsors-track { gap: 40px; }
.sponsor-logo-item { height: 112px; min-width: 200px; padding: 12px 28px; border-radius: 14px; }
.sponsor-logo-item img { height: 72px; max-width: 280px; filter: none; }
.sponsor-logo-item a { border-radius: 10px; }
.sponsor-logo-item a:focus-visible { outline: 3px solid #1565A8; outline-offset: 4px; }
@media (max-width: 600px) {
  .sponsors-track { gap: 24px; }
  .sponsor-logo-item { height: 96px; min-width: 150px; padding: 10px 18px; }
  .sponsor-logo-item img { height: 56px; max-width: 200px; }
}

/* Partners page — large logos (Oct 2026): logo across the top of each card */
.partners-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.partner-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; text-align: center; }
.partner-card-logo {
  width: 100%; height: 190px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: #fff; padding: 20px 28px;
}
.partner-card-logo img { width: 100%; height: 100%; max-height: 150px; padding: 0; object-fit: contain; transition: transform .25s; }
.partner-card:hover .partner-card-logo img { transform: scale(1.04); }
.partner-card-logo a { justify-content: center; }
.partner-card-initial { font-size: 2.6rem; }
.partner-card-body { padding: 16px 20px 20px; }
.partner-card-name { font-size: 1.05rem; margin-bottom: 6px; }
.partner-card-link { font-size: .82rem; }
@media (max-width: 600px) {
  .partner-card { padding: 0; }
  .partner-card-logo { height: 170px; padding: 16px 22px; }
  .partner-card-logo img { max-height: 135px; }
}
@media (prefers-reduced-motion: reduce) { .partner-card:hover .partner-card-logo img { transform: none; } }

/* Directory cards: the button row only catches clicks on its buttons; gaps fall through to the card link */
.dir-card-actions { pointer-events: none; }
.dir-card-actions a { pointer-events: auto; }
.dir-view { pointer-events: auto; text-decoration: none; padding: 6px 2px; }
.dir-view:hover { text-decoration: underline; }


/* Partners page: explanation + website on each card; highlight when arriving from a homepage logo */
.partner-card { scroll-margin-top: 110px; transition: box-shadow .3s, border-color .3s; }
.partner-card:focus { outline: none; }
.partner-card.is-highlighted, .partner-card:target { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,160,32,.35), 0 12px 32px rgba(42,31,20,.12); }
.partner-card-body { display: flex; flex-direction: column; align-items: center; flex: 1; }
.partner-card-type { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6b4500; margin: 0 0 4px; }
.partner-card-desc { color: #5a4a38; font-size: .9rem; line-height: 1.6; margin: 4px 0 16px; }
.partner-card-desc p { margin: 0 0 8px; }
.partner-card-desc p:last-child { margin-bottom: 0; }
.partner-card-visit { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 44px;
  border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; transition: background .2s; }
.partner-card-visit:hover { background: var(--green-2, #14532d); color: #fff; text-decoration: none; }
.partner-card-host { font-weight: 500; opacity: .85; font-size: .8rem; }
.partner-card-host::before { content: "· "; }
@media (prefers-reduced-motion: reduce) { .partner-card { transition: none; } }


/* Business showcase video */
.biz-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d1a12; }
.biz-video iframe, .biz-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ══ Mobile navigation (fixed) ══════════════════════════════════════════ */
:root { --g700: #3d3024; }
.nav-drawer-extra, .nav-drawer-head { display: none; }
@media (max-width: 920px) {
  /* backdrop-filter on the header traps the fixed drawer inside it — use solid colour on mobile */
  .site-header, .site-header.scrolled, body:not(.is-home) .site-header {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .site-header, .site-header.scrolled, body:not(.is-home) .site-header { background: #fff; box-shadow: 0 1px 0 var(--g100), 0 4px 14px rgba(0,0,0,.05); }
  .nav-toggle { background: var(--g100) !important; }
  .nav-toggle span { background: var(--g700) !important; }
  .header-portal { color: var(--g600) !important; background: var(--g100) !important; }
  body.is-home .site-header:not(.scrolled) .header-cart { color: var(--g600); background: var(--g100); }
  .header-inner { gap: 10px; }
  .site-logo { min-width: 0; flex: 1 1 auto; }
  .site-logo-text { min-width: 0; }
  .site-logo-name { font-size: 15px; line-height: 1.15; white-space: normal; }
  .header-actions { gap: 6px; }
  .nav-toggle { display: flex !important; width: 44px; height: 44px; flex-shrink: 0; }
  .site-header.scrolled .nav-toggle span, body:not(.is-home) .nav-toggle span { background: var(--g700); }
  .site-nav {
    position: fixed; top: 0; bottom: 0; right: 0; left: auto;
    height: 100vh; height: 100dvh; width: min(290px, 84vw);
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    z-index: 600; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.18);
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 0 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .site-nav.open { right: 0; transform: none; visibility: visible; }
  .site-nav a {
    display: block; padding: 14px 26px; font-size: 16px; font-weight: 600;
    color: var(--g700) !important; border-bottom: 1px solid var(--g100);
    background: none; border-radius: 0; min-height: 48px;
  }
  .site-nav a.active { color: var(--green) !important; background: var(--green-light, #eef7f0); box-shadow: inset 4px 0 0 var(--green); }
  .site-nav a::after { display: none !important; }
  .nav-drawer-extra { display: block; margin-top: 14px; padding: 0 18px; }
  .nav-drawer-extra a { border: 0; padding: 12px 10px; }
  .nav-drawer-extra a.nav-drawer-cta {
    background: var(--green) !important; color: #fff !important; border-radius: 10px;
    text-align: center; margin-bottom: 8px;
  }
  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px 0 26px; height: 64px; flex-shrink: 0;
    border-bottom: 1px solid var(--g100); position: sticky; top: 0; background: #fff; z-index: 1;
  }
  .nav-drawer-head span { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
  .nav-close {
    width: 44px; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--g100); color: var(--g700); font-size: 20px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .nav-close:hover, .nav-close:focus-visible { background: var(--green-light, #eef7f0); color: var(--green); }
  .nav-backdrop { z-index: 499; }
  /* lift the header (and its drawer) above the sticky top bar while open */
  body.nav-open .site-header { z-index: 1000; }
  body.nav-open .nav-backdrop { z-index: 999; }
  .nav-backdrop.active { display: block; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; }
  .site-logo-mark { width: 36px; height: 36px; font-size: 14px; flex-shrink: 0; }
  .site-logo { gap: 8px; }
  .site-logo-name { font-size: 13.5px; }
  .header-cta, .header-portal { display: none !important; }  /* both are inside the drawer */
}

.story-intro p { margin: 0 0 .6em; }
.story-intro p:last-child { margin-bottom: 0; }
