/* BRICHESS — Vintage Chess Parlor Stylesheet
   Brand: Black (#1A1008) + White (#F5F0E8) + Walnut Amber (#8B5E3C) + Gold (#C9A84C)
   Aesthetic: Dark wood salon, intellectual warmth, vintage-modern hybrid
*/

:root {
  --black: #1A1008;
  --deep: #0D0A05;
  --white: #F5F0E8;
  --cream: #EDE5D0;
  --amber: #8B5E3C;
  --amber-light: #A5714A;
  --gold: #C9A84C;
  --gold-light: #E2C06A;
  --charcoal: #2C2218;
  --mid: #4A3728;
  --muted: #9E8B76;
  --green: #2E5940;
  --green-light: #3A7054;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4);

  --nav-h: 72px;
  --max-w: 1200px;
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Typography ─────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }
p { color: var(--cream); }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-body);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Layout Utilities ───────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
}
.btn-ghost {
  border: 1.5px solid rgba(245,240,232,0.3);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(245,240,232,0.07);
}
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ─── Navigation ─────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,10,5,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,94,60,0.25);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}
.nav-logo .bri { color: var(--white); }
.nav-logo .chess { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ─── Mobile Nav ─────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--black);
  border-bottom: 1px solid rgba(139,94,60,0.3);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile .btn { width: 100%; text-align: center; margin-top: 0.5rem; }

/* ─── Hero ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,10,5,0.88) 0%,
    rgba(26,16,8,0.75) 50%,
    rgba(13,10,5,0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-logo {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-logo .bri { color: var(--white); }
.hero-logo .chess {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  font-style: italic;
  opacity: 0.9;
}
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-board-deco {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: 0.12;
  pointer-events: none;
}

/* ─── Stats Bar ──────────────────────────── */
.stats-bar {
  background: var(--charcoal);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 2rem 0;
}
.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── Cards ──────────────────────────────── */
.card {
  background: var(--charcoal);
  border: 1px solid rgba(139,94,60,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
}
.card-body { padding: 1.75rem; }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.tag-beginner { background: rgba(46,89,64,0.3); color: #6FCF97; border: 1px solid rgba(46,89,64,0.5); }
.tag-intermediate { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.tag-advanced { background: rgba(192,57,43,0.2); color: #E74C3C; border: 1px solid rgba(192,57,43,0.3); }
.card-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ─── Section Headers ────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header h2 { color: var(--white); }
.section-header p { color: var(--muted); font-size: 1.05rem; margin-top: 0.75rem; max-width: 560px; }
.section-header.center p { margin: 0.75rem auto 0; }

/* ─── Divider ────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
  margin: 0;
}

/* ─── Wood Texture Sections ──────────────── */
.wood-section {
  background:
    linear-gradient(rgba(26,16,8,0.82), rgba(26,16,8,0.82)),
    url('assets/hero.jpg') center/cover;
  position: relative;
}

/* ─── Pricing ────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--charcoal);
  border: 1px solid rgba(139,94,60,0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.15);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin: 0.75rem 0;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 0.75rem; color: var(--gold); }
.pricing-period { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { margin: 1.5rem 0; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.pricing-features li .x { color: #666; flex-shrink: 0; margin-top: 2px; }

/* ─── Community / Leaderboard ────────────── */
.leaderboard {
  background: var(--charcoal);
  border: 1px solid rgba(139,94,60,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.leaderboard-header {
  background: var(--black);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.leaderboard-header h4 { color: var(--gold); font-family: var(--font-display); }
.leaderboard-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.leaderboard-row:hover { background: rgba(201,168,76,0.05); }
.leaderboard-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}
.leaderboard-rank.top { color: var(--gold); }
.leaderboard-name { font-weight: 500; font-size: 0.9rem; }
.leaderboard-elo { font-family: var(--font-display); font-weight: 700; color: var(--gold); }
.leaderboard-wins { font-size: 0.8rem; color: var(--muted); }

/* ─── Activity Feed ──────────────────────── */
.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.activity-text { font-size: 0.88rem; color: var(--cream); }
.activity-text strong { color: var(--white); }
.activity-time { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }

/* ─── Coach Profile ──────────────────────── */
.coach-portrait {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
}
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}
.credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* ─── Testimonials ───────────────────────── */
.testimonial {
  background: var(--charcoal);
  border: 1px solid rgba(139,94,60,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-text { font-size: 0.95rem; color: var(--cream); font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.testimonial-rating { font-size: 0.8rem; color: var(--muted); }

/* ─── Play Now ───────────────────────────── */
.play-option {
  background: var(--charcoal);
  border: 1px solid rgba(139,94,60,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.25s;
}
.play-option:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.play-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}
.play-option h3 { color: var(--white); margin-bottom: 0.75rem; }
.play-option p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

/* ─── FAQ ────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  background: none;
  width: 100%;
  text-align: left;
}
.faq-q .icon { color: var(--gold); font-size: 1.2rem; transition: transform 0.2s; }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-a.open { display: block; }

/* ─── Footer ─────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid rgba(139,94,60,0.2);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}
.footer-brand-name .bri { color: var(--white); }
.footer-brand-name .chess { color: var(--gold); }
.footer-tagline { font-size: 0.88rem; color: var(--muted); line-height: 1.6; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: var(--muted); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted); }
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.2s;
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Form ───────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
}
.form-control::placeholder { color: rgba(255,255,255,0.3); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-success { display: none; padding: 1rem; background: rgba(46,89,64,0.3); border: 1px solid var(--green-light); border-radius: var(--radius); color: #6FCF97; font-size: 0.9rem; margin-top: 1rem; }

/* ─── Page Header ────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: linear-gradient(180deg, var(--black) 0%, var(--deep) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.page-header h1 { color: var(--white); }
.page-header .subtitle { font-size: 1.1rem; color: var(--muted); margin-top: 0.75rem; }

/* ─── Chess Board Deco ───────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  overflow: hidden;
}
.board-cell { aspect-ratio: 1; }
.board-cell.light { background: rgba(237,229,208,0.15); }
.board-cell.dark { background: rgba(26,16,8,0.5); }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-board-deco { display: none; }
  .leaderboard-row { grid-template-columns: 30px 1fr auto; }
  .leaderboard-wins { display: none; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
}

/* ─── Google Fonts Import ────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Inter:wght@400;500;600&display=swap');
