
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

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

:root {
  --bg:           #d7ece2;
  --card-surface: #9dd1b7;
  --surface:      #f6f8f6;
  --card-border:  #ffffff;
  --border:       #a6b7ae;
  --card-text:    #d3d55d;  
  --text:         #028370;
  --card-header:  #ffffff;
  --card-link:    #c55c62;  
  --muted:        #028370;
  --green-dark:   #68b890;
  --green:        #c55c62;
  --green-mid:    #d3d55d;
  --green-light:  #dde8e0;
  --green-border: #a6b7ae;
  --max-width:    780px;
  --wide-width:   1080px;
  --nav-h:        56px;
  --radius:       8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 200vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header / Nav ─── */
header {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 12px rgba(0,0,0,0.15);
}

nav {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Lobster', cursive;
  font-weight: 400;
  font-size: 1.3rem;
  color: #b8e0d3;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #68b890;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.1rem;
}

.nav-links a {
  display: block;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-family: 'helvetica neue', cursive;
  font-size: 0.85rem;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.90s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { color: #d3d55d; background: rgba(252,248,239,0.0); }
.nav-links a.active { color: #d3d55d; background: rgba(252,248,239,0.0); }

/* ─── Dropdown ─── */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65em;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  list-style: none;
  min-width: 170px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  padding: 0.5rem 0 0.4rem;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
}

/* ─── Homepage hero (compact) ─── */
.hero {
  background: var(--green-dark);
  color: #fff;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Lobster', cursive;
  font-size: 2.4rem;
  font-weight: 460;
  letter-spacing: 0.01em;
  line-height: 1.30;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.hero .subtitle {
  font-size: 0.95rem;
  color: rgba(215,236,226,0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Inner page hero */
.hero-page {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 1.5rem 1.75rem;
}

.hero-page .hero-inner {
  max-width: var(--max-width);
}

.hero-page .hero-inner h1 {
  font-family: 'Lobster', cursive;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
}

.hero-page .hero-inner .subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}

/* ─── Two-column homepage layout ─── */
.page-columns {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  flex: 1;
}

.page-main { min-width: 0; }

.page-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Info panels (sidebar) ─── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1.1rem;
  font-size: 0.875rem;
}

.panel-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.panel p {
  margin-bottom: 0.35rem;
  color: var(--text);
  line-height: 1.5;
}

.panel p:last-of-type { margin-bottom: 0; }

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.panel-row .label { color: var(--muted); font-size: 0.8rem; }
.panel-row .value { font-weight: 500; }

.panel-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.panel-link:hover { color: var(--green-mid); }

/* ─── Single-column inner page ─── */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 5rem;
  width: 100%;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: 0.45; font-size: 0.75rem; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ─── Typography ─── */
h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

h2 {
  font-family: 'Lobster', cursive;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 2.25rem 0 0.85rem;
  letter-spacing: 0;
  color: var(--text);
}

h2:first-child { margin-top: 0; }

h3 {
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-mid); }

ul { padding-left: 1.35rem; }
li { margin-bottom: 0.3rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}

.card {
  background: var(--card-surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.1rem;
  text-decoration: none;
  color: var(--card-text);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--green-border);
  box-shadow: 0 3px 14px rgba(80,90,30,0.1);
  transform: translateY(-1px);
}

.card-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--green-light);
  border-radius: 7px;
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: 'Lobster', cursive;
  font-weight: 200;
  font-size: 1.20rem;
  color: var(--card-header);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.card-link {
  font-weight: 600;
  font-size: 0.90rem;
  color: var(--card-link);
}

/* ─── Info box ─── */
.info-box {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}

.info-box h3 { color: var(--green); }
.info-box a { color: var(--green); }

/* ─── Table ─── */
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.member-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.member-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.member-table tr:last-child td { border-bottom: none; }
.member-table tbody tr:hover { background: #edf2ee; }

.role-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ─── Photo placeholders ─── */
.photo-slot {
  background: #c4d0c8;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #8a9060;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.photo-slot .photo-icon { opacity: 0.45; }

.photo-slot .photo-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  max-width: 180px;
  line-height: 1.4;
}

.photo-slot--wide   { aspect-ratio: 16 / 7; }
.photo-slot--medium { aspect-ratio: 4 / 3; }
.photo-slot--map    { aspect-ratio: 16 / 9; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* ─── Bylaws ─── */
.bylaw-section { margin: 1.75rem 0; }

.bylaw-section h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* ─── Agenda box ─── */
.agenda-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.65rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.agenda-title {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.agenda-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 1rem 0 0.5rem;
}

.agenda-list { padding-left: 1.35rem; margin: 0; }
.agenda-list li { margin-bottom: 0.35rem; color: var(--text); }

.bylaw-adopted {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Activity sections ─── */
.activity { margin: 2rem 0; }

.activity-body { padding-top: 1.25rem; }

.activity-body h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.activity-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.meta-item svg { flex-shrink: 0; color: var(--green); }

/* ─── Contact grid ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.contact-item .label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-item .value {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text);
}

/* ─── Lead text ─── */
.lead {
  font-size: 1.025rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* ─── Footer ─── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.5);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover { color: #fff; }

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 2.5rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--green-light);
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.gallery-item:hover img { transform: scale(1.04); }

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 1000px);
  max-height: 94vh;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius) var(--radius) 0 0;
}

.lightbox-header span {
  font-family: 'Lobster', cursive;
  font-size: 1rem;
  color: #d3d55d;
  letter-spacing: 0.01em;
}

.lightbox-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-stage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.lightbox-stage img {
  flex: 1;
  min-width: 0;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 0 0 var(--radius) var(--radius);
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-counter {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ─── Rental form ─── */
.rental-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label,
.form-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--green); }

.form-group input,
.form-group textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-dark);
}

.form-group textarea { resize: vertical; }

.form-fieldset {
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--surface);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-fieldset legend {
  padding: 0 0.4rem;
  float: left;
  width: 100%;
  margin-bottom: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.equipment-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.equipment-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  width: 4.5rem;
}

.equipment-row input[type="number"] {
  width: 5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}

.equipment-row input[type="number"]:focus {
  outline: none;
  border-color: var(--green-dark);
}

.form-group:has(textarea) { grid-column: span 2; }

.form-submit {
  grid-column: span 2;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  width: fit-content;
}

.form-submit:hover { opacity: 0.88; }

.form-note {
  grid-column: span 2;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .page-columns {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }
  .page-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.65rem; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .page-aside { grid-template-columns: 1fr; }
  .rental-form { grid-template-columns: 1fr; }
  .form-fieldset, .form-group:has(textarea), .form-submit, .form-note { grid-column: span 1; }
  .gallery-item--wide { grid-column: span 1; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--green-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.1rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
