/* Wild Vibes — components.
   Everything in PATTERNS.md §6, plus the header (§3) and footer (§4).
   Components read the --ctx-* context variables set by .sec--* grounds,
   so the same card works on paper, warm, lime and forest. */

/* ================================================================== */
/* 1. Buttons                                                          */
/* ================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ctx-head);
  --btn-bd: currentColor;
  --btn-lift: -2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--tap);
  padding: 0.7rem 1.55rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: 0.004em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-spring);
}
.btn:hover  { transform: translateY(var(--btn-lift)); }
.btn:active { transform: translateY(0); transition-duration: var(--dur-1); }
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  transform: none;
}
.btn__icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; }

/* Signature CTA — lime ground, ink text. Never white text on lime. */
.btn--primary {
  --btn-bg: var(--wv-lime);
  --btn-fg: var(--wv-forest-dk);
  --btn-bd: var(--wv-lime);
  box-shadow: 0 2px 0 var(--wv-lime-deep), var(--sh-1);
}
.btn--primary:hover {
  --btn-bg: var(--wv-lime-deep);
  --btn-bd: var(--wv-lime-deep);
  box-shadow: 0 4px 0 #8FB53C, var(--sh-2);
}
.btn--primary:active { box-shadow: 0 1px 0 #8FB53C; }

.btn--dark {
  --btn-bg: var(--wv-forest-dk);
  --btn-fg: var(--wv-mist);
  --btn-bd: var(--wv-forest-dk);
  box-shadow: var(--sh-1);
}
.btn--dark:hover {
  --btn-bg: var(--wv-forest);
  --btn-bd: var(--wv-forest);
  box-shadow: var(--sh-2);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ctx-head);
  --btn-bd: color-mix(in srgb, var(--ctx-head) 32%, transparent);
}
.btn--ghost:hover {
  --btn-bg: color-mix(in srgb, var(--wv-lime) 26%, transparent);
  --btn-bd: var(--wv-lime-deep);
}
.sec--forest .btn--ghost:hover,
.site-foot .btn--ghost:hover {
  --btn-bg: color-mix(in srgb, var(--wv-lime) 16%, transparent);
  --btn-bd: var(--wv-lime);
}

.btn--wa {
  --btn-bg: var(--wv-wa);
  --btn-fg: #FFFFFF;
  --btn-bd: var(--wv-wa);
  box-shadow: var(--sh-1);
}
.btn--wa:hover {
  --btn-bg: var(--wv-wa-dk);
  --btn-bd: var(--wv-wa-dk);
  box-shadow: var(--sh-2);
}

.btn--sm  { min-height: 2.5rem; padding: 0.45rem 1.05rem; font-size: 0.88rem; }
.btn--lg  { min-height: 3.4rem; padding: 0.95rem 2.2rem; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }

/* A row of buttons that wraps cleanly. */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* ================================================================== */
/* 2. Pills                                                            */
/* ================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  padding: 0.24em 0.72em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--wv-lime-soft);
  color: var(--wv-forest-dk);
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.pill--soon     { background: var(--wv-lime); color: var(--wv-forest-dk); }
.pill--attached { background: var(--wv-lime-soft); color: var(--wv-forest-dk); }
.pill--common   { background: #ECEFE4; color: #4A5442; }
.pill--ghost    { background: transparent; border-color: var(--ctx-line); color: var(--ctx-muted); }
.pill--dark     { background: var(--wv-forest-dk); color: var(--wv-mist); }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ================================================================== */
/* 3. Header                                                           */
/* ================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
}
/* The frosted ground lives on a pseudo-element on purpose: a
   backdrop-filter on .site-head itself would make it the containing block
   for the position:fixed mobile drawer, which then cannot cover the page. */
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--wv-paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head::before { background: var(--wv-paper); }
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--head-h);
  transition: min-height var(--dur-2) var(--ease-out);
}

.site-head.is-stuck::before {
  border-bottom-color: var(--wv-line);
  box-shadow: 0 6px 22px rgba(30, 45, 8, 0.07);
}
.site-head.is-stuck .site-head__in { min-height: var(--head-h-stuck); }

