/* Tennis by Dan — shared styles
   Dark theme mirrors the original tennisbydan.com brand:
   near-black navy background, navy surfaces, yellow accent, white text. */

:root {
  --navy: #1e3a5f;        /* surface / brand navy */
  --navy-dark: #0b1526;   /* footer / deepest */
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --orange: #f97316;
  --green: #22c55e;

  --bg: #0f172a;          /* page background (near-black navy) */
  --bg-soft: #16294a;     /* alternating section (navy) */
  --surface: #1e3a5f;     /* cards on --bg */
  --surface-2: #274a72;   /* cards on --bg-soft */

  --ink: #e2e8f0;         /* body text */
  --white: #f8fafc;       /* headings */
  --muted: #b2bfd0;       /* secondary text — brightened for AA contrast on navy surfaces */
  --line: rgba(148, 163, 184, 0.18);

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Inter", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; color: var(--white); font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: #1a2a17; box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--blue-dark); color: #fff; }
.btn--dark:hover { background: #1d4ed8; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--white); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--yellow); }
/* Nav CTA is a button — keep dark text on yellow, overriding .nav-links a */
.nav-links a.btn--primary { color: #1a2a17; }
.nav-links a.btn--primary:hover { color: #1a2a17; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--white); }

/* ---------- Promo banner ---------- */
.promo {
  background: var(--yellow);
  color: #1a2a17;
  text-align: center;
  font-weight: 600;
  padding: 10px 20px;
  font-size: 0.95rem;
}
.promo strong { font-weight: 800; }

/* ---------- Private Lessons section (text + slider) ---------- */
.lessons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lessons-grid h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 16px; }
.lessons-grid > div > p { color: var(--muted); }

/* ---------- Pricing slider card ---------- */
.price-slider-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
  text-align: left;
}
.price-slider-card .pc-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}
.price-slider-card .pc-price {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--yellow);
  margin: 8px 0 6px;
}
.price-slider-card .pc-sub { color: var(--muted); font-size: 1.15rem; }
.price-slider-card .pc-save {
  display: inline-block;
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 7px 18px;
  border-radius: 999px;
}
.price-slider-card .pc-save[hidden] { display: none; }

/* range input */
.pc-slider-wrap { margin: 32px 0 8px; }
.pc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: #0f172a; outline: none; cursor: pointer;
}
.pc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.pc-slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); border: none; cursor: pointer;
}
.pc-ticks { display: flex; justify-content: space-between; margin-top: 12px; }
.pc-ticks span { color: var(--muted); font-weight: 700; font-size: 1rem; }
.pc-ticks span.active { color: var(--yellow); }
.price-slider-card hr { border: none; border-top: 1px solid var(--line); margin: 28px 0 20px; }
.price-slider-card .pc-note { color: var(--muted); font-size: 0.95rem; }
.pc-fallback { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.pc-fallback li { color: var(--ink); font-size: 1rem; }
.pc-fallback strong { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.92) 100%),
    url("../assets/hero-court.webp") center/cover no-repeat;
  color: #fff;
  padding: 100px 0 110px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
.hero h1 .accent { color: var(--yellow); }
.hero p { font-size: 1.25rem; margin: 20px 0 32px; max-width: 560px; color: #e5edf7; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, 0.5);
  padding: 6px 14px; border-radius: 999px;
}
.hero-badge svg { width: 18px; height: 18px; color: var(--yellow); }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 24px; margin-top: 44px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.section--soft .card { background: var(--surface-2); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote .who { margin-top: 16px; font-weight: 700; color: var(--white); font-style: normal; }
.quote .stars { color: var(--yellow); margin-bottom: 12px; letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, #16386b 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--line);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: #eef4fb; margin: 12px 0 26px; font-size: 1.1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-grid h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.credentials { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.credentials li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.credentials svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--white); margin-bottom: 7px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(15, 23, 42, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.9);
}
.field select option { background: var(--surface); color: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; text-align: center; }

.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,0.18); color: #93c5fd; display: grid; place-items: center; flex-shrink: 0; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }
.info-list a, .info-list span { color: var(--muted); }
.info-list a:hover { color: var(--yellow); }

/* Cancellation policy — dark surface, amber accent */
.policy-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(249, 115, 22, 0.10);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-sm);
}
.policy-note strong { color: #fdba74; font-size: 1rem; }
.policy-note p { color: var(--ink); font-size: 0.9rem; margin-top: 6px; }

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--yellow); color: #1a2a17;
  font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Footer (compact single row) ---------- */
.site-footer { background: var(--navy-dark); color: var(--muted); padding: 20px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1rem; }
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; }
.footer-contact { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--yellow); }
.footer-contact .sep { color: rgba(148, 163, 184, 0.4); }
.footer-copy { color: var(--muted); white-space: nowrap; }

/* ---------- Confirmation check (thanks page) ---------- */
.confirm-check {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--green);
  color: var(--green);
}
.confirm-check svg { width: 42px; height: 42px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 64px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: #dbe6f3; margin-top: 12px; font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .about-grid, .form-wrap, .lessons-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr; }
}
