:root {
  --bg: #eef6f1;
  --surface: #ffffff;
  --text: #123a2a;
  --muted: #4a6458;
  --primary: #06763b;
  --primary-dark: #055a2d;
  --border: #c8ddd0;
  --accent: #3fbe4a;
  --error: #8b1e1e;
  --success: #126b4e;
  --warn: #7a5b00;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 0.55rem;
}
h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(15, 42, 30, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
  flex-wrap: nowrap;
}
.brand {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.03rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand-text {
  font-weight: 700;
}
.brand-logo {
  height: 32px;
  max-width: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(2, 45, 23, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  border-radius: 3px;
}
.nav a,
.nav-dropdown > a {
  margin-left: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}
.nav a:hover,
.nav-dropdown > a:hover {
  color: var(--primary);
  background: #eef6f1;
}
.nav-login-btn {
  margin-left: 0.25rem;
  font-size: 0.86rem;
  padding: 0.42rem 0.72rem;
}

.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(21, 42, 31, 0.12);
  padding: 0.4rem;
}
.dropdown-menu a {
  display: block;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border-radius: 7px;
}
.dropdown-menu a:hover {
  background: #eef6f1;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.main { padding: 2rem 1rem 3rem; }
.main,
.site-footer {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  background: linear-gradient(130deg, #dff0e7, #edf7f1 55%, #ffffff);
  border: 1px solid #c9ddd2;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 26px rgba(18, 63, 42, 0.08);
}
.landing-hero {
  text-align: left;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.hero-photo {
  border-radius: 14px;
  min-height: 260px;
  background:
    linear-gradient(120deg, rgba(5, 90, 45, 0.45), rgba(6, 118, 59, 0.2)),
    url('/assets/images/landing/hero.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0b6a3d, #3fbe4a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.section-block {
  margin-bottom: 2rem;
}
.section-block > h2 {
  margin-bottom: 0.7rem;
}
.section-block > p {
  max-width: 72ch;
  color: var(--muted);
}
.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: -0.7rem 0 2rem;
}
.visual-tile {
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  color: #fff;
  font-weight: 600;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(24, 51, 37, 0.08);
}
.visual-about {
  background-image:
    linear-gradient(130deg, rgba(6, 118, 59, 0.65), rgba(18, 58, 42, 0.65)),
    url('/assets/images/landing/about.jpg');
}
.visual-community {
  background-image:
    linear-gradient(130deg, rgba(6, 118, 59, 0.65), rgba(18, 58, 42, 0.65)),
    url('/assets/images/landing/community.jpg');
}
.visual-events {
  background-image:
    linear-gradient(130deg, rgba(6, 118, 59, 0.65), rgba(18, 58, 42, 0.65)),
    url('/assets/images/landing/events.jpg');
}
.visual-facilities {
  background-image:
    linear-gradient(130deg, rgba(6, 118, 59, 0.65), rgba(18, 58, 42, 0.65)),
    url('/assets/images/landing/facilities.jpg');
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.hero-panel {
  background: #ffffffd9;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.hero-panel h2 {
  margin-top: 0;
  font-size: 1.02rem;
}
.hero-panel ul {
  margin: 0;
  padding-left: 1rem;
}
.hero-panel li {
  margin: 0.35rem 0;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.lead { color: var(--muted); max-width: 52ch; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.hero .muted {
  max-width: 58ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(24, 51, 37, 0.05);
}
.card h2 { margin-top: 0; font-size: 1.1rem; }
.card p {
  color: var(--muted);
}
.card a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.card a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover {
  background: #f3faf6;
}

.form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}
.form input,
.form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.narrow { max-width: 480px; }
.muted { color: var(--muted); }
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert-error { background: #fdeaea; color: var(--error); border: 1px solid #f0c4c4; }
.alert-success { background: #eaf6ef; color: var(--success); border: 1px solid #b9dcc8; }
.alert-warn { background: #fff8e8; color: var(--warn); border: 1px solid #ecd9a8; }
.contact-list dt { font-weight: 700; margin-top: 0.75rem; }
.contact-list dd { margin: 0.25rem 0 0; }
.facility-meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

.section-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}
.chip {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-dark);
  background: #e9f5ec;
  border: 1px solid #cfe2d4;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.88rem;
}

.map-frame {
  padding: 0.5rem;
}
.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: center;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
    padding-top: 0.45rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a,
  .nav-dropdown > a,
  .nav .btn {
    margin-left: 0;
    white-space: normal;
    width: 100%;
    text-align: left;
  }
  .nav-login-btn {
    font-size: 0.88rem;
    padding: 0.55rem 0.75rem;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    min-height: 200px;
  }
  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-logo {
    height: 28px;
    max-width: 120px;
  }
}

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