/* --- brand -------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-right: auto;
  padding: 0.2rem;
  border-radius: var(--r-sm);
  color: var(--wv-forest-dk);
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 2.55rem;
  height: auto;
  aspect-ratio: 48 / 40;
  flex: none;
  color: var(--wv-forest);
  fill: none;
  stroke: currentColor;
  transition: width var(--dur-2) var(--ease-out),
              transform var(--dur-3) var(--ease-spring);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__mark--lg { width: 3.6rem; }

.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-display-bold);
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  color: var(--wv-forest-dk);
  white-space: nowrap;
}
.brand__tag {
  margin-top: 0.25rem;
  font-size: 0.63rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--wv-ink-soft);
  white-space: nowrap;
  transition: opacity var(--dur-2) var(--ease-out),
              max-height var(--dur-2) var(--ease-out);
}
.site-head.is-stuck .brand__mark { width: 2.1rem; }
.site-head.is-stuck .brand__tag { opacity: 0; max-height: 0; overflow: hidden; margin-top: 0; }

/* --- nav ---------------------------------------------------------- */

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.1rem, 0.6vw, 0.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.5rem;
  padding: 0.4rem 0.68rem;
  border-radius: var(--r-pill);
  color: var(--wv-ink);
  font-size: 0.93rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.nav__list a:hover { background: var(--wv-lime-soft); color: var(--wv-forest-dk); }
.nav__list a[aria-current="page"] { color: var(--wv-forest); font-weight: var(--fw-bold); }
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0.34rem;
  height: 0.34rem;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--wv-lime-deep);
}
.nav__list .pill { margin-left: 0.1em; }

.site-head__cta { flex: none; }

/* --- burger ------------------------------------------------------- */

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  flex: none;
  border-radius: var(--r-sm);
  background: transparent;
  transition: background-color var(--dur-1) var(--ease-out);
}
.burger:hover { background: var(--wv-lime-soft); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--wv-forest-dk);
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-1) var(--ease-out),
              width var(--dur-2) var(--ease-out);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- mobile drawer ------------------------------------------------ */

@media (max-width: 1079.98px) {
  .nav {
    position: fixed;
    inset: var(--head-h) 0 0 0;
    z-index: var(--z-drawer);
    display: block;
    padding: var(--sp-5) var(--wrap-pad) calc(var(--tap) + var(--sp-9));
    background: var(--wv-paper);
    border-top: 1px solid var(--wv-line);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    translate: 0 -0.75rem;
    transition: opacity var(--dur-2) var(--ease-out),
                translate var(--dur-2) var(--ease-out),
                visibility 0s linear var(--dur-2);
  }
  .site-head.is-stuck .nav { inset-block-start: var(--head-h-stuck); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li + li { border-top: 1px dashed var(--wv-line); }
  .nav__list a {
    justify-content: flex-start;
    min-height: 3.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: var(--fw-display);
    letter-spacing: var(--ls-head);
    color: var(--wv-forest-dk);
  }
  .nav__list a[aria-current="page"]::after {
    left: auto;
    right: 0.7rem;
    bottom: auto;
    top: 50%;
    translate: 0 -50%;
    width: 0.42rem;
    height: 0.42rem;
  }

  .site-head__cta {
    position: fixed;
    z-index: calc(var(--z-drawer) + 1);
    left: var(--wrap-pad);
    right: var(--wrap-pad);
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--sp-5));
    display: none;
  }

  .site-head.is-open .nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition-delay: 0s;
  }
  .site-head.is-open .site-head__cta {
    display: flex;
    min-height: var(--tap);
    padding: 0.75rem 1.55rem;
    font-size: 0.97rem;
  }
}

@media (min-width: 1080px) {
  .burger { display: none; }
  .nav { display: block; }
}

body.nav-open { overflow: hidden; }

/* ================================================================== */
/* 4. Footer                                                           */
/* ================================================================== */

