/* Rocketball — the racquetball pages (2026-10-28). Same palette and type as the film's homepage. */
:root { --cream:#f5f0e8; --ink:#0d0b08; --gold:#c9a84c; --gold-light:#e8c97a; --rust:#8b3a2a; --sage:#4a5c4e; --warm-gray:#888070; --parchment:#ede7d8; }
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body { background:var(--ink); color:var(--cream); font-family:'DM Sans',sans-serif; font-weight:300; overflow-x:hidden; line-height:1.6; }
a { color:var(--gold-light); }
nav { position:fixed; top:0; left:0; right:0; z-index:100; display:flex; justify-content:space-between; align-items:center; padding:0.8rem 5vw;
  background:rgba(13,11,8,0.97); backdrop-filter:blur(12px); border-bottom:1px solid rgba(201,168,76,0.15); }
.nav-logo { font-family:'Bebas Neue',sans-serif; font-size:1.6rem; letter-spacing:0.12em; color:var(--gold); text-decoration:none; }
.nav-links { display:flex; gap:1.6rem; list-style:none; }
.nav-links a { font-family:'Bebas Neue',sans-serif; font-size:0.85rem; letter-spacing:0.18em; color:var(--cream); text-decoration:none; opacity:0.85; transition:color 0.3s; }
.nav-links a:hover, .nav-links a.here { color:var(--gold); opacity:1; }
@media (max-width:760px) { .nav-links { display:none; } }
main { padding:7.5rem 6vw 4rem; max-width:1100px; margin:0 auto; }
.section-label { font-family:'Bebas Neue',sans-serif; font-size:0.75rem; letter-spacing:0.35em; color:var(--gold); margin-bottom:1rem; display:flex; align-items:center; gap:1rem; }
.section-label::after { content:''; display:block; width:40px; height:1px; background:var(--gold); opacity:0.5; }
h1.section-title, h2.section-title { font-family:'Cormorant Garamond',serif; font-weight:300; font-size:clamp(2.2rem,5vw,4rem); line-height:1.1; margin-bottom:1.2rem; }
h1 em, h2 em { font-family:'Cormorant Garamond',serif; font-style:italic; color:var(--gold-light); }
h2.sub { font-family:'Cormorant Garamond',serif; font-weight:400; font-size:1.9rem; margin:3rem 0 0.8rem; color:var(--gold-light); }
h3 { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:1.35rem; margin:1.6rem 0 0.4rem; }
p.lead { font-size:1.1rem; max-width:720px; color:#d9d2c4; margin-bottom:1.6rem; }
p { max-width:760px; }
.btn-primary { display:inline-block; font-family:'Bebas Neue',sans-serif; font-size:1rem; letter-spacing:0.15em; color:var(--ink); background:var(--gold); padding:0.75em 2.2em; text-decoration:none; transition:background 0.3s, transform 0.2s; }
.btn-primary:hover { background:var(--gold-light); transform:translateY(-2px); }
.btn-ghost { display:inline-block; font-family:'Bebas Neue',sans-serif; font-size:1rem; letter-spacing:0.15em; color:var(--cream); border:1px solid rgba(245,240,232,0.4); padding:0.75em 2.2em; text-decoration:none; transition:border-color 0.3s, transform 0.2s; }
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }
.actions { display:flex; gap:0.8rem; flex-wrap:wrap; margin:1.2rem 0 2rem; }
.doors { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin:2rem 0; }
.door { display:block; text-decoration:none; color:var(--cream); border:1px solid rgba(245,240,232,0.15); padding:1.6rem 1.4rem; transition:border-color 0.3s, transform 0.2s; background:rgba(245,240,232,0.03); }
.door:hover { border-color:var(--gold); transform:translateY(-3px); }
.door .k { font-family:'Bebas Neue',sans-serif; font-size:1.3rem; letter-spacing:0.12em; color:var(--gold); display:block; margin-bottom:0.4rem; }
.door .d { font-size:0.92rem; color:#cfc7b8; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1rem; margin:1rem 0 2rem; }
.card { border:1px solid rgba(245,240,232,0.14); padding:1.2rem 1.2rem 1rem; background:rgba(245,240,232,0.03); }
.card .name { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:1.3rem; line-height:1.2; }
.card .biz { color:var(--gold-light); font-size:0.95rem; }
.card .where { color:var(--warm-gray); font-size:0.85rem; margin:0.25rem 0 0.6rem; }
.card .blurb { font-size:0.9rem; color:#d9d2c4; margin-bottom:0.7rem; }
.card .links { display:flex; gap:0.6rem; flex-wrap:wrap; }
.card .links a { font-family:'Bebas Neue',sans-serif; font-size:0.8rem; letter-spacing:0.18em; color:var(--cream); border:1px solid rgba(245,240,232,0.2); padding:0.45em 1em; text-decoration:none; transition:border-color 0.3s, color 0.3s; }
.card .links a:hover { border-color:var(--gold); color:var(--gold); }
.tag { display:inline-block; font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink); background:var(--gold); padding:0.15em 0.6em; margin-left:0.4em; vertical-align:middle; }
.note { border-left:2px solid var(--gold); padding:0.6rem 1rem; color:#d9d2c4; font-size:0.95rem; margin:1.4rem 0; max-width:760px; background:rgba(201,168,76,0.06); }
.muted { color:var(--warm-gray); font-size:0.85rem; }
.search { width:100%; max-width:480px; background:rgba(245,240,232,0.06); border:1px solid rgba(245,240,232,0.15); color:var(--cream); padding:0.85em 1.2em; font-family:'DM Sans',sans-serif; font-size:1rem; outline:none; margin:0.5rem 0 1.5rem; }
.search:focus { border-color:var(--gold); }
.signup-form { display:flex; flex-direction:column; gap:0.75rem; max-width:620px; }
.form-row { display:flex; gap:0.75rem; }
@media (max-width:540px) { .form-row { flex-direction:column; } }
.signup-form input, .signup-form textarea, .signup-form select { flex:1; background:rgba(245,240,232,0.06); border:1px solid rgba(245,240,232,0.15); color:var(--cream); padding:0.85em 1.2em; font-family:'DM Sans',sans-serif; font-size:0.9rem; outline:none; transition:border-color 0.3s; width:100%; }
.signup-form select option { color:var(--ink); }
.signup-form input::placeholder, .signup-form textarea::placeholder { color:var(--warm-gray); }
.signup-form input:focus, .signup-form textarea:focus, .signup-form select:focus { border-color:var(--gold); }
.signup-form textarea { resize:vertical; min-height:110px; }
.signup-form button { background:var(--gold); color:var(--ink); border:none; padding:0.9em 2.5em; font-family:'Bebas Neue',sans-serif; font-size:1.05rem; letter-spacing:0.15em; cursor:pointer; transition:background 0.3s, transform 0.2s; align-self:flex-start; min-width:180px; }
.signup-form button:hover { background:var(--gold-light); transform:translateY(-2px); }
.signup-form label { font-size:0.8rem; color:var(--warm-gray); letter-spacing:0.05em; }
footer { background:#070605; padding:3rem 6vw 2rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1.5rem; border-top:1px solid rgba(201,168,76,0.12); margin-top:3rem; }
.footer-logo { font-family:'Bebas Neue',sans-serif; font-size:1.8rem; color:var(--gold); letter-spacing:0.08em; }
.footer-links { display:flex; gap:1.5rem; list-style:none; flex-wrap:wrap; }
.footer-links a { font-family:'Bebas Neue',sans-serif; font-size:0.8rem; letter-spacing:0.18em; color:var(--warm-gray); text-decoration:none; transition:color 0.3s; }
.footer-links a:hover { color:var(--gold); }
.footer-contact { font-size:0.8rem; color:var(--warm-gray); width:100%; }
.footer-copy { font-size:0.72rem; color:#444; width:100%; }

/* places: the court search (2026-10-29) */
.pl-form { display:flex; gap:0.6rem; align-items:center; flex-wrap:wrap; }
.pl-form .search { margin:0.5rem 0 0.5rem; flex:1 1 260px; }
.pl-loc { background:transparent; border:1px solid var(--gold); color:var(--gold); padding:0.8em 1.1em; font-family:'DM Sans',sans-serif; font-size:0.95rem; cursor:pointer; white-space:nowrap; }
.pl-loc:hover { background:var(--gold); color:#141210; }
.pl-hint { color:rgba(245,240,232,0.6); font-size:0.9rem; margin:0.4rem 0 1.2rem; }
.pl-hint a { color:var(--gold); }
.pl-h { font-size:1.05rem; margin:0.6rem 0 1rem; color:var(--cream); }
.pl-row { display:flex; gap:1rem; padding:0.85rem 0; border-top:1px solid rgba(245,240,232,0.12); }
.pl-d { flex:0 0 4.2rem; font-size:1.35rem; font-weight:700; color:var(--gold); line-height:1.1; }
.pl-d span { font-size:0.7rem; font-weight:400; color:rgba(245,240,232,0.6); margin-left:2px; }
.pl-b { flex:1 1 auto; min-width:0; }
.pl-n { font-size:1.05rem; font-weight:600; }
.pl-n a { color:var(--cream); text-decoration:none; border-bottom:1px solid rgba(245,240,232,0.3); }
.pl-n a:hover { color:var(--gold); border-color:var(--gold); }
.pl-a { color:rgba(245,240,232,0.75); font-size:0.92rem; margin-top:2px; overflow-wrap:anywhere; }
.pl-a a { color:rgba(245,240,232,0.75); }
.pl-t { color:var(--gold); font-size:0.85rem; margin-top:2px; }
.pl-s { font-size:0.75rem; color:rgba(245,240,232,0.45); margin-top:3px; }
.pl-s a { color:rgba(245,240,232,0.55); }
@media (max-width:640px) { .pl-d { flex-basis:3.4rem; font-size:1.15rem; } .pl-row { gap:0.7rem; } }
.pl-alt { font-size:0.88rem; color:rgba(245,240,232,0.6); margin:-0.4rem 0 1rem; }
.pl-alt a { color:var(--gold); }

/* coaches: near you · coach or program · online lessons (2026-10-29) */
.co-row { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:1rem; margin:0.6rem 0 1rem; align-items:stretch; }
.co-f { display:flex; flex-direction:column; min-width:0; }
.co-k { display:block; font-family:'Bebas Neue',sans-serif; font-size:1.05rem; letter-spacing:0.2em; color:var(--gold); margin-bottom:0.4rem; line-height:1; }
.co-f .search { margin:0; max-width:none; width:100%; box-sizing:border-box; }
.co-on { border:1px solid var(--gold); background:rgba(201,168,76,0.07); padding:0.6rem 0.9rem 0.6rem; cursor:pointer; transition:background .15s; }
.co-on:hover, .co-on:focus { background:rgba(201,168,76,0.16); outline:none; }
.co-on .co-k { font-size:1.15rem; margin:0 0 0.55rem; padding-bottom:0.45rem; border-bottom:1px solid rgba(201,168,76,0.55); }
.co-list { list-style:none; margin:0; padding:0; font-size:0.9rem; line-height:1.5; color:#d9d2c4; font-weight:300; }
.co-list li span { color:var(--warm-gray); font-size:0.8rem; }
.co-list .co-none { color:var(--warm-gray); font-size:0.88rem; }
.co-more { margin-top:0.45rem; font-family:'Bebas Neue',sans-serif; font-size:0.85rem; letter-spacing:0.16em; color:var(--gold); }
.co-empty { cursor:default; }
.co-mi { font-family:'Bebas Neue',sans-serif; font-size:1.05rem; letter-spacing:0.1em; color:var(--gold); margin-bottom:0.25rem; }
.co-modal { position:fixed; inset:0; background:#0d0b08; z-index:50; overflow:auto; padding:2rem 1rem; }
.co-modal-in { max-width:1000px; margin:0 auto; position:relative; }
.co-x { position:absolute; right:0; top:-0.4rem; background:none; border:1px solid rgba(245,240,232,0.3); color:var(--cream); font-size:1.1rem; width:2.4rem; height:2.4rem; cursor:pointer; }
.co-x:hover { border-color:var(--gold); color:var(--gold); }
.co-tablewrap { overflow-x:auto; }
.co-table { width:100%; border-collapse:collapse; font-size:0.95rem; margin-top:1rem; }
.co-table th { text-align:left; font-family:'Bebas Neue',sans-serif; font-weight:400; letter-spacing:0.14em; color:var(--gold); padding:0.5rem 0.6rem; border-bottom:1px solid rgba(201,168,76,0.5); }
.co-table td { padding:0.6rem 0.6rem; border-bottom:1px solid rgba(245,240,232,0.12); vertical-align:top; }
.co-table a { color:var(--gold-light); }
@media (max-width:760px) { .co-row { grid-template-columns:1fr; } .co-modal { padding:1rem 16px; } }

/* The front page hero (2026-10-30): the court photo (a coach teaching a beginner) fills the first screen, like the film's
   homepage. The photo is bright (pale walls, light floor), so the words never sit on the bare photo: a shade darkens the
   lower band to the page's ink and the text stands in that band, bottom-left, where the court is empty anyway. */
.hero { position:relative; min-height:92svh; min-height:max(92svh, 600px); display:flex; flex-direction:column; justify-content:flex-end; padding:9rem 6vw 3.5rem; overflow:hidden; background:var(--ink); }
/* The photo starts just under the nav (a thin band of ink between), anchored at its top edge so the tip of the student's
   raised racquet is in full view; the slow zoom grows downward from that edge and never hides it. */
.hero-bg { position:absolute; inset:0; top:76px; background-image:url('/racquetball/img/court-lesson-1920.jpg?v=2'); background-size:cover; background-position:center top; transform:scale(1.04); transform-origin:top center; animation:rb-hero-zoom 24s ease-in-out infinite alternate; }
@keyframes rb-hero-zoom { from { transform:scale(1.04); } to { transform:scale(1.10) translateX(-1%); } }
.hero-shade { position:absolute; inset:0; top:76px; /* the shade starts where the photo starts, under the nav, so the two end together */
  background:
    linear-gradient(to bottom, rgba(13,11,8,0.30) 0%, rgba(13,11,8,0.10) 28%, rgba(13,11,8,0.55) 62%, rgba(13,11,8,0.94) 100%),
    linear-gradient(to right, rgba(13,11,8,0.55) 0%, rgba(13,11,8,0.25) 45%, rgba(13,11,8,0) 75%); }
.hero-text { position:relative; z-index:1; max-width:1100px; width:100%; margin:0 auto; }
.hero-text .section-title { margin-bottom:0; text-shadow:0 2px 24px rgba(13,11,8,0.6); font-size:clamp(2.6rem,6vw,4.8rem); }
.hero-cta { display:inline-block; margin-top:1.1rem; padding:0.85rem 1.5rem; min-height:48px; box-sizing:border-box; background:var(--gold); color:var(--ink); font-family:'Bebas Neue',sans-serif; font-size:1.35rem; letter-spacing:0.14em; text-decoration:none; border:1px solid var(--gold); box-shadow:0 2px 18px rgba(13,11,8,0.45); transition:background 0.2s, transform 0.2s; }   /* the hub's one call: Find a Coach, on the photo, first screen on every size (2026-11-01) */
.hero-cta:hover { background:var(--cream); transform:translateY(-2px); }
.hero-cta .arrow { margin-left:0.4em; }
/* On a desktop the words sit at the student's elbow height (the photo is 16:9 and top-anchored at 76px, so her elbow is at
   about 76px + 29 % of the photo's height = 76px + 16.3vw), flush left at the page gutter so the title ends before her. */
@media (min-width:761px) {
  /* The photo is width-bound on a desktop (16:9, anchored top, cropped at the floor), so every landmark is a share of
     56.25vw: the elbow at 29 % (16.3vw), the paragraph at 66 % (37.1vw). The hero ends 10rem under the paragraph's top,
     so the doors follow close behind it instead of after a band of empty floor. */
  .hero { justify-content:flex-start; padding-top:calc(76px + 16.3vw); min-height:calc(76px + 37.1vw + 10rem); }
  .hero-text { margin:0; max-width:none; }
  /* The lead paragraph keeps the page's centred column (the same left edge as the doors below), below the coach's glove. */
  .hero-lead { position:absolute; z-index:1; left:max(6vw, calc((100% - 1100px) / 2 + 6vw)); top:calc(76px + 37.1vw); width:min(88vw, 740px); margin:0; font-size:1.13rem; color:#efe9dc; text-shadow:0 1px 10px rgba(13,11,8,0.8); }
}
/* Between a phone and a wide desktop (761–1320px) the title + button block would run into the absolutely placed lead
   (the title block grows by the button's height while the lead's top is pinned at 76px + 37.1vw), so the lead flows after
   the button instead; above 1320px the two never meet and the elbow/paragraph landmarks stand as settled 10-30. */
@media (min-width:761px) and (max-width:1320px) {
  .hero-lead { position:relative; left:auto; top:auto; margin:1.3rem 0 0; }
}
@media (max-width:760px) {
  /* On a phone the photo is the top 62svh of the hero and the lead paragraph follows the title on the ink below it. */
  .hero { min-height:0; padding:calc(46svh - 12.5rem) 6vw 0.25rem; justify-content:flex-start; }   /* 2026-11-01 (Alex: "IF ON A PHONE … SEES 'FIND A COACH' IMMEDIATELY WITHOUT SCROLLING"): the photo band shrank from 62svh to 46svh and the Find a Coach button sits under the title, on the first screen of any phone */
  .hero-bg, .hero-shade { bottom:auto; height:46svh; }
  .hero-shade { background:linear-gradient(to bottom, rgba(13,11,8,0.30) 0%, rgba(13,11,8,0.12) 30%, rgba(13,11,8,0.60) 62%, rgba(13,11,8,1) 100%); }
  .hero-bg { background-image:url('/racquetball/img/court-lesson-1080.jpg?v=2'); background-position:60% top; }
  .hero-lead { position:relative; z-index:1; margin:1.1rem 0 0; font-size:1rem; }
  main.after-hero { padding-top:1.5rem; }
}
main.after-hero { padding-top:1.5rem; }
main.after-hero .doors { margin-top:0.5rem; }
main.after-hero .lead { font-size:1.18rem; }

@media (prefers-reduced-motion: reduce) { .hero-bg { animation:none; transform:none; } }

/* The back pages (2026-10-30): the same hero, shorter. Each page names its own photo on the .hero-bg; the label, the title
   and the lead paragraph stand at the bottom of the band, the title at the gutter and the paragraph in the page's column. */
.hero.hero-sub { justify-content:flex-end; padding:8rem 6vw 2.2rem; min-height:max(62svh, 520px); }
.hero-sub .hero-text { margin:0; max-width:none; }
.hero-sub .hero-bg { transform:none; animation:none; } /* the back pages' photo stands still; a zoom would push it past its shade */
.hero-sub .section-title { font-size:clamp(2.3rem, 4.8vw, 4rem); margin-bottom:0; }
.hero-sub .hero-lead { position:static; width:min(88vw, 740px); margin:1.2rem 0 0; font-size:1.13rem; color:#efe9dc; text-shadow:0 1px 10px rgba(13,11,8,0.8); }
main.after-hero.sub { padding-top:2.2rem; }
@media (min-width:761px) {
  .hero-sub .hero-lead { margin-left:max(0px, calc((100vw - 1100px) / 2)); }
}
@media (max-width:760px) {
  .hero.hero-sub { min-height:max(56svh, 440px); padding:6.5rem 6vw 1.4rem; }
  .hero-sub .hero-bg, .hero-sub .hero-shade { bottom:0; height:auto; }
  .hero-sub .hero-shade { background:linear-gradient(to bottom, rgba(13,11,8,0.30) 0%, rgba(13,11,8,0.15) 30%, rgba(13,11,8,0.70) 65%, rgba(13,11,8,0.96) 100%); }
  .hero-sub .hero-lead { margin-top:1rem; font-size:1.05rem; }
}

/* hero-full (Coaches, Places, Organizations): the whole photo shows (its height is --photo, 16:9 = 56.25vw by default), top-anchored and width-bound (var(--photo, 56.25vw) tall), nothing of it
   hidden; the label and title stand over its lowest band (the floor), the lead paragraph follows BELOW the photo on ink,
   so the racquets at the bottom of these pictures stay in view (Alex 2026-10-30). */
.hero.hero-sub.hero-full { min-height:0; padding-top:calc(76px + var(--photo, 56.25vw) - 10.5rem); padding-bottom:1.6rem; }
.hero-sub.hero-full .hero-bg, .hero-sub.hero-full .hero-shade { bottom:auto; height:var(--photo, 56.25vw); }
.hero-sub.hero-full .hero-shade { background:
    linear-gradient(to bottom, rgba(13,11,8,0.28) 0%, rgba(13,11,8,0.08) 40%, rgba(13,11,8,0.55) 76%, rgba(13,11,8,0.97) 100%),
    linear-gradient(to right, rgba(13,11,8,0.45) 0%, rgba(13,11,8,0.15) 40%, rgba(13,11,8,0) 70%); }
.hero-sub.hero-full .hero-lead { margin-top:1.5rem; }
@media (max-width:760px) {
  .hero.hero-sub.hero-full { padding-top:calc(76px + var(--photo, 56.25vw) + 0.8rem); padding-bottom:1rem; }
  .hero-sub.hero-full .hero-bg, .hero-sub.hero-full .hero-shade { bottom:auto; height:var(--photo, 56.25vw); }
  .hero-sub.hero-full .hero-shade { background:linear-gradient(to bottom, rgba(13,11,8,0.25) 0%, rgba(13,11,8,0.1) 60%, rgba(13,11,8,0.6) 100%); }
}

/* hero-pin: a hero-full page whose label and title are pinned at a chosen height of the photo (--title-top), while the
   lead paragraph still follows below the photo. Coaches: just under the coach's shoulders. Places: the top of the photo. */
@media (min-width:761px) {
  .hero.hero-sub.hero-full.hero-pin { padding-top:calc(76px + var(--photo, 56.25vw)); }
  .hero-full.hero-pin .hero-text { position:absolute; left:6vw; right:6vw; top:var(--title-top, 76px); z-index:1; }
  .hero-full.hero-pin .hero-lead { margin-top:1.5rem; }
}

/* lead-pin: on a hero-pin page the lead paragraph too is pinned at a height of the photo (--lead-top), in the page column.
   Places: just under the upper racquet. */
@media (min-width:761px) {
  .hero-full.hero-pin.lead-pin .hero-lead { position:absolute; top:var(--lead-top, 50%); left:max(6vw, calc((100vw - 1100px) / 2 + 6vw)); margin:0; z-index:1; }
  .hero.hero-sub.hero-full.hero-pin.lead-pin { padding-bottom:0; }
}

/* pull-up: the page body climbs over the photo's lowest band (--pull = how far above the photo's bottom its first line
   starts). Places: the search box starts half-way up the lower racquet. */
@media (min-width:761px) {
  main.after-hero.sub.pull-up { position:relative; z-index:2; margin-top:calc(-1 * var(--pull, 0px) - 2.2rem); }
}

/* title-line: the title on one line (short photo strips, e.g. Organizations) */
@media (min-width:761px) {
  .hero-sub.title-line .section-title { font-size:clamp(2.2rem, 3.3vw, 3rem); white-space:nowrap; }
  .hero-sub.title-line .section-title br { display:none; }
  .hero-sub.title-line .section-title em { margin-left:0.25em; }
}

/* phone: no slow zoom on the front photo. The zoom (scale 1.04, anchored at the top) pushed the photo's bright floor
   4% past the shade's bottom edge, which showed as a light line through the lead text (Alex, Android, 2026-10-30). */
@media (max-width:760px) {
  .hero .hero-bg { transform:none; animation:none; }
  .hero .hero-shade { height:calc(62svh + 2px); }
}
