/* Aarval Chess Club — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --gold: #F0B90B;
  --gold-light: #FFD54A;
  --gold-dim: #B98607;
  --black: #08080D;
  --dark: #111118;
  --card: #16161F;
  --card2: #1E1E2A;
  --cream: #F0E8D8;
  --muted: #9B93A8;
  --border: rgba(240,185,11,0.2);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 70px;
  background: rgba(8,8,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 10px; border-radius: 12px; transition: background 0.15s; }
.nav-logo:hover, .nav-logo:active { background: rgba(240,185,11,0.1); }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-logo-text { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; line-height: 1.2; }
.nav-logo-sub { font-family: var(--sans); font-size: 10px; font-weight: 300; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a { padding: 8px 18px; border-radius: 40px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: all 0.2s; border: 0.5px solid transparent; }
.nav-links a:hover { color: var(--cream); }
.nav-links .btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
.nav-links .btn-gold:hover { background: var(--gold-light); color: var(--black); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }

@media (max-width: 780px) {
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--dark);
    border-bottom: 0.5px solid var(--border); padding: 10px 5vw 20px; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 6px; border-radius: 0; border-bottom: 0.5px solid var(--border); }
  .nav-links .btn-gold { margin-top: 10px; text-align: center; border-radius: 40px; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  #hero { padding: 60px 5vw 44px; }
  .mode-row { flex-direction: column; align-items: center; }
  .mode-card { width: 100%; max-width: 340px; }
  .level-grid { grid-template-columns: 1fr; }
  .content-section { padding: 44px 5vw; }
  .info-strip { flex-direction: column; gap: 16px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .roadmap { gap: 4px; }
  .roadmap .rm-step { padding: 8px 14px; font-size: 0.78rem; }
  footer { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ── HERO ────────────────────────────────── */
#hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 90px 5vw 70px;
  text-align: center;
}

.board-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8,8,13,0.88) 0%, rgba(8,8,13,0.6) 40%, rgba(8,8,13,0.88) 100%),
    repeating-conic-gradient(rgba(240,185,11,0.07) 0% 25%, rgba(255,255,255,0.02) 25% 50%);
  background-size: cover, 72px 72px;
}

.board-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,185,11,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }

.club-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border: 0.5px solid var(--gold); border-radius: 40px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem; font-weight: 400;
}

.crumb { color: var(--muted); font-size: 13px; margin-bottom: 1.2rem; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

h1.hero-title { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.3rem; color: var(--cream); }
h1.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.2rem; font-weight: 300; line-height: 1.8; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 50px; font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.22s; cursor: pointer; border: none; font-family: var(--sans); }
.btn-primary { background: var(--gold); color: var(--black); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); color: var(--black); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid rgba(240,232,216,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── BIG MODE CTAs (Online / Offline on landing page) ─── */
.mode-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.mode-card {
  width: 300px; text-align: left; padding: 34px 28px; border-radius: 22px;
  background: var(--card); border: 0.5px solid var(--border); text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.mode-icon { font-size: 2rem; margin-bottom: 14px; }
.mode-card h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-bottom: 8px; }
.mode-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; font-weight: 300; }
.mode-arrow { color: var(--gold); font-weight: 500; font-size: 0.92rem; }

