/* ── SOUTHAFRICANHUB.NL — DESIGN SYSTEM v2 ── */
/* Inspired by South African Business & Services Netherlands banner */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Merriweather:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@300;400;500;600&display=swap');

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

:root {
  /* ── Core palette from banner ── */
  --navy:         #0d1f3c;   /* deep navy — primary dark */
  --navy-mid:     #162a4a;   /* mid navy — cards, sections */
  --navy-light:   #1e3a5f;   /* lighter navy — hover states */
  --green:        #1a5c2a;   /* SA green — primary accent */
  --green-light:  #227435;   /* green hover */
  --green-bg:     #e8f4ec;   /* green tint background */
  --red:          #c8102e;   /* SA red — secondary accent */
  --red-light:    #e8f4ec;
  --gold:         #f0a500;   /* SA gold — tertiary */
  --white:        #ffffff;
  --off-white:    #f8f9fa;
  --light-grey:   #eef0f3;
  --mid-grey:     #c8cdd6;
  --muted:        #6b7585;
  --ink:          #0d1f3c;   /* same as navy for text */

  /* ── Legacy aliases (keeps pages working) ── */
  --accent:       #1a5c2a;
  --accent-hover: #22743s;
  --accent-light: #e8f4ec;
  --accent-border:#b8dcc4;
  --bg:           #f4f6f9;
  --surface:      #ffffff;
  --wire:         #dde1e8;
  --subtle:       #eef0f3;
  --free:         #1a5c2a;
  --free-bg:      #e8f4ec;
  --sale:         #92400e;
  --sale-bg:      #fef3c7;

  --radius-sm:    5px;
  --radius-md:    10px;
  --radius-lg:    14px;

  /* Typography */
  --font-head:    'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
  --font-serif:   'Merriweather', serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-nav {
  background: var(--navy);
  padding: 0 48px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  background: var(--green);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 12px;
  letter-spacing: -0.5px;
  font-family: var(--font-head);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}
.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: white; font-weight: 700; }
.nav-links a.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 8px 18px;
  font-weight: 700;
  margin-left: 8px;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.nav-links a.nav-cta:hover {
  background: transparent;
  border-color: var(--green);
  color: var(--green) !important;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--green);
  margin-top: auto;
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 11px;
  font-family: var(--font-head);
}
.footer-logo-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: white;
}
.footer-logo-name span { color: var(--gold); }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-right { text-align: right; }
.footer-powered { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.footer-powered a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.footer-powered a:hover { color: white; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
}

/* Buttons */
.btn-primary {
  background: var(--green);
  color: white;
  border: 2px solid var(--green);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-primary:hover {
  background: transparent;
  color: var(--green);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--mid-grey);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.08); }

.view-all-link {
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-all-link:hover { text-decoration: underline; }

/* Pills / filter buttons */
.pill {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--mid-grey);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
}
.pill:hover { border-color: var(--navy); }
.pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Card base */
.card-base {
  background: var(--surface);
  border: 1px solid var(--wire);
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-base:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,31,60,0.1);
  border-color: var(--green);
}

/* ══════════════════════════════════════
   PAGE HERO BAND (dark — used on inner pages)
══════════════════════════════════════ */
.page-hero-band {
  background: var(--navy);
  padding: 48px 48px 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--green);
}
.page-hero-band::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,42,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-band::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; right: 0; top: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.012) 40px,
    rgba(255,255,255,0.012) 80px
  );
  pointer-events: none;
}
.page-hero-band .section-eyebrow,
.page-hero-band h1,
.page-hero-band p,
.page-hero-band .hero-stats {
  position: relative;
  z-index: 1;
}
.page-hero-band h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-hero-band h1 em {
  font-style: normal;
  color: var(--green);
}
.page-hero-band p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 28px;
}
.hero-stats { display: flex; gap: 36px; position: relative; z-index: 1; }
.hero-stat .n {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.hero-stat .l {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 600;
}

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.filter-bar {
  background: var(--white);
  border-bottom: 2px solid var(--wire);
  padding: 12px 48px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 62px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-divider {
  width: 1px;
  height: 22px;
  background: var(--mid-grey);
  margin: 0 4px;
  flex-shrink: 0;
}
.view-toggle {
  margin-left: auto;
  display: flex;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.toggle-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: all 0.15s;
  letter-spacing: 0.03em;
}
.toggle-btn.on { background: var(--navy); color: white; }
.toggle-btn.off { background: var(--white); color: var(--muted); }

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--font-head);
}
.breadcrumb a { color: var(--green); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   NEWSLETTER SIGNUP BANNER
══════════════════════════════════════ */
.signup-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-top: 3px solid var(--green);
  position: relative;
  overflow: hidden;
}
.signup-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,42,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.signup-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.signup-copy .eyebrow {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.signup-copy h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.signup-copy p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; }
.signup-form-row { display: flex; gap: 10px; }
.signup-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.signup-input {
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.07);
  color: white;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.signup-input::placeholder { color: rgba(255,255,255,0.3); }
.signup-input:focus { border-color: var(--green); background: rgba(255,255,255,0.12); }
.signup-btn {
  background: var(--green);
  color: white;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.signup-btn:hover { background: transparent; color: var(--green); }
.signup-note { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 9px; }
.signup-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(26,92,42,0.25);
  border: 1px solid rgba(26,92,42,0.5);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #86efac;
  font-size: 14px;
  font-weight: 500;
}
.signup-success.visible { display: flex; }
.signup-success-icon { font-size: 20px; flex-shrink: 0; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: white;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-head);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border-left: 4px solid var(--green);
  z-index: 999;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { font-size: 16px; }



/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════ */

@media (max-width: 768px) {

  /* Nav */
  .site-nav { padding: 0 16px; height: 56px; }
  .nav-links { display: none !important; }
  .nav-logo-text { font-size: 13px; }

  /* Hamburger */
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px; cursor: pointer;
    padding: 6px; background: none; border: none;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: white; border-radius: 2px; transition: all 0.2s;
  }

  /* Mobile menu */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 3px solid var(--green);
    z-index: 199; padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block; padding: 13px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-menu a.nav-cta {
    margin: 10px 16px 8px;
    background: var(--green); color: white;
    border-radius: 6px; text-align: center;
    padding: 12px; border-bottom: none;
    display: block;
  }

  /* Page hero */
  .page-hero-band { padding: 28px 20px 24px; }
  .page-hero-band h1 { font-size: 24px; }
  .page-hero-band p { font-size: 13px; }
  .hero-stats { gap: 20px; }
  .hero-stat .n { font-size: 22px; }

  /* Filter bar */
  .filter-bar {
    padding: 10px 16px; top: 56px;
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .view-toggle { display: none !important; }

  /* Footer */
  .site-footer { flex-direction: column; padding: 24px 20px; gap: 20px; }
  .footer-right { text-align: left; }

  /* Signup banner */
  .signup-inner { grid-template-columns: 1fr !important; padding: 28px 20px; gap: 20px; }
  .signup-name-row { grid-template-columns: 1fr !important; }
  .signup-form-row { flex-direction: column; }

  /* Section title */
  .section-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .page-hero-band h1 { font-size: 20px; }
  .site-nav { padding: 0 12px; }
  .page-hero-band { padding: 24px 16px 20px; }
}
