/* Varma Tennis – Court Ledger design: pale green surfaces, forest-green actions, clay accents, ruled rows. */
:root {
  --ink: #202b28;
  --green: #31594b;
  --green-dark: #1d4034;
  --pale: #e5ece5;
  --paper: #f7f8f3;
  --line: #bac9bd;
  --accent: #bf4c32;
  --ball: #d9e85a;
  --white: #fff;
  --muted: #4b6055;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid #b53a20; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.9rem); max-width: 15ch; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); margin-bottom: 24px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin: auto; }
.skip { position: absolute; left: 10px; top: -100px; background: #fff; padding: 10px; z-index: 5; }
.skip:focus { top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

/* Header */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .logo { width: 62px; height: auto; color: var(--green); flex: none; }
.brand:hover .logo { color: var(--accent); }
.brand-text { font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.brand-text span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 7px; color: var(--green); font-weight: bold; }
nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
nav a { font-size: .94rem; font-weight: bold; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
nav a[aria-current=page] { border-bottom-color: var(--accent); }
nav .nav-call { background: var(--green); color: #fff; padding: 9px 14px; border: 0; }
nav .nav-call:hover { background: var(--green-dark); color: #fff; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; background: var(--green); color: #fff; text-decoration: none; font-weight: bold; border: 1px solid var(--green); }
.button:hover { background: var(--green-dark); color: #fff; }
.button.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.outline:hover { background: var(--ink); color: #fff; }
.button.light { background: #fff; color: var(--ink); border-color: #fff; }
.button.light:hover { background: var(--ball); border-color: var(--ball); color: var(--ink); }
.button.ghost { background: transparent; color: #fff; border-color: #fff; }
.button.ghost:hover { background: #fff; color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: bold; color: var(--green); margin-bottom: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: stretch; background: var(--pale); }
.hero-copy { padding: clamp(48px, 7vw, 95px) clamp(24px, 5vw, 70px) clamp(48px, 7vw, 95px) max(24px, calc((100vw - var(--max)) / 2)); }
.hero-copy p:not(.eyebrow) { font-size: 1.15rem; max-width: 32rem; }
.hero-photo { min-height: 520px; position: relative; overflow: hidden; }
.hero-photo img, .page-hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.caption { position: absolute; bottom: 0; right: 0; margin: 0; padding: 8px 13px; background: var(--paper); font-size: .76rem; }

.page-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--pale); }
.page-hero-copy { padding: clamp(48px, 6vw, 84px) clamp(24px, 5vw, 64px) clamp(48px, 6vw, 84px) max(24px, calc((100vw - var(--max)) / 2)); }
.page-hero-copy h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.page-hero-copy p:not(.eyebrow) { font-size: 1.1rem; max-width: 32rem; }
.page-hero-photo { position: relative; min-height: 420px; overflow: hidden; }

/* Quick facts */
.quick { background: var(--ink); color: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-grid > div { padding: 26px 28px 22px 0; }
.quick-grid > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }
.quick-grid p { margin: 0; }
.quick-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: bold; color: var(--ball); margin-bottom: 6px !important; }
.quick strong { font-size: 1.1rem; }

/* Sections */
.section { padding: 80px 0; }
.section.compact { padding: 54px 0; }
.section.tint { background: var(--pale); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.section-head p { max-width: 38rem; }
.services { margin-top: 28px; border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 30px; padding: 25px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service h3, .service p { margin: 0; }
.service a { font-weight: bold; white-space: nowrap; }
.season { background: var(--green); color: #fff; }
.season .eyebrow { color: #d6e5d8; }
.season .section-head { align-items: center; }
.season h2 { margin-bottom: 10px; }
.season p { margin-bottom: 16px; }
.season a:not(.button):hover { color: var(--ball); }
.center-link { text-align: center; margin: 36px 0 0; }

/* Price cards */
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.price-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; background: var(--paper); text-decoration: none; }
.price-card:hover { background: #fff; color: var(--ink); }
.price-card:hover .price-card-value { color: var(--accent); }
.price-card-label { font-weight: bold; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--green); }
.price-card-value { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.price-card span:last-child { font-size: .95rem; color: var(--muted); }

/* Split layouts with photos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 0; }
.photo-frame { position: relative; isolation: isolate; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 38%; height: 38%; border-left: 4px solid var(--accent); border-bottom: 4px solid var(--accent); z-index: -1; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic-main { grid-column: 1 / -1; }
.mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaic-main img { aspect-ratio: 16 / 9; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 24px; border-top: 1px solid var(--ink); }
.stats > div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--green); }
.stats dd { margin: 6px 0 0; font-weight: bold; line-height: 1.3; }
.stats dd span { font-weight: normal; font-size: .85rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--ball); box-shadow: inset 0 0 0 2px var(--green); }
.mini-prices { margin: 0 0 26px; border-top: 1px solid var(--ink); }
.mini-prices p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-prices strong { white-space: nowrap; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; margin-top: 28px; }
.gallery figure { overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }

/* Coaching */
.coaches { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.coach { display: grid; grid-template-columns: 84px 1fr; gap: 22px; padding: 28px; background: #fff; border-top: 4px solid var(--green); }
.coach h3 { margin-bottom: 4px; }
.coach p:last-child { margin: 0; }
.coach-initial { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--pale); color: var(--green); font-size: 2.4rem; font-weight: 800; margin: 0; }
.coach-role { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: bold; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.steps strong { font-size: 1.1rem; }
.steps span { color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.offer { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); }
.offer-tag { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: bold; color: var(--green); }
.offer-prices { display: flex; gap: 28px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.offer-prices dt { font-size: .85rem; color: var(--muted); }
.offer-prices dd { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.course-list { margin: 0 0 20px; border-top: 1px solid var(--ink); }
.course-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.course-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.course-list p { margin: 0; }

/* Courts */
.court-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.court-card { background: #fff; border: 1px solid var(--line); }
.court-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.court-card-body { padding: 24px; }
.court-card-body p:last-child { margin: 0; }
.court-count { display: inline-block; background: var(--ball); font-weight: bold; font-size: .8rem; padding: 3px 10px; margin-bottom: 12px; }
.board { margin: 28px 0 18px; background: #fff; border: 1px solid var(--line); padding: 20px 22px; overflow-x: auto; }
.board-row { display: grid; grid-template-columns: 70px minmax(560px, 1fr); align-items: center; gap: 12px; margin-bottom: 6px; }
.board-label { font-weight: bold; font-size: .92rem; }
.board-track { display: grid; grid-template-columns: repeat(15, 1fr); gap: 2px; min-height: 40px; background: repeating-linear-gradient(90deg, var(--pale) 0 calc(100% / 15 - 2px), transparent calc(100% / 15 - 2px) calc(100% / 15)); }
.board-hours .board-track { min-height: 0; background: none; }
.board-hours span { font-size: .78rem; color: var(--muted); }
.board-group { margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: bold; color: var(--green); }
.band { display: flex; align-items: center; padding: 0 12px; font-weight: bold; font-size: .9rem; white-space: nowrap; overflow: hidden; }
.band.low { background: #cfdfd2; }
.band.mid { background: #7fa392; color: #fff; }
.band.high { background: var(--green); color: #fff; }
.hours-panel { background: var(--ink); color: #fff; padding: 36px; }
.hours-panel .eyebrow { color: var(--ball); }
.hours { margin: 0 0 16px; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(186,201,189,.45); }
.hours dd { margin: 0; font-weight: bold; white-space: nowrap; }
.sport-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 28px; }
.sport figure { margin-bottom: 20px; }
.sport img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Price page */
.page-intro { padding: 70px 0 46px; background: var(--pale); }
.page-intro h1 { max-width: 20ch; }
.page-intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.season-dates { margin: 0; border-top: 1px solid var(--ink); }
.season-dates > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.season-dates dt { font-weight: bold; }
.season-dates dd { margin: 0; }
.price-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; }
.jump { align-self: start; position: sticky; top: 110px; }
.jump-photo { margin-top: 18px; }
.jump-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero-copy .season-dates { margin-top: 28px; max-width: 30rem; }
.jump a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: bold; text-decoration: none; }
.price-block { margin-bottom: 52px; scroll-margin-top: 110px; }
.price-block h2 { font-size: 2rem; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 1rem; }
caption { text-align: left; font-weight: bold; padding-bottom: 10px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--pale); }
tbody th { font-weight: normal; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
table.single { margin-top: 14px; }
.sport table th, .sport table td { padding: 10px 0; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 52px; }
.terms > div { background: var(--pale); padding: 16px 20px; }
.terms dt { font-weight: bold; color: var(--green); }
.terms dd { margin: 0; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; background: var(--pale); border-left: 4px solid var(--accent); }
.cta-box h2 { font-size: 1.6rem; margin-bottom: 6px; }
.cta-box p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-panel { background: var(--green); color: #fff; padding: 35px; }
.contact-panel a { display: inline-block; margin: 0 0 4px; font-size: 1.3rem; font-weight: bold; }
.contact-panel a:hover { color: var(--ball); }
.contact-panel p { margin-bottom: 14px; }
.panel-label { margin-bottom: 2px !important; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #d6e5d8; }
.panel-big { font-size: 1.3rem; font-weight: bold; }
.address { font-size: 1.3rem; font-weight: bold; }
.contact-grid .hours > div { border-bottom-color: var(--line); }
.topic-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.topic-list a { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; background: var(--paper); text-decoration: none; }
.topic-list a::after { content: "→"; font-weight: bold; color: var(--accent); margin-top: auto; }
.topic-list a:hover { background: #fff; }
.topic-list span { color: var(--muted); font-size: .95rem; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: bold; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

.map-links a { white-space: nowrap; }
.map-links [data-map-apple] { margin-left: .9em; }
.map-links.actions [data-map-apple] { margin-left: 0; }
.contact-grid .map-links { margin-bottom: 20px; }
[hidden] { display: none !important; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
.footer p { margin: 0 0 10px; }
.footer a:hover { color: var(--ball); }
.footer-brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px !important; }
.footer-brand .logo { width: 74px; height: auto; color: #fff; flex: none; }
.footer-brand small { font-size: .8rem; letter-spacing: .14em; color: var(--ball); }
.footer-head { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: bold; color: var(--ball); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: #c7d3cb; }

/* Responsive */
@media (max-width: 1020px) {
  .price-cards, .topic-list { grid-template-columns: repeat(2, 1fr); }
  .court-cards, .offer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header { position: static; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; gap: 10px; min-height: 0; }
  nav { justify-content: flex-start; gap: 2px 18px; }
  .jump { position: static; }
}
@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  h1 { font-size: 2.6rem; }
  .hero, .page-hero { grid-template-columns: 1fr; }
  .hero-copy, .page-hero-copy { padding: 44px 16px; }
  .hero-photo { min-height: 300px; }
  .page-hero-photo { min-height: 260px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid > div, .quick-grid > div + div { padding: 16px 0; border-left: 0; }
  .quick-grid > div + div { border-top: 1px solid rgba(255,255,255,.2); }
  .section { padding: 58px 0; }
  .section-head, .price-layout, .contact-grid, .split, .coaches, .sport-split, .page-intro-grid, .terms { grid-template-columns: 1fr; gap: 22px; }
  .split.reverse > :first-child { order: 2; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .service a { margin-top: 5px; }
  .court-cards, .offer-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 150px; }
  .gallery .g-wide { grid-row: span 1; }
  .coach { grid-template-columns: 1fr; padding: 22px; }
  .coach-initial { width: 64px; height: 64px; font-size: 1.8rem; }
  .stats dt { font-size: 2.6rem; }
  .page-intro { padding: 48px 0 36px; }
  .jump { display: flex; gap: 6px 20px; flex-wrap: wrap; }
  .jump a { border: 0; padding: 6px 0; }
  .jump-photo { display: none; }
  .price-block { margin-bottom: 40px; }
  th, td { padding: 11px 8px; font-size: .92rem; }
  .contact-panel, .hours-panel { padding: 25px; }
  .photo-frame::after { display: none; }
}
@media (max-width: 480px) {
  .brand .logo { width: 50px; }
  .brand-text { font-size: 1.1rem; }
  .price-cards, .topic-list, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: flex; align-items: center; gap: 16px; }
  .stats dd { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