.site-foot {
  --ctx-bg: var(--wv-forest-dk);
  --ctx-fg: var(--wv-mist);
  --ctx-muted: var(--wv-mist-soft);
  --ctx-line: var(--wv-line-dark);
  --ctx-head: var(--wv-mist);
  --ctx-accent: var(--wv-lime);
  --ctx-doodle: var(--wv-lime);
  --ctx-link: var(--wv-mist);

  position: relative;
  /* No margin above: the ridge is absolutely positioned at bottom:100%, so it
     overlays whatever section comes before and its negative space picks up
     that section's colour. A gap here would show the page background through
     the ridge instead — a white band under a coloured section. */
  margin-top: 0;
  padding-top: var(--sp-8);
  background: var(--wv-forest-dk);
  color: var(--wv-mist);
}

.site-foot__ridge {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: clamp(34px, 5.5vw, 76px);
  color: var(--wv-forest-dk);
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}

.site-foot__in {
  display: grid;
  gap: var(--sp-7) var(--sp-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-8);
}
@media (min-width: 620px)  { .site-foot__in { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .site-foot__in { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-6); } }

.site-foot__brand { max-width: 30rem; }
.site-foot__brand .brand__mark { color: var(--wv-lime); }
.site-foot__tag {
  margin-top: var(--sp-3);
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  color: var(--wv-lime);
}
.site-foot__blurb {
  margin-top: var(--sp-3);
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--wv-mist-soft);
}

.site-foot__h {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--wv-lime);
  margin-bottom: var(--sp-4);
}

.site-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.site-foot__col a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding-block: 0.2rem;
  color: var(--wv-mist);
  font-size: 0.95rem;
  text-decoration: none;
  text-decoration-color: transparent;
}
.site-foot__col a:hover { color: var(--wv-lime); text-decoration: underline; text-underline-offset: 0.2em; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.contact-list li { display: block; }
.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.4rem;
  color: var(--wv-mist);
  font-size: 0.95rem;
  text-decoration: none;
}
.contact-list a:hover { color: var(--wv-lime); }
.contact-list__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--wv-lime);
}
.contact-list__label { min-width: 0; overflow-wrap: anywhere; }

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4) calc(env(safe-area-inset-bottom, 0px) + var(--sp-5));
  border-top: 1px solid var(--wv-line-dark);
  font-size: var(--fs-small);
  color: var(--wv-mist-soft);
}
.site-foot__base a { color: var(--wv-mist-soft); }
.site-foot__base a:hover { color: var(--wv-lime); }

/* ================================================================== */
/* 5. Cards                                                            */
/* ================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ctx-card);
  border: 1px solid var(--ctx-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--wv-lime-deep);
}
.sec--forest .card:hover { box-shadow: none; border-color: var(--wv-lime); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ctx-card-2);
  overflow: hidden;
}
.card__media img,
.card__media picture { width: 100%; height: 100%; }
.card__media img {
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__media--tall  { aspect-ratio: 3 / 4; }
.card__media--wide  { aspect-ratio: 16 / 9; }
.card__media--square{ aspect-ratio: 1 / 1; }

/* badge floating on the media */
.card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: var(--z-raised);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  padding: clamp(1.1rem, 0.85rem + 0.9vw, 1.6rem);
}
.card__title { font-size: var(--fs-h3); color: var(--ctx-head); }
.card__title a { color: inherit; text-decoration: none; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-size: var(--fs-small);
  color: var(--ctx-muted);
}
.card__meta > * + *::before {
  content: "·";
  margin-right: 0.85rem;
  color: var(--ctx-line);
}
.card__text { color: var(--ctx-muted); font-size: 0.97rem; }
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ctx-line);
}

/* Whole-card link: put .card--link on the card and this on the title link. */
.card--link .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card--link:focus-within { border-color: var(--wv-lime-deep); }

