/* ═══════════════════════════════════════════════════════════════
   myLokaal — Shared Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--cream); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font); }

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  /* ── myLokaal brand palette ─── */
  --green-deep:   #0B3D2E;   /* hero backgrounds, dark nav */
  --green-mid:    #1D6B4A;   /* primary buttons, links */
  --green-brand:  #1D9E75;   /* CTA, highlights */
  --green-light:  #E1F5EE;   /* card backgrounds, chips */
  --gold:         #F5A623;   /* accent, stats */
  --gold-deep:    #C8841A;   /* gold hover */
  --gold-light:   #FFF4DC;   /* gold backgrounds */
  --navy:         #0D2240;   /* gradient depth */
  --pan-green:    #1D9E75;
  --pan-yellow:   #F5A623;
  --pan-red:      #C0392B;
  --coral:        #C0392B;   /* errors, destructive */
  --coral-l:      #fde8e8;
  --teal:         #0d9488;   /* info, teal accents */
  --teal-l:       #e0f5f3;
  --indigo:       #1a2e5a;

  /* ── Neutral surfaces ─── */
  --cream:   #F7F6F2;        /* page background (off-white) */
  --surface: #FFFFFF;
  --border:  #DDE5DF;        /* green-tinted border */

  /* ── Text ─── */
  --text:     #0F1A13;       /* near-black green */
  --muted:    #4A5E54;       /* secondary text */
  --muted-d:  #2C3B32;       /* muted-dark */
  --text-primary:   #0F1A13;
  --text-secondary: #4A5E54;
  --text-tertiary:  #8FA898;

  /* ── Legacy aliases (keep backward compat) ─── */
  --g900: #0B3D2E;
  --g700: #1D6B4A;
  --g600: #158E5C;
  --g500: #1D9E75;
  --g100: #E1F5EE;
  --gold-d: #C8841A;
  --gold-l: #FFF4DC;

  /* ── Radii ─── */
  --rsm: 10px;
  --rmd: 16px;
  --rlg: 24px;
  --rxl: 32px;

  /* ── Shadows ─── */
  --shsm: 0 1px 4px rgba(0,0,0,.06);
  --shmd: 0 4px 20px rgba(0,0,0,.09);
  --shlg: 0 12px 48px rgba(0,0,0,.14);

  /* ── Typography ─── */
  --font:  'DM Sans', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease:  .22s cubic-bezier(.4,0,.2,1);
}

