/* =============================================
   Laytonville Resiliency Network — style.css V2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --ink:          #033F63;
  --cream:        #fffcf7;
  --cream-mid:    #f0ead8;
  --cream-dark:   #ddd5c0;
  --teal:         #28666e;
  --teal-dark:    #1d4d53;
  --moss:         #7C9885;
  --sand:         #cdcd93;
  --orange:       #e07a32;
  --orange-dark:  #c46a28;
  --text-body:    #2e3d36;
  --text-mid:     #5a6e62;
  --text-light:   #8a9e92;
  --border:       #c8d4c0;
  --border-light: #e4ede0;
  --white:        #ffffff;

  --serif: 'Libre Baskerville', 'Bookman Old Style', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --radius: 10px;
  --nav-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--text-body); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: var(--nav-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.nav-logo {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--cream); letter-spacing: 0.01em;
  transition: opacity 0.15s; flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.75; }
.nav-links { display: flex; list-style: none; }
.nav-links a {
  display: block; font-size: 13px; font-weight: 300; letter-spacing: 0.04em;
  color: var(--cream); padding: 0 20px; line-height: var(--nav-h);
  opacity: 0.8; transition: opacity 0.15s, background 0.15s;
}
.nav-links a:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.nav-links a.active { opacity: 1; background: rgba(255,255,255,0.13); font-weight: 500; }

/* === HERO === */
.hero {
  position: relative; height: 340px; overflow: hidden; background: var(--ink);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(3,63,99,0.1) 0%, rgba(3,63,99,0.62) 100%);
}
.hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 52px 36px;
}
.hero-content h1 {
  font-family: var(--serif); font-size: 52px; font-weight: 400;
  color: var(--cream); letter-spacing: 0.01em; line-height: 1.15;
  text-shadow: 0 2px 16px rgba(3,63,99,0.35);
}
.hero-content p {
  font-size: 13px; color: rgba(255,252,247,0.7); margin-top: 8px;
  font-weight: 300; letter-spacing: 0.07em; text-transform: uppercase;
}

/* === HOME HERO TALL === */
.home-hero .hero { height: 420px; }
.home-hero .hero-content h1 { font-size: 60px; }

/* === IMPACT STRIP (homepage) === */
.home-impact {
  background: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  gap: 40px; padding: 18px 48px; flex-wrap: wrap;
}
.impact-stat { text-align: center; }
.impact-num { font-family: var(--serif); font-size: 24px; color: var(--cream); line-height: 1; }
.impact-label { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,252,247,0.55); margin-top: 3px; }
.impact-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.18); }

/* === PAGE BODY === */
.page-body { padding: 52px 52px 80px; max-width: 1100px; margin: 0 auto; }

/* === TYPOGRAPHY === */
.eyebrow { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.section-title { font-family: var(--serif); font-size: 27px; font-weight: 400; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.section-sub { font-size: 15px; color: var(--text-mid); margin-bottom: 32px; max-width: 560px; line-height: 1.7; }

/* === BUTTONS === */
.btn-primary {
  display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 500;
  background: var(--orange); color: var(--cream); border: none; border-radius: 6px;
  padding: 13px 28px; cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 400;
  background: transparent; color: var(--teal); border: 1.5px solid var(--teal);
  border-radius: 6px; padding: 12px 28px; cursor: pointer; transition: all 0.15s;
}
.btn-secondary:hover { background: var(--teal); color: var(--cream); }

.btn-link {
  font-size: 14px; font-weight: 500; color: var(--teal); border-bottom: 1.5px solid var(--sand);
  padding-bottom: 1px; transition: color 0.15s, border-color 0.15s;
}
.btn-link:hover { color: var(--orange); border-color: var(--orange); }

/* === DIVIDER === */
.divider { border: none; border-top: 1px solid var(--border-light); margin: 48px 0; }

/* === HOME INTRO === */
.home-intro { padding: 60px 0 48px; max-width: 700px; }
.home-intro h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: 16px; }
.home-intro p { font-size: 16px; color: var(--text-mid); line-height: 1.85; margin-bottom: 28px; }

/* === HOME CARDS === */
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.home-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-card:hover { border-color: var(--moss); box-shadow: 0 4px 16px rgba(124,152,133,0.1); }
.home-card-num { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--sand); margin-bottom: 10px; line-height: 1; }
.home-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.home-card p { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

/* === HOME FEATURED ROW === */
.featured-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }

/* === FILTER BAR === */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--sans); font-size: 12px; color: var(--text-mid);
  background: var(--cream-mid); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 15px; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { background: var(--cream-dark); }
