/* =============================================
   NARRATIVEX MEDIA — Global Stylesheet
   Brand: #1B5E38 (green) + #D4922A (gold)
   Fonts: Cormorant Garamond + DM Sans + DM Mono
   ============================================= */
html body #navbar:not(.scrolled) {
  background-color: transparent !important;
  background: transparent !important;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── DESIGN TOKENS ─────────────────────────── */
:root {
  --green:       #1B5E38;
  --green-dark:  #133f28;
  --green-mid:   #226b43;
  --green-light: #eaf4ee;
  --green-pale:  #f4faf6;
  --gold:        #D4922A;
  --gold-dark:   #b87a22;
  --gold-light:  #fdf3e3;
  --charcoal:    #111111;
  --gray:        #6b7280;
  --gray-light:  #f7f8f6;
  --border:      #e5e7eb;
  --white:       #ffffff;

 --serif: Georgia, 'Times New Roman', serif;
 --sans:  system-ui, -apple-system, sans-serif;
 --mono:  'Courier New', Consolas, monospace;

  --shadow:    0 2px 16px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.09);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --nav-h: 72px;
  --transition: .25s ease;
}

/* ── TYPOGRAPHY ────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.18; font-weight: 700; color: var(--charcoal); }
h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }
p  { color: var(--gray); line-height: 1.78; }
a  { text-decoration: none; color: inherit; }
em { font-style: italic; }

.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #2d9e5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; position: relative; }

/* ── SECTION LABELS ────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--green);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header p { font-size: 1.02rem; margin-top: 14px; }
.text-center { text-align: center; }

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(27,94,56,.22);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,94,56,.3);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(212,146,42,.24);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,146,42,.32);
}
.btn-white {
  background: #fff;
  color: var(--green);
  border-color: rgba(255,255,255,.3);
}
.btn-white:hover {
  background: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* ── NAVBAR ────────────────────────────────── */


.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: .86rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: 7px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-item > a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-item > a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
/* scrolled state — links go dark */
#navbar.scrolled .nav-item > a { color: #444; }
#navbar.scrolled .nav-item > a:hover,
#navbar.scrolled .nav-item > a.active {
  color: var(--green);
  background: var(--green-light);
}

.nav-item > a .chevron {
  width: 14px; height: 14px;
  transition: transform var(--transition);
  opacity: .6;
}
.nav-item:hover > a .chevron { transform: rotate(180deg); }

/* CTA button — transparent hero state */
.nav-cta-btn {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.3) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.nav-cta-btn:hover {
  background: rgba(255,255,255,.22) !important;
  transform: translateY(-2px);
}
/* CTA button — scrolled state */
#navbar.scrolled .nav-cta-btn {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(27,94,56,.22) !important;
}
#navbar.scrolled .nav-cta-btn:hover {
  background: var(--green-dark) !important;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: #444;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-dropdown a:hover { background: var(--green-light); color: var(--green); }
.nav-dropdown a .dd-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
#navbar.scrolled .hamburger span { background: #333; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: 0 10px 32px rgba(0,0,0,.08);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  font-size: .95rem;
  font-weight: 500;
  color: #333;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu > a:last-of-type { border-bottom: none; }
.mobile-menu .mm-section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--green);
  margin-top: 12px;
  margin-bottom: 4px;
}
.mobile-menu .mm-sub {
  padding-left: 14px;
  font-size: .88rem;
}

/* ── MARQUEE BAR ───────────────────────────── */
.marquee-bar { background: var(--green); padding: 13px 0; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 52px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: .04em;
}
.msep { color: var(--gold); font-size: .9rem; }

/* ── STATS BAR ─────────────────────────────── */
.stats-bar { background: var(--charcoal); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-block {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat-block:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  font-family: var(--serif);
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number span.gold { color: var(--gold); }
.stat-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  font-family: var(--mono);
  text-transform: uppercase;
}

/* ── FOOTER ────────────────────────────────── */
#footer { background: var(--charcoal); padding: 72px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p {
  color: rgba(255,255,255,.42);
  font-size: .86rem;
  line-height: 1.75;
  max-width: 260px;
}
.f-social { display: flex; gap: 8px; margin-top: 20px; }
.s-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  transition: all var(--transition);
}
.s-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer-col h4 {
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  color: rgba(255,255,255,.42);
  font-size: .84rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,.82); }
.f-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 24px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.3); font-size: .8rem; transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── ANIMATIONS ────────────────────────────── */
.fade-up   { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .6s ease; }
.fade-left  { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.fade-right { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible, .fade-left.visible, .fade-right.visible { opacity: 1; transform: none; }

/* ── FORM SHARED ───────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--charcoal); font-family: var(--mono); letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: .9rem;
  font-family: var(--sans);
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,94,56,.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── PAGE HERO ─────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green) 60%, #2d9e5f 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(212,146,42,.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-family: var(--mono);
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.35); }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 560px; }
.page-hero .hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}

/* ── TAG PILLS ─────────────────────────────── */
.tag-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  font-size: .71rem;
  font-weight: 600;
  font-family: var(--mono);
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green);
  letter-spacing: .03em;
}
.tag-pill.gold { background: var(--gold-light); color: var(--gold-dark); }

/* ── CARDS SHARED ──────────────────────────── */
.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta-btn { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .section-header { margin-bottom: 44px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}