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

:root {
  --blue:      #1a4b8c;
  --blue-dark: #0f2d57;
  --blue-mid:  #2563b0;
  --wave:      #3b9edd;
  --gold:      #d4952a;
  --silver:    #8a9aaa;
  --bg:        #f7f9fc;
  --bg-alt:    #eef2f8;
  --text:      #1c2535;
  --text-muted:#4a5568;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(26,75,140,.10);
  --font:      system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.logo-svg {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.logo-name {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.logo-sub {
  font-size: .72rem;
  color: #9bb8d8;
  letter-spacing: .04em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
nav a {
  color: #c8d9ee;
  font-size: .88rem;
  font-weight: 500;
  padding: .35rem .65rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav a:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
nav a.nav-cta {
  background: var(--wave);
  color: var(--white);
  font-weight: 600;
  margin-left: .5rem;
  padding: .38rem .85rem;
}
nav a.nav-cta:hover { background: #2e8bc7; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.25rem 1.25rem;
    gap: .15rem;
    box-shadow: 0 6px 12px rgba(0,0,0,.3);
  }
  nav.open { display: flex; }
  nav a { font-size: 1rem; padding: .6rem .75rem; }
  nav a.nav-cta { margin-left: 0; margin-top: .5rem; text-align: center; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "〜〜〜";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: rgba(255,255,255,.06);
  letter-spacing: .5rem;
  pointer-events: none;
  white-space: nowrap;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #bdd4ee;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .12s, box-shadow .12s, background .15s;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--wave);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(59,158,221,.35);
}
.btn-primary:hover { background: #2e8bc7; }
.btn-outline {
  border: 2px solid rgba(255,255,255,.55);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.section > .container > p {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

/* ── Cards ── */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--wave);
}
.section-alt .card { background: var(--white); }
.card-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .5rem;
}
.card p { font-size: .92rem; color: var(--text-muted); }

/* Photo cards */
.card-has-photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}
.card-has-photo:hover .card-photo { transform: scale(1.04); }
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}
.card-has-photo .card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .5rem;
}
.card-has-photo .card-body p { font-size: .92rem; color: var(--text-muted); }

/* ── Age note ── */
.age-note {
  margin-top: 2rem;
  background: #dbeafe;
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  font-size: .92rem;
  color: var(--blue-dark);
}

/* ── Schedule ── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .schedule-grid { grid-template-columns: 1fr; }
}
.schedule-block-wide {
  margin-bottom: 1.5rem;
}
.schedule-subhead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 2rem 0 .4rem;
}
.schedule-subtext {
  color: var(--text-muted);
  font-size: .93rem;
  margin-bottom: 0;
}
.schedule-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.schedule-block p { color: var(--text-muted); font-size: .93rem; margin-bottom: 1rem; }
.schedule-block .camp-exclusive p { color: var(--white); }
.schedule-block .camp-exclusive .camp-exclusive-detail { color: #cfe0f5; }
.schedule-block .camp-exclusive .camp-costs { color: #cfe0f5; }

.schedule-table {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
  font-size: .93rem;
  margin-bottom: 1rem;
}
.schedule-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid #e2e8f0;
}
.schedule-table td:first-child { font-weight: 600; color: var(--blue-dark); }
.schedule-table td:last-child { color: var(--text-muted); text-align: right; }
.schedule-table tr:last-child td { border-bottom: none; }

.camp-exclusive {
  background: linear-gradient(135deg, #1a4b8c 0%, #2563b0 100%);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.camp-exclusive-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--wave);
  color: var(--white);
  padding: .2rem .6rem;
  border-radius: 99px;
  margin-bottom: .6rem;
}
.camp-exclusive-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.camp-exclusive-detail {
  font-size: .82rem;
  color: #cfe0f5;
  margin-bottom: .75rem;
}
.camp-exclusive-desc {
  font-size: .88rem;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: .85rem;
}
.camp-costs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .83rem;
  color: #cfe0f5;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: .75rem;
}
.camp-costs li strong { color: var(--white); }

.schedule-note {
  font-size: .88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: .5rem;
}

.tournament-region {
  margin-top: 1.25rem;
}
.tournament-region + .tournament-region {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.region-label {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue-dark);
  margin-bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.region-tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--wave);
  background: #dbeafe;
  padding: .15rem .5rem;
  border-radius: 99px;
  text-transform: none;
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.event-list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: .93rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #e2e8f0;
}
.event-list li:last-child { border-bottom: none; }
.event-date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--wave);
  white-space: nowrap;
  min-width: 115px;
}
.event-name { color: var(--text); font-weight: 500; display: flex; flex-direction: column; gap: .1rem; }
.event-loc { font-size: .8rem; font-weight: 400; color: var(--text-muted); }
.event-detail { font-size: .8rem; font-weight: 400; color: var(--text-muted); margin-top: .2rem; }

/* ── Achievements ── */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.achievement {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.achievement-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-dark);
  margin-bottom: .85rem;
}
.achievement-places {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .9rem;
  background: #e2e8f0;
  color: var(--text-muted);
}
.place.gold   { background: #fef3c7; color: #92600a; }
.place.silver { background: #e2e8f0; color: #4a5568; }
.place.bronze { background: #fde8d8; color: #9a3412; }
.achievement-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.5rem;
  max-width: 760px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  color: var(--blue-dark);
  padding: 1.1rem 1.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--wave);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p, .faq-item > ul {
  padding: .85rem 1.25rem 1.1rem;
  font-size: .93rem;
  color: var(--text-muted);
  border-top: 1px solid #eef2f8;
  margin: 0;
  max-width: none;
}
.faq-item > p + ul, .faq-item > ul + p { border-top: none; padding-top: 0; }
.faq-costs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}
.faq-costs li {
  padding-left: 1rem;
  position: relative;
}
.faq-costs li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--wave);
  font-weight: 700;
}

