:root {
  --brand-font: 'Archivo', sans-serif;
  --beige:  #F0EDE4;
  --tan:    #BEB399;
  --black:  #000000;
  --white:  #FFFFFF;
  --dark-text: #1a1a1a;
  --good:   #2f7d4f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--brand-font); background: #ffffff; color: var(--dark-text); }
a { text-decoration: none; }
section[id] { scroll-margin-top: 136px; }

.site-header { position: sticky; top: 0; z-index: 900; }

/* =========================================================
   TOP STRIP
   ========================================================= */
.topbar {
  background: var(--beige); color: var(--dark-text);
  display: flex; justify-content: center; align-items: center;
  gap: 32px; flex-wrap: wrap;
  padding: 10px 20px; font-size: 14px; font-weight: 500; text-align: center;
}
.topbar a { color: var(--dark-text); text-decoration: underline; cursor: pointer; }

/* =========================================================
   NAV
   ========================================================= */
.navbar {
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  transition: padding .2s ease, box-shadow .2s ease;
}
.navbar.scrolled {
  padding-top: 9px; padding-bottom: 9px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
}
.navbar.scrolled .logo-img { max-height: 44px; }
.nav-left { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-left a { color: var(--white); font-size: 16px; font-weight: 600; }
.nav-left a:hover { opacity: 0.7; }
.nav-left a.active { color: var(--tan); }
.nav-center { flex: 1; display: flex; justify-content: center; }
.logo-img { max-height: 56px; width: auto; transition: max-height .2s ease; }
.nav-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.nav-icon { color: var(--white); display: inline-flex; transition: opacity .15s ease; }
.nav-icon:hover { opacity: 0.7; }
.nav-icon svg { width: 22px; height: 22px; fill: currentColor; }
/* hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.join-btn {
  background: var(--beige); color: var(--black);
  font-family: var(--brand-font); font-size: 15px; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; display: inline-block;
  transition: transform 0.15s ease; cursor: pointer;
}
.join-btn:hover { transform: scale(1.05); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--black); color: #d8d5cc; }
.foot-wrap {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 60px 32px 40px;
}
.foot-logo { max-height: 48px; width: auto; margin-bottom: 14px; }
.foot-tag { font-size: 14px; line-height: 1.55; max-width: 320px; margin-bottom: 12px; }
.foot-days { font-size: 13px; color: var(--tan); font-weight: 600; }
.foot-col h4 {
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--tan); margin-bottom: 14px;
}
.foot-col a {
  display: block; color: #d8d5cc; font-size: 14px; font-weight: 500;
  margin-bottom: 9px; transition: color .15s ease;
}
.foot-col a:hover { color: var(--white); }
.foot-social a { display: flex; align-items: center; gap: 9px; }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.foot-bottom {
  border-top: 1px solid #262626; text-align: center;
  padding: 18px 20px; font-size: 13px; color: #8a877e;
}
.foot-legal { margin-top: 6px; font-size: 12px; }
.foot-legal a { color: #8a877e; transition: color .15s ease; }
.foot-legal a:hover { color: var(--white); text-decoration: underline; }

/* =========================================================
   LEGAL PAGES (terms.html, privacy.html)
   ========================================================= */
.legal-hero { background: var(--beige); text-align: center; padding: 56px 24px 40px; }
.legal-hero h1 { font-family: var(--brand-font); font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.1; }
.legal-hero p { font-size: 13px; color: #6b6244; margin-top: 8px; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; font-size: 15px; line-height: 1.65; color: #3a3a3a; }
.legal h2 {
  font-family: var(--brand-font); font-size: 17px; font-weight: 800; color: var(--dark-text);
  margin: 30px 0 8px; scroll-margin-top: 136px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--dark-text); text-decoration: underline; }
.legal .summary {
  background: var(--beige); border-radius: 10px; padding: 14px 16px; margin-bottom: 26px;
  font-size: 14px;
}

/* =========================================================
   WAIVER + GUIDELINES POPUPS  (shared modal shell)
   ========================================================= */
.wv-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; z-index: 1000;
}
.wv-overlay.open { display: flex; }
.wv-modal {
  background: var(--white); width: 100%; max-width: 780px;
  border-radius: 16px; margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35); overflow: hidden;
}
.wv-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 22px 24px; border-bottom: 1px solid #ececec;
}
.wv-modal-head h2 { font-family: var(--brand-font); font-size: 22px; font-weight: 800; color: var(--dark-text); }
.wv-modal-head .step { font-size: 13px; font-weight: 600; color: #8a8371; margin-top: 2px; }
.wv-close {
  flex-shrink: 0; background: none; border: none; font-size: 26px; line-height: 1;
  color: #999; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.wv-close:hover { background: #f2f2f2; color: #333; }
.wv-modal-body { padding: 20px 24px 4px; max-height: 62vh; overflow-y: auto; }

.wv-block { margin-bottom: 26px; }
.wv-block-title {
  font-family: var(--brand-font); font-size: 18px; font-weight: 800;
  color: var(--dark-text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.wv-block-title .check { color: var(--good); font-size: 16px; display: none; }
.wv-block.signed .wv-block-title .check { display: inline; }
.wv-doc {
  max-height: 220px; overflow-y: auto; padding: 16px 18px;
  border: 1px solid #e7e2d3; border-radius: 10px; background: #fbfaf6;
  font-size: 14px; line-height: 1.6; color: #3a3a3a;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wv-block.needs-read .wv-doc { border-color: var(--tan); box-shadow: 0 0 0 3px rgba(190,179,153,.22); }
.wv-doc p { margin-bottom: 11px; }
.wv-doc p:last-child { margin-bottom: 0; }
.wv-doc .lead { font-weight: 700; color: var(--dark-text); }
.wv-name {
  width: 100%; font-family: var(--brand-font); font-size: 15px; padding: 12px 14px;
  margin-top: 14px; border: 1px solid #ddd; border-radius: 10px; background: #fff; color: var(--dark-text);
}
.wv-name:focus { outline: none; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(190,179,153,.3); }
.wv-name-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #6b6244; margin-top: 4px;
}
.wv-doc-wrap { position: relative; }
.wv-doc-wrap::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 72px;
  border-radius: 0 0 10px 10px; pointer-events: none;
  background: linear-gradient(rgba(251,250,246,0), #fbfaf6 70%);
  transition: opacity .25s ease;
}
.wv-more {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--brand-font); font-size: 13px; font-weight: 700;
  padding: 8px 16px; border: none; border-radius: 999px;
  background: var(--black); color: var(--white); cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  animation: wvBob 1.8s ease-in-out infinite; transition: opacity .2s ease;
}
.wv-more:hover { opacity: .88; }
.wv-more.attn { animation: wvAttn .45s ease 2; }
@keyframes wvBob  { 0%,100% { transform: none; } 50% { transform: translateY(3px); } }
@keyframes wvAttn { 0%,100% { transform: none; } 25% { transform: scale(1.08); } 75% { transform: scale(.96); } }
.wv-block:not(.needs-read) .wv-doc-wrap::after,
.wv-block:not(.needs-read) .wv-more { opacity: 0; pointer-events: none; }

.wv-status { margin-top: 10px; }
.wv-status-bar { height: 5px; background: #ece7d8; border-radius: 99px; overflow: hidden; }
.wv-status-bar span { display: block; height: 100%; width: 0; background: var(--tan); border-radius: 99px; transition: width .15s ease; }
.wv-status-row {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 6px;
  font-size: 13px; font-weight: 700; color: #8a6d1f;
}
.wv-status.done .wv-status-bar span { width: 100%; background: var(--good); }
.wv-status.done .wv-status-row { color: #1f5a38; }
.wv-agree {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px;
  font-size: 14px; font-weight: 500; color: var(--dark-text); cursor: pointer; line-height: 1.4;
}
.wv-agree input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--good); cursor: pointer; }
.wv-agree.locked { opacity: .5; cursor: not-allowed; }
.wv-agree.locked input { cursor: not-allowed; pointer-events: none; }
.wv-modal-foot { padding: 16px 24px 22px; border-top: 1px solid #ececec; }
.wv-error {
  display: none; background: #fdecec; border: 1px solid #e6a2a2; color: #a12626;
  font-size: 13.5px; font-weight: 600; padding: 10px 12px; border-radius: 9px; margin-bottom: 12px;
}
.wv-error.show { display: block; }
.wv-submit {
  width: 100%; font-family: var(--brand-font); font-size: 15px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; padding: 15px;
  border: none; border-radius: 11px; background: var(--black); color: var(--white);
  cursor: pointer; transition: opacity .15s ease;
}
.wv-submit:hover:not(:disabled) { opacity: .88; }
.wv-submit:disabled { background: #ece8dc; color: #6b6244; cursor: not-allowed; }
.wv-foot-note { text-align: center; font-size: 12.5px; color: #9a927f; margin-top: 10px; }

.gl-banner {
  display: none; background: #eaf5ee; border: 1px solid #a9d6ba; color: #1f5a38;
  font-size: 14px; font-weight: 700; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
.gl-banner.show { display: block; }
.gl-lead {
  font-size: 14px; font-weight: 700; color: var(--dark-text);
  background: var(--beige); border-radius: 8px; padding: 10px 12px; margin-bottom: 18px;
}
.gl-doc h4 {
  font-family: var(--brand-font); font-size: 15px; font-weight: 800; color: var(--dark-text);
  margin: 20px 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--tan);
}
.gl-doc h4:first-child { margin-top: 0; }
.gl-doc ul { list-style: none; padding: 0; margin: 0; }
.gl-doc li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 14px; line-height: 1.55; color: #3a3a3a; }
.gl-doc li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--tan); border-radius: 50%; }
.gl-doc li b { color: var(--dark-text); }
.gl-close-line { text-align: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; }
.gl-close-line .big { font-family: var(--brand-font); font-weight: 900; font-size: 18px; letter-spacing: 1px; color: var(--dark-text); }
.gl-close-line .small { font-size: 13px; color: #6b6244; margin-top: 4px; }

/* =========================================================
   ANNOUNCEMENT POPUP + "NEWS" NAV DOT  (announcements.js)
   ========================================================= */
/* news nav dot */
.nav-left a.has-new { position: relative; white-space: nowrap; }
.nav-left a.has-new::after {
  content: ""; position: absolute; top: -3px; right: -10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--tan);
  animation: annDot 2s ease-in-out infinite;
}
@keyframes annDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(190,179,153,.7); }
  50%      { box-shadow: 0 0 0 6px rgba(190,179,153,0); }
}

/* popup */
.ann-overlay { z-index: 1050; align-items: center; }
.ann-modal {
  position: relative; width: 100%; max-width: 440px; margin: auto;
  background: var(--white); border-radius: 18px; overflow: hidden; text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.40);
}
.ann-overlay.open .ann-modal { animation: annPop .5s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes annPop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }

.ann-sky {
  position: relative; height: 150px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #2a2a2a 0%, var(--black) 70%);
}
.ann-sky::after {
  content: ""; position: absolute; left: -15%; right: -15%; bottom: -34px; height: 64px;
  background: var(--white); border-radius: 50% 50% 0 0;
}
.ann-icon {
  position: relative; z-index: 1; width: 64px; height: 64px; margin-top: -14px;
  color: var(--tan); filter: drop-shadow(0 0 14px rgba(190,179,153,.55));
}
.ann-icon svg { width: 100%; height: 100%; animation: annSpin 16s linear infinite; }
@keyframes annSpin { to { transform: rotate(360deg); } }
.ann-flake {
  position: absolute; top: -8px; width: var(--s, 4px); height: var(--s, 4px);
  border-radius: 50%; background: var(--white); pointer-events: none;
  animation: annFall 8s linear infinite;
}
@keyframes annFall { from { transform: translate(0, 0); } to { transform: translate(var(--drift, 0px), 240px); } }

.ann-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.ann-close:hover { background: rgba(255,255,255,0.25); }

.ann-body { padding: 4px 30px 28px; }
.ann-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #6b6244; margin-bottom: 8px; }
.ann-body h2 { font-family: var(--brand-font); font-size: clamp(25px, 5vw, 31px); font-weight: 800; line-height: 1.08; color: var(--dark-text); margin-bottom: 12px; }
.ann-text { font-size: 15.5px; font-weight: 500; line-height: 1.55; color: #55503f; max-width: 360px; margin: 0 auto 16px; }
.ann-points { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ann-points li { background: var(--beige); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--dark-text); }
.ann-points li::before { content: "\2713"; color: var(--good); font-weight: 900; margin-right: 6px; }
.ann-dates {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: var(--beige); border-radius: 999px; padding: 7px 14px;
  font-size: 14px; font-weight: 700; color: var(--dark-text);
}
.ann-dates span { color: #8a7a4f; }
.ann-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ann-btn {
  font-family: var(--brand-font); font-size: 14px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; padding: 14px 10px; border-radius: 11px; cursor: pointer; text-align: center;
  border: 2px solid var(--black);
  transition: opacity .15s ease, transform .12s ease, background .15s ease, color .15s ease;
}
.ann-btn.solid { background: var(--black); color: var(--white); }
.ann-btn.solid:hover { opacity: .88; transform: translateY(-1px); }
.ann-btn.ghost { background: transparent; color: var(--black); }
.ann-btn.ghost:hover { background: var(--black); color: var(--white); }

/* ---- snowflake button ---- */
.ann-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--tan);
  background: radial-gradient(circle at 35% 28%, #333 0%, #111 45%, var(--black) 75%);
  box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(190,179,153,.45);
  opacity: 0; transform: scale(.3) translateY(30px) rotate(-90deg); pointer-events: none;
  transition: opacity .35s ease, transform .6s cubic-bezier(.2,1.4,.4,1), box-shadow .2s ease;
}
.ann-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.ann-fab.show:hover { transform: scale(1.1); box-shadow: 0 16px 36px rgba(0,0,0,.4), inset 0 0 0 1.5px var(--tan); }
.ann-fab:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }

.ann-fab-icon {
  position: relative; z-index: 1; width: 30px; height: 30px;
  filter: drop-shadow(0 0 6px rgba(190,179,153,.7));
  animation: annFabFloat 3.2s ease-in-out infinite;
}
.ann-fab-icon svg { width: 100%; height: 100%; display: block; animation: annSpin 12s linear infinite; }
.ann-fab:hover .ann-fab-icon svg { animation-duration: 2.5s; }
@keyframes annFabFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.ann-fab-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--tan); opacity: 0; pointer-events: none;
  animation: annFabRing 3.2s ease-out infinite;
}
.ann-fab-ring.r2 { animation-delay: 1.6s; }
@keyframes annFabRing { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(1.75); opacity: 0; } }

.ann-fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(10px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  background: var(--black); color: var(--white);
  font-family: var(--brand-font); font-size: 13px; font-weight: 700; letter-spacing: .3px;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: opacity .25s ease, transform .25s ease;
}
.ann-fab:hover .ann-fab-label,
.ann-fab:focus-visible .ann-fab-label,
.ann-fab.hint .ann-fab-label { opacity: 1; transform: translate(0, -50%); }

/* =========================================================
   SHARED MOBILE (nav + footer + popups)
   ========================================================= */
@media (max-width: 720px) {
  .navbar, .navbar.scrolled { flex-wrap: wrap; padding: 10px 16px; }
  .logo-img, .navbar.scrolled .logo-img { max-height: 44px; }
  .nav-center { order: 1; flex: 1; justify-content: flex-start; }
  .nav-toggle { display: flex; order: 2; }
  .nav-left, .nav-right { display: none; flex: unset; width: 100%; }
  .navbar.nav-open .nav-left {
    display: flex; order: 3; flex-direction: column; align-items: stretch; gap: 0;
    margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.15);
  }
  .navbar.nav-open .nav-left a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .navbar.nav-open .nav-right { display: flex; order: 4; justify-content: flex-start; padding: 16px 4px 8px; }
  .navbar.nav-open .nav-left a.has-new::after { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; }
  .foot-wrap { grid-template-columns: 1fr 1fr; gap: 30px; padding: 46px 22px 30px; }
  .wv-overlay { padding: 16px 10px; }
  .wv-modal-body { max-height: 66vh; }
  .ann-sky { height: 130px; }
  .ann-body { padding: 4px 22px 24px; }
  .ann-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .ann-fab-icon { width: 26px; height: 26px; }
}
@media (max-width: 460px) {
  .foot-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .ann-actions { grid-template-columns: 1fr; }
}

/* =========================================================
   REDUCED MOTION — respect users who disable animations
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
