/* =====================================================================
   Sakthi Cricket Academy - styles.css
   How this file is organised (search for the numbered headings):
   1. Colours and settings      6. Hero
   2. Base / reset              7. Sections and cards
   3. Layout helpers            8. Gallery and photo viewer
   4. Buttons and small parts   9. Forms, contact, footer
   5. Header and navigation    10. Day mode, motion, responsive
   ===================================================================== */

/* ---------- 1. COLOURS AND SETTINGS ----------
   Change a colour here once and it changes everywhere.
   The three brand colours come from the academy logo. */
:root {
  --teal: #0b7a78;
  --red: #c0120f;
  --orange: #f2622e;
  --primary: #d63a16;

  /* Night mode (default) */
  --bg: #031416;
  --bg-alt: #061d1f;
  --surface: #0a2b2d;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f3ee;
  --muted: #b4d0ce;
  --accent: #f2622e;           /* orange used for text and highlights */
  --card: rgba(255, 255, 255, 0.045);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header-h: 68px;
}

/* ---------- 2. BASE / RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(242, 98, 46, 0.5); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2.2rem; height: 2.2rem; color: var(--accent); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Parts of the page that stay dark in both Day and Night mode */
.on-dark {
  --text: #f6f3ee; --muted: #b4d0ce; --line: rgba(255, 255, 255, 0.14);
  --accent: #f2622e; --card: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .muted { margin-top: 14px; }
.muted { color: var(--muted); }
.display, h1, h2 { font-family: var(--font-display); text-transform: uppercase; line-height: 0.98; letter-spacing: 0.01em; font-weight: 800; }
h2.display { font-size: clamp(2.4rem, 6vw, 4rem); }
h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; font-weight: 700; letter-spacing: 0.01em; }
h4 { font-size: 1.05rem; font-weight: 600; }
.sub-title { margin: clamp(48px, 6vw, 72px) 0 20px; font-size: 1.9rem; text-transform: uppercase; }

/* Small label above a heading */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(242, 98, 46, 0.22); }

/* ---------- 4. BUTTONS AND SMALL PARTS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; min-height: 48px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; line-height: 1.2; white-space: nowrap; background: transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; white-space: nowrap; min-height: 42px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--red)); box-shadow: 0 10px 30px rgba(214, 58, 22, 0.38); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(214, 58, 22, 0.55); }
.btn-whatsapp { color: #fff; background: #128c4a; box-shadow: 0 10px 28px rgba(18, 140, 74, 0.35); }
.btn-whatsapp:hover { background: #0f7a40; }
.btn-outline { color: var(--text); border-color: var(--line); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.on-dark .btn-outline { border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost { padding: 10px 0; min-height: 0; border-radius: 0; color: var(--accent); font-weight: 600; }
.btn-ghost:hover { transform: none; }
.btn-ghost .icon { transition: transform 0.2s; }
.btn-ghost:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #8fe3df; background: rgba(11, 122, 120, 0.28); border: 1px solid rgba(20, 168, 164, 0.4);
}
.chip-alt { color: #ffb08f; background: rgba(214, 58, 22, 0.2); border-color: rgba(242, 98, 46, 0.45); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; color: var(--muted); }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.text-link:hover { text-decoration: underline; }

/* ---------- 5. HEADER AND NAVIGATION ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(3, 20, 22, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { background: rgba(3, 20, 22, 0.94); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.brand-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.brand-text b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.is-current { color: #fff; background: rgba(255, 255, 255, 0.09); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.icon-sun { display: none; }

/* ---------- 6. HERO ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 0; overflow: hidden; background: #031416; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 20, 22, 0.96) 0%, rgba(3, 20, 22, 0.82) 45%, rgba(3, 20, 22, 0.55) 100%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(11, 122, 120, 0.45), transparent 70%),
    linear-gradient(0deg, #031416 0%, transparent 35%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); }
.hero h1 span { background: linear-gradient(90deg, var(--orange), #ff8a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 34rem; margin-top: 22px; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

/* Slider */
.hero-slider { position: relative; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; margin-inline: auto; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: var(--shadow); background: var(--surface); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.slide figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 20px 48px; font-size: 0.9rem; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent); }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.slider-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.slider-dots button::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: width 0.3s, background 0.3s; }
.slider-dots button[aria-current="true"]::after { width: 22px; border-radius: 6px; background: var(--orange); }

