/* New Visions WLC — colors taken from the church sign */
:root{
  --purple:#4a0b78;      /* sign background */
  --purple-deep:#2f064f;
  --violet:#6b17a6;
  --rose:#d6336f;        /* the WLC band */
  --rose-deep:#b31f57;
  --white:#fff;
  --wall:#f6f2fa;        /* painted block wall, tinted */
  --ink:#24122f;
  --muted:#6a5a76;
  --line:#e3d8ec;
  --display:"Young Serif", Georgia, serif;
  --body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap:68rem;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:5rem}
body{margin:0;font-family:var(--body);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--white)}
img,svg{max-width:100%;display:block}
a{color:var(--violet)}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.08;margin:0;text-wrap:balance}
h2{font-size:clamp(1.9rem,4.5vw,2.9rem)}
h3{font-size:1.25rem;margin-bottom:.4rem}
p{margin:0 0 1rem}
:focus-visible{outline:3px solid var(--rose);outline-offset:3px}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:1rem;z-index:99;background:#fff;padding:.5rem 1rem}

.btn{display:inline-block;background:var(--rose);color:#fff;font-weight:700;font-size:1.05rem;text-decoration:none;
  padding:.85rem 1.6rem;border:0;border-radius:.5rem;cursor:pointer;font-family:var(--body);
  box-shadow:0 3px 0 var(--rose-deep);transition:transform .12s, box-shadow .12s}
.btn:hover{transform:translateY(1px);box-shadow:0 2px 0 var(--rose-deep)}
.btn:active{transform:translateY(3px);box-shadow:none}
.btn-small{padding:.5rem 1.1rem;font-size:.95rem}
.btn-big{width:100%;font-size:1.35rem;padding:1.1rem;letter-spacing:.02em}

