/* ===========================================================
   Play Junior Tennis — shared stylesheet
   Palette: dark green / white / light gray  (clean & sporty)
   =========================================================== */

:root {
  --green:        #1f5e3a;   /* primary dark green        */
  --green-dark:   #163f28;   /* deeper green for hovers   */
  --green-light:  #2e8255;   /* accent / highlights       */
  --lime:         #c6e36a;   /* tennis-ball pop accent    */
  --gray-bg:      #f4f6f5;   /* light gray section bg      */
  --gray-line:    #e2e6e3;   /* borders / dividers        */
  --ink:          #1c2421;   /* body text                 */
  --muted:        #5d6b64;   /* secondary text            */
  --white:        #ffffff;
  --radius:       14px;
  --shadow:       0 6px 24px rgba(22, 63, 40, .08);
  --shadow-lg:    0 14px 40px rgba(22, 63, 40, .14);
  --maxw:         1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.2; color: var(--green-dark); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

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

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

.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 8px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-dark); color:#fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-lime { background: var(--lime); color: var(--green-dark); }
.btn-lime:hover { background: #b6d855; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-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(--green-dark); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .ball { font-size: 1.4rem; }
.brand-ball { width: 30px; height: 30px; display: block; flex: none; }
.footer-brand .brand-ball { width: 26px; height: 26px; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 420px) { .brand-logo { height: 36px; } }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 500;
}
.nav-links a:hover { background: var(--gray-bg); text-decoration: none; color: var(--green-dark); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.nav-cta { margin-left: 6px; }

/* mobile nav toggle (CSS only) */
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--green-dark); cursor: pointer; }
#nav-check { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--gray-line);
    padding: 10px 16px 18px; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: var(--shadow);
  }
  #nav-check:checked ~ .nav-links { max-height: 460px; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(22,63,40,.92) 0%, rgba(31,94,58,.78) 55%, rgba(46,130,85,.55) 100%),
    repeating-linear-gradient(135deg, #2e8255 0 22px, #287a4d 22px 44px);
  overflow: hidden;
}
.hero::after {
  /* tennis-ball seam motif */
  content: ""; position: absolute; right: -80px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--lime), #a9cf4f);
  opacity: .18;
}
.hero .container { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 92px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #e7f1ea; margin-top: 16px; }
.hero .btn-row { margin-top: 30px; }
.hero-badge {
  display:inline-block; background: rgba(198,227,106,.2); color: var(--lime);
  border: 1px solid rgba(198,227,106,.5);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* testimonials */
.quote-card { display: flex; flex-direction: column; }
.quote-card .stars { color: #f0b429; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { font-size: 1.05rem; color: var(--ink); font-style: italic; margin: 0 0 18px; flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.quote-card .who strong { color: var(--green-dark); display: block; font-size: .95rem; }
.quote-card .who span { color: var(--muted); font-size: .85rem; }

/* price tag */
.price { font-size: 1.6rem; font-weight: 800; color: var(--green); }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }

/* pricing tiers */
.tier { position: relative; text-align: center; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--green); border-width: 2px; box-shadow: var(--shadow-lg); }
.tier .tier-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--green-dark); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.tier h3 { font-size: 1.15rem; }
.tier .per { font-size: 2.4rem; font-weight: 800; color: var(--green); margin: 8px 0 2px; }
.tier .per small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.tier .total { color: var(--muted); font-size: .95rem; }
.tier .save { display: inline-block; background: var(--gray-bg); color: var(--green-dark); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-top: 12px; }
.tier .save.muted { background: transparent; color: var(--muted); font-weight: 500; }
.tier .btn { margin-top: 18px; }

/* feature list */
.ticks { list-style: none; margin-top: 14px; }
.ticks li { padding: 6px 0 6px 30px; position: relative; color: var(--ink); }
.ticks li::before {
  content: "🎾"; position: absolute; left: 0; top: 5px; font-size: .95rem;
}

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.photo {
  border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-end; justify-content: flex-start; color:#fff;
  padding: 18px; font-weight: 600; position: relative; overflow: hidden;
}
.photo span { position: relative; z-index: 2; background: rgba(22,63,40,.55); padding: 6px 12px; border-radius: 8px; font-size:.85rem; }
.ph-green { background: linear-gradient(135deg, #1f5e3a, #2e8255); }
.ph-court { background: linear-gradient(160deg, #2e8255 0%, #287a4d 40%, #1f5e3a 100%); }
.ph-balls { background: radial-gradient(circle at 30% 30%, #c6e36a, #2e8255); }

/* ---------- schedule table ---------- */
.schedule-table { width: 100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th, .schedule-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-line); }
.schedule-table th { background: var(--green); color: #fff; font-weight: 600; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td:first-child { font-weight: 700; color: var(--green-dark); }
.slot { display:inline-block; background: var(--gray-bg); border:1px solid var(--gray-line); color: var(--green-dark); padding: 4px 10px; border-radius: 999px; font-size: .85rem; margin: 3px 4px 3px 0; }
.slot.full { background:#f1e3e3; color:#9c4b4b; border-color:#e6cccc; text-decoration: line-through; }

/* ---------- FAQ ---------- */
.faq-item { background:#fff; border:1px solid var(--gray-line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--green-dark);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--green-light); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid .photo { min-height: 220px; }

/* ---------- contact form ---------- */
.form-card { background:#fff; border:1px solid var(--gray-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--green-dark); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--gray-line); border-radius: 10px; background:#fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-light); border-color: var(--green-light); }
.field textarea { resize: vertical; min-height: 120px; }
.required { color: #b4543f; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--green); color:#fff; border-radius: var(--radius); padding: 48px 32px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-banner h2 { color:#fff; }
.cta-banner p { color:#dceee3; max-width: 540px; margin: 12px auto 0; }
.cta-banner .btn-row { margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-dark); color:#cfe0d6; padding: 48px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h4 { color:#fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color:#cfe0d6; }
.site-footer a:hover { color:#fff; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .85rem; color:#9fb8a8; text-align:center; }
.footer-brand { display:flex; align-items:center; gap:8px; font-weight:800; color:#fff; font-size:1.15rem; margin-bottom:10px; }

/* page header (interior pages) */
.page-head { background: var(--gray-bg); border-bottom: 1px solid var(--gray-line); padding: 56px 0; }
.page-head .container { max-width: 720px; }

/* small helpers */
.mt-0 { margin-top: 0; }
.note { font-size: .9rem; color: var(--muted); font-style: italic; }
.pill-note { display:inline-block; background: var(--lime); color: var(--green-dark); padding:4px 12px; border-radius:999px; font-size:.8rem; font-weight:700; }