/* Numbers strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 26px 20px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 800; line-height: 1; color: var(--accent); }
.stats dt { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }

/* ---------- 7. SECTIONS AND CARDS ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-grid .muted { margin-top: 22px; max-width: 32rem; }
.pillars { border-block: 1px solid var(--line); }
.pillars li { display: flex; gap: 18px; padding: 24px 0; }
.pillars li + li { border-top: 1px solid var(--line); }
.pillars p { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.pillar-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent); background: rgba(242, 98, 46, 0.12); }

.cards { display: grid; gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(242, 98, 46, 0.5); }

/* Programs */
.finder { max-width: 520px; margin-bottom: 28px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.finder label { display: block; font-size: 0.92rem; font-weight: 500; }
.finder-row { display: flex; gap: 10px; margin-top: 10px; }
.finder input { width: 110px; }
.finder-result { margin-top: 10px; min-height: 1.5em; font-size: 0.95rem; color: var(--text); }
.finder-result b { color: var(--accent); }
.programs-grid { grid-template-columns: repeat(3, 1fr); }
.program { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.program h3 { font-size: 1.8rem; }
.program-special { background: linear-gradient(160deg, rgba(11, 122, 120, 0.2), var(--card)); }
.meta { width: 100%; display: grid; gap: 10px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: 0.92rem; }
.meta dt { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.meta dt .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.meta dd { margin-top: 2px; font-weight: 600; }

/* Schedule */
.timeline { margin-bottom: 36px; padding: 28px 24px 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.track { position: relative; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.band { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; border-radius: 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; overflow: hidden; white-space: nowrap; }
.band-am { background: linear-gradient(90deg, var(--teal), #14a8a4); }
.band-pm { background: linear-gradient(90deg, var(--primary), var(--red)); }
.ticks { position: relative; height: 22px; margin-top: 10px; }
.ticks span { white-space: nowrap; position: absolute; transform: translateX(-50%); font-size: 0.74rem; color: var(--muted); }
.schedule-grid { grid-template-columns: repeat(3, 1fr); }
.slot { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.slot-time { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; }
.pillars4 { grid-template-columns: repeat(4, 1fr); }
.pillars4 h4 { margin-bottom: 8px; color: var(--accent); font-size: 1.15rem; }
.pillars4 p { font-size: 0.92rem; color: var(--muted); }

/* Players */
.spotlight { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(150deg, rgba(11, 122, 120, 0.3), var(--bg-alt) 60%); box-shadow: var(--shadow); }
.spotlight > img { width: 100%; max-width: 360px; margin-inline: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 18px; }
.spotlight-body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.spotlight-body h3 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; }
.spotlight-head { font-size: 1.15rem; font-weight: 600; }
.role { color: var(--muted); font-size: 0.92rem; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; margin: 6px 0; }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.figures dd { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent); }
.figures dt { margin-top: 6px; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.figures-small { grid-template-columns: 1fr; gap: 10px; }
.figures-small > div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 14px; padding: 10px 14px; }
.figures-small dd { min-width: 4.2rem; font-size: 1.6rem; }
.figures-small dt { margin: 0; flex: 1; }

.players-grid { grid-template-columns: repeat(3, 1fr); }
.player { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.player > img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 20%; }
.player-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 22px; flex: 1; }
.player-body h3 { font-size: 1.9rem; }
details summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--accent); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; }
details[open] summary::after { content: " \2212"; }
.detail-list { display: grid; gap: 10px; margin: 12px 0; padding-left: 18px; list-style: disc; font-size: 0.9rem; color: var(--muted); }

/* Achievements timeline */
.achievements { position: relative; display: grid; gap: 8px; }
.achievements::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--teal)); opacity: 0.6; }
.achievements li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0 16px 34px; }
.achievements li::before { content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.achievements time { padding-top: 2px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.achievements h3 { font-size: 1.45rem; }
.achievements p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.achievements small { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--muted); opacity: 0.8; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.reviews-grid:empty { display: none; }
.review { margin: 0; padding: 26px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.review p { font-size: 1.02rem; }
.review footer { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.review-invite { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; border: 1px dashed rgba(242, 98, 46, 0.5); border-radius: var(--radius); background: var(--card); }
.review-invite > div { flex: 1 1 260px; }
.review-invite h3 { margin-bottom: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; color: var(--text); }
.faq summary::after { color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details p { margin-top: 12px; max-width: 42rem; color: var(--muted); }

/* Sponsors */
.sponsors { padding: 56px 0; text-align: center; }
.sponsors-title { font-size: 1.1rem; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.sponsor-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.sponsor-logos li { width: 150px; padding: 12px; border-radius: 16px; background: #fff; }
.sponsor-logos img { width: 100%; height: 110px; object-fit: contain; }

/* ---------- 8. GALLERY AND PHOTO VIEWER ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { padding: 9px 20px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 500; font-size: 0.9rem; color: var(--muted); transition: all 0.2s; }
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.is-active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--red)); border-color: transparent; }
.gallery { column-width: 230px; column-gap: 14px; }
.g-item { break-inside: avoid; margin-bottom: 14px; }
.g-item[hidden] { display: none; }
.g-item button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); }
.g-item img { width: 100%; transition: transform 0.6s, filter 0.4s; filter: brightness(0.9); }
.g-item button:hover img, .g-item button:focus-visible img { transform: scale(1.05); filter: brightness(1); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 44px 14px 12px; text-align: left; font-size: 0.85rem; line-height: 1.35; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.g-cap small { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.g-item button:hover .g-cap, .g-item button:focus-visible .g-cap { opacity: 1; transform: none; }

/* Pop-ups (native <dialog>) */
.dialog { width: min(440px, 100% - 32px); padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop 0.25s ease; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dialog form > .muted { margin-bottom: 16px; font-size: 0.92rem; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(2, 10, 11, 0.96); }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100dvh; padding: 24px 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { font-size: 0.95rem; color: var(--muted); text-align: center; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(0, 0, 0, 0.5); }
.lb-nav { justify-self: center; background: rgba(0, 0, 0, 0.5); }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }

/* ---------- 9. FORMS, CONTACT, FOOTER ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.optional { opacity: 0.7; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 130px; gap: 14px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: #6f9391; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.09); }
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 110px; }
input:user-invalid, textarea:user-invalid { border-color: #ff7a5c; }
.form-error { min-height: 1.4em; margin-bottom: 8px; font-size: 0.88rem; color: #ff8f73; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.form-buttons .btn { flex: 1 1 180px; }
.form-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; width: 1.4rem; height: 1.4rem; color: var(--accent); }
.contact-list b { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.contact-list div { overflow-wrap: anywhere; }
.map { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(92%) hue-rotate(180deg) saturate(0.8) contrast(0.92); }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.contact-form { position: sticky; top: calc(var(--header-h) + 20px); }
.contact-form h3 { margin-bottom: 18px; font-size: 1.9rem; text-transform: uppercase; }

.site-footer { padding: 56px 0 24px; background: #021012; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 40px; }
.footer-grid .muted { margin-top: 16px; max-width: 24rem; font-size: 0.92rem; }
.footer-grid h4 { margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.footer-grid nav, .footer-grid > div:last-child { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .brand { color: var(--text); }
.copyright { width: min(1160px, 100% - 40px); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); text-align: center; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #128c4a; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* Scroll reveal: only hidden when JavaScript is running (class "js" is added in <head>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 10. DAY MODE, MOTION, RESPONSIVE ---------- */
html[data-theme="light"] {
  --bg: #f6f2ea; --bg-alt: #efe9de; --surface: #ffffff;
  --line: rgba(16, 40, 43, 0.15); --text: #10282b; --muted: #3f5a5c;
  --accent: #b8360c; --card: #ffffff;
  --shadow: 0 20px 50px rgba(16, 40, 43, 0.14);
}
html[data-theme="light"] .chip { color: #075a58; background: rgba(11, 122, 120, 0.12); border-color: rgba(11, 122, 120, 0.4); }
html[data-theme="light"] .chip-alt { color: #a02c0a; background: rgba(214, 58, 22, 0.1); border-color: rgba(214, 58, 22, 0.4); }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: #fff; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #7b9291; }
html[data-theme="light"] .map iframe { filter: none; }
html[data-theme="light"] .spotlight { background: linear-gradient(150deg, rgba(11, 122, 120, 0.14), #fff 60%); }
html[data-theme="light"] .program-special { background: linear-gradient(160deg, rgba(11, 122, 120, 0.1), #fff); }
html[data-theme="light"] .tags li { color: var(--muted); }
html[data-theme="light"] .figures > div { background: rgba(16, 40, 43, 0.035); }
html[data-theme="light"] .track { background: rgba(16, 40, 43, 0.07); }
html[data-theme="light"] .dialog { background: #fff; }
html[data-theme="light"] .achievements li::before { background: var(--bg); }
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: block; }
/* The header stays dark, so its button keeps night colours */
.on-dark .icon-btn { color: #f6f3ee; border-color: rgba(255, 255, 255, 0.2); }

/* Tablet */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slider { max-width: 380px; }
  .programs-grid, .players-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { position: static; }
}

/* Mobile navigation: the menu slides down from the header */
@media (max-width: 1280px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: #031416; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
}

/* Phone */
@media (max-width: 760px) {
  .why-grid, .spotlight { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .schedule-grid, .programs-grid, .players-grid, .pillars4 { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .figures > div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 14px; }
  .figures dd { min-width: 4.5rem; }
  .figures dt { margin: 0; }
  .achievements li { grid-template-columns: 1fr; gap: 4px; }
  .band { font-size: 0.56rem; letter-spacing: 0; padding: 0; }
  .ticks span:nth-child(2), .ticks span:nth-child(4) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-text { font-size: 1.12rem; }
  .gallery { column-width: 150px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .g-cap { opacity: 1; transform: none; font-size: 0.72rem; padding: 28px 8px 8px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; padding: 64px 12px 72px; }
  .lb-nav { position: absolute; bottom: 16px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* People who prefer less motion get no animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ---------- ABOUT PAGE ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 100px)) 0 clamp(48px, 7vw, 88px); background: radial-gradient(900px 400px at 85% 0%, rgba(11, 122, 120, 0.35), transparent 70%), #031416; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 6rem); }
.page-hero h1 span { background: linear-gradient(90deg, var(--orange), #ff8a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { max-width: 40rem; margin-top: 22px; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); }
.stats-2x2 { grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.stats-2x2 > div { padding: 24px; }
.stats-2x2 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats-2x2 > div:nth-child(even) { border-left: 1px solid var(--line); }
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mv-card { padding: clamp(24px, 4vw, 40px); }
.mv-card h3 { margin: 18px 0 12px; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.mv-card > p { color: var(--text); font-size: 1.05rem; line-height: 1.65; }
.mv-card .detail-list { margin-top: 20px; font-size: 0.95rem; }
.values-grid { grid-template-columns: repeat(3, 1fr); }
.values-grid h3 { margin: 16px 0 8px; font-size: 1.25rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner .muted { margin-top: 10px; max-width: 32rem; }
@media (max-width: 900px) { .mv-grid, .values-grid { grid-template-columns: 1fr; } }

.slide figcaption b { font-size: 1.05rem; }

.founder { margin-bottom: 0; }
.founder .spotlight-body .btn { margin-top: 6px; }

/* Players: one profile per row, image side alternates */
#players .spotlight { margin-bottom: clamp(24px, 4vw, 40px); }
#players .spotlight:last-child { margin-bottom: 0; }
.spotlight.reverse { grid-template-columns: 1.2fr 0.8fr; }
.spotlight.reverse > img { order: 2; }
.spotlight-body .detail-list { margin: 4px 0; }
.small-note { font-size: 0.85rem; }
@media (max-width: 900px) {
  .spotlight.reverse { grid-template-columns: 1fr; }
  .spotlight.reverse > img { order: 0; }
}
.figures-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .figures-two { grid-template-columns: 1fr; } }

/* Achievements: photo beside each entry + academy wins */
.achievements li { grid-template-columns: 150px 1fr; }
.ach-body { display: flex; gap: 20px; align-items: flex-start; }
.ach-pic { flex: 0 0 auto; width: 120px; height: 120px; object-fit: cover; object-position: 50% 25%; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.academy-wins { margin-top: clamp(48px, 7vw, 80px); }
.academy-wins .stats-2x2 { margin-bottom: 28px; }
.wins-grid { grid-template-columns: repeat(2, 1fr); }
.win { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.win > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.win-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; }
.win-body h3 { font-size: 1.7rem; }
@media (max-width: 760px) {
  .ach-body { flex-direction: column; }
  .ach-pic { width: 100%; height: 200px; }
  .wins-grid { grid-template-columns: 1fr; }
}

/* Header: academy name always on ONE line, tagline underneath */
.site-header .container { width: min(1320px, 100% - 24px); }
.header-inner { gap: 16px; }
.brand { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { white-space: nowrap; }
.brand-text small { font-family: var(--font-body); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; color: var(--muted); white-space: nowrap; }
.nav { gap: 2px; }
.nav a { padding: 8px 9px; font-size: 0.88rem; }
@media (max-width: 1280px) { .nav a { padding: 14px 8px; font-size: 1.02rem; } }
@media (max-width: 760px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text { font-size: clamp(0.8rem, 4.3vw, 1.12rem); gap: 4px; }
  .brand-text small { font-size: 0.5rem; letter-spacing: 0.16em; }
}
