/* ==========================================================
   SECOND SERVE — stylesheet
   Design language: hard-court blue + court lines + soft rounded type.
   Change a colour here and it changes across every page.
   ========================================================== */

:root {
  --ink:        #0a1f33;   /* near-black navy, all body text        */
  --court:      #0054bd;   /* deep hard-court blue, big blocks      */
  --court-dark: #003f8f;   /* darker blue for footer                */
  --court-out:  #117a16;   /* green apron outside the court lines   */
  --ball:       #b9d90f;   /* tennis yellow, accent only            */
  --paper:      #faf9f5;   /* warm off-white page background        */
  --paper-2:    #f0eee7;   /* slightly darker panel                 */
  --line:       #d8d4c8;   /* hairlines                             */
  --muted:      #5f6b73;   /* secondary text                        */
  --white:      #ffffff;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-feature-settings: 'kern' 1;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

/* ---------------- Typography ---------------- */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  font-variation-settings: 'SOFT' 30;
}
h1 { font-size: clamp(2.5rem, 6.6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1.2; }
p  { margin-bottom: 18px; }
a  { color: inherit; }

/* small section label */
.label {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 20px;
}
.label.on-court { color: var(--ball); }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; max-width: 60ch; color: var(--muted); }
.lead.on-court { color: rgba(255,255,255,0.94); }

/* ---------------- Scroll progress bar ---------------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--ball); z-index: 200; transition: width 0.08s linear;
}

/* ---------------- Nav ---------------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,245,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}
.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  transition: padding 0.25s ease;
}
header.site.shrunk .nav { padding: 8px 32px; }
.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  transition: opacity 0.18s ease;
}
.logo:hover { opacity: 0.85; }
/* the full circular badge, used exactly as supplied */
.logo .badge { height: 58px; width: auto; display: block; flex: none; }
header.site.shrunk .logo .badge { height: 46px; }
footer.site .logo .badge { height: 84px; }
@media (max-width: 720px) {
  .logo .badge { height: 46px; }
  footer.site .logo .badge { height: 72px; }
}
.nav-links { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0;
  text-decoration: none; color: var(--muted);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--ball); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.95rem; letter-spacing: 0; font-weight: 700;
  text-decoration: none; cursor: pointer;
  padding: 16px 30px; border: 2px solid var(--ink); background: var(--ink);
  color: var(--paper); border-radius: 4px;
  transition: transform 0.15s ease, background 0.18s, color 0.18s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ball); }
.btn.ball  { background: var(--ball); border-color: var(--ball); color: var(--ink); }
.btn.ball:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn.line  { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn.line:hover { border-color: var(--ball); color: var(--ball); box-shadow: none; transform: translate(-2px,-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------------- Sections ---------------- */
section { padding: 108px 0; position: relative; }
.court   { background: var(--court); color: var(--white); }
.court h2, .court h3 { color: var(--white); }
.panel   { background: var(--paper-2); }

/* section index number, top-right of a section */
.sec-no {
  position: absolute; top: 34px; right: 32px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; color: var(--line);
}
.court .sec-no { color: rgba(255,255,255,0.28); }

/* ---------------- Hero with court lines ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--court-out);   /* green surround, like the apron of a real court */
  color: var(--white);
  padding: 132px 0 116px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; font-size: clamp(2.9rem, 7.4vw, 6rem); }
.hero h1 em { font-style: normal; color: var(--ball); }
.hero .lead { margin-top: 26px; }
.court-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
/* the blue playing surface inside the lines */
.court-lines .surface { fill: var(--court); stroke: none; }
/* the painted white lines themselves */
.court-lines line {
  stroke: rgba(255,255,255,0.62); fill: none; stroke-width: 3;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 2.1s cubic-bezier(.22,.8,.3,1) forwards;
}
.court-lines line:nth-child(3) { animation-delay: 0.15s; }
.court-lines line:nth-child(4) { animation-delay: 0.30s; }
.court-lines line:nth-child(5) { animation-delay: 0.45s; }
.court-lines line:nth-child(6) { animation-delay: 0.60s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- Big stat numbers ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 0; }
.stat {
  padding: 40px 30px 36px 0;
  border-top: 2px solid rgba(255,255,255,0.22);
}
.stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; color: var(--ball);
  display: block;
}
.stat .cap {
  margin-top: 16px; font-size: 0.95rem;
  color: rgba(255,255,255,0.86); max-width: 26ch;
}

/* ---------------- Numbered blocks (replaces soft cards) ---------------- */
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 0; }
.block {
  padding: 36px 32px 40px 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.court .block { border-top-color: rgba(255,255,255,0.3); }
.block .bno {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted);
  display: block; margin-bottom: 22px;
}
.court .block .bno { color: var(--ball); }
.block h3 { margin-bottom: 12px; }
.block p  { font-size: 0.98rem; color: var(--muted); margin-bottom: 0; }
.court .block p { color: rgba(255,255,255,0.88); }

