/* ============================================================
   eBirder · eBird-inspired redesign
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --white:      #ffffff;
  --teal:       #4a7a8c;
  --teal-dark:  #3a6070;
  --footer-bg:  #1c2e38;
  --green:      #3c7838;
  --green-dark: #2d5e2a;
  --red:        #bf3b30;
  --text:       #222222;
  --muted:      #555555;
  --subtle:     #888888;
  --border:     rgba(0, 0, 0, 0.13);
  --border-lt:  rgba(0, 0, 0, 0.07);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Layout helper ---- */
.inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Masthead (Cornell Lab strip)
   ============================================================ */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
}
.masthead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.masthead-bird {
  color: #b22222;
  flex-shrink: 0;
}
.masthead-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-donate {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 4px 13px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s;
}
.btn-donate:hover { background: #a33028; }
.masthead-signin {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.15s;
}
.masthead-signin:hover { color: var(--text); }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
}
.brand {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand strong { font-weight: 900; }
.brand-icon { flex-shrink: 0; }
.main-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.main-nav a {
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
  background: rgba(60, 120, 56, 0.08);
}

/* ============================================================
   Hero (homepage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.68) 0%, rgba(0,0,0,.5) 38%, rgba(0,0,0,.12) 68%, transparent 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}
.hero-content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 80px;
}
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  max-width: 480px;
  letter-spacing: -0.01em;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-white-outline {
  display: inline-flex;
  align-items: center;
  border: 2px solid white;
  color: white;
  padding: 9px 22px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.btn-white-outline:hover { background: rgba(255,255,255,.15); }
.btn-green {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  border: 2px solid var(--green);
  color: white;
  padding: 9px 22px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.hero-credit {
  position: absolute;
  bottom: 10px;
  right: 18px;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255,255,255,.68);
}

/* ============================================================
   Features (homepage)
   ============================================================ */
.features {
  padding: 52px 24px 56px;
  max-width: 1180px;
  margin: 0 auto;
}
.features-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 36px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}
.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   Science Section (homepage)
   ============================================================ */
.science-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 320px;
  border-top: 1px solid var(--border-lt);
}
.science-map {
  position: relative;
  overflow: hidden;
  background-image: url('assets/science-map.jpg');
  background-size: cover;
  background-position: center;
}
.science-birder {
  position: absolute;
  bottom: 0;
  left: 40px;
  width: 100px;
  opacity: 0.6;
}
.science-panel {
  background: var(--teal);
  color: white;
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.science-panel h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.18;
}
.science-panel p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   News (homepage)
   ============================================================ */
