/* ==========================================================
   Darklight Chess Academy — Stylesheet
   Brand: dark navy + gold (#ffcc00) + purple (#8424d9)
   ========================================================== */
:root {
  --dark: #0d0d1f;
  --dark-2: #14142e;
  --gold: #ffcc00;
  --gold-dark: #e0b400;
  --purple: #8424d9;
  --purple-dark: #6a1cb0;
  --ink: #1c1c2e;
  --muted: #5c5c72;
  --soft: #f6f7fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 13, 31, 0.12);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container.narrow { width: min(860px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 0.9rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: linear-gradient(180deg, rgba(13, 13, 31, 0.85), rgba(13, 13, 31, 0.35) 80%, transparent);
}
.navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  padding: 0.55rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--white); padding: 2px; }
.brand em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: #e8e8f2; font-size: 0.92rem; font-weight: 500; position: relative; white-space: nowrap; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { width: 100%; }
.nav-links a.active:not(.btn) { color: var(--gold); }
.nav-cta { padding: 0.55rem 1.3rem; font-size: 0.88rem; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 13, 31, 0.95) 20%, rgba(13, 13, 31, 0.75) 55%, rgba(132, 36, 217, 0.35));
}
.hero-content { position: relative; z-index: 2; padding: 8rem 0 5rem; max-width: 780px; }
.hero-kicker { color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: 1px;
  margin-bottom: 1.3rem;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub { font-size: 1.1rem; color: #d9d9ea; max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-badges span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.85rem;
}

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--purple) 0%, #5b18a8 55%, var(--dark-2)); padding: 3.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { color: var(--white); }
.stat-num, .stat-plus { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; color: var(--gold); }
.stat p { font-size: 1rem; opacity: 0.92; margin-top: 0.2rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.bg-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.eyebrow { color: var(--purple); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.6rem; }
.eyebrow.light { color: var(--gold); }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.2; }
.section-sub { color: var(--muted); margin-top: 0.9rem; }
.light-title { color: var(--white); }
.light-sub { color: #b9b9d0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.about-media { position: relative; }
.about-media > img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.about-card {
  position: absolute; right: -1.4rem; bottom: -2rem;
  background: var(--dark); color: #e8e8f2;
  border-left: 4px solid var(--gold);
  padding: 1.3rem 1.5rem; border-radius: 12px;
  max-width: 340px; box-shadow: var(--shadow);
  font-size: 0.88rem; line-height: 1.6;
}
.about-card span { display: block; margin-top: 0.6rem; color: var(--gold); font-weight: 600; }
.about-text p { margin-bottom: 1.1rem; color: #3a3a4e; }
.check-list { margin: 1.2rem 0 1.8rem; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: 0.65rem; color: #3a3a4e; }
.check-list li::before { content: "♞"; position: absolute; left: 0; color: var(--purple); font-size: 1.1rem; }

/* ---------- Feature / course cards ---------- */
.cards-grid { display: grid; gap: 1.6rem; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.6rem; box-shadow: 0 4px 18px rgba(13, 13, 31, 0.07);
  border-top: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-top-color: var(--gold); }
.feature-icon { font-size: 2.3rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

.course-card {
  background: linear-gradient(to bottom right, #ffffff, #e3f2fd);
  border-radius: var(--radius); padding: 2.2rem 1.6rem;
  box-shadow: 0 4px 18px rgba(13, 13, 31, 0.08);
  text-align: center; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow); }
.course-icon { font-size: 2.8rem; color: var(--purple); line-height: 1; margin-bottom: 0.9rem; }
.course-card h3 { text-transform: uppercase; letter-spacing: 1px; font-size: 1.15rem; margin-bottom: 0.6rem; }
.course-card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1rem; }
.course-card ul { text-align: left; margin-bottom: 1.4rem; flex-grow: 1; }
.course-card li { font-size: 0.88rem; color: #3a3a4e; padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; }
.course-card li::before { content: "➤"; position: absolute; left: 0; color: var(--purple); font-size: 0.75rem; top: 3px; }

.sibling-note {
  margin-top: 2.8rem; text-align: center;
  background: linear-gradient(120deg, var(--dark), var(--dark-2));
  color: #e8e8f2; border-radius: var(--radius); padding: 2.4rem 2rem;
}
.sibling-note h3 { color: var(--gold); margin-bottom: 0.7rem; font-size: 1.3rem; }
.sibling-note p { max-width: 800px; margin: 0 auto 1.4rem; font-size: 0.95rem; color: #c9c9dd; }

/* ---------- Coaches ---------- */
.bg-dark-section { background: radial-gradient(circle at 20% 10%, #1c1440 0%, var(--dark) 55%); }
.coach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.coach-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.coach-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.coach-card.featured { grid-column: span 1; }
.coach-photo { aspect-ratio: 1/1; overflow: hidden; background: #23233f; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.coach-card:hover .coach-photo img { transform: scale(1.06); }
.coach-photo.monogram { display: flex; align-items: center; justify-content: center; }
.coach-photo.monogram span { font-family: var(--font-head); font-size: 6rem; color: var(--gold); opacity: 0.85; }
.coach-info { padding: 1.5rem 1.4rem 1.7rem; color: #d5d5e8; }
.coach-info h3 { color: var(--white); font-size: 1.2rem; letter-spacing: 0.5px; }
.coach-role { color: var(--gold); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 2px; font-weight: 600; margin: 0.25rem 0 0.8rem; }
.coach-info blockquote { font-style: italic; font-size: 0.88rem; color: #b9b9d0; border-left: 3px solid var(--purple); padding-left: 0.8rem; margin-bottom: 0.8rem; }
.coach-bio { font-size: 0.85rem; color: #a5a5c0; }
.coach-achievement { font-size: 0.83rem; color: var(--gold); margin-top: 0.5rem; }

/* ---------- Gallery tabs ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-bottom: 2.2rem; }
.g-tab {
  border: 2px solid #dcdcea; background: var(--white); color: var(--muted);
  padding: 0.55rem 1.4rem; border-radius: 999px; font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all 0.25s ease;
}
.g-tab:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.g-tab.active { background: var(--purple); border-color: var(--purple); color: var(--white); box-shadow: 0 6px 16px rgba(132, 36, 217, 0.35); }
.gallery-grid img.g-hidden { display: none; }

/* ---------- Gallery (masonry — images keep their natural aspect ratio, no cropping) ---------- */
.gallery-grid { columns: 4 250px; column-gap: 0.9rem; }
.gallery-grid img {
  width: 100%; height: auto; display: block;
  margin-bottom: 0.9rem; break-inside: avoid;
  border-radius: 12px; cursor: pointer;
  background: #e9e9f2;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.gallery-grid img:hover { transform: scale(1.025); box-shadow: var(--shadow); filter: brightness(1.06); }

/* ---------- Testimonials slider ---------- */
.slider { max-width: 820px; margin: 0 auto; overflow: hidden; }
.slides { display: flex; transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.t-card {
  min-width: 100%; text-align: center;
  background: var(--white); border-radius: var(--radius);
  padding: 2.6rem 2.4rem 2.2rem; box-shadow: 0 4px 18px rgba(13, 13, 31, 0.07);
}
.t-quote { font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 0.8rem; }
.t-card blockquote { font-size: 1.12rem; font-style: italic; color: #3a3a4e; max-width: 640px; margin: 0 auto 1.2rem; }
.t-card figcaption { font-weight: 600; color: var(--purple); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.6rem; }
.slider-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--purple);
  background: transparent; color: var(--purple); font-size: 1.4rem; cursor: pointer;
  transition: 0.25s; line-height: 1;
}
.slider-nav button:hover { background: var(--purple); color: var(--white); }
.dots { display: flex; gap: 0.5rem; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #c9c9dd; cursor: pointer; padding: 0; transition: 0.25s; }
.dots button.active { background: var(--purple); transform: scale(1.25); }

/* ---------- Blog ---------- */
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(13, 13, 31, 0.07);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { color: var(--purple); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; }
.blog-body h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 0.6rem; }
.blog-body > p { color: var(--muted); font-size: 0.9rem; flex-grow: 1; }
.btn-link {
  background: none; border: 0; color: var(--purple); font-weight: 700;
  font-family: var(--font-body); font-size: 0.92rem; cursor: pointer;
  padding: 0; margin-top: 1rem; text-align: left; transition: color 0.25s;
}
.btn-link:hover { color: var(--gold-dark); }

/* ---------- Blog article modal ---------- */
.article-modal {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(10, 10, 22, 0.8); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 1.2rem;
}
.article-modal.open { display: flex; }
.article-dialog {
  position: relative; background: var(--white); border-radius: var(--radius);
  max-width: 760px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 2.8rem 2.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border-top: 6px solid var(--gold);
}
.article-close {
  position: sticky; top: 0; float: right; margin: -1.6rem -1.4rem 0 0;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--dark); color: var(--white); font-size: 1rem; cursor: pointer;
  transition: 0.25s; z-index: 2;
}
.article-close:hover { background: var(--purple); }
.article-content h2 { font-family: var(--font-head); font-size: 1.8rem; line-height: 1.25; margin-bottom: 0.5rem; }
.article-content h4 { margin: 1.4rem 0 0.4rem; font-size: 1.05rem; color: var(--ink); }
.article-content p { color: #3a3a4e; font-size: 0.96rem; margin-bottom: 0.8rem; }
.article-content a { color: var(--purple); font-weight: 600; text-decoration: underline; }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d5d5e8; transition: all 0.25s ease;
}
.socials a svg { width: 19px; height: 19px; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: translateY(-3px); }
.socials.on-light { margin-top: 0.5rem; }
.socials.on-light a { background: var(--soft); border-color: #dcdcea; color: var(--purple); }
.socials.on-light a:hover { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* ---------- Enroll steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.step {
  text-align: center; padding: 2.2rem 1.4rem;
  border-radius: var(--radius); background: var(--white);
  box-shadow: 0 4px 18px rgba(13, 13, 31, 0.07);
  position: relative; transition: transform 0.3s ease;
}
.step:hover { transform: translateY(-6px); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffb700);
  color: var(--dark); font-weight: 800; font-size: 1.5rem; font-family: var(--font-head);
  margin-bottom: 1rem; box-shadow: 0 6px 16px rgba(255, 204, 0, 0.4);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.accordion details {
  background: var(--white); border-radius: 12px; margin-bottom: 0.9rem;
  box-shadow: 0 3px 14px rgba(13, 13, 31, 0.06);
  overflow: hidden; border: 1px solid transparent; transition: border-color 0.3s;
}
.accordion details[open] { border-color: var(--purple); }
.accordion summary {
  cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-weight: 600; list-style: none; position: relative; font-size: 0.98rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--purple); transition: transform 0.3s;
}
.accordion details[open] summary::after { content: "−"; }
.accordion details p { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-illustration { max-width: 320px; margin-bottom: 1.6rem; }
.contact-info ul li { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.ci-icon {
  flex: 0 0 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft); border-radius: 12px; font-size: 1.3rem;
}
.contact-info a { color: var(--purple); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

.enquiry-form {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.4rem 2.2rem;
  border-top: 5px solid var(--gold);
}
.enquiry-form h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: #3a3a4e; }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.75rem 0.95rem; border: 1.5px solid #dcdcea; border-radius: 10px;
  background: #fbfbfe; transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(132, 36, 217, 0.14);
}
.form-group.invalid input, .form-group.invalid select { border-color: #e03131; background: #fff5f5; }
.err { color: #e03131; font-size: 0.76rem; min-height: 1em; margin-top: 0.25rem; }
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.9rem; }
.form-status { margin-top: 1rem; border-radius: 10px; font-size: 0.92rem; text-align: center; }
.form-status.ok { background: #e6f9ee; color: #187741; padding: 1rem; border: 1px solid #a7e3c1; }
.form-status.fail { background: #fff0f0; color: #b02525; padding: 1rem; border: 1px solid #f1b5b5; }
#submitBtn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Map ---------- */
.maps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-label {
  background: var(--dark); color: var(--white); font-weight: 600;
  font-size: 0.95rem; padding: 0.8rem 1.2rem; margin: 0;
}
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-directions { position: absolute; bottom: 18px; left: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
@media (max-width: 820px) { .maps-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .map-wrap iframe { height: 280px; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b9b9d0; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.f-brand img { width: 74px; margin-bottom: 1rem; border-radius: 50%; background: var(--white); padding: 3px; }
.f-brand p { font-size: 0.88rem; margin-bottom: 0.8rem; }
.f-tag { color: var(--gold); font-weight: 600; }
.f-col h4 { color: var(--white); margin-bottom: 1.1rem; font-size: 1rem; letter-spacing: 0.5px; }
.f-col a, .f-col p { display: block; font-size: 0.88rem; margin-bottom: 0.55rem; transition: color 0.25s; }
.f-col a:hover { color: var(--gold); }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.2rem 0; text-align: center; font-size: 0.82rem; }

/* ---------- Floating buttons ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.to-top {
  position: fixed; right: 26px; bottom: 94px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--purple); color: var(--white); font-size: 1.3rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.25s;
  box-shadow: 0 8px 22px rgba(132, 36, 217, 0.4);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Chessboard page-transition loader ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 2000;
  background: radial-gradient(circle at 50% 40%, #1c1440 0%, var(--dark) 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.page-loader.active { opacity: 1; pointer-events: auto; }
.chess-loader {
  display: grid;
  grid-template-columns: repeat(8, 24px);
  grid-auto-rows: 24px;
  border: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.chess-loader .sq { animation: boardWave 1.15s ease-in-out infinite; }
.chess-loader .sq.light { background: #f0d9b5; }
.chess-loader .sq.dark { background: #b58863; }
@keyframes boardWave {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.18; transform: scale(0.82); }
}
.loader-label { color: #e8e8f2; font-size: 1rem; letter-spacing: 1px; display: flex; align-items: center; gap: 0.5rem; }
.loader-knight { color: var(--gold); font-size: 1.6rem; display: inline-block; animation: knightHop 0.9s ease-in-out infinite; }
@keyframes knightHop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .chess-loader .sq, .loader-knight { animation: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 10, 22, 0.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.1); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; transition: 0.25s;
}
.lightbox button:hover { background: var(--gold); color: var(--dark); }
.lb-close { top: 24px; right: 28px; }
.lb-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 28px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid.four { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.three { grid-template-columns: repeat(2, 1fr); }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    background: var(--dark); flex-direction: column; justify-content: center;
    gap: 1.8rem; transform: translateX(100%); transition: transform 0.35s ease;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: block; z-index: 1100; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-card { position: static; margin: 1.2rem auto 0; max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid.four, .cards-grid.three, .coach-grid, .steps { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 140px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 7rem; }
  .brand span { font-size: 0.9rem; }
  .section { padding: 3.5rem 0; }
  .enquiry-form { padding: 1.8rem 1.3rem; }
  /* 16px inputs stop iOS Safari from zooming in when a field gets focus */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .about-media > img { aspect-ratio: auto; }
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .to-top { right: 18px; bottom: 82px; }
}
