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

:root {
  --teal:    #2a9d8f;
  --teal-dk: #1f7a6e;
  --orange:  #e76f51;
  --yellow:  #f4a261;
  --purple:  #6b4f9e;
  --bg:      #fafaf8;
  --text:    #1a1a1a;
  --muted:   #555;
  --radius:  12px;
  --font:    'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(160deg, #fff 60%, #e8f7f5 100%);
  border-bottom: 3px solid var(--teal);
}

.hero-logo {
  width: min(92vw, 420px);
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(0,0,0,.12);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 900;
  color: var(--teal-dk);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* ── Info band ── */
.info-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.4rem 1.25rem;
  background: var(--teal);
  color: #fff;
}

.info-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 600;
}

.info-item .icon { font-size: 1.3rem; }

.info-item a { color: #fff; text-decoration: underline; }

.ics-link {
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .55rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.ics-link:hover { background: rgba(255,255,255,.35); }

/* ── Section headings ── */
section { padding: 2.5rem 0; }

section + section { border-top: 2px dashed #d9ede9; }

h2 {
  font-size: 1.55rem;
  color: var(--teal-dk);
  margin-bottom: 1rem;
  font-weight: 800;
}

/* ── Classes ── */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.class-card {
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.class-card .class-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .85;
  margin-bottom: .25rem;
}

.class-card .class-name { font-size: 1.2rem; }
.class-card .class-sub  { font-size: .85rem; font-weight: 400; margin-top: .2rem; opacity: .9; }

.card-kiga  { background: var(--orange); }
.card-gs    { background: var(--purple); }
.card-adult { background: var(--teal-dk); }

/* ── Registration form ── */
.reg-section { background: #f0f8f7; border-radius: var(--radius); padding: 2rem; }

.reg-section h2 { margin-bottom: .5rem; }

.reg-section p.note {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

form .field { margin-bottom: 1rem; }

form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--teal-dk);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid #c5e0db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
  transition: border-color .2s;
}

form input:focus,
form input[type="tel"]:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

form textarea { resize: vertical; }

.btn-submit {
  display: inline-block;
  padding: .8rem 2.2rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: .5rem;
}

.btn-submit:hover  { background: #d45c38; }
.btn-submit:active { transform: scale(.97); }

/* ── FAQ ── */
.faq-list { list-style: none; }

.faq-list dt {
  font-weight: 700;
  color: var(--teal-dk);
  font-size: 1rem;
  margin-top: 1.2rem;
  padding-left: 1.4rem;
  position: relative;
}

.faq-list dt::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

.faq-list dd {
  margin: .3rem 0 0 1.4rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.faq-list a { color: var(--teal); }

/* ── Blog ── */
.blog-list { list-style: none; }

.blog-list li {
  padding: .9rem 0;
  border-bottom: 1px solid #e0eded;
}

.blog-list li:last-child { border-bottom: none; }

.blog-list .post-date {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

.blog-list a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dk);
  text-decoration: none;
}

.blog-list a:hover { text-decoration: underline; }

.blog-list .post-excerpt {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* ── Post page ── */
.post-header { margin-bottom: 1.5rem; }

.post-header h1 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--teal-dk);
}

.post-header .post-meta { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

.post-content { line-height: 1.75; }
.post-content h2, .post-content h3 { color: var(--teal-dk); margin: 1.5rem 0 .5rem; }
.post-content p  { margin-bottom: 1rem; }
.post-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ── Success modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.25rem;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  animation: pop-in .2s ease;
}

@keyframes pop-in {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.modal-icon { font-size: 3rem; margin-bottom: .75rem; }

.modal-box h2 {
  color: var(--teal-dk);
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: .82rem;
  color: var(--muted);
  border-top: 2px solid #d9ede9;
  margin-top: 1rem;
}

footer a { color: var(--teal); }

/* ── Utility ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
