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

:root {
  --primary: #2d5a27;
  --primary-light: #4a8f42;
  --primary-dark: #1f3d2b;
  --accent: #c4a747;
  --bg: #f4f3ee;
  --surface: #ffffff;
  --text: #434343;
  --text-muted: #6b6b6b;
  --border: #d8d0c4;
  --header-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Lora, Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Header & Nav ── */
header {
  background: var(--primary-dark);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav > a,
nav > .dropdown > .dropdown-toggle,
nav > .dropdown > a.dropdown-toggle {
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.4);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}

nav > a:hover,
nav > .dropdown:hover > .dropdown-toggle {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}

nav > a.active {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  font-weight: 600;
}

.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--primary-dark);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0 0 4px 4px;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 200;
  /* invisible bridge fills the seam between button and menu so hover isn't broken */
  padding-top: 4px;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #d8e8d4;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  transition: background 0.12s;
}

.dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.dropdown-menu a.active { color: #fff; font-weight: 600; }

.dropdown-menu .submenu-label {
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem 0.2rem;
  cursor: default;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.dropdown-menu a + .submenu-label { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0.25rem; }

.dropdown.open .dropdown-menu { display: block; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* fallback colour if image not yet added */
  background-color: var(--primary-dark);
  /* place hero.jpg in the images/ folder to activate */
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* dark gradient overlay so text stays readable over any photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,40,12,0.75) 0%, rgba(14,40,12,0.4) 55%, rgba(14,40,12,0.1) 100%);
}

.hero-content {
  position: relative;
  max-width: 560px;
  padding: 3rem 2.5rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── Page header ── */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 2rem;
}

.page-header .breadcrumb {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: #b8d4b4;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb a { color: #b8d4b4; text-decoration: none; }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb span { margin: 0 0.4rem; }

.page-header h1 {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

/* ── Main layout ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

ul, ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

li { margin-bottom: 0.35rem; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card ul { font-size: 0.9rem; color: var(--text-muted); }

/* ── Home page events band ── */
.home-events {
  background: #eceae3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.home-events-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.home-events-inner h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.home-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.event-card-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.event-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.event-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.1rem;
  line-height: 1.6;
}
.event-card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.02em;
}
.event-card-link:hover { color: var(--primary-dark); text-decoration: underline; }
.event-card-link::after { content: ' →'; }

/* ── Home page about section ── */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.home-about h2 {
  margin-bottom: 1rem;
}

/* ── Section nav cards (home page) ── */
.section-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.section-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.section-link:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.section-link .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-link h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.section-link p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Info box ── */
.info-box {
  background: #edf5ec;
  border-left: 4px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ── Document list ── */
.doc-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.doc-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.doc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ── Hire charges table ── */
.hire-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 0.75rem;
  border: 1px solid #c0bbb3;
  border-radius: 6px;
}

.hire-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

.hire-table thead th {
  text-align: left;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border-bottom: 2px solid #c0bbb3;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hire-table tbody td {
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid #dedad3;
  vertical-align: top;
  color: var(--text);
}

.hire-table tbody tr:last-child td { border-bottom: none; }

.hire-table tr.hire-category td {
  background: #e4e2db;
  border-top: 1px solid #c0bbb3;
  border-bottom: 1px solid #c0bbb3;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.45rem 1.1rem;
}

.hire-table tbody tr.hire-category:first-child td { border-top: none; }

.hire-table thead th:nth-child(1),
.hire-table tbody td:nth-child(1) { width: 28%; }

.hire-table thead th:nth-child(2),
.hire-table tbody td:nth-child(2) { width: 17%; white-space: nowrap; }

.hire-note {
  font-size: 0.875rem;
  color: var(--accent);
  font-style: italic;
  margin: 0 0 1.5rem;
}

/* ── Contact form ── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
}

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

label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: Lora, Georgia, serif;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}

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

.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-family: Lora, Georgia, serif;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: var(--primary-dark); }

/* ── Success / error boxes (shared) ── */
.success-box {
  background: #edf5ec;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 560px;
  margin: 2rem auto;
}
.success-box h2 { color: var(--primary-dark); margin-bottom: 0.75rem; }

.error-box {
  background: #fdf0f0;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #c0392b;
}
.error-box ul { margin: 0.4rem 0 0 1.2rem; }

/* ── GCG section hero ── */
.gcg-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--primary-dark);
  background-image: url('../images/gcg-hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.gcg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31,61,43,0.3) 0%, rgba(31,61,43,0.72) 100%);
}