/* ── Heading typography — DM Serif Display ───────────────────── */
h1, h2, h3 { font-family: var(--serif); }
h4, h5, h6 { font-family: var(--font); }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--g600); border-radius: 3px; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.alt-bg    { background: var(--surface); }
.dark-bg   { background: var(--navy); color: #fff; }
.indigo-bg { background: var(--indigo); color: #fff; }

/* ── Typography ──────────────────────────────────────────────── */
.sec-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin-bottom: 8px;
}
.sec-title em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.sec-sub  { color: var(--muted); font-size: .92rem; max-width: 500px; }
.sec-hd   { margin-bottom: 40px; }
.sec-hd .lbl { margin-bottom: 11px; }
.sec-hd-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Labels / Badges ─────────────────────────────────────────── */
.lbl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lbl-g  { background: var(--g100);    color: var(--g700); }
.lbl-gd { background: var(--gold-l);  color: var(--gold-d); }
.lbl-c  { background: var(--coral-l); color: var(--coral); }
.lbl-t  { background: var(--teal-l);  color: var(--teal); }
.lbl-w  { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.lbl-navy { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.12); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font-size: .875rem; font-weight: 700; white-space: nowrap;
  transition: all var(--ease);
}
.btn-sm  { padding: 9px 16px; font-size: .8rem; }
.btn-lg  { padding: 15px 30px; font-size: .95rem; }
.btn-xl  { padding: 18px 38px; font-size: 1.05rem; }
.btn-g   { background: var(--g700); color: #fff; box-shadow: 0 2px 14px rgba(15,92,58,.25); }
.btn-g:hover { background: var(--g600); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(15,92,58,.3); }
.btn-gd  { background: var(--gold); color: #fff; box-shadow: 0 2px 14px rgba(240,165,0,.25); }
.btn-gd:hover { background: #d4930a; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(240,165,0,.3); }
.btn-c   { background: var(--coral); color: #fff; }
.btn-c:hover { background: #c94e30; transform: translateY(-2px); }
.btn-og  { background: transparent; color: var(--g700); border: 2px solid var(--g700); }
.btn-og:hover { background: var(--g100); }
.btn-ow  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ow:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-white { background: #fff; color: var(--g700); font-weight: 800; }
.btn-white:hover { background: var(--g100); transform: translateY(-2px); }
.btn-dev { background: #1e1b4b; color: #c4b5fd; border: 1px solid rgba(196,181,253,.25); }
.btn-dev:hover { background: #2d2a6b; color: #e9d5ff; }

/* ── Logo wordmark — "My" regular, "Lokaal" italic ──────────── */
.logo-wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--green-mid);
  letter-spacing: -.01em;
}
.logo-wordmark em {
  font-style: italic;
  color: var(--green-brand);
}
/* On dark backgrounds (hero, footer) show in white */
.dark-bg .logo-wordmark,
.ft-logo  .logo-wordmark,
[class*="dark"] .logo-wordmark { color: #fff; }
[class*="dark"] .logo-wordmark em,
.ft-logo .logo-wordmark em { color: var(--gold); }

/* ── Navbar ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(247,246,242,.97);
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.nav.scrolled { box-shadow: var(--shmd); }
.nav-inner { display: flex; align-items: center; height: 66px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1rem; color: var(--g700); flex-shrink: 0; }
.logo-ico {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-brand));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; box-shadow: 0 2px 10px rgba(29,107,74,.3);
}
.logo-sub { font-size: .58rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links > li { position: relative; }
.nav-links a {
  padding: 7px 11px; border-radius: var(--rsm);
  font-size: .81rem; font-weight: 600; color: var(--muted-d);
  transition: all var(--ease); display: flex; align-items: center; gap: 5px;
}
.nav-links a:hover, .nav-links a.act { color: var(--g700); background: var(--g100); }
.nav-arrow { font-size: .52rem; opacity: .5; transition: transform var(--ease); }
.has-drop:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-drop {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--rmd);
  padding: 6px; padding-top: 12px; min-width: 210px; box-shadow: var(--shlg); z-index: 400;
}
/* Transparent bridge covers the gap between trigger and dropdown so hover is not lost */
.nav-drop::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.has-drop:hover .nav-drop { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity:0; transform:translateX(-50%) translateY(-4px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.nav-drop a {
  display: flex; align-items: center; gap: 10px; padding: 9px 13px;
  border-radius: var(--rsm); font-size: .82rem; font-weight: 600;
  color: var(--muted-d); transition: all var(--ease); white-space: nowrap;
}
.nav-drop a:hover { background: var(--g100); color: var(--g700); }
.nav-drop a i { width: 16px; text-align: center; color: var(--muted); font-size: .82rem; }
.nav-drop hr { border: none; border-top: 1px solid var(--border); margin: 4px 8px; }

/* Location pill */
.location-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 100px;
  background: var(--g100); border: 1.5px solid #c0ddd0;
  color: var(--g700); font-size: .76rem; font-weight: 700;
  cursor: pointer; transition: all var(--ease); font-family: var(--font);
  white-space: nowrap; flex-shrink: 0;
}
.location-pill:hover { background: #d1ece0; border-color: var(--g600); }
.location-pill i:first-child { color: var(--coral); font-size: .82rem; }

/* Cart button */
.cart-btn {
  position: relative; display: inline-flex; align-items: center;
  justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--surface);
  border: 1.5px solid var(--border); color: var(--muted-d);
  font-size: .9rem; transition: all var(--ease); flex-shrink: 0;
}
.cart-btn:hover { background: var(--g100); border-color: var(--g600); color: var(--g700); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--coral); color: #fff;
  font-size: .58rem; font-weight: 800;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}

.nav-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-acts .btn { padding: 8px 15px; font-size: .78rem; }

.ham { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; margin-left: auto; }
.ham span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--ease); }

/* ── Nav auth (logged-out state) ─────────────────────────────── */
.nav-auth { display: flex; align-items: center; gap: 8px; }
.nav-guest-link {
  font-size: .78rem; font-weight: 600; color: var(--muted);
  padding: 6px 10px; border-radius: var(--rsm);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.nav-guest-link:hover { color: var(--g700); background: var(--g100); }

/* ── Nav user widget (logged-in state) ───────────────────────── */

/* Trigger button */
.nav-user {
  position: relative;   /* anchor for the absolutely-positioned dropdown */
  display: inline-flex;
}
.nav-user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 5px; border-radius: 100px;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: background var(--ease), border-color var(--ease);
}
.nav-user-btn:hover,
.nav-user-btn[aria-expanded="true"] { background: var(--g100); border-color: var(--g500); }

/* Avatar circle */
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g700), var(--g500));
  color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; -webkit-user-select: none; user-select: none;
}

/* Name label */
.nav-uname {
  max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Chevron — rotates when dropdown is open */
.nav-uarrow {
  font-size: .5rem; opacity: .55; flex-shrink: 0;
  transition: transform var(--ease);
}

/* ── User account dropdown ──────────────────────────────────────
   Right-anchored, flex-column so items always stack vertically.
   z-index 500 sits above the sticky nav (300) + nav-drop (400).
─────────────────────────────────────────────────────────────── */
.nav-user-drop {
  display:        none;
  position:       absolute;
  top:            calc(100% + 10px);
  right:          0;
  left:           auto;
  transform:      none;
  min-width:      230px;
  background:     var(--surface);
  border:         1px solid var(--border);
  border-radius:  var(--rmd);
  padding:        6px;
  box-shadow:     0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  z-index:        500;
}

/* Open state — flex-column guarantees vertical stacking regardless of cascade */
.nav-user-drop.active {
  display:        flex;
  flex-direction: column;
  animation:      nudDropDown .16s ease both;
}

@keyframes nudDropDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bridge: keeps dropdown open as cursor moves from button to panel */
.nav-user-drop::before {
  content: ''; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}

/* ── Header info panel (avatar + name + email + role) ── */
.nud-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 12px;
}
.nud-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--g700), var(--green-brand));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem; font-weight: 700;
}
.nud-info  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nud-name  { font-size: .84rem; font-weight: 800; color: #1a1a1a; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; }
.nud-email { font-size: .72rem; color: #555; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; max-width: 155px; }
.nud-role  { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 8px;
             font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.nud-role-member { background: var(--g100); color: var(--g700); }
.nud-role-vendor { background: var(--gold-light); color: var(--gold-deep); }
.nud-role-admin  { background: #fee2e2; color: #b91c1c; }

/* Divider */
.nud-sep { height: 1px; background: var(--border); margin: 4px 8px; flex-shrink: 0; }

/* Menu links — explicit block display so nothing can make them horizontal */
.nud-link {
  display: flex !important; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--rsm);
  font-size: .82rem; font-weight: 600; color: #333;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap; text-decoration: none; width: 100%;
}
.nud-link:hover { background: var(--g100); color: var(--g700); }
.nud-link i { width: 15px; text-align: center; color: #666; font-size: .8rem; flex-shrink: 0; }
.nud-link span { flex: 1; }

/* Sign-out — red */
.nav-logout.nud-link            { color: #dc2626; }
.nav-logout.nud-link:hover      { background: #fef2f2; color: #b91c1c; }
.nav-logout.nud-link i          { color: #dc2626; }

/* Keep old selectors working for any page that uses them */
.nav-user-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.nav-user-info strong { font-size: .85rem; font-weight: 800; color: #1a1a1a; }
.nav-user-info span   { font-size: .73rem; color: #555; }
.nav-user-drop a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--rsm); font-size: .82rem; font-weight: 600;
  color: #333; transition: background var(--ease), color var(--ease);
  white-space: nowrap; text-decoration: none;
}
.nav-user-drop a:hover { background: var(--g100); color: var(--g700); }
.nav-user-drop a i { width: 15px; text-align: center; color: #555; font-size: .8rem; flex-shrink: 0; }
.nav-logout            { color: #dc2626 !important; }
.nav-logout:hover      { background: #fef2f2 !important; color: #b91c1c !important; }
.nav-logout i          { color: #dc2626 !important; }

/* ── Breadcrumb bar (logged-in pages) ────────────────────────── */
.bc-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.bc-bar .container { display: flex; align-items: center; gap: 12px; }
.bc-nav {
  display: flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 600;
  /* #555 on white = 7.0:1 — WCAG AA ✓ */
  color: #555;
}
/* Home link — dark green, 9.7:1 contrast ✓ */
.bc-nav a { color: var(--g700); display: flex; align-items: center; gap: 4px; transition: opacity var(--ease); }
.bc-nav a:hover { opacity: .7; }
/* Separator chevron */
.bc-nav i.bc-sep { font-size: .55rem; color: #888; }
/* Current page label — near-black, 18.1:1 ✓ */
.bc-current { color: #1a1a1a; font-weight: 700; }
/* When breadcrumb bar is present, sticky cat-bar must clear both nav + bc-bar */
.bc-bar + .cat-bar,
.bc-bar + header + .cat-bar { top: calc(66px + 36px); }

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 290;
  background: var(--surface); padding: 0 20px 28px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.mob-menu.open { display: flex; }
.mob-menu a { padding: 12px 16px; border-radius: var(--rsm); font-size: .93rem; font-weight: 600; color: var(--text); transition: all var(--ease); }
.mob-menu a:hover { background: var(--g100); color: var(--g700); }
.mob-sect { font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 16px 4px; }
.mob-acts { display: flex; gap: 10px; margin-top: 16px; padding: 0 16px; flex-wrap: wrap; }
.mob-acts .btn { flex: 1; justify-content: center; }

/* ── Location Modal ──────────────────────────────────────────── */
.loc-modal-ov {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.loc-modal-ov.show { display: flex; }
.loc-modal {
  background: var(--surface); border-radius: var(--rlg);
  padding: 32px; width: 90%; max-width: 440px;
  box-shadow: var(--shlg);
}
.radius-row { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; font-weight: 700; margin-bottom: 10px; }
input[type="range"].radius-inp { width: 100%; accent-color: var(--g700); cursor: pointer; }

/* ── Google / Social Auth ────────────────────────────────────── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: 100px;
  background: #fff; border: 1.5px solid #e5e7eb;
  font-size: .875rem; font-weight: 700; color: #374151;
  cursor: pointer; transition: all var(--ease); font-family: var(--font);
}
.btn-google:hover { background: #f9fafb; border-color: #d1d5db; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider span { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Event Cards ─────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.event-card {
  background: var(--surface); border-radius: var(--rlg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shsm); transition: all var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shlg); }
.event-img { height: 180px; overflow: hidden; position: relative; }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-img img { transform: scale(1.06); }
.event-date-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--g700); color: #fff;
  border-radius: var(--rsm); padding: 6px 12px; text-align: center;
  font-size: .7rem; font-weight: 700; line-height: 1.3;
}
.event-date-badge span { display: block; font-size: 1.2rem; font-weight: 900; }
.event-body { padding: 18px; }
.event-cat { font-size: .7rem; font-weight: 700; color: var(--gold-d); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.event-name { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.event-meta { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.event-meta i { color: var(--g600); margin-right: 3px; }
.event-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.event-price { font-size: .88rem; font-weight: 800; color: var(--g700); }

/* ── About page ──────────────────────────────────────────────── */
.about-hero { background: linear-gradient(158deg,#021208,#0a2d1c 35%,#0f5c3a 70%,#1a3060); padding: 80px 0; color: #fff; text-align: center; }
.about-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; letter-spacing: -.045em; margin-bottom: 16px; }
.about-hero h1 em { font-family: var(--serif); font-style: italic; color: #f5c842; }
.about-hero p { font-size: 1.05rem; opacity: .78; max-width: 560px; margin: 0 auto; line-height: 1.7; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rlg); padding: 28px; text-align: center; transition: all var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shmd); }
.value-ico { width: 60px; height: 60px; border-radius: var(--rmd); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 14px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 24px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rlg); padding: 24px; text-align: center; }
.team-av { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 3px solid var(--g100); }
.team-av img { width: 100%; height: 100%; object-fit: cover; }

/* ── Legal page ──────────────────────────────────────────────── */
.legal-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 36px; flex-wrap: wrap; }
.legal-tab { padding: 11px 20px; font-size: .84rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; transition: all var(--ease); background: none; font-family: var(--font); }
.legal-tab:hover { color: var(--g700); }
.legal-tab.act { color: var(--g700); border-bottom-color: var(--g700); }
.legal-content { display: none; }
.legal-content.show { display: block; }
.legal-content h2 { font-size: 1.3rem; font-weight: 900; margin: 32px 0 12px; color: var(--g700); }
.legal-content h3 { font-size: 1rem; font-weight: 800; margin: 24px 0 8px; }
.legal-content p, .legal-content li { font-size: .9rem; color: var(--muted-d); line-height: 1.75; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; }

/* ── Freelancer profile registration ─────────────────────────── */
.skill-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 100px; background: var(--g100); color: var(--g700); font-size: .78rem; font-weight: 700; }
.skill-chip button { background: none; color: var(--g700); opacity: .55; font-size: .7rem; }

/* ── Page Hero (sub-pages) ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(158deg, #021208 0%, #0a2d1c 28%, #0f5c3a 60%, #1a3060 100%);
  padding: 56px 0 52px; color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--pan-green)  0, var(--pan-green)  28px,
    var(--pan-yellow) 28px, var(--pan-yellow) 56px,
    var(--pan-red)    56px, var(--pan-red)    84px);
}
.page-hero-in { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 10px; }
.page-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: #f5c842; }
.page-hero p { color: rgba(255,255,255,.7); font-size: clamp(.9rem, 2vw, 1.05rem); max-width: 520px; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--ease); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; }

/* ── Shop Cards ──────────────────────────────────────────────── */
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.shop-card {
  background: var(--surface); border-radius: var(--rlg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shsm); transition: all var(--ease); cursor: pointer;
}
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shlg); border-color: rgba(15,92,58,.12); }
.shop-img  { position: relative; height: 195px; overflow: hidden; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop-card:hover .shop-img img { transform: scale(1.06); }
.shop-bdg  { position: absolute; top: 12px; left: 12px; }
.shop-fav  {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .82rem; transition: all var(--ease);
}
.shop-fav:hover { color: #e03131; background: #fff; }
.shop-body { padding: 18px; }
.shop-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.shop-cat  { font-size: .72rem; font-weight: 700; color: var(--gold-d); text-transform: uppercase; letter-spacing: .04em; }
.shop-rat  { display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; }
.shop-rat i { color: var(--gold); font-size: .76rem; }
.shop-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; letter-spacing: -.015em; }
.shop-desc { font-size: .81rem; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--border); }
.shop-loc  { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); }
.shop-loc i { color: var(--g600); font-size: .78rem; }
.shop-cnt  { font-size: .76rem; color: var(--muted); }

/* ── Product Cards ───────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prod-card { background: var(--surface); border-radius: var(--rmd); overflow: hidden; border: 1px solid var(--border); transition: all var(--ease); }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shmd); }
.prod-img  { height: 200px; overflow: hidden; position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .prod-img img { transform: scale(1.07); }
.prod-body { padding: 14px; }
.prod-shop { font-size: .7rem; color: var(--muted); margin-bottom: 3px; }
.prod-name { font-size: .9rem; font-weight: 700; margin-bottom: 9px; }
.prod-row  { display: flex; align-items: center; justify-content: space-between; }
.prod-price { font-size: 1rem; font-weight: 800; color: var(--g700); }
.prod-old  { font-size: .76rem; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.prod-add  {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--g700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; transition: all var(--ease);
}
.prod-add:hover { background: var(--g600); transform: scale(1.12); }

/* ── Job Cards ───────────────────────────────────────────────── */
.jobs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.job-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--rmd); padding: 22px; cursor: pointer; transition: all var(--ease);
}
.job-card:hover { background: rgba(255,255,255,.09); border-color: rgba(240,165,0,.3); transform: translateY(-2px); }
.job-card.feat { border-color: rgba(240,165,0,.4); background: rgba(240,165,0,.06); }
.job-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.job-logo { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: rgba(255,255,255,.1); overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 1.1rem; }
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-info { flex: 1; }
.job-title { font-size: .96rem; font-weight: 800; color: #fff; margin-bottom: 3px; letter-spacing: -.01em; }
.job-co   { font-size: .78rem; color: rgba(255,255,255,.5); }
.j-badge  { padding: 4px 10px; border-radius: 100px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.jb-full  { background: rgba(42,157,107,.2);  color: #4ade80; }
.jb-free  { background: rgba(240,165,0,.2);   color: #fcd34d; }
.jb-part  { background: rgba(13,148,136,.2);  color: #2dd4bf; }
.jb-cont  { background: rgba(139,92,246,.2);  color: #c4b5fd; }
.job-desc { font-size: .8rem; color: rgba(255,255,255,.48); margin-bottom: 13px; line-height: 1.55; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.job-tag  { padding: 3px 10px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); font-size: .7rem; color: rgba(255,255,255,.56); font-weight: 600; }
.job-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.job-meta-r { display: flex; align-items: center; gap: 14px; }
.j-meta   { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: rgba(255,255,255,.4); }
.j-sal    { font-size: .83rem; font-weight: 700; color: #fcd34d; }

/* ── Post-a-Job CTA card ─────────────────────────────────────── */
.post-job-cta {
  background: linear-gradient(135deg, rgba(240,165,0,.13), rgba(240,165,0,.05));
  border: 1px solid rgba(240,165,0,.28); border-radius: var(--rmd);
  padding: 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  justify-content: center; min-height: 220px;
}
.post-job-cta h3 { font-size: 1.15rem; font-weight: 800; color: #fff; }
.post-job-cta p  { font-size: .82rem; color: rgba(255,255,255,.55); max-width: 250px; }

/* ── Freelancer Cards ────────────────────────────────────────── */
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.fl-card {
  background: var(--surface); border-radius: var(--rlg);
  border: 1px solid var(--border); padding: 28px; text-align: center;
  box-shadow: var(--shsm); transition: all var(--ease);
}
.fl-card:hover { transform: translateY(-5px); box-shadow: var(--shlg); border-color: rgba(15,92,58,.12); }
.fl-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 3px solid var(--g100); }
.fl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fl-name  { font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.fl-role  { font-size: .8rem; color: var(--g600); font-weight: 600; margin-bottom: 6px; }
.fl-loc   { font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.fl-bio   { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.fl-skills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.fl-skill { padding: 4px 12px; border-radius: 100px; background: var(--g100); color: var(--g700); font-size: .72rem; font-weight: 700; }
.fl-rate  { font-size: .9rem; font-weight: 800; color: var(--g700); margin-bottom: 16px; }
.fl-foot  { display: flex; gap: 8px; justify-content: center; }

/* ── Category filter bar ─────────────────────────────────────── */
.cat-bar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 66px; z-index: 200; }
.cat-scroll { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 11px 0; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; color: var(--muted); background: transparent;
  border: 1.5px solid transparent; white-space: nowrap; transition: all var(--ease);
}
.cat-tab:hover { color: var(--g700); background: var(--g100); }
.cat-tab.act { color: var(--g700); background: var(--g100); border-color: var(--g600); }

/* ── Jobs Filter Bar ─────────────────────────────────────────── */
.jobs-filter { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 32px; }
.jobs-filter::-webkit-scrollbar { display: none; }
.jf-btn {
  padding: 9px 18px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.58); background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.08); white-space: nowrap; transition: all var(--ease);
}
.jf-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.jf-btn.act { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
/* #444 on white = 9.7:1 — WCAG AA ✓ */
.form-label {
  display: block; font-size: .82rem; font-weight: 700; color: #444;
  margin-bottom: 7px; letter-spacing: .01em;
}
.form-label .req { color: var(--coral); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--rsm);
  font-size: .9rem; color: var(--text); background: var(--surface);
  transition: border-color var(--ease), box-shadow var(--ease);
  font-family: var(--font);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--g600);
  box-shadow: 0 0 0 3px rgba(15,92,58,.1);
}
/* Placeholder: #666 on white = 5.74:1 — WCAG AA ✓ */
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder { color: #666; opacity: 1; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444444' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* #555 on white = 7.0:1 — WCAG AA ✓ */
.form-hint  { font-size: .76rem; color: #555; margin-top: 5px; }
.form-error { font-size: .76rem; color: var(--coral); margin-top: 5px; display: none; }

/* ── Map ─────────────────────────────────────────────────────── */
.map-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.city-btn {
  padding: 8px 17px; border-radius: 100px; font-size: .78rem; font-weight: 600;
  color: var(--muted-d); background: var(--surface); border: 1.5px solid var(--border);
  transition: all var(--ease);
}
.city-btn:hover, .city-btn.act { background: var(--g700); color: #fff; border-color: var(--g700); }

/* ── How-It-Works ────────────────────────────────────────────── */
.how-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.how-tab {
  padding: 11px 28px; border-radius: 100px; font-size: .86rem; font-weight: 700;
  background: var(--surface); border: 2px solid var(--border); color: var(--muted-d);
  transition: all var(--ease);
}
.how-tab.act { background: var(--g700); color: #fff; border-color: var(--g700); box-shadow: 0 4px 16px rgba(15,92,58,.25); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-step {
  text-align: center; padding: 36px 24px; background: var(--surface);
  border-radius: var(--rlg); border: 1px solid var(--border); transition: all var(--ease);
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shmd); }
.how-ico { width: 72px; height: 72px; border-radius: var(--rmd); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; }
.ico-g  { background: var(--g100);    color: var(--g700); }
.ico-gd { background: var(--gold-l);  color: var(--gold-d); }
.ico-c  { background: var(--coral-l); color: var(--coral); }
.ico-t  { background: var(--teal-l);  color: var(--teal); }
.how-step h3 { font-size: .98rem; font-weight: 800; margin-bottom: 9px; }
.how-step p  { font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* ── Testimonials ────────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rlg); padding: 28px; transition: all var(--ease); }
.test-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.test-stars { display: flex; gap: 3px; margin-bottom: 14px; color: #fcd34d; font-size: .8rem; }
.test-q    { font-size: .92rem; color: rgba(255,255,255,.78); line-height: 1.72; margin-bottom: 20px; font-style: italic; }
.test-auth { display: flex; align-items: center; gap: 12px; }
.test-av   { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.1); }
.test-av img { width: 100%; height: 100%; object-fit: cover; }
.test-name { font-size: .86rem; font-weight: 700; color: #fff; }
.test-role { font-size: .72rem; color: rgba(255,255,255,.42); }

/* ── Newsletter ──────────────────────────────────────────────── */
.nl-section { background: var(--g700); color: #fff; padding: 80px 0; text-align: center; }
.nl-section .sec-title { color: #fff; }
.nl-form { display: flex; max-width: 520px; margin: 24px auto 0; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 100px; overflow: hidden; }
.nl-form:focus-within { border-color: rgba(255,255,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.nl-inp { flex: 1; padding: 14px 22px; background: transparent; border: none; outline: none; color: #fff; font-size: .88rem; font-family: var(--font); }
.nl-inp::placeholder { color: rgba(255,255,255,.42); }
.nl-btn { padding: 10px 22px; margin: 5px; background: #fff; color: var(--g700); border-radius: 100px; font-weight: 700; font-size: .83rem; transition: all var(--ease); }
.nl-btn:hover { background: var(--gold-l); }

/* ── Kente Stripe ────────────────────────────────────────────── */
.kente {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--pan-green)  0, var(--pan-green)  28px,
    var(--pan-yellow) 28px, var(--pan-yellow) 56px,
    var(--pan-red)    56px, var(--pan-red)    84px);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: #090f18; color: rgba(255,255,255,.6); padding: 64px 0 32px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ft-brand p { font-size: .83rem; margin: 14px 0 20px; line-height: 1.72; max-width: 300px; }
.ft-logo { color: #fff; }
.ft-logo .logo-ico { background: rgba(255,255,255,.1); }
.ft-social { display: flex; gap: 9px; }
.soc-lnk { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: .83rem; transition: all var(--ease); }
.soc-lnk:hover { background: var(--g700); color: #fff; }
.ft-col h4 { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 15px; letter-spacing: .02em; }
.ft-links { display: flex; flex-direction: column; gap: 10px; }
.ft-links a { font-size: .8rem; transition: color var(--ease); }
.ft-links a:hover { color: #fcd34d; }
.ft-bottom { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft-bottom p { font-size: .76rem; }
.ft-legal { display: flex; gap: 20px; }
.ft-legal a { font-size: .76rem; transition: color var(--ease); }
.ft-legal a:hover { color: #fff; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fu  { animation: fadeUp .5s ease both; }
.d1  { animation-delay: .1s; } .d2 { animation-delay: .2s; }
.d3  { animation-delay: .3s; } .d4 { animation-delay: .4s; }

/* ── Alert / Toast ───────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--rsm); font-size: .85rem; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-info    { background: var(--teal-l);  color: var(--teal);  border: 1px solid rgba(13,148,136,.2); }
.alert-success { background: var(--g100);    color: var(--g700);  border: 1px solid rgba(15,92,58,.2); }
.alert-warn    { background: var(--gold-l);  color: var(--gold-d);border: 1px solid rgba(240,165,0,.25); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .test-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-acts { display: none; }
  .ham { display: flex; }
  .jobs-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .test-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .form-row  { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .shops-grid { grid-template-columns: 1fr; }
  .prod-grid  { grid-template-columns: 1fr 1fr; }
  .fl-grid    { grid-template-columns: 1fr; }
  .ft-grid    { grid-template-columns: 1fr; }
  .ft-bottom  { flex-direction: column; text-align: center; }
}
@media (max-width: 380px) {
  .prod-grid { grid-template-columns: 1fr; }
}
