/* ═══════════════════════════════════════════════════════════════
   YES!TENNIS — styles.css
   Fictional site for accessibility training.

   DELIBERATE BARRIERS (do NOT fix):
     #4  .cta-btn              color:#f2a35c on #ffffff ≈ 2.2:1 contrast
     #5  .footer-inline-link   color:inherit (matches surrounding text);
                                text-decoration removed on :hover and
                                :focus so the only visual cue vanishes
                                on interaction
═══════════════════════════════════════════════════════════════ */

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

:root {
  --cream:      #f8efdc;
  --cream-alt:  #faf6ec;
  --mint:       #e6f2ea;
  --green-950:  #0c2116;
  --green-800:  #17512f;
  --green-700:  #1c6b3d;
  --green-600:  #2f8f57;
  --green-mid:  #8fcda0;
  --text-dark:  #1a2b1f;
  --text-body:  #4b5a4c;
  --orange:     #f2a35c;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 2px 20px rgba(23,60,40,.08);
  --font:       'Inter', system-ui, sans-serif;
  --font-head:  'Baloo 2', var(--font);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(23,60,40,.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.125rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--green-700);
}

.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 1.375rem;
}

.nav-links a {
  color: var(--green-700);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a:focus { color: var(--green-950); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { background: var(--cream); padding: 4.5rem 0; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow-pill {
  display: inline-block;
  background: #dcefdf;
  color: var(--green-700);
  font-size: .8125rem;
  font-weight: 600;
  padding: .375rem .875rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

/* BARRIER 2 — .hero-title is a <div>, not a heading element */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 560px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-body);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* BARRIER 4 — orange text on white ≈ 2.2:1 contrast (below 3:1) */
.cta-btn {
  display: inline-block;
  padding: .875rem 1.75rem;
  background: var(--white);
  color: var(--orange);
  border: none;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s;
}

.cta-btn:hover { transform: translateY(-1px); }
.cta-btn:focus { outline: 3px solid var(--green-700); outline-offset: 3px; }

.text-link {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus { text-decoration: underline; }

.hero-photo {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: 2rem;
  text-align: center;
}

/* BARRIER 1 — this img has no alt attribute (see index.html) */
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.hero-photo-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-body);
}

.hero-photo-caption {
  font-size: .8125rem;
  color: var(--text-body);
  max-width: 320px;
}

/* ── Section titles (shared) ──────────────────────────────────
   BARRIER 2 — every .section-title is a <div>, never a heading */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* ── How it works ──────────────────────────────────────────── */
.how-it-works { padding: 5rem 0; background: var(--cream-alt); }

.how-copy { max-width: 720px; font-size: 1.0625rem; }

/* BARRIER 3a — "Learn more" with no accessible name beyond the link text */
.inline-link {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover,
.inline-link:focus { text-decoration: underline; }

/* ── Why Yes!Tennis ────────────────────────────────────────── */
.why { padding: 5rem 0; background: var(--mint); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.why-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.why-icon--orange { background: var(--orange); }
.why-icon--green  { background: var(--green-800); }
.why-icon--mint   { background: var(--green-mid); }

.why-card-title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-dark);
  margin-bottom: .625rem;
}

.why-card-body { font-size: .9375rem; color: var(--text-body); }

/* ── Stories from the court ────────────────────────────────── */
.stories { padding: 5rem 0; background: var(--cream-alt); }

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial {
  background: var(--white);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.testimonial p    { font-size: 1rem; color: var(--text-dark); font-style: italic; margin-bottom: .875rem; }
.testimonial cite { font-size: .875rem; color: var(--green-700); font-style: normal; font-weight: 600; }

/* ── CTA banner ────────────────────────────────────────────── */
.cta-banner { padding: 4.5rem 0; background: var(--green-800); text-align: center; }

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}

.cta-sub { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--green-950); padding: 3rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo  { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: .625rem; }
.footer-note  { font-size: .875rem; color: rgba(255,255,255,.62); max-width: 320px; line-height: 1.5; }

.footer-col-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .875rem;
}

.footer-col { display: flex; flex-direction: column; gap: .625rem; }

.footer-col a {
  font-size: .9375rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus { color: var(--white); }

.footer-inline-text { font-size: .9375rem; color: rgba(255,255,255,.82); line-height: 1.5; }

/* BARRIER 5 — same colour as surrounding text (color:inherit); the only
   visual indicator is text-decoration:underline, which is removed on
   :hover and :focus so keyboard users lose the cue */
.footer-inline-link {
  color: inherit;
  text-decoration: underline;
}

.footer-inline-link:hover,
.footer-inline-link:focus { text-decoration: none; }

.footer-copyright {
  font-size: .8125rem;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links      { display: none; }
  .hero-inner     { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .testimonials   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
}