.gcg-hero-content {
  position: relative;
  padding: 2rem;
  width: 100%;
}

.gcg-hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gcg-hero-content .gcg-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  font-style: italic;
}

/* ── Community Council hero (no image yet — solid colour placeholder) ── */
.cc-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--primary-dark);
  color: #fff;
}
.cc-hero-content {
  position: relative;
  padding: 2rem;
  width: 100%;
}
.cc-hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cc-hero-content .cc-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  font-style: italic;
}

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

/* ── Related Pages sidebar ── */
.related-pages {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.related-pages-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.related-pages ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-pages li {
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.related-pages li:last-child { border-bottom: none; }

.related-pages li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.related-pages a {
  color: var(--primary);
  text-decoration: none;
}

.related-pages a:hover { text-decoration: underline; }

.related-pages li.rp-current {
  font-weight: 600;
  color: var(--text);
}

/* ── Contact form two-column grid ── */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Site Banner ── */
.site-banner {
  height: 2.4rem;
  line-height: 2.4rem;
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-banner-track {
  display: inline-block;
  white-space: nowrap;
  animation: site-banner-scroll 30s linear infinite;
}

.site-banner-content {
  white-space: nowrap;
}

.site-banner-content a {
  color: inherit;
  text-decoration: underline;
}

@keyframes site-banner-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── Footer ── */
footer {
  background: var(--primary-dark);
  color: #b8d4b4;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-site-name {
  font-family: Lora, Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.footer-charity {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #8db89a;
  line-height: 1.6;
}

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

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

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

.footer-col a {
  color: #b8d4b4;
  text-decoration: none;
}

.footer-col a:hover { color: #ffffff; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #8db89a;
}

.footer-legal a { color: #b8d4b4; }
.footer-legal a:hover { color: #ffffff; }

/* ── Hamburger button (hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

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

/* ── Tablet / large phone (≤768px) — switch to hamburger nav ── */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
  }

  .site-title { flex: 1; }

  .hamburger { display: flex; }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 0.75rem;
    gap: 0;
  }

  nav.open { display: flex; }

  /* Full-width touch-friendly items — override pill styles */
  nav > a,
  nav > .dropdown > .dropdown-toggle,
  nav > .dropdown > a.dropdown-toggle {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
    color: #fff;
    background: transparent;
    user-select: none;
  }

  nav > a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: #fff;
    font-weight: 600;
  }

  nav > .dropdown:hover > .dropdown-toggle { background: transparent; }

  /* GCG layout stacks on tablet */
  .gcg-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 1.5rem; }
  .related-pages { position: static; }
  .contact-form-grid { grid-template-columns: 1fr; }

  /* Accordion: dropdown menus are static/inline on mobile */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    width: 100%;
    padding: 0 0 0.25rem 0;
    background: rgba(0,0,0,0.25);
  }

  .dropdown.open .dropdown-menu { display: block; }

  .dropdown-menu a {
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
  }

  .dropdown-menu .submenu-label {
    padding: 0.6rem 1.25rem 0.2rem;
  }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
  .hero { min-height: 260px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero-content { padding: 1.75rem 1.25rem; }

  main { padding: 1.25rem 1rem; }
  .page-header { padding: 1.25rem 1rem; }
  .page-header h1 { font-size: 1.4rem; }

  .cards { grid-template-columns: 1fr; }
  .section-links { grid-template-columns: 1fr; }
  .home-about { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-events-inner { padding: 0 1rem; }
  .home-events { padding: 2rem 0; }

  h2 { font-size: 1.3rem; }

  /* Henderson page */
  .portrait-block { flex-direction: column; }
  .portrait-block img { width: 130px; }
  .plaque-photo { float: none; width: 100%; margin: 0 0 1rem; }
  .memorial-photos { grid-template-columns: 1fr; }

  /* Event page */
  .event-meta { flex-direction: column; }
  .booking-section { padding: 1.25rem 1rem; }

  /* Contact form */
  .contact-form { padding: 1.25rem 1rem; }

  /* GCG hero */
  .gcg-hero { min-height: 160px; }
  .gcg-hero-content h1 { font-size: 1.5rem; }
  .gcg-hero-content { padding: 1.25rem 1rem; }
  /* CC hero */
  .cc-hero { min-height: 160px; }
  .cc-hero-content h1 { font-size: 1.5rem; }
  .cc-hero-content { padding: 1.25rem 1rem; }
}
