:root {
  /* Brand: pine green (trust, nature) + warm terracotta (roofs, warmth) + sea blue (fjord) */
  --green-900: #1a3d2e;
  --green-700: #2d6a4f;
  --green-600: #3a7a5c;
  --green-500: #40916c;
  --green-100: #e8f3ec;
  --terracotta-600: #c1552f;
  --terracotta-500: #d97a4d;
  --terracotta-100: #fbe8dd;
  --sea-600: #2a5f78;
  --sand-50: #fbf7f0;
  --sand-100: #f3ead9;
  --ink: #23291f;
  --ink-soft: #55604f;
  --white: #ffffff;
  --border: #e5e2d6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(26, 61, 46, 0.09);
  --shadow-lg: 0 20px 50px rgba(15, 30, 22, 0.25);
  --max-width: 1140px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: 2.1rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--green-700); }

:focus-visible {
  outline: 2px solid var(--terracotta-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  --nav-color: var(--ink);
  --nav-color-muted: var(--green-600);
}

.site-header.header-overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  --nav-color: #fff;
  --nav-color-muted: rgba(255, 255, 255, 0.82);
}
.site-header.header-overlay.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --nav-color: var(--ink);
  --nav-color-muted: var(--green-600);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--nav-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.logo span { color: var(--nav-color-muted); font-weight: 400; transition: color 0.3s ease; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--nav-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.main-nav a:not(.btn):hover { color: var(--terracotta-500); }

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--terracotta-600);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--terracotta-500); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--green-700) !important;
  border-color: var(--green-700);
}
.btn-secondary:hover { background: var(--green-100); }

/* Secondary button on the hero sits over a dark image, needs light styling */
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.7);
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.22); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--nav-color);
  border-radius: 2px;
  transition: background 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background-size: cover;
  background-position: center;
  background-color: var(--green-900);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 16, 0.45) 0%, rgba(10, 22, 16, 0.55) 55%, rgba(10, 22, 16, 0.82) 100%);
  z-index: -1;
}
.hero-inner { max-width: 720px; margin: 0 auto; color: var(--white); }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta-500);
  margin-bottom: 1em;
}
.hero h1 { font-size: 3.2rem; margin-bottom: 0.5em; color: var(--white); }
.hero-sub { font-size: 1.25rem; margin-bottom: 2em; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-pills {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-pills li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Sections */
.section { padding: 5rem 1.5rem; scroll-margin-top: 84px; }
.section-alt { background: var(--sand-50); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-lead { font-size: 1.1rem; max-width: 640px; }

/* Split section (text + image) */
.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.board-list li {
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.board-list strong { color: var(--green-900); font-family: var(--font-display); }
.board-list span { color: var(--ink-soft); font-size: 0.9rem; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.95rem; }
.card-highlight {
  border-color: var(--terracotta-500);
  background: var(--terracotta-100);
}

/* Location intro (kart section) */
.location-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.location-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.location-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.location-photo figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  background: rgba(26, 61, 46, 0.75);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Map */
#map {
  height: 440px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  z-index: 1;
}
.map-note { font-size: 0.9rem; margin-top: 0.75rem; color: var(--ink-soft); }

.leaflet-popup-content strong { color: var(--green-900); font-family: var(--font-display); }
.leaflet-popup-content .distance { color: var(--green-700); font-weight: 600; }
.leaflet-popup-content .popup-note { color: var(--ink-soft); font-size: 0.85em; }

/* Membership */
.membership-box {
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 1.5rem;
  margin-top: 2rem;
}
.membership-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.membership-row:last-child { border-bottom: none; }
.membership-row .label { color: var(--ink-soft); font-size: 0.95rem; }
.membership-row .value {
  font-weight: 600;
  color: var(--green-900);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.copy-btn {
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--green-700);
  background: transparent;
  color: var(--green-700);
  cursor: pointer;
  font-weight: 600;
}
.copy-btn:hover { background: var(--green-100); }
.copy-btn.copied { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.contact-card {
  display: block;
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card h3 { color: var(--green-900); margin-bottom: 0.3em; }
.contact-card p { margin: 0; color: var(--ink-soft); }

/* Suggestion box */
.suggestion-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.suggestion-text .section-lead { margin-bottom: 0; }
.suggestion-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.suggestion-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  margin-top: 0.6rem;
}
.suggestion-form input,
.suggestion-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  resize: vertical;
}
.suggestion-form input:focus,
.suggestion-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
}
.suggestion-form .btn { margin-top: 1rem; align-self: flex-start; }
.suggestion-note { font-size: 0.8rem; margin: 0.6rem 0 0; }
.suggestion-status { font-size: 0.85rem; margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; border-radius: 6px; background: var(--green-50, #eef6f0); color: var(--green-700, #2d6a4f); }
.suggestion-status a { color: inherit; text-decoration: underline; }
.suggestion-status .link-btn { background: none; border: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p { margin: 0; color: var(--green-100); font-family: var(--font-display); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--green-100); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .suggestion-box { grid-template-columns: 1fr; }
  .split-media img { min-height: 260px; }
  .location-intro { grid-template-columns: 1fr; }
  .location-photo img { height: 220px; }
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 0.75rem;
  }
  .main-nav.open { display: flex; }
  .main-nav.open a { color: var(--ink); }
  .main-nav a { padding: 0.5rem 0; }
  .main-nav .btn { text-align: center; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 7rem 1.25rem 3.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 3.5rem 1.25rem; }
}
