:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --text: #e7e9ee;
  --muted: #b9beca;
  --accent: #e74f3a;
  --border: #1e222b;
  --maxw: 1120px;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border-radius: 6px }
a { color: var(--accent); text-decoration: none }
a:hover, a:focus { text-decoration: underline }

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px }

/* Header */
.site-header { background: linear-gradient(180deg, #0b0c0f 0%, #0c0e12 100%); border-bottom: 1px solid #1b1e26; position: sticky; top: 0; z-index: 50 }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; letter-spacing: 0.2px; color: var(--text) }
.brand-logo { width: 36px; height: 36px; border-radius: 4px; background: #1b1e26; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent) }
.brand-text { color: var(--text) }

/* nav[aria-label="Primary"] { display: flex; gap: 18px; flex-wrap: wrap } */

nav a { color: var(--text); padding: 8px 10px; border-radius: 6px }
nav a.active { background: #191c23 }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 20% 0%, #161922 0%, #0b0c0f 50%); padding: 48px 0 28px }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px }
.hero h1 { margin: 0 0 10px 0; font-size: 2rem; letter-spacing: 0.3px }
.lead { margin: 0 0 18px 0; color: var(--muted); font-size: 1.05rem }

/* CTA layout for membership page */
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cta > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Button base style */
.btn {
  display: block; /* changed from inline-block */
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--accent);
  background-color: var(--bg-2);
  color: var(--accent);
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  width: 100%; /* full width by default */
  max-width: 100%;
}

.btn:active { transform: translateY(1px) }
.btn:hover,
.btn:focus {
  background-color: var(--accent);
  color: #fff;
}

/* Primary variant override */
.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background-color: #d74631;
}

/* Outline variant override */
.btn-outline {
  border-color: #2a2f3b;
  color: var(--text);
  background-color: #12141a;
}
.btn-outline:hover {
  background-color: #2a2f3b;
  color: #fff;
}

.hero-points { list-style: none; padding: 0; margin: 16px 0 0 0 }
.hero-points li { margin-bottom: 6px }

/* Cards, grids */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.card { background: #12141a; border: 1px solid var(--border); padding: 12px; border-radius: 8px }

/* Sections */
section { padding: 28px 0 }
h2 { margin: 0 0 12px 0; font-size: 1.4rem }

/* Location */
.meta-card { background: #12141a; border: 1px solid var(--border); padding: 12px; border-radius: 8px }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }

/* Footer */
.site-footer { border-top: 1px solid #1b1e26; background: #0a0b0e; color: var(--muted); padding: 28px 0 }
.footer-flex { display: grid; grid-template-columns: 2fr 1fr; gap: 20px }
.small { font-size: .9rem }

/* Forms */
label { display: block; margin-bottom: 10px }
label span { display: block; margin-bottom: 6px; color: var(--muted) }
input, textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a2f3b; background: #0e1015; color: var(--text) }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px }
.contact-form button { margin-top: 10px }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr }
  .gallery { grid-template-columns: 1fr 1fr }
  .card-grid { grid-template-columns: 1fr 1fr }
  .footer-flex { grid-template-columns: 1fr }
}
@media (max-width: 600px) {
  .splash-overlay h1 {
    font-size: 1.6rem;
  }

  .splash-overlay p {
    font-size: 1rem;
  }

  .splash-buttons button {
    width: 100%;
    margin-bottom: 12px;
  }
}

  .btn {
    font-size: 18px;
    padding: 14px 20px;
    width: 100vw; /* full screen width */
    margin-left: -20px; /* offset wrap padding */
    margin-right: -20px;
    border-radius: 0; /* optional: edge-to-edge look */
  }
}

/* Default desktop nav */
.nav-links {
  display: flex;
  gap: 1rem;
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #0b0c0f;
    position: absolute;
    top: 60px; left: 0; right: 0;
    padding: 1rem;
    border-top: 1px solid var(--border);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background: #191c23;
  }
}

/* Desktop-only: ensure nav displays regardless of .active */
@media (min-width: 769px) {
  nav[aria-label="Primary"] {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }
}

/* Splash screen */
.splash-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: center;
  padding: 2rem;
  color: var(--text);
}

.splash-overlay h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.splash-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.splash-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.splash-buttons button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.splash-buttons .yes-btn {
  background-color: var(--accent);
  color: #fff;
}

.splash-buttons .yes-btn:hover {
  background-color: #d74631;
}

.splash-buttons .no-btn {
  background-color: #2a2f3b;
  color: var(--text);
}

.splash-buttons .no-btn:hover {
  background-color: #444;
}