/* Header */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.6rem clamp(1rem,4vw,2.5rem);background:var(--purple);color:#fff}
.brand{display:flex;align-items:center;gap:.7rem;color:#fff;text-decoration:none}
.brand-cross{width:1.5rem;height:2.1rem;fill:#e9e4ee;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text b{font-family:var(--display);font-weight:400;font-size:1.3rem}
.brand-text i{font-style:normal;font-size:.78rem;opacity:.85}
.top nav{display:flex;align-items:center;gap:1.4rem}
.top nav a:not(.btn){color:#fff;text-decoration:none;font-weight:600;font-size:.95rem}
.top nav a:not(.btn):hover{text-decoration:underline}

/* Hero */
.hero{position:relative;isolation:isolate;min-height:min(78vh,44rem);display:flex;align-items:flex-end;color:#fff;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(214,51,111,.55), transparent 60%),
    linear-gradient(160deg,var(--violet),var(--purple-deep));
  overflow:hidden}
/* court markings behind the headline when there is no photo yet */
.hero::before{content:"";position:absolute;z-index:-1;right:-14rem;bottom:-16rem;width:46rem;height:46rem;border-radius:50%;
  border:.4rem solid rgba(255,255,255,.16);box-shadow:0 0 0 9rem rgba(255,255,255,.04), inset 0 0 0 9rem rgba(255,255,255,.04)}
.hero-photo{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center 25%}
.hero:has(.hero-photo)::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(to top,rgba(47,6,79,.94) 5%,rgba(47,6,79,.55) 45%,rgba(47,6,79,.15))}
.hero:has(.hero-photo)::before{display:none}
.hero-inner{width:100%;max-width:var(--wrap);margin:0 auto;padding:6rem clamp(1rem,4vw,2.5rem) 3.5rem}
.hero h1{font-size:clamp(2.5rem,7.4vw,5.6rem);max-width:15ch;letter-spacing:-.01em}
.hero-sub{font-size:clamp(1.2rem,2.6vw,1.7rem);margin:1.1rem 0 2rem;max-width:30ch;font-weight:500}
.hero-row{display:flex;flex-wrap:wrap;align-items:center;gap:1.2rem 2rem}
.goal{margin:0;font-family:var(--display);font-size:clamp(1.9rem,4.5vw,3rem);line-height:1;
  background:var(--rose);padding:.45rem 1.1rem .55rem;border:3px solid #fff}

/* Video */
.video-wrap{background:var(--purple-deep);padding:0 clamp(1rem,4vw,2.5rem) 3.5rem}
.video{max-width:54rem;margin:0 auto;aspect-ratio:16/9;background:#1b0330;border-radius:.75rem;overflow:hidden;
  box-shadow:0 1.5rem 3rem rgba(0,0,0,.35);transform:translateY(-1.5rem);margin-bottom:-1.5rem}
.video iframe{width:100%;height:100%;border:0}
.video-poster{position:relative;width:100%;height:100%;border:0;padding:0;cursor:pointer;color:#fff;font-family:var(--body);
  background:linear-gradient(135deg,#3a0862,#1b0330);display:grid;place-items:center}
.video-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.play{position:relative;width:clamp(4.5rem,11vw,6.5rem);aspect-ratio:1;border-radius:50%;background:var(--rose);display:grid;place-items:center;
  box-shadow:0 0 0 .6rem rgba(255,255,255,.18);transition:transform .15s}
.play svg{width:45%;fill:#fff;margin-left:8%}
.video-poster:hover .play{transform:scale(1.07)}
.video-label{position:absolute;left:0;right:0;bottom:0;padding:2.5rem 1rem 1rem;font-weight:700;font-size:1.1rem;
  background:linear-gradient(transparent,rgba(0,0,0,.65))}
.video-poster[disabled]{cursor:default}
.video-poster[disabled] .play{opacity:.45}

/* Explanation */
.why{max-width:46rem;margin:0 auto;padding:4.5rem clamp(1rem,4vw,2.5rem) 1rem;text-align:center}
.lede{font-size:clamp(1.15rem,2.2vw,1.4rem);line-height:1.5}
.purpose{font-family:var(--display);font-size:clamp(1.4rem,3vw,2rem);line-height:1.25;color:var(--purple);margin-top:1.6rem}

/* Progress court */
.progress{max-width:54rem;margin:0 auto;padding:3rem clamp(1rem,4vw,2.5rem) 4.5rem;text-align:center}
.progress-figure{font-size:clamp(1.7rem,4.6vw,2.8rem);margin-bottom:1.4rem}
.progress-figure [data-raised]{color:var(--rose)}
.court svg{width:100%;height:auto;overflow:visible}
.court-bare{fill:#e9e3ef}
.lines-bare{stroke:#fff}
.court-paint{fill:var(--purple)}
.court-key{fill:var(--rose)}
.lines-paint{stroke:#fff}
#paintRect{transition:width 1.6s cubic-bezier(.2,.7,.2,1)}
.progress-pct{margin:1.2rem 0 .2rem;font-size:1.25rem}
.progress-pct b{font-family:var(--display);font-weight:400;font-size:1.7rem;color:var(--purple)}
.progress-pct [data-updated]{color:var(--muted);font-size:.95rem}
.progress-note{color:var(--muted);margin:0}

/* Donate */
.give{background:var(--wall);padding:4.5rem clamp(1rem,4vw,2.5rem)}
.give h2{text-align:center;margin-bottom:2rem}
.give form{max-width:36rem;margin:0 auto;background:#fff;padding:clamp(1.25rem,4vw,2.25rem);border-radius:.9rem;
  border-top:.5rem solid var(--rose);box-shadow:0 1rem 2.5rem rgba(74,11,120,.12)}
fieldset{border:0;padding:0;margin:0 0 1.6rem}
legend{font-weight:700;padding:0;margin-bottom:.6rem}
.funds{display:grid;gap:.5rem}
.funds label{display:flex;gap:.75rem;align-items:flex-start;padding:.75rem .9rem;border:2px solid var(--line);border-radius:.5rem;cursor:pointer}
.funds label:has(input:checked){border-color:var(--purple);background:#faf5ff}
.funds input{margin-top:.3rem;accent-color:var(--purple);width:1.1rem;height:1.1rem;flex:none}
.funds b{display:block;line-height:1.3}
.funds small{color:var(--muted);font-size:.9rem}
.amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.amounts button{font:700 1.2rem var(--body);padding:.85rem .25rem;border:2px solid var(--line);border-radius:.5rem;background:#fff;color:var(--ink);cursor:pointer}
.amounts button:hover{border-color:var(--violet)}
.amounts button[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:#fff}
.other{display:block;margin-top:.9rem}
.other>span:first-child{display:block;font-weight:600;font-size:.95rem;margin-bottom:.3rem}
.other-field{display:flex;align-items:center;border:2px solid var(--purple);border-radius:.5rem;padding:0 .9rem}
.other-field i{font-style:normal;font-weight:700;font-size:1.3rem}
.other-field input{flex:1;min-width:0;border:0;outline:0;font:700 1.3rem var(--body);padding:.75rem .5rem;background:transparent}
.fee{display:flex;gap:.7rem;align-items:flex-start;margin-bottom:1.4rem;cursor:pointer}
.fee input{width:1.2rem;height:1.2rem;margin-top:.25rem;accent-color:var(--purple);flex:none}
.fee small{display:block;color:var(--muted)}
.give-msg{margin:1rem 0 0;font-weight:600;color:var(--purple)}
.give-msg:empty{display:none}

/* Story */
.story{max-width:var(--wrap);margin:0 auto;padding:5rem clamp(1rem,4vw,2.5rem);display:grid;gap:3rem;align-items:center}
.story:has(.story-photo){grid-template-columns:1.2fr .8fr}
.story-text{max-width:40rem}
.story h2{margin-bottom:1.2rem}
.story-photo{border-radius:.75rem;aspect-ratio:4/5;object-fit:cover;width:100%}
blockquote{margin:2rem 0 0;padding:1rem 1.25rem;background:#fff;border:2px solid var(--purple);
  font-family:var(--display);font-size:clamp(1.2rem,2.6vw,1.6rem);line-height:1.25;color:var(--purple)}
cite{display:block;font:600 .95rem var(--body);margin-top:.5rem;color:var(--ink)}

/* Visit */
.visit{background:var(--purple);color:#fff;padding:4.5rem clamp(1rem,4vw,2.5rem)}
.visit h2,.visit-grid{max-width:var(--wrap);margin-inline:auto}
.visit h2{margin-bottom:2rem}
.visit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:2rem}
.visit h3{color:#f6b9cf}
.visit p{margin-bottom:.5rem}
.visit a{color:#fff}

footer{background:var(--purple-deep);color:#d9cbe4;text-align:center;padding:2rem 1rem 5.5rem;font-size:.95rem}
footer p{margin:.2rem 0}
footer a{color:#fff}

.sticky-give{display:none}

@media (max-width:44rem){
  .top nav a:not(.btn){display:none}
  .story:has(.story-photo){grid-template-columns:1fr}
  .hero{min-height:34rem}
  .hero-inner{padding-top:4rem}
  .sticky-give{display:block;position:fixed;left:1rem;right:1rem;bottom:.9rem;z-index:30;text-align:center;
    box-shadow:0 3px 0 var(--rose-deep),0 .6rem 1.5rem rgba(0,0,0,.3)}
  .sticky-give.hide{display:none}
}
@media (min-width:44.01rem){footer{padding-bottom:2rem}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  #paintRect,.btn,.play{transition:none}
}
[hidden]{display:none!important}

/* Court today + community photos */
.why{max-width:54rem}
.why .lede,.why .purpose{max-width:46rem;margin-inline:auto}
.today{margin:3rem 0 0}
.today img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:.75rem}
.today figcaption{margin-top:.7rem;color:var(--muted);font-size:.98rem}
.story-photo{aspect-ratio:1}
.life{max-width:var(--wrap);margin:0 auto;padding:1rem clamp(1rem,4vw,2.5rem) 5rem}
.life h2{margin-bottom:.6rem}
.life-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:1.5rem}
.life-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:.5rem}
@media (max-width:44rem){.life-grid{grid-template-columns:repeat(2,1fr)}}

/* Grounds strip */
.story{padding-bottom:2.5rem}
.story-photo{aspect-ratio:3/2}
.grounds{max-width:var(--wrap);margin:0 auto;padding:0 clamp(1rem,4vw,2.5rem) 4.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.grounds figure{margin:0}
.grounds img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.5rem}
.grounds figcaption{font-size:.92rem;color:var(--muted);margin-top:.4rem}
@media (max-width:44rem){.grounds{grid-template-columns:repeat(2,1fr)}}
.hero:has(.hero-photo)::after{background:linear-gradient(to top,rgba(47,6,79,.95) 5%,rgba(47,6,79,.72) 50%,rgba(47,6,79,.5))}

.hero-photo{object-position:center 60%}

/* Hoop hero: keep the hoop clear of the headline */
.hero-photo{object-position:center}
.hero h1{font-size:clamp(2.5rem,6vw,4.6rem);max-width:11ch}
.hero-sub{max-width:22ch}
.hero:has(.hero-photo)::after{background:
  linear-gradient(to top,rgba(47,6,79,1) 0,rgba(47,6,79,0) 35%),
  linear-gradient(90deg,rgba(47,6,79,.92) 0,rgba(47,6,79,.8) 42%,rgba(74,11,120,.28) 70%,rgba(74,11,120,.2))}
@media (max-width:44rem){
  .hero{min-height:39rem}
  .hero-photo{height:60%;inset:0 0 auto 0}
  .hero h1{max-width:15ch}
  .hero-sub{max-width:30ch}
  .hero:has(.hero-photo)::after{background:linear-gradient(to top,rgba(47,6,79,1) 40%,rgba(47,6,79,.75) 56%,rgba(74,11,120,.2) 80%)}
}

/* Rentals page */
.hero-rent .hero-photo{height:100%;inset:0}
.hero-rent{min-height:min(64vh,36rem)}
.hero-rent::after{background:linear-gradient(to top,rgba(47,6,79,.95) 8%,rgba(47,6,79,.6) 55%,rgba(47,6,79,.3)) !important}
.rentals-page .hero h1{max-width:14ch}
.rentals-page .hero-sub{max-width:34ch}
.rent-intro{max-width:46rem;margin:0 auto;padding:4rem clamp(1rem,4vw,2.5rem) 2.5rem}
.spaces{max-width:var(--wrap);margin:0 auto;padding:0 clamp(1rem,4vw,2.5rem) 3.5rem;display:grid;grid-template-columns:repeat(2,1fr);gap:2.5rem 2rem}
.spaces img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:.6rem;margin-bottom:1rem}
.spaces h2{font-size:1.7rem;margin-bottom:.4rem}
.spaces p{margin:0;max-width:34rem}
.rent-proof{max-width:var(--wrap);margin:0 auto;padding:0 clamp(1rem,4vw,2.5rem) 4rem}
.rent-proof figure{margin:0}
.rent-proof img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:.75rem}
.rent-proof figcaption{margin-top:.6rem;color:var(--muted);font-size:.98rem}
.rent-uses{max-width:var(--wrap);margin:0 auto;padding:0 clamp(1rem,4vw,2.5rem) 4.5rem}
.rent-uses ul{list-style:none;padding:0;margin:1.5rem 0;display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.rent-uses li{padding:.8rem 1rem;background:var(--wall);border-left:.3rem solid var(--rose);font-weight:600}
.rent-note{max-width:44rem;color:var(--muted)}
.rent-form label{display:block;font-weight:600;font-size:.95rem;margin-bottom:1rem}
.rent-form input:not([type=checkbox]),.rent-form select,.rent-form textarea{display:block;width:100%;margin-top:.3rem;padding:.7rem .8rem;border:2px solid var(--line);border-radius:.5rem;font:400 1rem var(--body);color:var(--ink);background:#fff}
.rent-form input:focus,.rent-form select:focus,.rent-form textarea:focus{border-color:var(--purple);outline:0}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.checks{display:flex;flex-wrap:wrap;gap:.5rem}
.checks label{display:flex;align-items:center;gap:.5rem;margin:0;padding:.55rem .8rem;border:2px solid var(--line);border-radius:.5rem;cursor:pointer;font-weight:500}
.checks label:has(input:checked){border-color:var(--purple);background:#faf5ff}
.checks input{accent-color:var(--purple);width:1.05rem;height:1.05rem}
.rent-alt{text-align:center;margin:1rem 0 0;color:var(--muted)}
.rentals-page .sticky-give{display:none}
@media (max-width:44rem){
  .spaces{grid-template-columns:1fr}
  .rent-uses ul{grid-template-columns:1fr 1fr}
  .f2{grid-template-columns:1fr}
  .top nav a[href="/rentals/"]{display:inline}
}