.filter-btn.active { background: var(--teal); color: var(--cream); border-color: var(--teal); font-weight: 500; }

/* === PRODUCER GRID === */
.producer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-bottom: 56px; }
.producer-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.producer-card:hover { border-color: var(--teal); box-shadow: 0 4px 18px rgba(40,102,110,0.1); transform: translateY(-2px); }
.card-category { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.card-name { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.3; }
.card-details { font-size: 13px; color: var(--text-mid); line-height: 1.65; flex: 1; }
.card-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.card-meta span { font-size: 12px; color: var(--text-light); display: flex; align-items: flex-start; gap: 5px; }
.card-meta a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; transition: color 0.12s; }
.card-meta a:hover { color: var(--orange); }
.card-note { font-size: 11px; font-style: italic; color: var(--text-light); margin-top: 4px; }

/* === MAP SECTION === */
.map-section { margin-bottom: 56px; }
.map-section .section-title { margin-bottom: 6px; }
.map-section .section-sub { margin-bottom: 18px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.map-embed iframe { width: 100%; height: 400px; border: none; display: block; }
.map-note { font-size: 11px; color: var(--text-light); margin-top: 10px; font-style: italic; }

/* === CTA BAND === */
.cta-band {
  background: var(--ink); border-radius: var(--radius);
  padding: 40px 44px 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--orange);
  border-radius: var(--radius) 0 0 var(--radius);
}
.cta-band h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.cta-band p { font-size: 14px; color: rgba(255,252,247,0.62); max-width: 440px; line-height: 1.65; }

/* === COMMUNITY PAGE === */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 48px; }
.community-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.community-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(40,102,110,0.09); }
.community-card-img { height: 175px; background: var(--cream-mid); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; }
.community-card-img img { width: 100%; height: 100%; object-fit: cover; }
.community-card-body { padding: 20px 20px 22px; }
.community-card-type { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.community-card-title { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.community-card-body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.community-card-date { font-size: 11px; color: var(--text-light); margin-top: 12px; }

/* === ABOUT === */
.about-intro { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink); opacity: 0.8; line-height: 1.85; max-width: 680px; margin-bottom: 40px; }
.about-body p { font-size: 15px; color: var(--text-mid); line-height: 1.85; max-width: 660px; margin-bottom: 18px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 28px 0; }
.team-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--cream-mid); border: 2px solid var(--border); margin: 0 auto 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--text-mid); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--serif); font-size: 14px; font-weight: 400; color: var(--ink); margin-bottom: 2px; }
.team-role { font-size: 10px; font-style: italic; color: var(--teal); letter-spacing: 0.04em; line-height: 1.4; }
.photo-placeholder { background: var(--cream-mid); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px 24px; text-align: center; color: var(--text-light); font-size: 14px; line-height: 1.6; margin: 28px 0; }

/* === CONTACT === */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; align-items: start; }
.contact-info .info-item { margin-bottom: 20px; }
.contact-info .info-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 3px; }
.contact-info .info-value { font-size: 15px; color: var(--text-body); line-height: 1.6; }
.contact-form { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--sans); font-size: 14px; color: var(--text-body);
  background: var(--cream); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 14px; outline: none; transition: border-color 0.15s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* === FOOTER === */
.footer { background: var(--ink); padding: 32px 52px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--serif); font-size: 14px; font-style: italic; color: rgba(255,252,247,0.82); }
.footer-sub { font-size: 11px; color: rgba(255,252,247,0.38); margin-top: 3px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: rgba(255,252,247,0.52); transition: color 0.15s; }
.footer-links a:hover { color: var(--cream); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root { --nav-h: 52px; }
  .nav { padding: 0 16px; }
  .nav-logo { font-size: 13px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-links a { padding: 0 10px; font-size: 12px; }
  .hero { height: 260px; }
  .hero-content { padding: 0 20px 22px; }
  .hero-content h1 { font-size: 32px; }
  .home-hero .hero { height: 360px; }
  .home-hero .hero-content h1 { font-size: 38px; }
  .home-impact { padding: 16px 20px; gap: 20px; }
  .impact-sep { display: none; }
  .page-body { padding: 32px 20px 60px; }
  .home-intro h2 { font-size: 26px; }
  .home-cards { grid-template-columns: 1fr; gap: 12px; }
  .producer-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { flex-direction: column; text-align: center; padding: 32px 24px 32px 28px; }
  .footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .map-embed iframe { height: 280px; }
}
