:root {
  --bg: var(--theme-bg);
  --text: var(--theme-ink);
  --muted: var(--theme-muted);
  --surface: var(--theme-surface);
  --line: var(--theme-border);
  --accent: var(--theme-blue);
  --accent-dark: var(--theme-blue-deep);
  --hero-image-size: clamp(170px, 30vw, 320px);
  --hero-image-position: right 18px top 14px;
  --hero-text-offset: clamp(180px, 24vw, 300px);
  --hero-text-lift: clamp(52px, 8vw, 86px);
  --shared-footer-margin-top: 2rem;
  --shared-footer-padding: 24px 20px 40px;
  --shared-footer-color: var(--muted);
  --shared-footer-link-color: var(--muted);
  --shared-footer-link-weight: 600;
  --shared-footer-link-margin-left: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--theme-font-body);
  background: radial-gradient(circle at top, #eaf4ff 0%, var(--bg) 45%, #eef2f7 100%);
  color: var(--text);
}

a {
  color: var(--accent-dark);
}

.container {
  width: min(100%, var(--theme-layout-width));
  margin: 0 auto;
  padding: 0 var(--theme-layout-gutter);
}

.site-hero {
  background: linear-gradient(135deg, #1f5ea8, #2f7fcb);
  border-top: 3px solid #8ccaff;
  color: #fff;
  padding: 28px 0 34px;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/generic/hero-generic.png") no-repeat var(--hero-image-position);
  background-size: var(--hero-image-size);
  opacity: 0.13;
  pointer-events: none;
}

.site-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -88px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.site-hero-compact {
  padding-bottom: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-logo-link {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
}

.hero-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(219, 240, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 30px rgba(1, 40, 78, 0.34);
}

.hero-logo {
  width: clamp(130px, 24vw, 250px);
  height: auto;
  margin-bottom: 0;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
  padding-top: 10px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-inner {
  width: min(100%, var(--theme-layout-width));
  margin: 0 auto;
  padding: 0 var(--theme-layout-gutter);
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(20, 66, 118, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.hero-title {
  margin: 0.45rem 0 0.6rem;
  line-height: 1.15;
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  color: #fff;
  font-family: var(--theme-font-display);
}

.hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
}

.btn-primary {
  background: #e32636;
  color: #fff;
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.page-main {
  padding-top: 1.4rem;
}

.section {
  margin-top: 1.6rem;
}

.section h2,
.section h1 {
  margin: 0 0 0.55rem;
}

.section-intro {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.95rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.status-banner {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  font-weight: 600;
}

.status-success {
  border-color: #8fd6bc;
  background: #e8f8f1;
  color: #1f5b4c;
}

.status-warning {
  border-color: #efcf8b;
  background: #fff6e3;
  color: #735414;
}

.status-error {
  border-color: #e6a6a6;
  background: #fdeeee;
  color: #7d2929;
}

.swimmer-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.6rem;
}

#swimmers {
  scroll-margin-top: 12px;
}

.swimmer-list a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
}

.access-list {
  margin-top: 0;
}

.access-option-card {
  margin: 0;
  padding: 0;
}

.access-option-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.95rem;
  border-radius: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  font: inherit;
}

.access-option-title {
  font-weight: 700;
  color: var(--text);
}

.access-option-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.swimmer-empty {
  list-style: none;
  color: var(--muted);
  font-style: italic;
}

.section-links .quick-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.quick-links a,
.card a {
  text-decoration: none;
  display: inline-block;
  border-radius: 0.65rem;
  background: #eaf4ff;
  padding: 0.45rem 0.7rem;
  border: 1px solid #cfe3fb;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.public-filter {
  display: grid;
  gap: 0.75rem;
}

.public-filter label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.public-filter input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.public-filter-actions {
  display: grid;
  gap: 0.55rem;
}

.public-filter .btn {
  border: 0;
  text-align: center;
}

.public-filter .btn-secondary {
  color: var(--accent-dark);
  border: 1px solid #cfe3fb;
  background: #eaf4ff;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.contact-form .contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  background: var(--accent-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-card h2 {
  font-size: 1.05rem;
}

@media (max-width: 719px) {
  .site-nav {
    margin-bottom: 0;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    padding-top: 0;
    gap: 12px;
  }

  .hero-actions {
    gap: 10px;
  }
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swimmer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .public-filter-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
