/* ============================================================
   Lakeside On Preston Pickleball Cup — styles
   Palette sampled from the club logo: navy + gold, on soft white.
   ============================================================ */
:root {
  --navy: #24487b;        /* brand navy (from logo) */
  --navy-deep: #1a3560;
  --ink: #16233b;         /* darkest text */
  --ink-soft: #4a5a72;
  --gold: #c39a3f;        /* accent / "Cup" flourish */
  --gold-deep: #a67f2c;
  --paper: #f6f8fc;
  --white: #ffffff;
  --line: #e2e8f1;
  --shadow: 0 10px 30px rgba(22, 35, 59, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 35, 59, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.2em 0 0.6em; letter-spacing: -0.01em; color: var(--ink); }
h3 { font-size: 1.18rem; margin: 0 0 0.4em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 6px 18px rgba(36, 72, 123, 0.25);
}
.btn:hover { transform: translateY(-2px); background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: 0 10px 24px rgba(36, 72, 123, 0.32); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #23324a; box-shadow: 0 6px 18px rgba(195, 154, 63, 0.32); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 50px; width: auto; }
.brand-name { font-size: 0.72rem; font-weight: 600; line-height: 1.15; color: var(--ink); text-transform: uppercase; letter-spacing: 0.09em; }
.brand-name strong { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: 0.02em; color: var(--navy); text-transform: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.12s; white-space: nowrap; }
.nav a:hover { color: var(--navy); }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1000px 380px at 82% -10%, rgba(36, 72, 123, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
  width: 540px; height: 540px;
  background: url("assets/logo-icon.png") no-repeat center / contain;
  opacity: 0.05; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2.5vw, 44px); }
.hero-content { max-width: 640px; text-align: center; }
.hero-content .lede { margin-left: auto; margin-right: auto; }
.hero-content .hero-cta { justify-content: center; }
.hero-content .stat-strip { justify-content: center; }
.hero-trophy { flex: 0 0 auto; width: clamp(110px, 14vw, 205px); height: auto; filter: drop-shadow(0 16px 26px rgba(22, 35, 59, 0.20)); }
.eyebrow { display: inline-block; font-weight: 600; color: var(--gold-deep); background: rgba(195, 154, 63, 0.13); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.02em; margin: 0 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); font-weight: 800; margin: 0; letter-spacing: -0.015em; color: var(--ink); }
.hero .hl { color: var(--navy); }
.hero .hl-gold { color: var(--gold-deep); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ink-soft); margin: 22px 0 30px; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stat-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 44px 0 0; padding: 0; }
.stat-strip li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 22px; box-shadow: var(--shadow); flex: 1; min-width: 130px; }
.stat-strip strong { display: block; font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.stat-strip span { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: linear-gradient(180deg, #ffffff, #eef2f9); border-block: 1px solid var(--line); }
.section-accent { background: var(--navy); color: #eaf0f8; }
.section-accent h2 { color: #fff; }
.section-accent .kicker { color: var(--gold); }
.section-accent .section-lede { color: #c2d0e4; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700; color: var(--gold-deep); margin: 0; }
.section-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 640px; margin: 0 0 32px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-ico { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.eligibility { margin-top: 24px; background: linear-gradient(135deg, #eef2f9, #f3f6fb); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.eligibility strong { display: block; font-family: "Playfair Display", serif; color: var(--navy); font-size: 1.2rem; margin-bottom: 12px; }
.eligibility ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.eligibility li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; }
.eligibility li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }

/* ---------- Schedule ---------- */
.schedule { margin-top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: none; }
.timeline .t { font-family: "Playfair Display", serif; font-weight: 700; color: var(--navy); min-width: 120px; white-space: nowrap; }
.timeline .e { color: var(--ink-soft); }

/* ---------- Bracket ---------- */
.bracket-status { background: rgba(195, 154, 63, 0.12); border: 1px solid rgba(195, 154, 63, 0.4); color: #8a6a1f; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 28px; font-weight: 500; }
.bracket-scroll { overflow-x: auto; padding-bottom: 10px; }
.bracket { display: flex; gap: 40px; min-width: 720px; align-items: stretch; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; flex: 1; }
.match {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.match em { color: var(--ink-soft); font-style: normal; font-size: 0.8rem; }
.match .seed { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--navy); color: #fff; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.match.muted { color: var(--ink-soft); justify-content: center; border-style: dashed; background: transparent; box-shadow: none; }
.round.champ { justify-content: center; flex: 0.7; }
.match.trophy { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; font-family: "Playfair Display", serif; font-weight: 800; justify-content: center; border: none; }

/* Live bracket rendered from bracket.json (hosted in a Gist, so updates need no deploy) */
.round.live { justify-content: flex-start; gap: 8px; }
.round-matches { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.round-title { font-family: "Playfair Display", serif; font-weight: 700; color: var(--navy); font-size: 0.92rem; text-align: center; }
.match.live { flex-direction: column; align-items: stretch; gap: 6px; }
.match.live .team { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.match.live .team .nm { flex: 1; }
.match.live .team .score { font-weight: 700; font-variant-numeric: tabular-nums; }
.match.live .team.win { color: var(--navy); font-weight: 700; }
.match.live .team.win .score { color: var(--gold-deep); }
.match.live .vs { text-align: center; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.match.live .when { margin-top: 3px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 0.72rem; color: var(--ink-soft); text-align: center; }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.section-accent .form { background: #20406e; border-color: #345a8a; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); transition: border 0.12s, box-shadow 0.12s; width: 100%;
}
.section-accent .form input, .section-accent .form select { background: #1a3560; border-color: #345a8a; color: #eaf0f8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 72, 123, 0.2); }
.form textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-soft); }
.form label.check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.captcha { margin: 2px 0; overflow-x: auto; }
.form-note { margin: 0; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #1f7a4d; }
.form-note.err { color: #c0392b; }
.news-form { max-width: 480px; margin: 0 auto; text-align: left; }
.news-form .captcha { align-self: center; }

/* ---------- Champion photo ---------- */
.champion-photo { margin: 8px auto 0; max-width: 500px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--white); }
.champion-photo img { width: 100%; display: block; }
.champion-photo figcaption { padding: 16px 20px; text-align: center; font-family: "Playfair Display", serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-group { font-family: "Playfair Display", serif; color: var(--navy); font-size: 1.2rem; margin: 26px 0 2px; }
.faq-group:first-child { margin-top: 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq details[open] summary { color: var(--navy); }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.65; }
.faq-a a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.faq-foot { margin: 22px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.97rem; }
.faq-foot a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6db; padding: 54px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.footer-brand-row img { height: 46px; width: auto; }
.footer-brand { color: #fff; font-family: "Playfair Display", serif; font-size: 1.05rem; font-weight: 700; margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #b9c6db; font-weight: 500; }
.footer-links a:hover { color: var(--gold); }
.copyright { grid-column: 1 / -1; border-top: 1px solid #2c3f5c; padding-top: 20px; margin: 10px 0 0; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { display: block; }
  .hero-trophy { display: none; }
  .hero-content { max-width: 720px; text-align: left; }
  .hero-content .lede { margin-left: 0; margin-right: 0; }
  .hero-content .hero-cta, .hero-content .stat-strip { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 84px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-160%); transition: transform 0.25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; }
  .nav a.btn { margin: 10px 24px; text-align: center; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
