:root {
  --sunny: #FFC93C;
  --sky: #3FA9F5;
  --grass: #6BCB77;
  --coral: #FF6B6B;
  --purple: #9B5DE5;
  --cream: #FFF8EC;
  --ink: #2E2A26;
  --white: #FFFFFF;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Baloo 2", cursive;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--sunny);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--coral);
}
.brand:hover { text-decoration: none; }
.brand-icon {
  height: 63px;
  width: 63px;
  max-height: 63px;
  max-width: 63px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-title {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
}
.main-nav a:hover {
  background: var(--sunny);
  text-decoration: none;
}

/* Mobile hamburger toggle (CSS-only, no JS needed) */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--sky), var(--purple));
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin: 0 0 12px;
}
.hero-sub {
  font-size: 1.3rem;
  margin: 0 0 28px;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  filter: brightness(1.05);
}

/* Generic content sections */
.content-section { padding: 50px 0; }
.page-header {
  background: var(--sunny);
  padding: 40px 0 30px;
  text-align: center;
}
.page-header h1 { margin: 0 0 8px; color: var(--ink); }
.prose { max-width: 700px; margin: 0 auto; }

/* Home highlight cards */
.highlight-grid { padding-bottom: 60px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}
.card-emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; color: var(--purple); }
.card p { margin: 0; }

/* Events */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  align-items: center;
}
.event-date {
  background: var(--grass);
  color: var(--white);
  font-weight: 800;
  border-radius: 12px;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 0.95rem;
}
.event-body h3 { margin: 0 0 6px; }
.event-body p { margin: 0; }
.event-date-single { font-weight: 700; color: var(--grass); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: #8a8078;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}
.contact-card h3 {
  margin-top: 0;
  color: var(--purple);
}
.contact-card p { margin: 0 0 10px; }
.contact-card .btn { margin-top: 12px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  min-height: 320px;
}

/* Hero banner image */
.hero-banner {
  padding: 0;
  background: none;
  position: relative;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-cta-wrap {
  text-align: center;
  padding: 26px 24px 34px;
  background: linear-gradient(180deg, #2B3A67, #1f2a4d);
}
.hero-cta-wrap .hero-sub {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 20px;
}

/* Section title used above card grids */
.section-title {
  text-align: center;
  color: var(--purple);
  margin: 0 0 28px;
}

/* Clan preview strip (homepage) */
.clan-preview { padding: 10px 0 60px; }
.clan-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.clan-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  text-align: center;
}
.clan-preview-item:hover { text-decoration: none; transform: translateY(-3px); }
.clan-preview-item img {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}
.clan-preview-name {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
}
.clan-preview-grades {
  font-size: 0.9rem;
  color: #8a8078;
}

/* Weekly meeting flow (About page) */
.flow-section { padding-top: 10px; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.flow-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px 20px;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}
.flow-number {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sunny);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-emoji { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.flow-card h3 { margin: 0 0 4px; color: var(--purple); font-size: 1.1rem; }
.flow-cadence {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.flow-card p { margin: 0; font-size: 0.95rem; }

/* Clans list page */
.clans-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.clan-block {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  scroll-margin-top: 90px;
}
.clan-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.clan-block-body {
  display: flex;
  gap: 24px;
  padding: 24px 28px;
  align-items: center;
}
.clan-crest-img {
  width: 130px;
  height: auto;
  flex-shrink: 0;
}
.clan-block-text h3 {
  margin: 0 0 8px;
  color: var(--purple);
}
.clan-block-text p { margin: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer a { color: var(--sunny); }

/* Responsive */
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed { min-height: 260px; }
  .clan-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .clan-block-body { flex-direction: column; text-align: center; }
  .clan-crest-img { width: 110px; }
  .flow-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

  /* Header / hamburger nav */
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle-label { display: flex; }
  .main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-toggle-checkbox:checked ~ .main-nav {
    max-height: 400px;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 4px;
  }
  .main-nav a {
    padding: 12px 16px;
    text-align: center;
  }

  .hero h1 { font-size: 2.2rem; }
  .event-card { flex-direction: column; align-items: flex-start; }
  .brand-icon { height: 50px; width: 50px; max-height: 50px; max-width: 50px; }
  .brand-title { height: 24px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .brand-icon { height: 38px; width: 38px; max-height: 38px; max-width: 38px; }
  .brand-title { height: 18px; }
  .hero-cta-wrap { padding: 20px 16px 26px; }
  .hero-cta-wrap .hero-sub { font-size: 1rem; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
  .card, .flow-card, .contact-card, .clan-preview-item { padding: 20px 14px; }
  .clan-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .clan-preview-item img { width: 70px; }
  .flow-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .event-card { padding: 16px 18px; }
  .page-header { padding: 28px 0 22px; }
  .content-section { padding: 34px 0; }
}
