/* West Fermanagh Farmers Cluster — shared styles */

:root {
  --forest: #1B4332;
  --forest-dark: #12281f;
  --green-mid: #4C9A4C;
  --green-light: #8BC53F;
  --river-blue: #3B82C4;
  --grey: #6B7280;
  --grey-light: #f4f5f2;
  --cream: #faf9f6;
  --text: #262b26;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .brand-name {
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-top: 0; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--river-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e3dc;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 100px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text .main {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.logo-text .sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--grey);
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover { color: var(--green-mid); text-decoration: none; }

nav.main-nav a.active {
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .logo-link img { height: 100px; }

  .nav-toggle { display: flex; }

  nav.main-nav {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 1px solid #e5e3dc;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  nav.main-nav ul.open {
    max-height: 400px;
  }

  nav.main-nav li {
    border-bottom: 1px solid #f0efe9;
  }

  nav.main-nav li a {
    display: block;
    padding: 14px 24px;
  }

  nav.main-nav a.active {
    border-bottom: none;
    color: var(--green-mid);
  }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,40,31,0.15) 0%, rgba(18,40,31,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 { color: #fff; max-width: 700px; }
.hero-content p.lead { color: #eef3ea; max-width: 560px; font-size: 1.15rem; }

.page-hero {
  min-height: 34vh;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn:hover { background: var(--forest-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #eef1e9; }

.section-intro { max-width: 680px; margin-bottom: 40px; }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 840px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card img { height: 190px; width: 100%; object-fit: cover; }
.card .card-body { padding: 20px; }

.card .tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--forest-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.card .tag.status-live { background: var(--river-blue); color: #fff; }
.card .tag.status-complete { background: var(--grey); color: #fff; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--forest);
  font-weight: 700;
}

.stats .stat-label {
  font-size: 0.85rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* Footer */
footer.site-footer {
  background: var(--forest-dark);
  color: #cfe0d3;
  padding: 48px 0 28px;
  margin-top: 40px;
}

footer.site-footer h3 { color: #fff; font-size: 1.1rem; }
footer.site-footer a { color: #cfe0d3; }
footer.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9fb5a4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links { display: flex; gap: 14px; margin-top: 10px; }
.social-links a {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.funders-strip {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
  margin-top: 8px;
}

.funders-strip .funders-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb5a4;
  margin-bottom: 14px;
}

.funders-strip .funders-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: #fff;
  padding: 14px 20px;
  border-radius: 6px;
}

.funders-strip .funders-logos img {
  height: 48px;
  width: auto;
}

/* Simple content blocks */
.callout {
  background: #fff;
  border-left: 4px solid var(--green-light);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 24px 0;
}

.image-full {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
}

ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

/* Project reel / carousel */
.reel-wrap {
  position: relative;
}

.reel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reel-track::-webkit-scrollbar { display: none; }

.reel-track .card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

@media (max-width: 560px) {
  .reel-track .card { flex-basis: 82vw; }
}

.reel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.reel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  background: #fff;
  color: var(--forest);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.reel-btn:hover { background: var(--forest); color: #fff; }
.reel-btn:disabled { opacity: 0.35; cursor: default; }
.reel-btn:disabled:hover { background: #fff; color: var(--forest); }
