/* ==========================================================================
   Little Tew Conservation Group — rustic countryside theme
   ========================================================================== */

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

:root {
  --moss: #4a5d3a;
  --moss-dark: #35452a;
  --moss-light: #7c9160;
  --terracotta: #b5651d;
  --terracotta-dark: #8f4e15;
  --gold: #c9a227;
  --cream: #f6f0e2;
  --cream-dark: #ece2c8;
  --parchment: #fbf7ec;
  --brown: #5c4324;
  --brown-dark: #3e2f1a;
  --ink: #2f2a1e;
  --line: rgba(92, 67, 36, 0.18);
  --shadow: 0 10px 30px rgba(46, 34, 15, 0.18);
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.35), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(92,67,36,0.05), transparent 45%);
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); }
a:hover { color: var(--terracotta); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--terracotta-dark);
  margin-bottom: 4px;
  transform: rotate(-1deg);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: #5a5240; font-size: 1.05rem; }

.divider {
  width: 74px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--gold);
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: #fff8ec;
  box-shadow: 0 6px 16px rgba(181, 101, 29, 0.35);
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff8ec; }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--moss);
  color: var(--moss);
}
.btn-ghost:hover { background: var(--moss); color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 240, 226, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown-dark);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}
.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--brown-dark);
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff8ec;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,29,14,0.35) 0%, rgba(38,29,14,0.55) 60%, rgba(28,22,10,0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 24px 90px;
}

.hero-content .eyebrow { color: #f3d78f; }

.hero-content h1 {
  color: #fffaf0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-shadow: 0 3px 18px rgba(0,0,0,0.35);
}

.hero-content p.lead {
  font-size: 1.18rem;
  color: #f4ecd8;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #f4ecd8;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Modal sign-up ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 10, 0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--parchment);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(20, 15, 5, 0.45);
  padding: 38px 34px 30px;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease;
  border: 1px solid var(--line);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dark);
  color: var(--brown-dark);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { background: var(--gold); color: #fff; }

.modal-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.modal h3 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.modal p.modal-sub {
  color: #5a5240;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 6px;
  color: var(--brown-dark);
}
.form-row input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  color: var(--ink);
}
.form-row input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(74, 93, 58, 0.15);
}

.form-note {
  font-size: 0.78rem;
  color: #7a7256;
  margin-top: 14px;
}

.form-submit { width: 100%; justify-content: center; margin-top: 6px; }

.form-success {
  display: none;
  text-align: center;
  padding: 10px 0 4px;
}
.form-success .modal-icon { margin: 0 auto 12px; }
.form-success.is-visible { display: block; }
.modal-body.is-hidden { display: none; }

/* Sticky join bar (fallback / persistent CTA once popup dismissed) */
.join-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--moss-dark);
  color: #f4ecd8;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.join-bar.is-visible { transform: translateY(0); }
.join-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.join-bar-inner p { margin: 0; font-size: 0.92rem; }
.join-bar-close {
  background: none;
  border: none;
  color: #f4ecd8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 6px;
}

/* ---------- About ---------- */
.about {
  padding: 90px 0 70px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: start;
}

.about-copy h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  color: var(--moss-dark);
}
.about-copy h3:first-of-type { margin-top: 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}
.pill {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  color: var(--brown-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.objectives {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.objectives li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(60, 45, 20, 0.06);
}
.objectives .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.objectives p { margin: 0; font-size: 0.97rem; }

.about-facts {
  background: var(--brown-dark);
  color: #f4ecd8;
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.about-facts h4 {
  color: #f3d78f;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.fact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.fact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(244,236,216,0.15);
  padding-bottom: 12px;
}
.fact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.fact-list strong { display: block; color: #fff; }

/* ---------- Meadow divider ---------- */
.meadow-divider { width: 100%; height: clamp(80px, 12vw, 160px); overflow: hidden; }
.meadow-divider img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- News ---------- */
.news {
  background: var(--cream-dark);
  padding: 80px 0 90px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(60, 45, 20, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(60, 45, 20, 0.14);
}

.news-card-top {
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.tag-alert { background: #f1dcc8; color: var(--terracotta-dark); }
.tag-good { background: #dfe8cd; color: var(--moss-dark); }

.news-date {
  font-size: 0.82rem;
  color: #8a8262;
  font-weight: 600;
}

.news-card-body { padding: 14px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.news-card-body p { color: #4c4636; font-size: 0.95rem; flex: 1; }

.news-meta {
  font-size: 0.82rem;
  color: #7a7256;
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

/* ---------- Get involved / footer ---------- */
.get-involved {
  padding: 90px 0;
  text-align: center;
}
.get-involved h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.get-involved-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.site-footer {
  background: var(--brown-dark);
  color: #d9cdb0;
  padding: 54px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(217,205,176,0.18);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand strong { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.site-footer h5 {
  color: #f3d78f;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #d9cdb0; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #f3d78f; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #a99c7a;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--parchment);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 150px 20px 70px; }
}