/* Card grid helper */
.card-grid {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* ================================================================== */
/* 6. Stay card                                                        */
/* ================================================================== */

.stay-card { }
.stay-card .card__body { gap: var(--sp-3); }

.stay-card__tagline {
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--ctx-muted);
}
.stay-card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.stay-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--sp-3);
}
.stay-card__from {
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ctx-muted);
}
.stay-card__amount {
  font-family: var(--font-display);
  font-weight: var(--fw-display-bold);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ctx-head);
  font-variant-numeric: tabular-nums;
}
.stay-card__unit { font-size: var(--fs-small); color: var(--ctx-muted); }

.stay-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ctx-line);
}
.stay-card__actions .btn { flex: 1 1 8rem; }

/* ================================================================== */
/* 7. Rate table                                                       */
/* ================================================================== */

.rate-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  background: var(--ctx-card);
}
.rate-table caption {
  caption-side: top;
  padding: 0 0 var(--sp-4);
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--ctx-muted);
}
.rate-table thead th {
  position: sticky;
  top: 0;
  padding: 0.85rem 1rem;
  background: var(--wv-lime);
  color: var(--wv-forest-dk);
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--wv-lime-deep);
}
.rate-table thead th:first-child { text-align: left; border-top-left-radius: var(--r-sm); }
.rate-table thead th:last-child  { border-top-right-radius: var(--r-sm); }

.rate-table tbody th,
.rate-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--ctx-line);
  text-align: right;
  vertical-align: top;
  color: var(--ctx-fg);
}
.rate-table tbody th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  color: var(--ctx-head);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}
.rate-table tbody tr:nth-child(even) th,
.rate-table tbody tr:nth-child(even) td { background: var(--ctx-card-2); }
.rate-table tbody tr:hover th,
.rate-table tbody tr:hover td { background: var(--wv-lime-soft); color: var(--wv-forest-dk); }
.sec--forest .rate-table tbody tr:hover th,
.sec--forest .rate-table tbody tr:hover td { background: var(--wv-forest); color: var(--wv-mist); }

.rate-table tfoot td {
  padding: 0.85rem 1rem;
  font-size: var(--fs-micro);
  color: var(--ctx-muted);
}
.rate-table__gst { display: block; font-size: var(--fs-micro); color: var(--ctx-muted); font-weight: var(--fw-body); }
.rate-table__na  { color: var(--ctx-muted); }

/* ================================================================== */
/* 8. Feature list                                                     */
/* ================================================================== */

.feature-list {
  display: grid;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  align-items: start;
  gap: 0.7rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ctx-fg);
}
.feature-list li::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.08rem;
  border-radius: 50%;
  background: var(--wv-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.8 8.7 9.7 3.4' fill='none' stroke='%232F4108' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 74% no-repeat;
}
.feature-list--2col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-list--2col { grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-6); } }
.feature-list--tight { gap: var(--sp-2); }
.feature-list--lg li { font-size: var(--fs-lead); }

/* ================================================================== */
/* 9. Timeline                                                         */
/* ================================================================== */

ul.timeline, ol.timeline, .timeline {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-2) 2.9rem;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--wv-lime-deep) 0 7px,
    transparent 7px 14px
  );
  opacity: 0.7;
}
.sec--forest .timeline::before {
  background-image: repeating-linear-gradient(to bottom, var(--wv-lime) 0 7px, transparent 7px 14px);
  opacity: 0.55;
}

.timeline__item { position: relative; min-width: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.9rem;
  top: 0.42rem;
  width: 1.45rem;
  height: 1.45rem;
  translate: 0.02rem 0;
  border-radius: 50%;
  background: var(--wv-lime);
  box-shadow: 0 0 0 5px var(--ctx-bg);
}
.timeline__item::after {
  content: "";
  position: absolute;
  left: -2.42rem;
  top: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--wv-forest-dk);
}

.timeline__time {
  display: block;
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ctx-accent);
}
.timeline__title {
  margin-top: 0.25rem;
  font-size: var(--fs-h4);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  color: var(--ctx-head);
}
.timeline__note {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--ctx-muted);
  max-width: 42ch;
}

/* ================================================================== */
/* 10. Gallery                                                         */
/* ================================================================== */

.gallery-grid {
  columns: 1;
  column-gap: var(--gap-grid);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px)  { .gallery-grid { columns: 2; } }
