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

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

body {
  font-family: 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: 900px;
  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); }

/* ── 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);
}

/* ── 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"],
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: Georgia, serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="email"]: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: Georgia, serif;
  cursor: pointer;
  transition: background 0.15s;
}

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

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

footer a { color: #b8d4b4; }

/* ── Responsive ── */
@media (max-width: 640px) {
  header { padding: 0 1rem; }
  .hero h1 { font-size: 1.8rem; }
  main { padding: 1.5rem 1rem; }
  .page-header { padding: 1.5rem 1rem; }
  nav { gap: 0.1rem; }
  nav a { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
}
