/* The Nsibidi Project — shared stylesheet
   Background patterns now use the authentic lion-mask artwork.
   All other typography, colour and spacing decisions are preserved
   from the original redesign so the content reads identically.    */

:root {
  --ink: #1a1416;
  --ink-deep: #0f0a0c;
  --oxblood: #8b1a1a;
  --crimson: #a01e23;
  --crimson-bright: #c0282d;
  --bone: #f5efe6;
  --bone-warm: #ede5d4;
  --muted-light: rgba(245, 239, 230, 0.7);
  --muted-dark: rgba(26, 20, 22, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, sans-serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .display {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
em { color: var(--crimson); font-style: italic; }

/* ===== PATTERN BACKGROUNDS (replaces the old CSS-dot mask-pattern) =====
   Uses the original lion-mask artwork supplied by the project.
   A dark gradient sits over the pattern so text always reads clearly. */

.mask-pattern {
  position: relative;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(15, 10, 12, 0.78), rgba(15, 10, 12, 0.78)),
    url('pattern-tile.jpg');
  background-size: auto, 780px auto;
  background-repeat: repeat;
  background-position: center;
}

/* Heavier overlay variant for sections where readability is critical
   (work cards, footer text-heavy blocks). */
.mask-pattern--deep {
  background-image:
    linear-gradient(rgba(15, 10, 12, 0.88), rgba(15, 10, 12, 0.88)),
    url('pattern-tile.jpg');
}

/* Lighter overlay — pattern is the visual feature, e.g. hero strips. */
.mask-pattern--soft {
  background-image:
    linear-gradient(rgba(15, 10, 12, 0.55), rgba(15, 10, 12, 0.68)),
    url('pattern-tile.jpg');
}

/* ===== Hero (homepage) =====
   The hero uses the full composed image with the mask sculpture on the left
   and the lion-mask pattern across the rest. A horizontal gradient gives the
   right-hand text area enough contrast while keeping the sculpture visible. */
.hero {
  position: relative;
  color: var(--bone);
  padding: 130px 32px 150px;
  overflow: hidden;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(90deg, rgba(15, 10, 12, 0.15) 0%, rgba(15, 10, 12, 0.50) 40%, rgba(15, 10, 12, 0.78) 100%),
    url('hero-desktop.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-inner { width: 100%; max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }
@media (min-width: 900px) {
  .hero-inner { padding-left: 38%; padding-right: 24px; }
  .hero h1 { max-width: 22ch; }
}
@media (min-width: 1200px) {
  .hero-inner { padding-left: 34%; }
}
@media (max-width: 768px) {
  .hero {
    padding: 100px 24px 120px;
    min-height: 560px;
    background-image:
      linear-gradient(180deg, rgba(15, 10, 12, 0.35) 0%, rgba(15, 10, 12, 0.82) 70%),
      url('hero-mobile.jpg');
    background-position: center top;
  }
}
.hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }
.hero .eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  font-weight: 600;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero h1 .accent { color: var(--crimson-bright); font-style: italic; font-weight: 700; }
.hero-sub {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  max-width: 580px;
  color: var(--bone);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 44px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Topbar ===== */
.topbar {
  background: var(--ink-deep);
  color: var(--bone);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--crimson-bright); }

/* ===== Navigation ===== */
nav.main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 20, 22, 0.08);
  padding: 14px 32px;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  background: var(--ink);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: background 0.3s;
}
.logo:hover { background: var(--crimson); }
.logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-links a.active { color: var(--crimson); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--crimson); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--ink);
  color: var(--bone);
  padding: 11px 22px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--crimson); }

/* Hamburger toggle (hidden on desktop, shown below 1000px) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--ink);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--bone);
  transform: translateX(-50%);
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
body.nav-open .nav-toggle { background: var(--crimson); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); background: var(--bone); }
body.nav-open .nav-toggle span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); background: var(--bone); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  /* Hide desktop links + CTA in the bar; they move into the overlay */
  nav.main .nav-links,
  nav.main > .nav-inner > .nav-cta { display: none; }

  /* Slide-down overlay menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--ink-deep);
    background-image:
      linear-gradient(rgba(15, 10, 12, 0.94), rgba(15, 10, 12, 0.94)),
      url('pattern-tile.jpg');
    background-size: auto, 480px auto;
    background-repeat: repeat;
    color: var(--bone);
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 100px 32px 48px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
  }
  /* Lift the toggle above the overlay so it remains tappable as a close button */
  body.nav-open nav.main { z-index: 120; }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
  }
  .nav-overlay a {
    font-family: 'Poppins', sans-serif;
    color: var(--bone);
    text-decoration: none;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    padding: 10px 0;
    letter-spacing: -0.01em;
  }
  .nav-overlay a.active,
  .nav-overlay a:hover { color: var(--crimson-bright); }
  .nav-overlay .nav-overlay-cta {
    margin-top: 32px;
    background: var(--crimson);
    color: var(--bone);
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .nav-overlay .nav-overlay-contact {
    margin-top: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--muted-light);
    text-align: center;
    line-height: 1.8;
  }
  .nav-overlay .nav-overlay-contact a { font-size: 13px; font-weight: 400; padding: 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .topbar { display: none; }
}
@media (min-width: 1001px) {
  .nav-overlay { display: none; }
}

