/* ── EQ HOUSE OF AFRICA ── */

:root {
  --black:      #0C0C0C;
  --black2:     #161616;
  --black3:     #222222;
  --red:        #BB1A35;
  --red-hover:  #D41F3D;
  --red-pale:   #FBF0F2;
  --white:      #FFFFFF;
  --off-white:  #F7F6F4;
  --gray-100:   #EFEFEF;
  --gray-300:   #CCCCCC;
  --gray-500:   #888888;
  --gray-700:   #444444;
  --text:       #111111;
  --text-mid:   #555555;
  --border:     #E8E8E8;
  --border-dark: rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  align-self: center;
  margin-top: 80px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.stat-cell {
  background: rgba(0,0,0,0.22);
  padding: 42px 28px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid rgba(210,28,61,0.85);
}

.stat-cell-label {
  color: rgba(255,255,255,0.65);
}

.founder-image {
  width: 320px;
  height: 420px;
  object-fit: cover;
  display: block;
}

.nav-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-mark img {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-text span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  font-family: "Cormorant Garamond", serif;
}

.nav-text small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.navbar { background: #050505; }

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.nav-sub {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 22px;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--red-hover); }

.nav-actions { display: flex; align-items: center; }

/* Hide hamburger on desktop */
.nav-hamburger { display: none; }
.nav-close { display: none; }
.nav-donate-mobile { display: none; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 30px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}

.btn-primary:hover { background: var(--red-hover); }

.btn-ghost {
  background: transparent;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-block;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-dark {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 30px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-dark:hover { background: var(--black3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 1.5px solid var(--text);
  display: inline-block;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-outline:hover { background: var(--text); color: var(--white); }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--black);
  padding: 90px 56px 72px;
  border-bottom: 3px solid var(--red);
}

.page-hero-inner { max-width: 900px; }

.page-hero h1 {
  max-width: 1200px;
  line-height: 1.02;
  font-size: clamp(34px, 4.5vw, 54px);
  color: var(--white);
  margin-bottom: 18px;
}

.page-hero h1 em {
  display: inline;
  white-space: nowrap;
  font-style: italic;
  color: var(--red);
  font-weight: 400;
}

.page-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.page-hero-p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 620px;
  font-weight: 300;
}

/* ── EYEBROW LABEL ── */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── SECTIONS ── */
section { padding: 80px 56px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.section-h {
  font-size: clamp(26px, 3.2vw, 40px);
  margin-bottom: 16px;
}

.section-p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 44px;
  font-weight: 300;
}

/* ── DIVIDER ── */
.divider {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 20px 0 28px;
}

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 3px solid var(--red);
  padding: 28px 32px;
  background: var(--off-white);
  margin: 32px 0;
}

.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 12px;
}

.quote-block cite {
  font-size: 12px;
  color: var(--red);
  font-style: normal;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, transparent 60%);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  padding: 64px 56px 36px;
  border-top: 3px solid var(--red);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 52px;
}

.foot-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.foot-brand-sub {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 400;
}

.foot-brand-p {
  font-size: 12px;
  color: #444;
  line-height: 1.75;
  font-weight: 300;
}

.foot-col-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}

.foot-link {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.15s;
  font-weight: 300;
}

