/* PK Tennis Training — no external requests (no Google Fonts, no CDN, no trackers).
   This is deliberate: it keeps the site fast and avoids sending visitor IPs to third
   parties, which is what the privacy policy promises. Don't add a font CDN later. */

:root {
  --ink:        #14251c;
  --court:      #1d5c43;
  --court-deep: #123729;
  --clay:       #c25a34;
  --bg:         #fbfaf7;
  --surface:    #ffffff;
  --line:       #e4e1d9;
  --muted:      #5d6b63;
  --radius:     14px;
  --wrap:       1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--court); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  font-weight: 700; color: var(--clay); margin-bottom: .9em;
}

/* ---------- placeholder marker: every one of these must be replaced before launch ---------- */
.todo {
  background: #ffe9a8; color: #6b4c00; font-weight: 700;
  padding: 0 .35em; border-radius: 4px; white-space: nowrap;
  border-bottom: 2px dotted #b8901f;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); font-size: 1.06rem; }
.brand span { color: var(--court); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 600; }
.nav a:hover { color: var(--court); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-block; background: var(--court); color: #fff !important;
  text-decoration: none; font-weight: 700; font-size: .93rem;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--court-deep); }
.btn-ghost { background: transparent; color: var(--court) !important; border: 1.5px solid var(--court); }
.btn-ghost:hover { background: rgba(29,92,67,.07); }

/* ---------- hero ---------- */
.hero {
  /* Three layers, top to bottom: readability scrim, photo, fallback gradient.
     If img/hero.jpg is absent the photo layer simply fails and the gradient shows,
     so the hero never breaks — it just loses the picture. */
  background:
    linear-gradient(100deg,
      var(--court-deep) 0%,
      rgba(18,55,41,.95) 26%,
      rgba(18,55,41,.60) 46%,
      rgba(18,55,41,.28) 72%,
      rgba(18,55,41,.34) 100%),
    url('img/hero.jpg') center 38% / cover no-repeat,
    linear-gradient(165deg, var(--court-deep) 0%, var(--court) 62%, #237051 100%);
  color: #fff; padding: 84px 0 76px;
}

/* Narrow screens: the player sits right of frame and would hide behind the text,
   so shift the crop and deepen the scrim to keep the copy legible. */
@media (max-width: 860px) {
  .hero {
    background:
      linear-gradient(175deg,
        rgba(18,55,41,.93) 0%,
        rgba(18,55,41,.86) 55%,
        rgba(18,55,41,.62) 100%),
      url('img/hero-mobile.jpg') center 30% / cover no-repeat,
      linear-gradient(165deg, var(--court-deep) 0%, var(--court) 62%, #237051 100%);
  }
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #e2efe8; max-width: 40ch; margin-bottom: 1.8em; }
.hero .eyebrow { color: #9ed8bd; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero .btn:not(.btn-ghost) { background: #fff; color: var(--court-deep) !important; }
.hero .btn:not(.btn-ghost):hover { background: #e9f3ee; }

.credentials {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22);
  font-size: .87rem; color: #b9d8c9; font-weight: 600;
}

/* ---------- sections ---------- */
section { padding: 78px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 46px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
section.alt .card { background: var(--bg); }

/* ---------- lesson format line (replaces the old price block) ---------- */
.format {
  margin: 2px 0 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.format .unit {
  font-size: .82rem; color: var(--court); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}

/* ---------- booking call-to-action ---------- */
.booking-cta {
  margin-top: 34px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--clay);
  border-radius: var(--radius); padding: 34px;
}
section.alt .booking-cta { background: var(--bg); }
.booking-cta h3 { margin-bottom: .55em; }
.booking-cta p { color: var(--muted); font-size: .97rem; max-width: 64ch; }
.booking-cta .btn { margin-top: 8px; font-size: 1rem; padding: 13px 26px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.card ul li { margin-bottom: .4em; }

.price-note {
  margin-top: 30px; padding: 18px 22px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--clay);
  border-radius: 10px; font-size: .93rem; color: var(--muted);
}
section.alt .price-note { background: var(--bg); }
.price-note p:last-child { margin-bottom: 0; }

/* ---------- method ---------- */
.method-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--court); color: #fff; font-weight: 800; font-size: .92rem;
  margin-bottom: 16px;
}
.method-card p:last-child { margin-bottom: 0; }
.method-card p { color: var(--muted); font-size: .96rem; }

/* ---------- about ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 20px; margin-top: 32px; }
.stat { border-left: 3px solid var(--clay); padding-left: 16px; }
.stat .n { font-size: 1.9rem; font-weight: 800; color: var(--court); letter-spacing: -.03em; line-height: 1.1; }
.stat .l { font-size: .84rem; color: var(--muted); font-weight: 600; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { font-weight: 700; min-width: 108px; font-size: .93rem; }
.contact-list .v { color: var(--muted); font-size: .95rem; }
.contact-list .v a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a9bcb2; padding: 56px 0 34px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px,1fr)); gap: 34px; margin-bottom: 34px; }
.site-footer a { color: #cfe0d7; }
.legal-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.legal-line li { white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal-page { padding: 60px 0 80px; max-width: 760px; }
.legal-page h2 { margin-top: 2.2em; font-size: 1.35rem; }
.legal-page h2:first-of-type { margin-top: 1.2em; }
.legal-page ul { color: var(--muted); padding-left: 1.2em; }
.legal-page li { margin-bottom: .5em; }
.updated { color: var(--muted); font-size: .9rem; font-style: italic; }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; font-size: .93rem; }

/* ---------- "from" price, inside the booking CTA ---------- */
.from-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.from-price .lead-in {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--clay);
}
.from-price .amount {
  font-size: 2.3rem; font-weight: 800; color: var(--court); letter-spacing: -.035em;
}
.from-price .unit { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- about: portrait beside the text ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1.28fr;
  gap: 52px;
  align-items: start;
}
.about-photo { margin: 0; }
.about-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  /* on a narrow screen the tall portrait would push the text far down, so cap it */
  .about-photo img { max-height: 62vh; object-fit: cover; object-position: center 20%; }
}