/* ===== Page header (used on About, Team, Gallery, Events, Contact) ===== */
.page-header {
  color: var(--bone);
  padding: 110px 32px 100px;
  position: relative;
  overflow: hidden;
}
.page-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  font-weight: 600;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
}
.page-header h1 em { color: var(--crimson-bright); font-style: italic; }
.page-header p.lead {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  max-width: 680px;
  color: var(--muted-light);
  font-weight: 300;
  line-height: 1.55;
}

/* ===== Section defaults ===== */
section.content { padding: 100px 32px; }
.section-inner { max-width: 1320px; margin: 0 auto; }
.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-dark, .btn-outline {
  padding: 14px 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary { background: var(--crimson); color: var(--bone); }
.btn-primary:hover { background: var(--crimson-bright); transform: translateX(3px); }
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(245, 239, 230, 0.5);
}
.btn-secondary:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--crimson); transform: translateX(3px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 20, 22, 0.3);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bone); }

/* ===== Footer ===== */
footer {
  color: var(--bone);
  padding: 80px 32px 32px;
  position: relative;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}
.footer-brand img { width: 100%; max-width: 180px; margin-bottom: 24px; }
.footer-brand p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted-light);
  line-height: 1.55;
  max-width: 380px;
}
.footer-col h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 14px; color: var(--muted-light); }
.footer-col a { color: var(--muted-light); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--crimson-bright); }
.socials { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 239, 230, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--bone);
}
.socials a:hover { background: var(--crimson); border-color: var(--crimson); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245, 239, 230, 0.5);
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Poppins', sans-serif;
}

/* ===== Reveal animation =====
   Progressive enhancement: content is visible by default. The page-load
   script tags ready elements with .will-reveal (which hides them) and
   the IntersectionObserver then adds .in to fade them back into view.
   If JS fails to run for any reason, the content stays visible. */
.reveal { transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.will-reveal { opacity: 0; transform: translateY(20px); }
.reveal.will-reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Index page sections ===== */
.about-preview-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .about-preview-grid { grid-template-columns: 1fr 2fr; gap: 80px; } }
.about-preview-grid h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
.about-preview-body p { font-family: 'Poppins', sans-serif; font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-weight: 300; line-height: 1.65; margin-bottom: 24px; }

.work { color: var(--bone); position: relative; }
.work-header { margin-bottom: 64px; }
.work-header h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
.work-header h2 em { color: var(--crimson-bright); }
.work-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(245, 239, 230, 0.12); position: relative; z-index: 2; }
@media (min-width: 700px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(5, 1fr); } }
.work-card { background: rgba(15, 10, 12, 0.92); padding: 44px 28px; transition: background 0.3s; }
.work-card:hover { background: rgba(160, 30, 35, 0.4); }
.work-num { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: var(--crimson-bright); letter-spacing: 0.05em; margin-bottom: 28px; }
.work-card h3 { font-size: 22px; margin-bottom: 14px; font-weight: 700; }
.work-card p { color: var(--muted-light); font-size: 14px; line-height: 1.55; }

.quote-band { background: var(--crimson); color: var(--bone); padding: 90px 32px; text-align: center; }
.quote-band p { font-family: 'Poppins', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; font-style: italic; line-height: 1.35; max-width: 900px; margin: 0 auto; }

.involved { background: var(--bone-warm); }
.involved-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .involved-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.involved-card { background: var(--bone); padding: 40px 32px; border-top: 3px solid var(--crimson); }
.involved-card h3 { font-size: 22px; margin-bottom: 14px; font-weight: 700; }
.involved-card p { color: var(--muted-dark); font-size: 15px; margin-bottom: 24px; }
.involved-card a { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: var(--crimson); text-decoration: none; letter-spacing: 0.04em; }
.involved-card a:hover { color: var(--crimson-bright); }
