/* ── ACES Club — Luxury Tennis UI ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --court: #1B5E3A;
  --court-deep: #133D28;
  --court-light: #2E7D50;
  --clay: #C17A3A;
  --clay-light: #E8A862;
  --clay-pale: #FDF3E8;
  --gold: #B8960C;
  --gold-light: #D4AF37;
  --cream: #FDFBF7;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #555555;
  --text-3: #999999;
  --border: #E8E4DE;
  --bg: #FDFBF7;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --max-w: 1180px;
  --nav-h: 80px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Layout ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--court-deep); color: #fff; }
.section-white { background: var(--white); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:900px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } .grid-3 { grid-template-columns: 1fr; } }
@media(max-width:768px) { .section { padding: 64px 0; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .grid-4 { grid-template-columns: 1fr; } }

/* ─── Typography ─── */
h1, h2 { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; display: block; }
.lead { font-size: 18px; color: var(--text-2); line-height: 1.7; max-width: 560px; }
.lead-center { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; transition: all 0.25s var(--ease); }
.btn-court { background: var(--court); color: #fff; }
.btn-court:hover { background: var(--court-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,94,58,0.25); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #a8682f; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--court); color: var(--court); }
.btn-white { background: #fff; color: var(--court); font-weight: 600; }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 36px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ─── Navigation ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 99999; height: var(--nav-h); background: #FDFBF7; border-bottom: 1px solid transparent; transition: all 0.3s; }
.nav.scrolled { border-bottom-color: var(--border); background: #ffffff; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 38px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s; position: relative; }
.nav-link:hover { color: var(--court); }
.nav-link.active { color: var(--court); font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--clay); border-radius: 2px; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }
.mobile-btns { display: none; }
@media(max-width:1024px) {
  .nav-links { position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 280px !important; background-color: #133D28 !important; opacity: 1 !important; display: flex !important; flex-direction: column !important; padding: 100px 28px 28px !important; gap: 0 !important; transform: translateX(100%); transition: transform 0.3s ease; border-left: 2px solid rgba(255,255,255,0.1); z-index: 9999 !important; align-items: flex-start !important; overflow-y: auto; }
  .nav-links.open { transform: translateX(0) !important; }
  .nav-link { font-size: 17px !important; font-weight: 700 !important; padding: 16px 0 !important; width: 100% !important; border-bottom: 1px solid rgba(255,255,255,0.15) !important; color: #ffffff !important; background: transparent !important; display: block !important; }
  .nav-link:hover { color: #E8A862 !important; }
  .nav-link.active { color: #E8A862 !important; }
  .nav-link.active::after { display: none !important; }
  .nav-right { display: none !important; }
  .nav-toggle { display: block !important; z-index: 10000; }
  .nav-overlay { position: fixed !important; inset: 0 !important; background: rgba(0,0,0,0.6) !important; z-index: 9998 !important; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .nav-overlay.open { opacity: 1 !important; pointer-events: all !important; }
  .mobile-btns { display: flex !important; flex-direction: column !important; gap: 10px !important; width: 100% !important; margin-top: 20px !important; padding-top: 20px !important; border-top: 1px solid rgba(255,255,255,0.15) !important; }
  .mobile-btns .btn { width: 100% !important; text-align: center !important; font-weight: 700 !important; }
}

/* ─── Hero ─── */
.hero { padding: calc(var(--nav-h) + 80px) 0 100px; background: var(--court-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease; }
.hero-bg img.active { opacity: 1; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(13,61,32,0.72); z-index: 1; }
.hero::after { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(40px, 6vw, 64px); }
.hero .lead { color: rgba(255,255,255,0.7); margin: 0 auto; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; margin-top: 40px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; justify-content: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
@media(max-width:768px) { .hero { padding: calc(var(--nav-h) + 48px) 0 64px; } .hero-stats { gap: 28px; flex-wrap: wrap; } }

/* ─── Cards ─── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-weight: 700; font-size: 18px; }
.card-icon-court { background: rgba(27,94,58,0.08); color: var(--court); }
.card-icon-clay { background: rgba(193,122,58,0.08); color: var(--clay); }
.card-icon-gold { background: rgba(184,150,12,0.08); color: var(--gold); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14px; line-height: 1.65; }

/* ─── Membership Pricing ─── */
.price-card { text-align: center; padding: 40px 32px; position: relative; }
.price-card.featured { border: 2px solid var(--court); background: linear-gradient(180deg, rgba(27,94,58,0.02), var(--white)); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--court); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 16px; border-radius: 20px; white-space: nowrap; }
.price-name { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0.5px; text-transform: uppercase; }
.price-amount { font-family: 'Playfair Display', serif; font-size: 56px; font-weight: 700; color: var(--text); margin: 12px 0 4px; line-height: 1; }
.price-period { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li { padding: 10px 0; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.price-features li:last-child { border: none; }
.check { width: 18px; height: 18px; border-radius: 50%; background: rgba(27,94,58,0.08); color: var(--court); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.price-card .btn { width: 100%; }

/* ─── Events ─── */
.event-card { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.event-date-box { min-width: 56px; background: var(--clay-pale); border-radius: 10px; padding: 10px 8px; text-align: center; }
.event-day { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--clay); line-height: 1; }
.event-month { font-size: 11px; font-weight: 600; color: var(--clay); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.event-info h3 { margin-bottom: 4px; font-size: 16px; }
.event-info p { font-size: 13px; color: var(--text-2); }
.event-meta { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; gap: 12px; }

/* ─── Team/Board ─── */
.team-card { text-align: center; padding: 28px 20px; }
.team-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.team-name { font-weight: 600; }
.team-role { font-size: 13px; color: var(--clay); font-weight: 500; margin-top: 2px; }
.team-desc { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* ─── Gallery ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--border); position: relative; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.03); transition: transform 0.4s; }

/* ─── Contact Form ─── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); background: var(--white); outline: none; transition: border-color 0.2s; font-family: inherit; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--court); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-msg { font-size: 13px; margin-top: 8px; }
.form-msg.ok { color: var(--court); }
.form-msg.err { color: #D63031; }

/* ─── Auth ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(rgba(13,77,43,0.82), rgba(19,61,40,0.88)), url('https://images.unsplash.com/photo-1554068865-24cecd4e34b8?w=1400&q=80') center/cover fixed; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-3); background: none; border: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.auth-tab.active { color: var(--court); border-bottom-color: var(--court); }

/* ─── Footer ─── */
.footer { background: var(--court-deep); color: rgba(255,255,255,0.6); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 32px; filter: brightness(10); margin-bottom: 14px; }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer h4 { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--clay-light); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; transition: all 0.2s; }
.footer-social a:hover { background: var(--clay); color: #fff; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 12px; } }

/* ─── Page Heroes ─── */
.page-hero { padding: calc(var(--nav-h) + 56px) 0 56px; background: var(--white); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero .lead { margin-top: 8px; }

/* ─── Leaderboard Container ─── */
.leaderboard-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.leaderboard-wrap header { position: relative; top: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.leaderboard-wrap .header-row { justify-content: flex-end; }
.leaderboard-wrap #app { max-width: 100%; }

/* ─── Utilities ─── */
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ─── Text Logo ─── */
.logo { display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.logo-img { height: 120px; width: auto; mix-blend-mode: multiply; margin: -20px 0; }
.footer .logo-img { mix-blend-mode: normal; height: 220px; filter: brightness(0) invert(1); margin-bottom: 0; }
.logo-word { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); font-family: 'DM Sans', sans-serif; }
.logo-word .logo-club { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--text-3); margin-left: 6px; }
.footer .logo-word { color: #fff; }
.footer .logo-word .logo-club { color: rgba(255,255,255,0.4); }