/* ── Contact ── */
.section-contact { background: var(--blue-dark); color: var(--white); }
.section-contact h2 { color: var(--white); }
.section-contact > .container > p { color: #9bb8d8; }

.contact-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  margin-top: 1.5rem;
}
.contact-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #9bb8d8;
  font-size: .95rem;
  transition: color .15s;
  word-break: break-all;
}
.contact-link:hover { color: var(--white); text-decoration: none; }
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Footer ── */
footer {
  background: #080f1a;
  color: #4a6080;
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: .82rem;
  line-height: 1.8;
}
footer a { color: #6a8aaa; }
footer a:hover { color: #9bb8d8; }

/* ── Verse Banner ── */
.verse-banner {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0d2347 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.verse-logo {
  display: block;
  width: clamp(160px, 30vw, 280px);
  margin: 0 auto 1.75rem;
  opacity: .25;
  filter: brightness(0) invert(1);
}
.verse-text {
  margin: 0 auto;
  max-width: 640px;
}
.verse-text p {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .01em;
  color: #dce8f5;
  font-style: italic;
  margin: 0 0 .9rem;
}
.verse-lord {
  font-weight: 700;
  color: var(--white);
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85em;
}
.verse-text cite {
  display: block;
  font-size: .95rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wave);
}

/* ── About group photo ── */
.about-group {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-group img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ── Gallery ── */
.section-gallery { background: var(--bg-alt); }
.gallery-featured {
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-featured img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.gallery-featured figcaption {
  padding: .65rem 1rem;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ── Smooth section reveal (optional, no-JS fallback still works) ── */
@media (prefers-reduced-motion: no-preference) {
  .section { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .section.visible { opacity: 1; transform: none; }
  .hero { opacity: 1; transform: none; }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d1524;
    --bg-alt:    #111d30;
    --text:      #dde6f4;
    --text-muted:#8a9dba;
    --blue-mid:  #5b9bd5;
    --shadow:    0 2px 12px rgba(0,0,0,.5);
  }

  /* Card / surface backgrounds */
  .card,
  .section-alt .card,
  .achievement,
  .faq-item,
  .gallery-featured { background: #1a2b42; }

  /* Headings and labels that use --blue-dark become light in dark mode */
  .section h2,
  .card h3,
  .card-has-photo .card-body h3,
  .schedule-subhead,
  .schedule-block h3,
  .region-label,
  .schedule-table td:first-child,
  .faq-item summary,
  .achievement-title,
  .age-note { color: var(--text); }

  /* Borders */
  .schedule-table td   { border-bottom-color: rgba(255,255,255,.07); }
  .event-list li       { border-bottom-color: rgba(255,255,255,.07); }
  .faq-item > p,
  .faq-item > ul,
  .faq-item > div      { border-top-color: rgba(255,255,255,.07); }

  /* Age note & region tag (light-blue tinted backgrounds) */
  .age-note   { background: rgba(59,158,221,.1); color: var(--text); }
  .region-tag { background: rgba(59,158,221,.1); }

  /* Achievement place badges */
  .place        { background: #253346; color: var(--text-muted); }
  .place.gold   { background: #332200; color: #e0a020; }
  .place.silver { background: #253346; color: #9bb8d8; }
  .place.bronze { background: #301508; color: #e07850; }
}