@media (min-width: 1000px) { .gallery-grid { columns: 3; } }
.gallery-grid--dense { }
@media (min-width: 1240px) { .gallery-grid--dense { columns: 4; } }

.gallery-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--gap-grid);
  padding: 0;
  width: 100%;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ctx-card-2);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 900ms var(--ease-out); }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  background: linear-gradient(to top, rgba(18, 20, 15, 0.78), transparent);
  color: #FFFFFF;
  font-size: var(--fs-small);
  text-align: left;
  opacity: 0;
  translate: 0 0.5rem;
  transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out);
}
.gallery-item:hover .gallery-item__cap,
.gallery-item:focus-visible .gallery-item__cap { opacity: 1; translate: 0 0; }

/* ================================================================== */
/* 11. Lightbox                                                        */
/* ================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--sp-3);
  padding: var(--sp-4);
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  background: rgba(15, 18, 10, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--wv-mist);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out),
              visibility 0s linear var(--dur-3);
}
.lightbox.is-open,
.lightbox[open] {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.lightbox::backdrop { background: rgba(15, 18, 10, 0.9); }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--wv-mist-soft);
}
.lightbox__count { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

.lightbox__fig {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__cap {
  padding-top: var(--sp-3);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--wv-mist-soft);
  max-width: 60ch;
  margin-inline: auto;
}

.lightbox__btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--wv-mist);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.lightbox__btn:hover { background: rgba(197, 233, 115, 0.24); transform: scale(1.06); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lightbox__close { }
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
}
.lightbox__prev { left: var(--sp-4); }
.lightbox__next { right: var(--sp-4); }
@media (min-width: 760px) {
  .lightbox { padding: var(--sp-6) var(--sp-9); }
  .lightbox__prev { left: var(--sp-5); }
  .lightbox__next { right: var(--sp-5); }
}

/* ================================================================== */
/* 12. Rule card                                                       */
/* ================================================================== */

.rule-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--sp-4);
  padding: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem);
  background: var(--ctx-card);
  border: 1px solid var(--ctx-line);
  border-radius: var(--r-md);
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.rule-card:hover {
  transform: translateY(-3px);
  border-color: var(--wv-lime-deep);
  box-shadow: var(--sh-2);
}
.sec--forest .rule-card:hover { box-shadow: none; border-color: var(--wv-lime); }

.rule-card__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--wv-lime-soft);
  color: var(--wv-forest-dk);
}
.rule-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
}
.rule-card__title {
  font-size: var(--fs-h4);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  color: var(--ctx-head);
}
.rule-card__body {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ctx-muted);
}

.rule-grid {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

/* ================================================================== */
/* 13. FAQ                                                             */
/* ================================================================== */

.faq { display: grid; gap: var(--sp-3); }

.faq__item {
  background: var(--ctx-card);
  border: 1px solid var(--ctx-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.faq__item:hover { border-color: var(--wv-lime-deep); }
.faq__item[open] { border-color: var(--wv-lime-deep); box-shadow: var(--sh-1); }
.sec--forest .faq__item[open] { box-shadow: none; border-color: var(--wv-lime); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--tap);
  padding: var(--sp-4) clamp(1rem, 0.8rem + 0.7vw, 1.4rem);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h4);
  line-height: 1.4;
  color: var(--ctx-head);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-1) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { background: color-mix(in srgb, var(--wv-lime) 16%, transparent); }

.faq__q::after {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--wv-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2' fill='none' stroke='%232F4108' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  transition: transform var(--dur-2) var(--ease-spring);
}
.faq__item[open] .faq__q::after { transform: rotate(-180deg); }

.faq__a {
  padding: 0 clamp(1rem, 0.8rem + 0.7vw, 1.4rem) var(--sp-5);
  max-width: var(--measure);
  color: var(--ctx-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.faq__a > * + * { margin-top: var(--sp-3); }

/* ================================================================== */
/* 14. Form fields                                                     */
/* ================================================================== */

.field { display: grid; gap: 0.4rem; min-width: 0; }

.field__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--ctx-fg);
  letter-spacing: 0.005em;
}
.field__label .field__req { color: var(--wv-error); margin-left: 0.15em; }

.field__hint { font-size: var(--fs-micro); color: var(--ctx-muted); }

.field__input {
  width: 100%;
  min-height: var(--tap);
  padding: 0.72rem 0.95rem;
  border: 1.5px solid var(--ctx-line);
  border-radius: var(--r-sm);
  background: var(--wv-paper);
  color: var(--wv-ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.field__input::placeholder { color: #6A7560; }
.field__input:hover { border-color: var(--wv-lime-deep); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--wv-forest);
  box-shadow: var(--sh-ring);
}
textarea.field__input { min-height: 7.5rem; line-height: 1.6; }

select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.3 8 10.3 12 6.3' fill='none' stroke='%234D680E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.05rem;
  cursor: pointer;
}
input[type="date"].field__input,
input[type="number"].field__input { cursor: pointer; }

.field__error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--wv-error);
}
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__input {
  border-color: var(--wv-error);
  background: var(--wv-error-bg);
}
.field.is-invalid .field__input:focus-visible {
  box-shadow: 0 0 0 3px rgba(163, 42, 22, 0.22);
}

