/* ============================================================
   SERVE LOCAL — STYLESHEET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F9F5EF; --warm: #EDE7DA; --clay: #C4855A; --clay-dark: #9E6340;
  --forest: #2D4A3E; --forest-light: #3D6355; --gold: #D4A843;
  --ink: #1A1A18; --muted: #6B6860; --white: #ffffff; --radius: 12px;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.6; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--forest); display: flex; align-items: center;
  justify-content: space-between; padding: 0 2.5rem; height: 64px;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--cream); }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(249,245,239,0.75); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta { background: var(--clay) !important; color: var(--white) !important; padding: 8px 20px; border-radius: 100px; font-weight: 500 !important; font-size: 0.875rem !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--clay-dark) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.4rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; z-index: 190; background: var(--forest); padding: 1rem 2rem 2rem; gap: 1rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(249,245,239,0.8); text-decoration: none; font-size: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu .nav-cta { text-align: center; border-radius: 100px; padding: 12px 20px; margin-top: 0.5rem; border-bottom: none !important; }

/* HERO */
.hero { min-height: 100vh; background: var(--forest); display: flex; align-items: center; padding: 100px 2.5rem 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(212,168,67,0.12) 0%, transparent 60%), radial-gradient(ellipse at 10% 80%, rgba(196,133,90,0.1) 0%, transparent 50%); pointer-events: none; }
.hero-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 900; line-height: 1.05; color: var(--cream); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 1.05rem; color: rgba(249,245,239,0.7); max-width: 440px; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--clay); color: var(--white); padding: 14px 28px; border-radius: 100px; font-size: 0.95rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); padding: 14px 28px; border-radius: 100px; font-size: 0.95rem; font-weight: 500; text-decoration: none; border: 1.5px solid rgba(249,245,239,0.3); cursor: pointer; transition: border-color 0.2s; display: inline-block; }
.btn-ghost:hover { border-color: rgba(249,245,239,0.7); }

