/* =============================================
   EDB Habitat Foundation — Shared Stylesheet
   Colors from logo:
     Teal (primary):  #1c5f5a
     Teal (dark):     #0f3d39
     Amber (elk):     #b87333
     Cream (deer):    #d4b896
     Charcoal (bear): #3a3a3a
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #1c5f5a;
  --teal-dark:   #0f3d39;
  --teal-light:  #e8f4f3;
  --amber:       #b87333;
  --amber-light: #f5ede3;
  --cream:       #d4b896;
  --charcoal:    #3a3a3a;
  --text:        #2b2b2b;
  --text-muted:  #5a5a5a;
  --border:      #d8d8d2;
  --bg:          #faf9f6;
  --white:       #ffffff;
  --radius:      6px;
  --radius-lg:   10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ---- Navigation ---- */
.site-nav {
  background: var(--teal-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-brand img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 4px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand-text .brand-edb {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
}
.nav-brand-text .brand-sub {
  font-size: 11px;
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}
.nav-donate {
  background: var(--amber) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav-donate:hover { background: #9a5f25 !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0; border-radius: 2px;
  transition: 0.3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.02em;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #9a5f25; color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; text-decoration: none; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

/* ---- Tags / Badges ---- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-amber { background: var(--amber-light); color: #7a4a1e; }

/* ---- Dividers ---- */
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.divider-teal { border-color: var(--teal); opacity: 0.2; }

/* ---- Section headers ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; max-width: 620px; }
.hero p { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 560px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Feature strip ---- */
.feature-strip {
  background: var(--teal-dark);
  color: #fff;
  padding: 1.25rem 0;
}
.feature-strip .container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.feature-item svg { flex-shrink: 0; }

/* ---- Donate banner ---- */
.donate-banner {
  background: var(--amber-light);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.donate-banner h2 { color: var(--teal-dark); margin-bottom: 0.75rem; }
.donate-banner p { color: var(--text-muted); max-width: 500px; margin: 0 auto 1.5rem; }

/* ---- Research items ---- */
.research-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 16px;
}
.research-item h3 { font-size: 18px; margin: 8px 0 6px; color: var(--teal-dark); }
.research-item p { font-size: 15px; color: var(--text-muted); margin: 0; }
.research-meta { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ---- Blog ---- */
.blog-item {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.blog-item:last-child { border-bottom: none; }
.blog-date { font-size: 13px; color: var(--amber); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.blog-item h3 { font-size: 20px; margin-bottom: 8px; color: var(--teal-dark); }
.blog-item p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ---- About / Team ---- */
.team-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 14px;
}
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--teal-dark);
  flex-shrink: 0;
}

/* ---- Contact ---- */
.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 16px;
}
.contact-block h3 { font-size: 18px; color: var(--teal-dark); margin-bottom: 1rem; }
.contact-row {
  display: flex; align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.contact-row svg { flex-shrink: 0; color: var(--teal); }
.contact-row a { color: var(--teal); }

/* ---- Edit hint ---- */
.edit-hint {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 1.5rem;
  background: #fdfdf9;
}
.edit-hint strong { color: var(--amber); }

/* ---- Footer ---- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  font-size: 14px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 40px; width: 40px; object-fit: contain; border-radius: 4px; }
.footer-brand-text .brand-edb { font-family: 'Playfair Display', serif; color: #fff; font-size: 18px; }
.footer-brand-text .brand-sub { font-size: 11px; color: var(--cream); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.45); font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--teal-dark); padding: 1rem 1.5rem; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 3.5rem 0 3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Page title strip ---- */
.page-header {
  background: var(--teal);
  color: #fff;
  padding: 2.5rem 0;
}
.page-header h1 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 16px; margin: 0; max-width: 560px; }
