/* ============================================================
   UW Plant Breeding Club — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Outfit:wght@300;400;500;600&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ---- Variables ---- */
:root {
  --green:     #2b5328;
  --green-lt:  #3d7a38;
  --lime:      #9fd43a;
  --cream:     #faf7f0;
  --cream-dk:  #f0ead8;
  --dark:      #1a1a1a;
  --muted:     #5c6b58;
  --border:    #d8cfbb;
  --orange:    #d96b2d;

  --font-display: 'Fraunces', serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --nav-h:  68px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(43, 83, 40, 0.12);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .leaf { font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(250, 247, 240, 0.78);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--lime);
  text-decoration: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — index.html only
   ============================================================ */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2.5rem;
  background: var(--green);
  position: relative;
  overflow: hidden;
}

/* Dotted seed grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(159, 212, 58, 0.2) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Decorative blob */
.hero-blob {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  max-width: 700px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--lime);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(250, 247, 240, 0.65);
  max-width: 480px;
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-lime {
  background: var(--lime);
  color: var(--dark);
}
.btn-lime:hover {
  background: #b0e04a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(159, 212, 58, 0.4);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--cream);
}
.btn-green:hover {
  background: var(--green-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* ============================================================
   PAGE HEADER — about / events / resources pages
   ============================================================ */

.page-header {
  background: var(--green);
  padding: 4.5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(159, 212, 58, 0.15) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.85rem;
}
.page-header p {
  color: rgba(250, 247, 240, 0.65);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.6;
}

/* ============================================================
   SECTIONS
   ============================================================ */

section { padding: 5rem 2.5rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.65;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header .section-title { margin-bottom: 0; }

/* ============================================================
   CARDS
   ============================================================ */

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

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(43, 83, 40, 0.09);
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--dark);
  line-height: 1.2;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
  margin-top: 1.25rem;
}
.card-meta .dot { color: var(--border); }

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  background: var(--green);
  padding: 5rem 2.5rem;
  text-align: center;
}
.cta-band .section-title { color: var(--cream); }
.cta-band p { color: rgba(250, 247, 240, 0.65); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2.25rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.about-body p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.about-body p:last-child { margin-bottom: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.stat-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.value-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   EVENTS PAGE
   ============================================================ */

.events-list { display: grid; gap: 1.25rem; }

.event-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.event-date-box {
  text-align: center;
  background: var(--green);
  color: var(--cream);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  min-width: 64px;
}
.event-month {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: 1;
}
.event-day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.event-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.event-info p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.event-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.event-type-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(43, 83, 40, 0.09);
  color: var(--green);
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */

.resources-section { padding: 3.5rem 2.5rem; }
.resources-section + .resources-section { padding-top: 0; }

.resource-group { margin-bottom: 3rem; }
.resource-group-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-list { display: grid; gap: 0.85rem; }

.resource-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.resource-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateX(5px);
  text-decoration: none;
}
.resource-icon { font-size: 1.4rem; flex-shrink: 0; }
.resource-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.15rem;
}
.resource-text p { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.resource-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.resource-item:hover .resource-arrow {
  transform: translateX(3px);
  color: var(--green);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.4);
  padding: 2.5rem 2.5rem;
  text-align: center;
  font-size: 0.875rem;
}
footer a { color: var(--lime); }
footer a:hover { color: #b0e04a; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }
.footer-links a:hover { color: var(--lime); }

/* ============================================================
   DIVIDER
   ============================================================ */

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--green);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

  section { padding: 3.5rem 1.5rem; }
  .page-header { padding: 3rem 1.5rem 2.75rem; }

  .hero { padding: 3.5rem 1.5rem; min-height: auto; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 5rem); }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .event-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .event-card .btn { grid-column: 2; }

  .resource-item { flex-wrap: wrap; }
  .resource-arrow { display: none; }
}