/* HERO CARD */
.hero-card { background: rgba(249,245,239,0.06); border: 1px solid rgba(249,245,239,0.12); border-radius: 20px; padding: 2rem; }
.hero-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cream); margin-bottom: 1.5rem; font-weight: 700; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.stat-box { background: rgba(249,245,239,0.06); border-radius: 12px; padding: 1.25rem 1rem; text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(249,245,239,0.55); margin-top: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.78rem; padding: 5px 12px; border-radius: 100px; font-weight: 500; }
.tag-green { background: rgba(61,99,85,0.6); color: #A8D5C4; }
.tag-gold  { background: rgba(212,168,67,0.18); color: var(--gold); }
.tag-clay  { background: rgba(196,133,90,0.2); color: #E8A87A; }

/* SEARCH */
.search-section { background: var(--warm); padding: 3rem 2.5rem; }
.search-wrap { max-width: 800px; margin: 0 auto; }
.search-label { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; color: var(--forest); }
.search-bar { display: flex; background: var(--white); border-radius: 100px; border: 1.5px solid rgba(45,74,62,0.15); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.search-bar input, .search-bar select { border: none; outline: none; background: transparent; padding: 14px 20px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--ink); }
.search-bar input { flex: 1; min-width: 0; }
.search-bar select { border-left: 1px solid rgba(45,74,62,0.12); color: var(--muted); }
.search-bar button { background: var(--forest); color: var(--white); border: none; padding: 14px 28px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: 0 100px 100px 0; transition: background 0.2s; white-space: nowrap; }
.search-bar button:hover { background: var(--forest-light); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; }
.chip { font-size: 0.8rem; padding: 6px 14px; border-radius: 100px; background: var(--white); border: 1px solid rgba(45,74,62,0.2); cursor: pointer; font-family: 'DM Sans', sans-serif; color: var(--forest); transition: all 0.15s; user-select: none; }
.chip:hover, .chip.active { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* OPPORTUNITIES */
.section { padding: 5rem 2.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.5rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--forest); line-height: 1.15; }
.opps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.opp-card { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(45,74,62,0.1); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.opp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.opp-card-add { border: 1.5px dashed rgba(45,74,62,0.25) !important; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.opp-card-top { height: 8px; }
.opp-card-top.food      { background: var(--clay); }
.opp-card-top.kids      { background: var(--gold); }
.opp-card-top.homeless  { background: var(--forest); }
.opp-card-top.elderly   { background: #7B9EA8; }
.opp-card-top.community { background: #8B6FA8; }
.opp-body { padding: 1.25rem 1.5rem 1.5rem; }
.opp-org { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 0.4rem; }
.opp-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.3; }
.opp-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1rem; }
.opp-meta-item { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.opp-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 1rem; margin-top: 0.5rem; }
.opp-badge { font-size: 0.72rem; padding: 4px 10px; border-radius: 100px; font-weight: 500; }
.badge-recurring { background: #EAF3EE; color: #2D6B4A; }
.badge-once      { background: #FEF3E7; color: #9E6340; }
.btn-signup { font-size: 0.82rem; font-weight: 500; color: var(--forest); background: var(--warm); padding: 7px 16px; border-radius: 100px; border: none; cursor: pointer; transition: background 0.15s; font-family: 'DM Sans', sans-serif; }
.btn-signup:hover { background: rgba(45,74,62,0.12); }

/* HOW IT WORKS */
.how-section { background: var(--forest); padding: 5rem 2.5rem; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--cream); text-align: center; margin-bottom: 3.5rem; }
.how-title em { font-style: italic; color: var(--gold); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.how-step { text-align: center; }
.how-num { width: 56px; height: 56px; border-radius: 50%; background: rgba(212,168,67,0.15); border: 1.5px solid rgba(212,168,67,0.4); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.how-step h3 { font-size: 1rem; font-weight: 500; color: var(--cream); margin-bottom: 0.5rem; }
.how-step p  { font-size: 0.85rem; color: rgba(249,245,239,0.55); line-height: 1.65; }

/* SIGNUP */
.signup-section { padding: 5rem 2.5rem; background: var(--cream); }
.signup-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.signup-inner h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--forest); margin-bottom: 1rem; line-height: 1.1; }
.signup-inner h2 em { font-style: italic; color: var(--clay); }
.signup-inner > p { color: var(--muted); margin-bottom: 2.5rem; font-size: 1rem; }
.signup-tabs { display: flex; justify-content: center; margin-bottom: 2rem; }
.stab { padding: 12px 32px; border: 1.5px solid rgba(45,74,62,0.2); background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: all 0.15s; }
.stab:first-child { border-radius: 100px 0 0 100px; }
.stab:last-child  { border-radius: 0 100px 100px 0; }
.stab.active { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* FORMS */
.signup-form { background: var(--white); border-radius: 20px; padding: 2.5rem; border: 1px solid rgba(45,74,62,0.1); box-shadow: 0 8px 40px rgba(0,0,0,0.06); text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--ink); background: var(--cream); outline: none; transition: border-color 0.15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--forest); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit { width: 100%; background: var(--forest); color: var(--white); border: none; padding: 14px; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s; }
.form-submit:hover { background: var(--forest-light); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.success-msg { background: #EAF3EE; color: #2D6B4A; border: 1px solid #A8D5C4; border-radius: 12px; padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 500; text-align: center; margin-bottom: 1rem; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(26,26,24,0.6); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 20px; padding: 2.5rem; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--warm); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(45,74,62,0.15); }
.modal-tag { display: inline-block; font-size: 0.72rem; font-weight: 500; padding: 4px 12px; border-radius: 100px; margin-bottom: 0.75rem; background: var(--warm); color: var(--forest); }
.modal-org   { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.25; }
.modal-desc  { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.7; }
.modal-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.modal-detail-row { font-size: 0.87rem; color: var(--ink); }
.modal-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 1.25rem 0; }
.modal-form .form-submit { margin-top: 1rem; }

/* FOOTER */
footer { background: var(--ink); color: rgba(249,245,239,0.5); padding: 3rem 2.5rem; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--cream); margin-bottom: 0.5rem; }
.footer-logo span { color: var(--gold); }
footer p { font-size: 0.85rem; margin-bottom: 0.25rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .search-bar select { display: none; }
  nav { padding: 0 1.25rem; }
  .section, .signup-section, .how-section, .search-section { padding: 3.5rem 1.25rem; }
  .signup-form { padding: 1.5rem; }
  .modal { padding: 1.5rem; }
  .stab { padding: 10px 16px; font-size: 0.82rem; }
}
