/* ============================================================
   FARGO FAMILY FOUNDATION — Shared Stylesheet
   Palette: Forest Green, Warm Cream, Gold, Parchment
   Typography: Playfair Display + Lora
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --forest:    #2B4A1A;
  --forest-mid:#3D6B28;
  --sage:      #6B8E52;
  --sage-light:#8FAF72;
  --cream:     #EEE4CC;
  --parchment: #DDD0B0;
  --gold:      #B8862A;
  --gold-light:#D4A94A;
  --brown:     #5C3D1E;
  --charcoal:  #2A2A2A;
  --muted:     #6B6457;
  --white:     #FFFFFF;
  --border:    #BFB090;

  --nav-h: 80px;
  --max-w: 1100px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.35em; }

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

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header / Navigation ── */
header {
  background: var(--forest);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.nav-brand-sub {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  color: var(--sage-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Main nav links */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.95rem;
  color: var(--parchment);
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

nav > ul > li > a:hover,
nav > ul > li > a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* Dropdown arrow */
nav > ul > li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Dropdown menus */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
  padding: 0.4rem 0;
}

nav > ul > li.has-dropdown:hover .dropdown,
nav > ul > li.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: var(--charcoal);
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: var(--parchment);
  color: var(--forest);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
.nav-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Banner ── */
.hero {
  position: relative;
  background: var(--forest);
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/2cd60-delaware-river.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 0.6rem;
}

.hero-content .hero-sub {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--parchment);
  font-style: italic;
  max-width: 620px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

.hero-divider {
  width: 70px;
  height: 3px;
  background: var(--gold-light);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── Page Header (interior pages) ── */
.page-header {
  background: var(--forest);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,74,26,0.9) 0%, rgba(61,107,40,0.8) 100%);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 0.3rem;
}

.page-header .page-sub {
  color: var(--sage-light);
  font-style: italic;
  font-size: 1rem;
}

.page-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.page-breadcrumb a { color: rgba(255,255,255,0.75); }
.page-breadcrumb a:hover { color: var(--white); }

/* ── Section Styles ── */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--parchment);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.4rem;
}

.section-title .ornament {
  display: inline-block;
  width: 55px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.5rem auto;
}

.section-title p {
  max-width: 600px;
  margin: 0.5rem auto 0;
  color: var(--muted);
  font-style: italic;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(43,74,26,0.1);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-mid);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(43,74,26,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col-wide {
  grid-template-columns: 3fr 2fr;
}

@media (max-width: 768px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Quote Block ── */
.blockquote {
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.8rem;
  background: var(--parchment);
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--forest);
  font-size: 1.05rem;
}

/* ── Eligibility Lists ── */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.eligibility-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.75rem;
  border-top: 4px solid var(--sage);
}

.eligibility-card.not-eligible {
  border-top-color: #C0392B;
}

.eligibility-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--forest);
}

.eligibility-card.not-eligible h3 { color: #C0392B; }

.eligibility-card ul {
  padding-left: 1.25em;
  margin: 0;
}

.eligibility-card ul li {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ── Impact Stories ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.impact-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--sage-light);
  opacity: 0.4;
  line-height: 1;
}

.impact-card h4 {
  color: var(--forest);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.impact-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Recipients List ── */
.recipients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.recipients-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--forest-mid);
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.recipients-list li a:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.recipients-list li a::before {
  content: '🌿';
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Contact Form ── */
.form-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 640px;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,142,82,0.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Core Values ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--forest);
  border-radius: 8px;
  color: var(--white);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.value-item h3 {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

/* ── Application section ── */
.apply-dates {
  text-align: center;
  background: var(--forest);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.apply-dates .date-highlight {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin: 0.3rem 0;
}

.apply-dates p {
  color: var(--parchment);
  font-size: 0.9rem;
  margin: 0;
}

.form-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-download-card:hover {
  border-color: var(--sage);
  box-shadow: 0 3px 12px rgba(43,74,26,0.1);
}

.form-download-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--forest);
  font-weight: 600;
}

.form-download-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: var(--parchment);
  padding: 3.5rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(237,229,208,0.75);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(237,229,208,0.75);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(237,229,208,0.5);
  margin: 0;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight-box {
  background: var(--parchment);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.highlight-box p { margin: 0; }

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--sage-light);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ── Responsive Nav ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--forest);
    padding: 1rem 0;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-open nav {
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem;
  }

  nav > ul > li > a {
    padding: 0.85rem 1rem;
    border-radius: 4px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.25rem 0;
    margin: 0.25rem 0 0.25rem 1rem;
    display: none;
  }

  nav > ul > li.has-dropdown.open .dropdown { display: block; }

  .dropdown li a {
    color: var(--parchment);
    padding: 0.6rem 1rem;
  }

  .dropdown li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
  }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.25s; opacity: 0; }
.delay-3 { animation-delay: 0.4s; opacity: 0; }