.foot-link:hover { color: var(--white); }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.foot-copy {
  font-size: 11px;
  color: #444;
  font-weight: 300;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* TABLET — 1024px and below */
@media (max-width: 1024px) {

  nav {
    padding: 0 32px;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
  }

  .nav-links { gap: 18px; }

  section { padding: 72px 32px; }
  .page-hero { padding: 72px 32px 60px; }
  footer { padding: 60px 32px 36px; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 380px; }
  .hero-text { padding: 64px 32px; }
  .stats-bar { padding: 0 32px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .programs-4 { grid-template-columns: 1fr 1fr; }
  .image-row { grid-template-columns: 1fr 1fr; height: auto; }
  .image-row-item { height: 260px; }
  .port-grid { grid-template-columns: 1fr; }

  .section-inner [style*="grid-template-columns:1fr 1fr"],
  .section-inner [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .section-inner [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .f-hero { grid-template-columns: 1fr; }
  .f-hero-photo { height: 400px; }
  .f-hero-text { padding: 64px 32px; }
  .f-profile { padding: 72px 32px; }
  .f-profile-inner { grid-template-columns: 240px 1fr; gap: 40px; }
  .f-cta { padding: 64px 32px; }
}


/* MOBILE — 768px and below */
@media (max-width: 768px) {

  /* ── NAV ── */
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
    flex-wrap: nowrap;
  }

  .nav-logo { flex: 1; min-width: 0; gap: 8px; }
  .nav-text span { font-size: 15px; }
  .nav-text small { font-size: 10px; letter-spacing: 1px; }
  .nav-mark img { height: 38px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--black2);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 72px 28px 40px;
    gap: 0;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
    display: block;
  }

  .nav-links a.active,
  .nav-links a:hover { color: var(--white); }

  .nav-donate-mobile {
    display: block;
    margin-top: 24px;
    background: var(--red);
    color: var(--white) !important;
    text-align: center;
    padding: 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-bottom: none !important;
  }

  .nav-donate-mobile:hover { background: var(--red-hover); }

  .nav-cta { display: none; }
  .nav-actions { display: none; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5.5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1000;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
  }

  .nav-close {
    display: none;
    position: fixed;
    top: 18px;
    right: 20px;
    font-size: 26px;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px;
  }

  .nav-close.visible { display: block; }
  .nav-donate-mobile { display: block; }

  /* ── FLOAT FIX (about page quote box) ── */
  [style*="float:right"],
  [style*="float: right"] {
    float: none !important;
    width: 100% !important;
    margin: 0 0 32px 0 !important;
  }

  /* ── SECTIONS ── */
  section { padding: 56px 20px; }
  .page-hero { padding: 56px 20px 48px; }
  footer { padding: 48px 20px 28px; }

  .section-h { font-size: clamp(26px, 7vw, 36px); }
  .page-hero h1 { font-size: clamp(32px, 9vw, 48px); }

  /* Keep eyebrows on one line */
  .section-eyebrow,
  .eyebrow,
  .page-hero-eyebrow { white-space: nowrap; }

  /* ── QUOTE BLOCK ── */
  .quote-block {
    padding: 24px 20px;
    margin: 24px 0;
  }

  .quote-block p {
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
  }

  /* ── FOOTER ── */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* ── HOME HERO ── */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 260px; }
  .hero-text { padding: 52px 20px; }
  .hero-text h1 { font-size: clamp(34px, 10vw, 52px); }
  .hero-text p { max-width: 100%; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { width: 100%; text-align: center; display: block; }

  /* ── STATS ── */
  .stats-bar { padding: 0 20px; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; border-left: none; }
  .stat-item { padding: 24px 16px; }
  .stat-num { font-size: 30px; }
  .stats-grid { max-width: 100%; margin-top: 0; justify-self: auto; }
  .stat-cell { padding: 28px 20px; }
  .stat-cell-num { font-size: 32px; }

  /* ── PROGRAMS + PORTFOLIO ── */
  .programs-4 { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }

  /* ── IMAGE ROW ── */
  .image-row { grid-template-columns: 1fr; height: auto; }
  .image-row-item { height: 200px; }

  /* Collapse all inline grids to single column */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="display:grid"] { grid-template-columns: 1fr !important; }
  [style*="display: grid"] { grid-template-columns: 1fr !important; }

  /* Restore specific exceptions */
  .stats-bar-inner { grid-template-columns: 1fr 1fr !important; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── FOUNDER ── */
  .f-hero { grid-template-columns: 1fr !important; }
  .f-hero-photo { height: 300px; }
  .f-hero-text { padding: 52px 20px; }
  .f-profile { padding: 52px 20px; }
  .f-profile-inner { grid-template-columns: 1fr !important; gap: 36px; }
  .f-sidebar { position: static; }
  .f-sidebar-photo { aspect-ratio: 16/9; }
  .f-photo-pair { grid-template-columns: 1fr !important; }
  .f-cta { padding: 52px 20px; }
  .f-cta-inner { flex-direction: column !important; align-items: flex-start; gap: 28px; }
}


/* SMALL MOBILE — 480px and below */
@media (max-width: 480px) {

  section { padding: 44px 16px; }
  .page-hero { padding: 48px 16px 40px; }

  .page-hero h1,
  .hero-text h1 { font-size: 32px; }
  .section-h { font-size: 28px; }

  .stats-bar-inner { grid-template-columns: 1fr !important; }
  .stat-num { font-size: 38px; }

  .foot-grid { grid-template-columns: 1fr !important; gap: 24px; }

  .f-hero-photo { height: 240px; }

  .clients-grid { grid-template-columns: 1fr 1fr; }
}