/* ===== CSS Custom Properties ===== */
:root {
  --color-primary: #2bb673;
  --color-primary-dark: #239e62;
  --color-primary-light: #e8f8f0;
  --color-accent-yellow: #f5c518;
  --color-accent-orange: #f28c28;
  --color-footer-bg: #1a3a2a;
  --color-text: #2d2d2d;
  --color-white: #ffffff;
  --color-card-blue: #3b82f6;
  --color-card-purple: #8b5cf6;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Base ===== */
body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 1.75rem; line-height: 1.3; }
h3 { font-size: 1.25rem; line-height: 1.4; }

img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.main-nav a[aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger span + span {
  margin-top: 5px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a9e5a 100%);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-yellow {
  background: var(--color-accent-yellow);
  color: var(--color-text);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

/* ===== Card Grid ===== */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--color-primary);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.card-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.3rem;
}

.card .card-age {
  font-size: 0.9rem;
  color: #666;
}

/* Card color accents */
.card[data-color="green"]  { border-top-color: var(--color-primary); }
.card[data-color="yellow"] { border-top-color: var(--color-accent-yellow); }
.card[data-color="orange"] { border-top-color: var(--color-accent-orange); }
.card[data-color="blue"]   { border-top-color: var(--color-card-blue); }
.card[data-color="purple"] { border-top-color: var(--color-card-purple); }

/* ===== Page Header ===== */
.page-header {
  background: var(--color-primary-light);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
}

.page-header .page-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Clubdag accent bar */
.page-header[data-color="green"]  { border-bottom: 4px solid var(--color-primary); }
.page-header[data-color="yellow"] { border-bottom: 4px solid var(--color-accent-yellow); }
.page-header[data-color="orange"] { border-bottom: 4px solid var(--color-accent-orange); }
.page-header[data-color="blue"]   { border-bottom: 4px solid var(--color-card-blue); }
.page-header[data-color="purple"] { border-bottom: 4px solid var(--color-card-purple); }

/* ===== Content ===== */
.content-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-wrap h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-wrap p {
  margin-bottom: 1rem;
}

.content-wrap ul,
.content-wrap ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-wrap li {
  margin-bottom: 0.4rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 0;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-accent-yellow);
}

.footer-bar {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
  }

  /* Hamburger animation when open */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
