/* Plenty Tennis Club - public website (draft). Look carried over from the v0.5.2 committee build. */
:root {
  --green: #053829;
  --green-2: #0b4a37;
  --green-3: #11624a;
  --lime: #c8f500;
  --lime-dark: #a6cc00;
  --ink: #1f1f1f;
  --muted: #5b6660;
  --line: #e3e8e4;
  --paper: #f5f6f3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(5, 56, 41, .10);
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-3); }
h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; line-height: 1.02; margin: 0 0 .4em; letter-spacing: .01em; color: var(--green); }
h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }
.shell { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 15px; color: var(--lime); margin-bottom: 10px; }
.eyebrow.dark { color: var(--green-3); }
.lead { font-size: 18px; max-width: 620px; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button.lime { background: var(--lime); color: var(--green); }
.button.lime:hover { background: #d6ff2a; }
.button.outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.button.outline:hover { background: rgba(255,255,255,.1); }
.button.green { background: var(--green); color: var(--white); }
.button.green:hover { background: var(--green-2); }
.button.ghost { border-color: var(--green); color: var(--green); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--white); }
.topbar .shell { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; margin-right: auto; }
.ball-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-family: var(--head); font-size: 13px; letter-spacing: .28em; color: var(--lime); font-weight: 700; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--white); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 17px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { color: var(--lime); }
.topbar .button { padding: 10px 18px; font-size: 16px; }
.menu-button { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.menu-button svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .topbar .join-top { display: none; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--green); flex-direction: column; padding: 8px 16px 20px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; padding: 12px 8px; }
  .nav-links .mobile-join { margin-top: 10px; text-align: center; justify-content: center; }
}
@media (min-width: 981px) { .nav-links .mobile-join { display: none; } }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--green) url("../images/courts.jpg") center 60% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,56,41,.96) 0%, rgba(5,56,41,.86) 45%, rgba(5,56,41,.35) 100%); }
.hero .shell { position: relative; padding: clamp(64px, 11vw, 130px) 0 clamp(48px, 7vw, 80px); }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--lime); }
.hero .lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.15); background: rgba(3,40,29,.72); }
.stats div { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--head); font-size: 40px; line-height: 1; color: var(--lime); }
.stats span { font-size: 14px; color: rgba(255,255,255,.85); }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* Page header (inner pages) */
.page-head { position: relative; background: var(--green) url("../images/courts.jpg") center 70% / cover no-repeat; color: var(--white); }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,56,41,.97) 0%, rgba(5,56,41,.88) 55%, rgba(5,56,41,.55) 100%); }
.page-head .shell { position: relative; padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 6vw, 60px); }
.page-head h1 { color: var(--white); font-size: clamp(44px, 7vw, 72px); }
.page-head p { color: rgba(255,255,255,.9); max-width: 640px; font-size: 18px; margin: 0; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--green); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 460px; color: var(--muted); margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; font-family: var(--head); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--green-3); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.price h3 { margin-bottom: 4px; font-size: 22px; }
.price .amount { font-family: var(--head); font-size: 44px; font-weight: 800; color: var(--green); line-height: 1; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.price p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.price.feature { background: var(--green); border-color: var(--green); }
.price.feature h3, .price.feature .amount { color: var(--lime); }
.price.feature p, .price.feature .amount small { color: rgba(255,255,255,.85); }
.section.dark .price { color: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 72px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--green); font-family: var(--head); font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Schedule */
.schedule { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule th, .schedule td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule th { background: var(--green); color: var(--white); font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 17px; }
.schedule td:first-child { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--green); font-size: 19px; white-space: nowrap; width: 1%; }
.schedule tr:last-child td { border-bottom: 0; }
.schedule .time { color: var(--muted); font-size: 14px; display: block; }
@media (max-width: 600px) {
  .schedule thead { display: none; }
  .schedule td { display: block; border: 0; padding: 4px 16px; }
  .schedule td:first-child { padding-top: 14px; }
  .schedule tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}

/* Lists, people */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 6px 0 6px 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 3px solid var(--lime-dark); border-bottom: 3px solid var(--lime-dark); transform: rotate(-45deg); }
.section.dark .ticks li::before { border-color: var(--lime); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.person strong { display: block; font-size: 17px; }
.person span { color: var(--muted); font-size: 14px; }
.person a { display: inline-block; margin-top: 6px; font-weight: 600; text-decoration: none; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel.green { background: var(--green); border-color: var(--green); color: var(--white); }
.panel.green h3 { color: var(--lime); }
.panel.green a { color: var(--lime); }
.panel.green a.button.lime { color: var(--green); }
.note { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; background: var(--lime); color: var(--green); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }

.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }

/* Join band */
.band { background: var(--lime); color: var(--green); }
.band .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; flex-wrap: wrap; }
.band h2 { margin: 0; }
.band p { margin: 6px 0 0; font-weight: 500; }

