/* ===== Winagami Lake COA — stylesheet =====
   Palette inspired by the lake's blues + sunset warmth.
   Edit the variables below to re-theme the whole site. */
:root {
  /* Palette sampled directly from the association logo:
     sun #fab03b (deep #e2571c) · water #17c8dc · ground #111 */
  --blue-deep: #0e4a5c;   /* deep water — headings, primary actions */
  --blue: #12798f;        /* mid water — links */
  --cyan: #17c8dc;        /* logo water — bright accent, used sparingly */
  --sand: #f6f2ea;
  --ink: #12242b;
  --muted: #5a6b72;
  --line: #e8e3d7;
  --sunset-1: #fdbf6a;    /* sun, light  */
  --sunset-2: #fab03b;    /* sun, core   (the logo's dominant colour) */
  --sunset-3: #e2571c;    /* sun, deep   (replaces the old off-theme pink) */
  --sunset-ink: #c84d19;  /* same hue, darkened to clear 4.5:1 on white for small text */
  --white: #ffffff;
  --footer: #0d2731;      /* deep water — footer ground */
  /* layered shadows read softer and more current than a single hard drop */
  --shadow-sm: 0 1px 2px rgba(13,39,49,.06), 0 2px 8px rgba(13,39,49,.05);
  --shadow: 0 2px 4px rgba(13,39,49,.05), 0 8px 24px rgba(13,39,49,.08);
  --shadow-lg: 0 4px 10px rgba(13,39,49,.08), 0 18px 48px rgba(13,39,49,.16);
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.center { text-align: center; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo { flex: none; width: 70px; height: 54px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.12rem; color: var(--blue-deep); letter-spacing: .3px; }
.brand-text em { font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a {
  display: block; padding: .5rem .75rem; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .9rem; border-radius: 6px;
}
.main-nav a:hover { background: var(--sand); color: var(--blue-deep); }
.main-nav a.active { color: var(--blue-deep); background: var(--sand); }

/* ===== "Park Information" dropdown ===== */
.main-nav li.has-drop { position: relative; }
.drop-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  padding: .5rem .75rem; border-radius: 6px;
}
.drop-toggle:hover, .drop-toggle[aria-expanded="true"], .drop-toggle.active {
  background: var(--sand); color: var(--blue-deep);
}
.drop-toggle .caret {
  width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -2px); transition: transform .2s;
}
.drop-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-1px, -1px); }
.main-nav .drop-menu {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 236px; margin: 0; padding: .4rem;
  list-style: none; background: var(--white);
  border-radius: 10px; box-shadow: var(--shadow-lg);
}
/* invisible bridge across the visual gap, so moving the pointer from the
   button down to the menu never leaves the <li> and closes it */
.main-nav .drop-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px;
}
.main-nav .drop-menu.open { display: block; }
.main-nav .drop-menu a { display: block; padding: .55rem .8rem; border-radius: 6px; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--blue-deep); border-radius: 3px; }

/* ===== Slider ===== */
.slider { position: relative; height: 72vh; min-height: 420px; max-height: 680px; overflow: hidden; background: #11313f; }
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slider::after { /* darkening gradient for text legibility */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.05) 45%, rgba(17,49,63,.65) 100%);
  pointer-events: none;
}
.slider-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: var(--white); padding: 0 0 3.2rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.slider-caption h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); margin: 0 0 .4rem; }
.slider-caption p { font-size: 1.15rem; margin: 0 0 1.4rem; max-width: 44ch; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  background: rgba(255,255,255,.18); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem;
  backdrop-filter: blur(2px); transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.4); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots { position: absolute; bottom: 1.1rem; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: .5rem; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: #fff; }

/* ===== Front-page banner ===== */
.banner { position: relative; background: #11313f; }
.banner img {
  width: 100%; height: clamp(230px, 38vw, 460px);
  object-fit: cover; object-position: center 60%;
}
.banner::after { /* darkening gradient so the title stays legible */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(17,49,63,.72) 100%);
}
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 0 1.6rem; }
.banner-caption h1 {
  margin: 0; color: var(--white); font-size: clamp(1.5rem, 3.8vw, 2.7rem);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}

/* ===== Mission & objectives ===== */
.mission-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.mission-text h2 { color: var(--blue-deep); font-size: 1.5rem; margin: 1.9rem 0 .5rem; }
.mission-text h2:first-of-type { margin-top: 1.4rem; }
.mission-text h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--sunset-2); border-radius: 4px; margin: .55rem 0 0; }
.welcome { font-size: 1.12rem; color: var(--muted); margin: 0; }
.mission-statement { font-size: 1.05rem; }
.objectives { padding-left: 1.2rem; margin: .6rem 0 0; }
.objectives li { margin: .55rem 0; padding-left: .25rem; }
.objectives li::marker { color: var(--sunset-2); font-weight: 700; }
.mission-photo { margin: 1.4rem 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mission-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--blue-deep); color: var(--white);
  text-decoration: none; padding: .8rem 1.5rem; border-radius: 50px;
  font-weight: 600; box-shadow: var(--shadow); transition: transform .15s, background .2s; border: 0; cursor: pointer;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-light { background: var(--white); color: var(--blue-deep); }