/* ── LEVEL CARDS (on online.html / offline.html) ─── */
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 3rem 0; }
.level-card {
  background: var(--card); border: 0.5px solid var(--border); border-radius: 20px;
  padding: 26px 22px; text-decoration: none; transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.level-card:hover { border-color: rgba(240,185,11,0.5); transform: translateY(-3px); }
.level-num { font-family: var(--serif); font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; }
.level-card h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); margin-bottom: 6px; }
.level-age { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.level-card p { font-size: 0.9rem; color: var(--muted); font-weight: 300; flex-grow: 1; margin-bottom: 14px; }
.level-arrow { color: var(--gold); font-size: 0.88rem; font-weight: 500; }

/* ── CONTENT SECTIONS ────────────────────── */
.content-section { padding: 70px 5vw; max-width: 1100px; margin: 0 auto; }
.section-eye { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.2rem; color: var(--cream); }
.section-title em { font-family: var(--sans); font-style: normal; font-weight: 500; color: var(--gold); }
.section-hook { font-size: 1.1rem; font-weight: 300; color: var(--cream); max-width: 660px; line-height: 1.9; margin-bottom: 2.5rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 2.5rem; }
.feature-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 18px; padding: 24px 22px; }
.feature-card .card-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(240,185,11,0.1); border: 0.5px solid rgba(240,185,11,0.3); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.feature-card .card-title { font-weight: 600; color: var(--cream); margin-bottom: 6px; font-size: 1rem; }
.feature-card .card-text { font-size: 0.88rem; color: var(--muted); font-weight: 300; line-height: 1.7; }

.syllabus-list { list-style: none; margin-bottom: 2.5rem; }
.syllabus-list li { padding: 14px 0 14px 30px; border-bottom: 0.5px solid var(--border); position: relative; color: var(--cream); font-weight: 300; }
.syllabus-list li::before { content: '♟'; position: absolute; left: 0; color: var(--gold); }

.info-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 2.5rem; padding: 22px 26px; background: var(--card); border: 0.5px solid var(--border); border-radius: 16px; }
.info-strip .info-item { font-size: 0.9rem; color: var(--cream); }
.info-strip .info-item b { color: var(--gold); display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; font-weight: 500; }

.note-box { background: rgba(240,185,11,0.06); border: 0.5px dashed var(--gold); border-radius: 14px; padding: 18px 22px; font-size: 0.88rem; color: var(--muted); margin-bottom: 2.5rem; }
.note-box b { color: var(--gold); }

.cta-block { text-align: center; padding: 20px 0 10px; }

/* ── ROADMAP ─────────────────────────────── */
.roadmap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 2.5rem 0; }
.roadmap .rm-step {
  background: var(--card); border: 0.5px solid var(--border); border-radius: 40px;
  padding: 10px 20px; font-size: 0.85rem; color: var(--cream); font-weight: 500; white-space: nowrap;
}
.roadmap .rm-step b { color: var(--gold); margin-right: 6px; }
.roadmap .rm-arrow { color: var(--gold); font-size: 1.1rem; }

/* ── WHY-US CHECKLIST ────────────────────── */
.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 2.5rem 0; }
.why-list .why-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--cream); font-weight: 300; }
.why-list .why-item .check { color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── LEVEL DETAIL EXTRAS ──────────────────── */
.tagline { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 1.1rem; margin-bottom: 1.5rem; }
.suitable-for { background: var(--card); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 16px 22px; margin-bottom: 2rem; font-size: 0.95rem; color: var(--cream); }
.suitable-for b { color: var(--gold); }
.outcome-box { background: rgba(240,185,11,0.06); border: 0.5px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-top: 1.5rem; }
.outcome-box b { color: var(--gold); display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.outcome-box p { color: var(--cream); font-weight: 300; font-size: 0.95rem; }

/* ── BOLD HIGHLIGHT TAGLINE (mode hero) ──── */
.highlight-tag {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--black);
  background: linear-gradient(100deg, var(--gold-light), var(--gold));
  padding: 10px 26px;
  border-radius: 12px;
  margin: 0.6rem 0 1.6rem;
  box-shadow: 0 8px 30px rgba(240,185,11,0.35);
  line-height: 1.3;
}

/* ── SECTION BACKGROUND VARIETY ───────────── */
.section-alt { background: var(--dark); }
.section-tint {
  background: linear-gradient(180deg, rgba(240,185,11,0.05) 0%, transparent 100%);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.gold-rule { width: 60px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 auto 1.5rem; }
.gold-rule.left { margin: 0 0 1.5rem; }

/* ── FOOTER ──────────────────────────────── */
footer {
  padding: 40px 5vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 0.5px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }
