/* Public website theme. Mobile-first and responsive, built on the shared design
   tokens so it matches the member app and the club brand. Modern and clean: a
   red brand bar, a color-icon-and-text pool status strip, readable content, and
   a collapsible menu on small screens. */

* { box-sizing: border-box; }

body.site {
  margin: 0;
  font-family: var(--hc-font);
  color: var(--hc-ink);
  background: var(--hc-bg);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--hc-ink);
  color: var(--hc-on-dark);
  padding: 8px 12px;
  border-radius: var(--hc-radius-sm);
}
.skip-link:focus { left: 8px; top: 8px; z-index: 10; }

/* Header and navigation */
.site-header { background: var(--hc-red); color: var(--hc-red-ink); }
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 16px;
}
.site-brand {
  color: var(--hc-red-ink);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  line-height: 1.2;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--hc-red-ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--hc-radius-sm);
  min-height: var(--hc-touch);
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle-box { position: relative; width: 18px; height: 2px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; content: "";
}
.nav-toggle-bar { top: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-nav { display: none; background: var(--hc-red); }
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 8px 10px;
  max-width: 1040px;
  margin: 0 auto;
}
.site-nav a {
  display: block;
  color: var(--hc-red-ink);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; }
.nav-cta { color: var(--hc-red-ink); }

/* Pool status strip: color plus icon plus words. */
.site-status {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  font-weight: 700;
}
.site-status-icon { font-size: 1.2rem; }
.site-status-detail { font-weight: 400; color: var(--hc-muted); }
.site-status.is-open { background: var(--hc-open); color: var(--hc-open-ink); }
.site-status.is-open .site-status-detail { color: rgba(255, 255, 255, 0.85); }
.site-status.is-closed { background: var(--hc-closed); color: var(--hc-closed-ink); }
.site-status.is-closed .site-status-detail { color: rgba(255, 255, 255, 0.85); }
.site-status.is-clear { background: var(--hc-clear); color: var(--hc-clear-ink); }
.site-status.is-event_closed { background: var(--hc-water); color: var(--hc-water-ink); }
.site-status.is-event_closed .site-status-detail { color: rgba(255, 255, 255, 0.85); }
.site-status.is-degraded { background: var(--hc-degraded-a); color: var(--hc-degraded-ink); }
.site-status.is-unknown { background: var(--hc-unknown); color: var(--hc-unknown-ink); }

/* Content */
.site-main { width: min(100%, 1040px); margin: 0 auto; padding: 8px 16px 40px; }

.hero {
  background: var(--hc-red);
  color: var(--hc-red-ink);
  border-radius: var(--hc-radius);
  padding: 34px 26px;
  margin: 18px 0;
}
.hero-inner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.7rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.hero-inner p { font-size: 1.05rem; max-width: 60ch; }
.hero a { color: var(--hc-red-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* On the red band the solid CTA inverts to white and the ghost goes white-outline,
   so both stay visible against the brand color. */
.hero .btn-cta { background: var(--hc-surface); color: var(--hc-red); border-color: var(--hc-surface); }
.hero .btn-cta.ghost { background: transparent; color: var(--hc-red-ink); border-color: var(--hc-red-ink); }
/* The default focus ring color disappears against the red band; use the band's
   ink color so keyboard focus stays plainly visible. */
.hero .btn-cta:focus-visible { outline-color: var(--hc-red-ink); }

.btn-cta {
  display: inline-block;
  background: var(--hc-red);
  color: var(--hc-red-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--hc-radius-sm);
  min-height: var(--hc-touch);
  border: 2px solid var(--hc-red);
  cursor: pointer;
}
.btn-cta.ghost { background: transparent; color: var(--hc-red); }
.btn-cta:focus-visible { outline: 3px solid var(--hc-water); outline-offset: 2px; }

.page { background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius); padding: 22px; margin: 18px 0; }
.page-home .rich > :first-child { margin-top: 0; }
.page h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--hc-red);
}

/* Rich content from the editor */
.rich h2 {
  font-size: 1.25rem;
  margin: 22px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.rich h2::after {
  content: "";
  display: block;
  width: 44px;
  border-bottom: 3px solid var(--hc-red);
  margin-top: 4px;
}
.rich h3 { font-size: 1.1rem; font-weight: 800; margin: 16px 0 4px; }
.rich p { margin: 10px 0; }
.rich ul, .rich ol { margin: 10px 0; padding-left: 24px; }
.rich a { color: var(--hc-water); }

/* Contact form */
.contact-form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact-form .field { display: flex; flex-direction: column; gap: 4px; }
.contact-form label { font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-sm);
  padding: 10px;
  font: inherit;
  width: 100%;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--hc-water); outline-offset: 1px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-msg { margin: 0; min-height: 1.2em; font-weight: 700; }
.contact-msg.is-error { color: var(--hc-closed); }
.contact-msg.is-success { color: var(--hc-open); }
.contact-msg.is-info { color: var(--hc-muted); font-weight: 400; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hc-line);
  background: var(--hc-surface);
  padding: 20px 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
/* Public event calendar: a date block beside the event details, echoing the
   current site's event cards. */
.events-heading { margin-top: 26px; }
.events-subscribe { font-size: 0.95rem; color: var(--hc-muted); }
.events-subscribe a { color: var(--hc-water); font-weight: 600; }
.event-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.event-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-sm);
  background: var(--hc-surface);
  padding: 14px;
}
.event-date {
  flex: none;
  width: 56px;
  text-align: center;
  border-radius: var(--hc-radius-sm);
  background: var(--hc-red);
  color: var(--hc-red-ink);
  padding: 6px 0 8px;
}
.event-month { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.event-day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.event-info { display: flex; flex-direction: column; gap: 2px; }
.event-title { font-weight: 700; font-size: 1.05rem; }
.event-when { color: var(--hc-muted); font-size: 0.9rem; }
.event-desc { margin-top: 4px; }

.doc-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.doc-item {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-sm);
  background: var(--hc-surface);
  padding: 12px 14px;
}
.doc-item a { color: var(--hc-water); font-weight: 700; text-decoration: none; }
.doc-item a:hover { text-decoration: underline; }
.doc-file { display: block; font-size: 0.85rem; margin-top: 2px; }

.site-footer-name { font-weight: 700; margin: 0 0 6px; }
.site-social { margin: 0 0 6px; font-size: 0.95rem; }
.site-social a { color: var(--hc-water); font-weight: 600; }
.site-footer-note { font-size: 0.85rem; color: var(--hc-muted); margin: 0 0 6px; }
.site-legal { font-size: 0.9rem; margin: 0; }
.site-legal a { color: var(--hc-water); }

/* Desktop: inline nav, no toggle. */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; background: transparent; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 8px; }
  .site-nav a { border-top: none; padding: 8px 12px; border-radius: var(--hc-radius-sm); }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }
  .nav-cta { background: rgba(255, 255, 255, 0.18); }
}