.btn-light:hover { background: var(--sand); }
.btn-light-outline { background: transparent; color: var(--blue-deep); border: 2px solid var(--blue-deep); box-shadow: none; }
.btn-light-outline:hover { background: var(--blue-deep); color: #fff; }

/* ===== AGM notice bar ===== */
/* AGM bar — the logo's sun gradient. Dark text: white on amber is ~2:1 and unreadable. */
.notice { background: linear-gradient(100deg, var(--sunset-1), var(--sunset-2)); color: #3b2408; }
.notice-inner { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 0; flex-wrap: wrap; }
.notice-badge { background: rgba(18,36,43,.13); color: #2f1c05; padding: .35rem .8rem; border-radius: 50px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.notice-body { display: flex; flex-direction: column; flex: 1 1 320px; }
.notice-body strong { font-size: 1.05rem; }
.notice-body span { opacity: .88; font-size: .95rem; }
.notice .btn-sm { background: var(--blue-deep); color: #fff; }
.notice .btn-sm:hover { background: var(--ink); }

/* ===== Sections ===== */
.section { padding: 3.6rem 0; }
.section-title { text-align: center; font-size: 1.95rem; margin: 0 0 1.4rem; color: var(--blue-deep); }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--sunset-2); border-radius: 4px; margin: .6rem auto 0; }
.lead { max-width: 820px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.1rem; color: var(--muted); }

/* feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem 1.3rem; text-align: center; transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.2rem; margin-bottom: .4rem; }
.feature h3 { margin: .2rem 0 .5rem; color: var(--blue-deep); font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* gallery preview */
.gallery-preview { background: var(--sand); }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.thumb { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb:hover img { transform: scale(1.07); }

/* ===== CTA ===== */
.cta { background: var(--blue-deep); color: var(--white); text-align: center; padding: 3.4rem 0; }
.cta-inner h2 { font-size: 2rem; margin: 0 0 .5rem; }
.cta-inner p { margin: 0 auto 1.5rem; opacity: .92; max-width: 620px; }

/* ===== Page header (inner pages) ===== */
.page-head { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; padding: 3rem 0; text-align: center; }
.page-head h1 { margin: 0 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { margin: 0; opacity: .9; }

/* ===== Content blocks ===== */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--blue-deep); margin-top: 2rem; }
.prose h3 { color: var(--blue-deep); margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem;
  transition: box-shadow .18s, border-color .18s;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card:hover { box-shadow: var(--shadow); border-color: #d8d2c2; }
.card h3 { margin-top: 0; color: var(--blue-deep); }
.card .role { color: var(--sunset-ink); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }

.info-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.info-table th, .info-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.info-table th { background: var(--sand); color: var(--blue-deep); }

.callout { background: var(--sand); border-left: 4px solid var(--sunset-2); padding: 1rem 1.2rem; border-radius: 6px; margin: 1.2rem 0; }
.note { color: var(--muted); font-size: .9rem; }

.map-figure { margin: 1.2rem 0 0; }
.map-figure img { width: 100%; height: auto; border: 1px solid #e3ddcf; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-figure figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: .6rem; }

/* ===== Full gallery grid ===== */
/* dense packing back-fills the gaps left by the wide photos, so the mosaic
   stays tight however many portraits and landscapes get added over time */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; grid-auto-flow: dense; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .4s; }
.gallery-grid figure.wide { grid-column: span 2; }
.gallery-grid figure.wide img { aspect-ratio: 16 / 9; }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ===== Footer ===== */
.site-footer { background: var(--footer); color: #b9c9d0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.6rem 0; }
.footer-grid h4 { color: #fff; margin: 0 0 .7rem; font-size: 1rem; }
.footer-logo { width: 150px; height: auto; margin: 0 0 .9rem; }
.footer-grid p { margin: .2rem 0; font-size: .9rem; }
.footer-grid a { color: #9fd9e3; text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); text-decoration: underline; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: .25rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 1rem 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: .82rem; color: #7f929a; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid, .thumb-row { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .mission-photo img { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; }
  .main-nav ul { flex-direction: column; padding: .5rem; }
  .drop-toggle { width: 100%; justify-content: space-between; }
  .main-nav .drop-menu { position: static; min-width: 0; box-shadow: none; padding: 0 0 .3rem .8rem; margin: 0; }
  .main-nav .drop-menu::before { content: none; }
  .header-inner { position: relative; }
  .notice-inner { text-align: center; justify-content: center; }
  /* on mobile, navigate via the dots — hide arrows so they don't collide with the hero text */
  .slider-arrow { display: none; }
  .slider-caption { padding-bottom: 2.6rem; }
  .slider-caption h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .slider-caption p { font-size: 1rem; }
}
@media (max-width: 520px) {
  .feature-grid, .thumb-row, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure.wide { grid-column: span 1; }
  .logo { width: 57px; height: 44px; }
  .slider { min-height: 460px; }
  .slider-caption h1 { font-size: 1.7rem; }
}


/* ===== Modern polish ===== */

/* visible keyboard focus everywhere (the old theme had none) */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--sunset-1); color: var(--ink); }

/* headings sit a little tighter than body copy at larger sizes */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

/* links: underline on hover rather than always-on, with a cyan tint */
.prose a, .card a, .info-table a { color: var(--blue); text-underline-offset: 2px; }
.prose a:hover, .card a:hover, .info-table a:hover { color: var(--blue-deep); }

/* nav pills */
.main-nav a, .drop-toggle { transition: background .15s, color .15s; }
.main-nav .drop-menu a:hover { background: var(--sand); color: var(--blue-deep); }

/* callouts read as a card rather than a plain tinted box */
.callout { box-shadow: var(--shadow-sm); }

/* images never look bare against the sand sections */
.map-figure img, .thumb, .gallery-grid figure { border-radius: var(--radius); }

/* respect the OS "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