/* the three "Serve ..." blocks read as headers, not card titles */
.block.serve h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.block.serve {
  padding-top: 30px;
  display: flex;
  flex-direction: column;   /* lets the photo sit at the bottom of every column */
}
.block.serve figure { margin-top: auto; }
.block.serve p { margin-bottom: 26px; }
.block.serve .bno { color: var(--ink); opacity: 0.45; }

/* illustration under each block */
.block figure { margin-top: 26px; }
.block figure img {
  display: block; width: 100%; height: 210px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.block figcaption {
  margin-top: 12px; font-size: 0.82rem; line-height: 1.5;
  color: var(--muted); letter-spacing: 0.01em;
}
.block figcaption .credit {
  display: block; margin-top: 3px;
  font-size: 0.74rem; opacity: 0.75;
}

/* ---------------- Founder block on the About page ---------------- */
.founder {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.founder-photo { margin: 0; }
.founder-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
}
.founder-text { max-width: 60ch; }
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; gap: 30px; }
  .founder-photo { max-width: 300px; }
}

/* ---------------- Steps with a drawn spine ---------------- */
.steps { position: relative; padding-left: 74px; max-width: 780px; }
.steps::before {
  content: ""; position: absolute; left: 25px; top: 12px; bottom: 12px;
  width: 2px; background: var(--line);
}
.step { position: relative; padding-bottom: 54px; }
.step:last-child { padding-bottom: 0; }
.step .sno {
  position: absolute; left: -74px; top: -4px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem; font-weight: 800;
  transition: background 0.3s ease, transform 0.3s ease;
}
.step.in .sno { background: var(--ball); transform: scale(1.06); }
.step h3 { margin-bottom: 10px; }
.step p  { color: var(--muted); margin-bottom: 0; }

/* ---------------- Table ---------------- */
table { width: 100%; border-collapse: collapse; margin: 34px 0 14px; }
th, td { text-align: left; padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
th {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; border-bottom-width: 2px; border-bottom-color: var(--ink);
}
.tag {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 12px; background: var(--ball); color: var(--ink); display: inline-block;
}
.tag.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ---------------- Lists ---------------- */
ul.ticks { list-style: none; }
ul.ticks li {
  padding: 13px 0 13px 30px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 0.97rem;
}
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 10px; height: 10px; background: var(--ball);
}
ul.ticks li:last-child { border-bottom: none; }
ul.ticks.no li::before { background: var(--line); }

/* ---------------- Forms ---------------- */
form { max-width: 580px; }
.field { margin-bottom: 22px; }
label {
  display: block; margin-bottom: 8px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted);
}
input, textarea, select {
  width: 100%; padding: 14px 0; font: inherit; font-size: 1rem;
  background: transparent; color: var(--ink);
  border: none; border-bottom: 2px solid var(--line); border-radius: 0;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--ball); }

/* inputs sitting on a blue block need their own light surface to stay readable */
.court label { color: rgba(255,255,255,0.78); }
.court input, .court textarea, .court select {
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 4px;
  padding: 14px 15px;
}
.court input:focus, .court textarea:focus, .court select:focus {
  border-color: var(--ball); box-shadow: 0 0 0 3px rgba(228,243,74,0.35);
}
.court input::placeholder, .court textarea::placeholder { color: #8a949b; }
textarea { min-height: 120px; resize: vertical; }
select { cursor: pointer; }
.hint { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

/* ---------------- FAQ ---------------- */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 20px; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 1.3rem; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { margin: 14px 0 0; color: var(--muted); }

/* ---------------- Closing call to action ---------------- */
.closer { background: var(--ball); color: var(--ink); padding: 96px 0; text-align: center; }
.closer h2 { margin-bottom: 18px; }
.closer p { max-width: 52ch; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------------- Footer ---------------- */
footer.site { background: var(--court-dark); color: rgba(255,255,255,0.6); padding: 76px 0 34px; }
footer.site .logo { color: var(--white); }
footer.site h4 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ball); margin-bottom: 18px; font-weight: 700;
}
footer.site a { color: rgba(255,255,255,0.72); text-decoration: none; display: block; margin-bottom: 10px; font-size: 0.92rem; }
footer.site a:hover { color: var(--ball); }
footer.site a.logo { display: flex; margin-bottom: 16px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 40px; }
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.82rem; letter-spacing: 0; color: rgba(255,255,255,0.45);
}

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.22,.8,.3,1), transform 0.7s cubic-bezier(.22,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.09s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .court-lines line { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .nav  { padding: 14px 22px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.08em; }
  section { padding: 72px 0; }
  .hero { padding: 84px 0 72px; }
  .steps { padding-left: 56px; }
  .steps::before { left: 18px; }
  .step .sno { left: -56px; width: 38px; height: 38px; font-size: 0.8rem; }
  .sec-no { display: none; }
  .slogan .wrap { font-size: 0.7rem; letter-spacing: 0.16em; }
}