.news-section {
  padding: 52px 0;
  border-top: 1px solid var(--border-lt);
}
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 22px;
}
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  gap: 28px;
  margin-bottom: 36px;
  align-items: start;
}
.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  margin-bottom: 12px;
}
.news-thumb-1 { background-image: url('assets/news-global-big-day.jpg'); background-size: cover; background-position: center; }
.news-thumb-2 { background-image: url('assets/news-dawn-patrol.jpg'); background-size: cover; background-position: center; }
.news-thumb-3 { background-image: url('assets/news-march-challenge.jpg'); background-size: cover; background-position: center; }
.news-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-meta { margin: 0 0 6px; font-size: 0.76rem; color: var(--subtle); }
.news-excerpt { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.news-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

/* eBirder of the Month */
.ebirder-month {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.ebirder-month-hd {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.ebirder-month-hd strong { font-size: 0.95rem; }
.sponsored { margin-left: auto; font-size: 0.76rem; color: var(--subtle); }
.ebirder-profiles { display: flex; gap: 36px; flex-wrap: wrap; }
.ebirder-profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.avatar-1 { background-image: url('assets/avatar-sam.jpg'); background-size: cover; }
.avatar-2 { background-image: url('assets/avatar-amy.jpg'); background-size: cover; }
.avatar-3 { background-image: url('assets/avatar-joey.jpg'); background-size: cover; }
.ebirder-name { font-size: 0.88rem; font-weight: 700; display: block; }
.ebirder-count { font-size: 0.78rem; color: var(--subtle); }

/* ============================================================
   Mobile App Section (homepage)
   ============================================================ */
.mobile-section {
  background: var(--teal);
  color: white;
  padding: 64px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,.1);
}
.mobile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mobile-content h2 { font-size: 1.9rem; font-weight: 900; margin: 0 0 14px; }
.mobile-content p {
  color: rgba(255,255,255,.85);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 24px;
}
.btn-green-cta {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: white;
  border: 2px solid var(--green);
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 20px;
  transition: background 0.15s;
}
.btn-green-cta:hover { background: var(--green-dark); border-color: var(--green-dark); }
.app-badges { display: flex; gap: 10px; }
.app-badge {
  background: rgba(255,255,255,.15);
  color: white;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 5px;
  padding: 7px 15px;
  font-size: 0.78rem;
  font-weight: 700;
}
/* Phone mockups */
.mobile-phones {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
}
.phone {
  width: 118px;
  height: 218px;
  border-radius: 16px;
  border: 3px solid rgba(255,255,255,.55);
  background: white;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.phone-1 { transform: translateY(-22px); }
.phone-2 { transform: translateY(10px); opacity: 0.82; }
.phone-screen { width: 100%; height: 100%; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.ph-bar { border-radius: 3px; height: 7px; }
.ph-green { background: var(--green); width: 75%; }
.ph-gray  { background: #e0e0e0; width: 50%; }
.ph-lt    { background: #eeeeee; width: 35%; }
.ph-list  { display: flex; flex-direction: column; gap: 5px; flex: 1; margin-top: 3px; }
.ph-item  { background: #f2f2f2; border-radius: 3px; height: 25px; }
.ph-map   { background: linear-gradient(135deg, #c8dcc8, #a0c0a0); border-radius: 5px; flex: 1; }

/* ============================================================
   Partners (homepage)
   ============================================================ */
.partners-section {
  border-top: 1px solid var(--border-lt);
  padding: 40px 0;
}
.partners-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.partners-cornell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.partners-lead p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 440px;
}
.partner-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.partner-logo {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.68);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 28px;
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-block { display: flex; flex-direction: column; gap: 6px; }
.footer-brand {
  font-size: 1.05rem;
  font-weight: 300;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand strong { font-weight: 900; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.footer-col a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.58);
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }
.footer-col-donate { align-items: flex-start; gap: 16px; }
.btn-donate-footer {
  display: inline-flex;
  background: var(--red);
  color: white;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s;
}
.btn-donate-footer:hover { background: #a33028; }
.footer-social { display: flex; gap: 8px; }
.social-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,.62);
  transition: border-color 0.15s, color 0.15s;
}
.social-icon:hover { border-color: white; color: white; }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-cornell { font-size: 0.84rem; font-weight: 700; color: rgba(255,255,255,.8); flex-shrink: 0; }
.footer-bottom p { margin: 0; font-size: 0.72rem; color: rgba(255,255,255,.38); }

/* ============================================================
   Interior pages
   ============================================================ */
.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}
.page-hero { padding: 24px 0 32px; }
.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-hero p { margin: 0; font-size: 1rem; color: var(--muted); max-width: 56ch; }

/* Grids */
.hotspot-grid, .guide-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.hotspot-card, .guide-card, .step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 22px;
}
.hotspot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.hotspot-card h2, .guide-card h2, .step-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.hotspot-card p, .guide-card p, .step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.55;
}
.hotspot-card ul { padding-left: 18px; color: var(--muted); font-size: 0.84rem; margin: 0; line-height: 1.8; }
.hotspot-card img, .guide-card img { width: 100%; border-radius: 4px; margin-bottom: 14px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(60,120,56,.12);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 3px 9px;
  background: rgba(60,120,56,.1);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Table */
.table-card { background: white; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-lt); font-size: 0.88rem; }
th { font-weight: 700; background: #f6f6f6; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
td:first-child { color: var(--subtle); }

/* Form */
.form-card { background: white; border: 1px solid var(--border); border-radius: 5px; padding: 28px; max-width: 600px; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.88rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: -1px;
  border-color: var(--green);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 11px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.button:hover { background: var(--green-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .features-grid,
  .news-grid,
  .hotspot-grid,
  .guide-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .science-section { grid-template-columns: 1fr; }
  .science-map { min-height: 180px; }
  .mobile-inner,
  .partners-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .hero h1 { max-width: none; }
}
