/* ProSurface Performance Courts */
:root {
  --ink: #0b1220;
  --ink-2: #1a2333;
  --paper: #f8f6f1;
  --stone: #ece8df;
  --line: rgba(11, 18, 32, .12);
  --muted: #5b6474;
  --court: #1c5fd4;
  --court-dark: #1548a6;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--court); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, color .3s;
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.solid, .site-header.always-solid {
  background: rgba(11, 18, 32, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .02em; }
.brand span { white-space: nowrap; font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; opacity: .78; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.link { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { opacity: 1; border-color: currentColor; }
.nav .btn { padding: 11px 20px; font-size: 12.5px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; margin: 0 auto; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--court); color: var(--white); }
.btn-primary:hover { background: var(--court-dark); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,18,32,.55) 0%, rgba(11,18,32,0) 65%),
    linear-gradient(180deg, rgba(11,18,32,.55) 0%, rgba(11,18,32,.05) 30%, rgba(11,18,32,.55) 68%, rgba(11,18,32,.88) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; margin-bottom: 22px; display: block; }
.hero .eyebrow { opacity: .9; }
.hero h1 { font-size: clamp(46px, 8vw, 108px); font-weight: 500; max-width: 20ch; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 520px; margin: 26px 0 36px; opacity: .92; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; opacity: .7; display: flex; align-items: center; gap: 14px; }
.scroll-hint::after { content: ""; width: 1px; height: 56px; background: currentColor; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { color: var(--court); }
.section-head h2 { font-size: clamp(38px, 5.4vw, 68px); }
.section-head p { color: var(--muted); margin-top: 20px; font-size: 18px; }
.dark { background: var(--ink); color: var(--white); }
.dark .section-head p { color: rgba(255,255,255,.7); }
.dark .section-head .eyebrow { color: #8db4ff; }

/* Intro statement */
.statement { padding: clamp(64px, 9vw, 120px) 0; }
.statement p { font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.2; max-width: 22em; margin: 0 auto; text-align: center; font-weight: 500; }
.statement p em { color: var(--court); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { position: relative; display: block; overflow: hidden; background: var(--ink); color: var(--white); aspect-ratio: 4 / 5; }
.service img.pos-bottom { object-position: 30% 100%; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0) 35%, rgba(11,18,32,.88) 100%); }
.service:hover img { transform: scale(1.05); }
.service .txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; }
.service h3 { font-size: 34px; margin-bottom: 8px; }
.service p { margin: 0; font-size: 15px; opacity: .85; line-height: 1.55; }
.services .wide { grid-column: span 3; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 26px; }
.service.tall { aspect-ratio: 16 / 10; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mosaic a { position: relative; overflow: hidden; display: block; background: var(--ink-2); aspect-ratio: 4 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .m1 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic .m4 img { object-position: 50% 25%; }
.center-cta { text-align: center; margin-top: 48px; }

/* Split / About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 26px; }
.split p { color: var(--muted); }
.dark .split p { color: rgba(255,255,255,.72); }
.values { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; }
.values li { padding: 18px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: baseline; }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values b { font-family: var(--serif); font-size: 22px; font-weight: 600; min-width: 150px; }
.values span { color: var(--muted); font-size: 15.5px; }

/* Who we serve */
.serve { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.serve div { padding: 32px 26px 32px 0; border-right: 1px solid rgba(255,255,255,.18); }
.serve div:last-child { border-right: 0; }
.serve div + div { padding-left: 26px; }
.serve h3 { font-size: 30px; margin-bottom: 8px; }
.serve p { font-size: 15px; color: rgba(255,255,255,.66); margin: 0; }

/* CTA band */
.cta-band { position: relative; color: var(--white); text-align: center; overflow: hidden; background: var(--ink); }
.cta-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(40px, 6.4vw, 84px); max-width: 14ch; margin: 0 auto 22px; }
.cta-band p { max-width: 460px; margin: 0 auto 36px; opacity: .85; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ink); color: var(--white); padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(46px, 7.5vw, 100px); }
.page-head p { max-width: 520px; opacity: .78; margin: 22px 0 0; font-size: 18px; }
.page-head .eyebrow { color: #8db4ff; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 22px; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: 100px; transition: all .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery { columns: 3; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gallery figure.hide { display: none; }
.gallery img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 13px; letter-spacing: .08em; color: var(--white); background: linear-gradient(transparent, rgba(11,18,32,.75)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.gallery figure:hover figcaption { opacity: 1; }
.gallery button.hit { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; cursor: zoom-in; padding: 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(6, 10, 18, .96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: min(94vw, 1600px); max-height: 86vh; object-fit: contain; }
.lb .cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; letter-spacing: .06em; padding: 0 70px; }
.lb button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; opacity: .8; transition: opacity .2s; }
.lb button:hover { opacity: 1; }
.lb svg { width: 28px; height: 28px; }
.lb .close { top: 12px; right: 12px; } .lb .prev { left: 8px; top: 50%; transform: translateY(-50%); } .lb .next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-card { background: var(--ink); color: var(--white); padding: clamp(28px, 4vw, 48px); }
.contact-card h2 { font-size: 40px; margin-bottom: 14px; }
.contact-card p { opacity: .75; font-size: 16px; }
.call-big { display: flex; align-items: center; gap: 16px; margin: 26px 0 8px; font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1; }
.call-big .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--court); display: grid; place-items: center; flex: none; }
.call-big svg { width: 22px; height: 22px; }
.contact-line { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); margin-top: 22px; }
.contact-line small { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .55; }
.contact-line a { font-size: 18px; word-break: break-word; }
.contact-card .btn { width: 100%; margin-top: 8px; }

form.quote { display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 2px; padding: 16px 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b1220' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--court); box-shadow: 0 0 0 3px rgba(28,95,212,.15); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 16px 18px; background: #e8f3ea; color: #1d5a2c; border-left: 3px solid #2f8f47; font-size: 16px; }
.form-status.err { background: #fbeaea; color: #8a2222; border-color: #c93a3a; }
.form-status.show { display: block; }

.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--white); padding: 120px var(--gutter) 60px; }
.thanks h1 { font-size: clamp(44px, 7vw, 88px); margin-bottom: 18px; }
.thanks p { max-width: 460px; margin: 0 auto 30px; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 36px; font-size: 15px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .brand { color: var(--white); }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a:hover { color: var(--white); }
.site-footer .contact-col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .contact-col a { color: var(--white); }
.site-footer .bottom { padding-top: 26px; font-size: 13px; opacity: .7; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Mobile sticky action bar */
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services .wide { grid-column: span 2; }
  .gallery { columns: 2; }
  .contact-grid, .split { grid-template-columns: 1fr; }
  .split .photo { aspect-ratio: 4 / 3; }
  .serve { grid-template-columns: 1fr 1fr; }
  .serve div:nth-child(2) { border-right: 0; }
  .serve div:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .serve div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .site-header { background: var(--ink); }
  .nav a.link { font-size: 15px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); opacity: 1; }
  .nav .btn { margin-top: 22px; padding: 18px; font-size: 13px; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; padding-bottom: 68px; }
  :root { --header-h: 66px; }
  .brand strong { font-size: 23px; } .brand span { font-size: 8.5px; letter-spacing: .28em; }
  .hero { align-items: flex-end; }
  .hero h1 { max-width: 12ch; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .services, .service-list { grid-template-columns: 1fr; }
  .services .wide { grid-column: auto; }
  .service { aspect-ratio: 4 / 4.2; }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mosaic .m1 { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic .m6 { grid-column: span 2; aspect-ratio: 16 / 9; }
  .mosaic a { aspect-ratio: 1; }
  .gallery { columns: 2; column-gap: 10px; } .gallery figure { margin-bottom: 10px; }
  .gallery figcaption { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .serve { grid-template-columns: 1fr; }
  .serve div, .serve div + div { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .values li { flex-direction: column; gap: 4px; } .values b { min-width: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); border-top: 1px solid rgba(255,255,255,.14); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 16px 10px; border-radius: 2px; color: var(--white); }
  .mobile-bar a:first-child { background: var(--court); }
  .mobile-bar a:last-child { border: 1px solid rgba(255,255,255,.4); }
  .mobile-bar svg { width: 16px; height: 16px; }
  .site-footer .top { flex-direction: column; }
  .lb .cap { padding: 0 20px; bottom: 76px; }
}

/* keep phone numbers on one line */
.btn, .call-big { white-space: nowrap; }
.call-big { font-size: clamp(28px, 3.2vw, 40px); }
.split .photo img.family { object-position: 50% 30%; }

/* logo */
.brand.logo { display: block; }
.brand.logo img { height: 42px; width: auto; }
.footer-logo { width: 190px; height: auto; }
.page-head.has-bg { position: relative; overflow: hidden; }
.page-head .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-head.has-bg .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) { .brand.logo img { height: 34px; } }