/* choice controls */
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--wv-forest);
  cursor: pointer;
}
.field--check .field__label { font-weight: var(--fw-body); font-size: 0.95rem; line-height: 1.5; }

.field-row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .field-row--3 { grid-template-columns: repeat(3, 1fr); } }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-4);
}
.fieldset__legend {
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--ctx-accent);
}

/* ================================================================== */
/* 15. Note                                                            */
/* ================================================================== */

.note {
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.4rem) clamp(1.1rem, 0.9rem + 0.7vw, 1.5rem);
  border: 1px solid var(--ctx-line);
  border-left: 4px solid var(--wv-lime-deep);
  border-radius: var(--r-sm);
  background: var(--ctx-card-2);
  color: var(--ctx-fg);
  font-size: 0.95rem;
  line-height: 1.6;
}
.note > * + * { margin-top: var(--sp-3); }
.note__title {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--ctx-accent);
  margin-bottom: 0.35rem;
}
.note--warn {
  background: var(--wv-warn-bg);
  border-color: var(--wv-warn-line);
  border-left-color: #D2A03C;
  color: #4A3405;
}
.note--warn .note__title { color: var(--wv-warn); }
.sec--forest .note--warn { color: #4A3405; }

/* ================================================================== */
/* 16. Doodles                                                         */
/* ================================================================== */

.doodle {
  position: absolute;
  z-index: var(--z-doodle);
  width: 7rem;
  height: auto;
  color: var(--ctx-doodle);
  fill: none;
  stroke: currentColor;
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.doodle--xs  { width: 3.2rem; }
.doodle--sm  { width: 5rem; }
.doodle--md  { width: 8rem; }
.doodle--lg  { width: 12rem; }
.doodle--xl  { width: clamp(14rem, 22vw, 22rem); }

.doodle--solid { fill: currentColor; stroke: none; }
.doodle--faint  { opacity: 0.18; }
.doodle--strong { opacity: 0.72; }
.doodle--lime   { color: var(--wv-lime-deep); }

/* corner placement helpers — override with a style attribute when needed */
.doodle--tl { top: var(--sp-5); left: var(--sp-4); }
.doodle--tr { top: var(--sp-5); right: var(--sp-4); }
.doodle--bl { bottom: var(--sp-5); left: var(--sp-4); }
.doodle--br { bottom: var(--sp-5); right: var(--sp-4); }
.doodle--flip { transform: scaleX(-1); }

/* Hide the smallest decorations on phones — they crowd the type. */
@media (max-width: 599.98px) {
  .doodle--hide-sm { display: none; }
}

/* Inline (non-absolute) decorative mark, e.g. beside a heading. */
.doodle--inline {
  position: static;
  display: inline-block;
  vertical-align: middle;
  opacity: 1;
}

/* Full-width divider doodle between sections. */
.divider {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: var(--sp-6) auto;
  color: var(--ctx-doodle);
  fill: none;
  stroke: currentColor;
  opacity: 0.45;
}

/* ================================================================== */
/* 17. Small shared bits                                               */
/* ================================================================== */

/* Inline link that looks like a forward action. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.4rem;
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  color: var(--ctx-link);
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.6 8h10.2M9 4.2 12.9 8 9 11.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.6 8h10.2M9 4.2 12.9 8 9 11.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-2) var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* Small stat / fact block. */
.stat { display: grid; gap: 0.2rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: var(--fw-display-bold);
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--ctx-head);
}
.stat__label {
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ctx-muted);
}