/* Join form */
.join-form { display: grid; gap: 22px; }
.fs { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); margin: 0; min-width: 0; }
.fs legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-family: var(--head); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--green); }
.fs legend b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font-size: 20px; margin-right: 10px; vertical-align: 3px; }
.fs .hint { clear: both; color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; clear: both; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cdd6d0; border-radius: 10px; background: var(--white); color: var(--ink); box-sizing: border-box; }
.field input:focus, .field select:focus { outline: 3px solid rgba(200,245,0,.6); border-color: var(--green); }
.field input:user-invalid { border-color: #c0392b; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; clear: both; }
.choice { position: relative; display: block; border: 2px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; cursor: pointer; background: var(--white); transition: border-color .15s, background .15s; }
.choice input { position: absolute; opacity: 0; }
.choice strong { display: block; font-family: var(--head); text-transform: uppercase; font-size: 20px; color: var(--green); }
.choice .amt { font-family: var(--head); font-weight: 800; font-size: 32px; color: var(--green); line-height: 1.1; }
.choice span { display: block; color: var(--muted); font-size: 14px; }
.choice:has(input:checked) { border-color: var(--green); background: #f3fbd6; box-shadow: inset 0 0 0 1px var(--green); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(200,245,0,.8); }
.counter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.counter select { width: auto; min-width: 90px; }
.kids { display: grid; gap: 10px; }
.kid { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; align-items: end; }
@media (max-width: 600px) { .kid { grid-template-columns: 1fr 1fr; } .kid .remove { grid-column: 1 / -1; justify-self: start; } }
.linkish { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; color: var(--green-3); cursor: pointer; text-decoration: underline; }
.yn { display: flex; gap: 10px; flex-wrap: wrap; }
.yn .choice { padding: 10px 18px; }
.agree { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); clear: both; }
.agree:first-of-type { border-top: 0; }
.agree input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.agree strong { display: block; }
.agree span { color: var(--muted); font-size: 15px; }
.agree details { margin-top: 8px; font-size: 14px; color: var(--muted); }
.agree details summary { cursor: pointer; font-weight: 600; color: var(--green-3); }
.agree details ol { padding-left: 20px; margin: 8px 0 0; }
.agree details li { margin-bottom: 6px; }
.total-bar { position: sticky; bottom: 0; z-index: 5; background: var(--green); color: var(--white); border-radius: var(--radius); padding: 18px clamp(18px, 4vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 -6px 24px rgba(5,56,41,.18); }
.total-bar .sum { font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .05em; }
.total-bar .sum b { display: block; font-size: 40px; color: var(--lime); line-height: 1; }
.total-bar .sum small { display: block; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }
.total-bar .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); justify-content: center; margin: 0; }
.form-error { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1f14; border-radius: 10px; padding: 12px 16px; font-weight: 600; display: none; }
.form-error.show { display: block; }
[hidden] { display: none !important; }
.prose h2 { margin-top: 1.4em; }
mark { background: #fff3a6; padding: 0 4px; border-radius: 4px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.welcome-card { max-width: 640px; margin: 0 auto; text-align: center; }
.welcome-card .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin: 0 auto 18px; }

/* Footer */
.site-footer { background: #032a1f; color: rgba(255,255,255,.8); padding: 56px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: var(--lime); font-size: 18px; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--lime); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
