/* ============================================
   URBAN GREEN INITIATIVE — Global Stylesheet
   urbangreeninitiative.org
   Color palette matches Houston Miyawaki Forest Guide
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;900&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Mono:wght@300;400&display=swap');

:root {
  --navy:      #0D2147;
  --navy-dark: #081530;
  --gold:      #C8952A;
  --gold-lt:   #E8B84B;
  --white:     #FFFFFF;
  --off-white: #F4F1EA;
  --grey-lt:   #EEF0F3;
  --grey:      #8A97A8;
  --text:      #1A2535;
  --text-lt:   #4A5568;
  --green:     #2D6A4F;
  --green-lt:  #52B788;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-lt); }

.label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.label-light { color: var(--gold-lt); }

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 21, 48, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 149, 42, 0.2);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-lt) !important; color: var(--navy) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ---- HERO SECTIONS ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  padding-top: 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,21,48,0.95) 0%, rgba(8,21,48,0.7) 60%, rgba(8,21,48,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
}

.page-hero {
  min-height: 45vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--navy-dark);
  padding-top: 68px;
  overflow: hidden;
}

.page-hero .hero-content {
  padding: 3rem 2rem 4rem;
}

/* ---- SECTIONS ---- */
section { padding: 5rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,149,42,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(200,149,42,0.15);
  border: 1px solid rgba(200,149,42,0.15);
  margin: 3rem 0;
}

.stat-card {
  background: var(--navy);
  padding: 2.5rem 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,33,71,0.12);
}

.card-dark {
  background: rgba(255,255,255,0.05);
  border-left-color: var(--gold);
  color: var(--white);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ---- ALTERNATING SECTIONS ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.split-section .split-text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-section .split-img {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* ---- QUOTE BLOCK ---- */
.quote-block {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 3rem;
  position: relative;
  border-left: 5px solid var(--gold);
}

.quote-block blockquote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.quote-attribution {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- NAVY SECTION ---- */
.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }
.section-navy .label { color: var(--gold-lt); }

/* ---- OFF-WHITE SECTION ---- */
.section-offwhite { background: var(--off-white); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .top {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s ease both;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.25s; }
.fade-up-d3 { animation-delay: 0.4s; }
.fade-up-d4 { animation-delay: 0.55s; }

/* ---- UTILITIES ---- */
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.gap-1 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-section .split-img {
    min-height: 300px;
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  section { padding: 3.5rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(200,149,42,0.2);
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