/* Pull-quote / brand line. */
.quote {
  font-weight: var(--fw-display);
  font-size: clamp(1.2rem, 1.02rem + 0.9vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: var(--ls-head);
  color: var(--ctx-head);
  max-width: 24ch;
}

/* Rounded media frame used outside cards. */
/* <picture> is only a wrapper for the <source> list. Left inline it leaves a
   baseline gap under every photo and gives the inner <img> no definite box to
   resolve height:100% against. Consumers that need grid/absolute override it. */
picture { display: block; }

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ctx-card-2);
  box-shadow: var(--sh-2);
}
.media-frame picture,
.media-frame img { display: block; width: 100%; height: 100%; }
.media-frame img { object-fit: cover; }
.media-frame--tall  { aspect-ratio: 3 / 4; }
.media-frame--wide  { aspect-ratio: 16 / 10; }
.media-frame--square{ aspect-ratio: 1 / 1; }

/* Figure caption used under a media frame. */
.caption {
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ctx-muted);
}

/* ================================================================== */
/* Interaction polish                                                  */
/* ================================================================== */
/* Every interactive thing gets: a clear resting state, an unmistakable
   hover, a pressed state that actually moves, and a focus ring that is
   visible on light and dark grounds. */

/* --- nav ---------------------------------------------------------- */
.nav__list a::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  right: 0.68rem;
  bottom: 0.28rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.55;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__list a:hover::before { transform: scaleX(1); }
.nav__list a[aria-current="page"]::before { display: none; }

/* --- buttons ------------------------------------------------------ */
.btn:active { transform: translateY(1px) scale(0.995); }

.btn--primary:hover  { box-shadow: 0 4px 0 #8FB53C, var(--sh-2); }
.btn--primary:active { box-shadow: 0 0 0 #8FB53C; transform: translateY(2px); }
.btn--dark:active,
.btn--wa:active      { box-shadow: var(--sh-1); transform: translateY(1px); }

/* --- text links --------------------------------------------------- */
.link-arrow svg,
.link-arrow .btn__icon { transition: transform var(--dur-2) var(--ease-spring); }
.link-arrow:hover svg,
.link-arrow:hover .btn__icon { transform: translateX(4px); }

.site-foot__col a,
.contact-list a {
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: color var(--dur-1) var(--ease-out),
              text-decoration-color var(--dur-1) var(--ease-out);
}
.site-foot__col a:hover,
.contact-list a:hover {
  color: var(--wv-lime);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* --- cards -------------------------------------------------------- */
.card {
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.card--link:hover,
.card:has(.card__link):hover {
  border-color: var(--wv-lime-deep);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}

/* --- filters ------------------------------------------------------ */
.filter-btn {
  transition: background-color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.filter-btn:hover:not([aria-pressed="true"]):not(.is-active) {
  border-color: var(--wv-lime-deep);
  background: var(--wv-lime-soft);
}
/* Selected chip: deepen rather than lighten, so the label keeps its contrast. */
.filter-btn[aria-pressed="true"]:hover,
.filter-btn.is-active:hover {
  background: var(--wv-forest);
  border-color: var(--wv-forest);
}

/* --- gallery ------------------------------------------------------ */
.gallery-item { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

/* --- form controls ------------------------------------------------ */
.field__input:hover:not(:focus) { border-color: var(--wv-lime-deep); }
