:root {
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-soft: #eef3f8;
  --text: #243746;
  --muted: #647280;
  --line: rgba(36, 55, 70, 0.12);
  --brand: #2b5672;
  --brand-deep: #1e425a;
  --accent: #ef8b1e;
  --shadow:
    0 1px 2px rgba(27, 50, 68, 0.05),
    0 4px 12px rgba(27, 50, 68, 0.07),
    0 20px 52px rgba(27, 50, 68, 0.1);
  --shadow-raised:
    0 2px 4px rgba(27, 50, 68, 0.07),
    0 8px 24px rgba(27, 50, 68, 0.11),
    0 32px 64px rgba(27, 50, 68, 0.15);
  --radius: 28px;
  --radius-small: 18px;
  --container: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(43, 86, 114, 0.12), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(239, 139, 30, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(43, 86, 114, 0.025) 0%, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  opacity: 1;
  transition: opacity 320ms ease, transform 320ms ease, filter 320ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(43, 86, 114, 0.035) 42% 44%, transparent 44% 100%),
    linear-gradient(120deg, transparent 0 62%, rgba(239, 139, 30, 0.04) 62% 64%, transparent 64% 100%);
  opacity: 0.9;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(43, 86, 114, 0.26);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 0;
  animation: fade-slide-down 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: top 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.header-hidden {
  top: -120px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(27, 50, 68, 0.08);
}

.brand img {
  width: 10.5rem;
  height: auto;
}

.site-header .brand img {
  mix-blend-mode: multiply;
}

.site-footer .brand img,
.footer-brand img {
  mix-blend-mode: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a:not(.button) {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
}

.nav-links a.is-active {
  color: var(--brand);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-caret {
  font-size: 0.6rem;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  background: transparent;
  z-index: 100;
  min-width: 170px;
}

.nav-dropdown-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: -1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(43, 86, 114, 0.07);
  color: var(--brand) !important;
}

.waiver-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-direction: row !important;
}

.waiver-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand);
}

.waiver-checkbox span {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Schedule page ── */
.schedule-block {
  margin-bottom: 2.5rem;
}

.schedule-heading {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 6px 6px 0 0;
  margin: 0;
}

.schedule-beginner  { background: var(--brand); }
.schedule-intermediate { background: var(--brand); }
.schedule-advance   { background: var(--brand); }
.schedule-highperf  { background: var(--brand); }
.schedule-adult     { background: var(--brand); }

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.schedule-table thead tr {
  background: var(--accent);
}

.schedule-table thead th {
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
}

.schedule-table tbody tr:nth-child(even) {
  background: rgba(43, 86, 114, 0.04);
}

.schedule-table tbody td {
  padding: 0.55rem 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 1.45rem;
  height: 2px;
  margin: 0.35rem auto;
  border-radius: 999px;
  background: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, #3b7297 62%, var(--accent) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(43, 86, 114, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-small {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
}

.hero,
.page-hero {
  padding: 2.5rem 0 1.8rem;
}

.home-hero {
  padding-top: 2rem;
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 7rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 139, 30, 0.14), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid,
.page-hero-grid,
.split-grid,
.content-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.76rem;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  max-width: 11ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0;
  line-height: 1.7;
}

.lead,
.section-copy,
.feature-row p,
.program-detail p,
.coach-card p,
.pricing-card p,
.info-card p,
.footer-copy {
  color: var(--muted);
}

.lead {
  margin-top: 1.15rem;
  max-width: 58ch;
  font-size: 1.03rem;
}

.hero-copy > * {
  opacity: 0;
  animation: fade-slide-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 60ms; }
.hero-copy > *:nth-child(2) { animation-delay: 140ms; }
.hero-copy > *:nth-child(3) { animation-delay: 220ms; }
.hero-copy > *:nth-child(4) { animation-delay: 300ms; }
.hero-copy > *:nth-child(5) { animation-delay: 380ms; }

.page-hero-grid > *:first-child {
  opacity: 0;
  animation: fade-slide-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.page-hero-grid > *:last-child {
  opacity: 0;
  animation: scale-fade-in 820ms cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.quick-info,
.three-up,
.card-grid,
.pricing-grid,
.coach-grid,
.feature-list,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.quick-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.quick-info article,
.info-card,
.feature-row,
.program-detail,
.coach-card,
.pricing-card,
.panel,
.cta-band,
.stat-card {
  border: 1px solid rgba(43, 86, 114, 0.1);
  border-radius: var(--radius-small);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 245, 252, 0.95) 100%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.info-card,
.program-detail,
.stat-card {
  position: relative;
  overflow: hidden;
}

.info-card::before,
.program-detail::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), #3b7297 55%, var(--accent));
  opacity: 1;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
}

.quick-info article,
.info-card,
.feature-row,
.program-detail,
.coach-card,
.pricing-card,
.panel,
.stat-card {
  padding: 1.35rem;
}

.quick-info article,
.info-card,
.feature-row,
.program-detail,
.coach-card,
.pricing-card,
.panel,
.stat-card,
.cta-band {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.quick-info article:hover,
.info-card:hover,
.feature-row:hover,
.program-detail:hover,
.coach-card:hover,
.pricing-card:hover,
.panel:hover,
.stat-card:hover,
.cta-band:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-raised),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(43, 86, 114, 0.2);
}

.quick-info span,
.card-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
}

.sport-row,
.program-detail,
.info-card {
  position: relative;
}

a.info-card,
a.program-detail {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sport-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(43, 86, 114, 0.1), rgba(239, 139, 30, 0.12));
  color: var(--brand);
}

.sport-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pickleball-icon {
  color: var(--accent);
}

.quick-info strong,
.stat-card strong {
  color: var(--brand-deep);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1rem;
}

.visual-large,
.visual-small,
.page-hero-image,
.panel-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-visual > * {
  opacity: 0;
  animation: scale-fade-in 850ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-visual > *:nth-child(1) { animation-delay: 180ms; }
.hero-visual > *:nth-child(2) { animation-delay: 320ms; }
.hero-visual > *:nth-child(3) { animation-delay: 420ms; }

.visual-large img,
.visual-small img,
.page-hero-image img,
.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.visual-large:hover img,
.visual-small:hover img,
.page-hero-image:hover img,
.panel-image:hover img {
  transform: scale(1.04);
}

.visual-large,
.visual-large img {
  min-height: 34rem;
}

.visual-large {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%);
}

.visual-small,
.visual-small img {
  min-height: 16.5rem;
}

.visual-small:nth-child(2) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 84%);
}

.visual-small:nth-child(3) {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
}

.page-hero-image,
.page-hero-image img,
.panel-image,
.panel-image img {
  min-height: 24rem;
}

.section {
  padding: 2.25rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(238, 243, 248, 0.82), rgba(255, 255, 255, 0));
}

.section-tint,
.page-outro {
  position: relative;
}

.section-tint::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 78%, rgba(43, 86, 114, 0.03) 78% 80%, transparent 80% 100%),
    linear-gradient(120deg, transparent 0 88%, rgba(239, 139, 30, 0.04) 88% 90%, transparent 90% 100%);
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Testimonials */
.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-small);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(238,243,248,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.testimonial-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

.testimonial-card blockquote::before {
  content: "\201C";
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.8rem;
  color: var(--brand);
  opacity: 0.18;
  margin-right: 0.1em;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.testimonial-author strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Pickleball external site band */
.pickleball-site-band {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(43, 86, 114, 0.06) 0%, rgba(239, 139, 30, 0.08) 100%);
  border: 1.5px solid rgba(43, 86, 114, 0.18);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.pickleball-site-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.pickleball-site-band:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
  border-color: rgba(43, 86, 114, 0.32);
}

.pickleball-site-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  color: var(--brand);
  opacity: 0.85;
}

.pickleball-site-icon svg {
  width: 100%;
  height: 100%;
}

.pickleball-site-copy {
  flex: 1;
}

.pickleball-site-title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

.pickleball-site-desc {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
}

.pickleball-site-arrow {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  transition: transform 220ms ease;
}

.pickleball-site-band:hover .pickleball-site-arrow {
  transform: translateX(4px);
}

.pickleball-site-arrow svg {
  width: 100%;
  height: 100%;
}

/* Instagram section */
.instagram-section {
  padding: 0;
}

.instagram-band {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 45%, #fcb045 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(131, 58, 180, 0.28);
  position: relative;
  overflow: hidden;
}

.instagram-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.07), transparent 60%);
  pointer-events: none;
}

.instagram-icon-wrap {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  color: #fff;
  opacity: 0.95;
}

.instagram-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.instagram-copy {
  flex: 1;
}

.instagram-handle {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.instagram-tagline {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

.instagram-cta {
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff !important;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.instagram-cta:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.85);
  transform: translateY(-2px);
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list,
.coach-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coach-profile-grid {
  align-items: start;
}

.coach-profile {
  overflow: hidden;
  padding: 0;
}

.coach-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.coach-profile-body {
  padding: 1.35rem;
}

.coach-profile-body p {
  margin-top: 0.75rem;
}

.coach-points {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.pricing-card {
  text-align: center;
}

.pricing-card.highlight {
  background: linear-gradient(180deg, rgba(238, 243, 248, 0.95), rgba(255, 255, 255, 0.98));
}

.pricing-panel,
.pricing-table-section {
  display: grid;
  gap: 1.25rem;
}

.pricing-panel-head {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.pricing-note {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

.rate-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

.rate-table caption {
  caption-side: top;
}

.rate-table th,
.rate-table td {
  padding: 1rem 1.1rem;
  border-top: 1px solid #d9dee5;
  border-right: 1px solid #d9dee5;
  text-align: left;
  vertical-align: middle;
  color: #566273;
}

.rate-table th:last-child,
.rate-table td:last-child {
  border-right: 0;
}

.rate-table thead th {
  border-top: 0;
  background: #fff;
  font-weight: 700;
  color: #6b7280;
}

.rate-table tbody tr:first-child td {
  border-top: 1px solid #e5e7eb;
}

.rate-table td:last-child,
.rate-table th:last-child {
  white-space: nowrap;
}

.rate-table .rate-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--brand);
}

.court-table-wrap {
  padding: 1.25rem;
  border: 1px solid rgba(213, 219, 227, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(27, 47, 74, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.court-rate-table {
  min-width: 54rem;
  table-layout: fixed;
  border-collapse: collapse;
  border-left: 1px solid #d9dee5;
  border-bottom: 1px solid #d9dee5;
  background: #fff;
}

.court-rate-table .court-col-category {
  width: 28%;
}

.court-rate-table .court-col-day {
  width: 22%;
}

.court-rate-table .court-col-time {
  width: 30%;
}

.court-rate-table .court-col-rate {
  width: 20%;
}

.court-rate-table thead th {
  padding: 1.05rem 1.25rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: #5f6875;
}

.court-rate-table tbody td {
  padding: 1.2rem 1.25rem;
  background: #fff;
  line-height: 1.45;
}

.court-rate-table tbody td:first-child {
  font-weight: 700;
  color: #495464;
}

.court-rate-table tbody td:nth-child(2),
.court-rate-table tbody td:nth-child(3) {
  text-align: center;
}

.court-rate-table tbody td:last-child {
  text-align: center;
}

.court-rate-value {
  font-size: 2.85rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #31485f;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.checklist {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 0.9rem;
}

.lead-form {
  align-content: start;
}

.inquiry-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.form-note,
.form-success {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-success {
  color: var(--brand);
  font-weight: 700;
}

.lead-stats {
  margin-top: 0.5rem;
}

.lead-list {
  display: grid;
  gap: 1rem;
}

.lead-card {
  display: grid;
  gap: 1rem;
}

.lead-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.lead-stage {
  display: grid;
  gap: 0.35rem;
  min-width: 10rem;
  color: var(--muted);
  font-weight: 700;
}

.lead-stage select,
.lead-notes textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.lead-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  color: var(--muted);
}

.lead-meta strong {
  color: var(--text);
}

.lead-contact,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lead-notes {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.lead-filter.is-active {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.site-footer {
  padding: 0 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1fr;
  gap: 1.5rem;
  padding: 1.6rem;
  border: 1px solid rgba(43, 86, 114, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 245, 252, 0.95) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.footer-map {
  min-height: 180px;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  overflow: hidden;
}

/* Map iframes — replaces inline styles so CSP can drop unsafe-inline */
iframe[title="Vision Badminton location"] {
  border: 0;
  display: block;
}

.map-standalone {
  border-radius: 12px;
}

.footer-grid::before {
  content: "";
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.footer-brand img {
  width: 8.75rem;
}

.footer-copy {
  margin-top: 0.8rem;
  max-width: 34rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-group h3 {
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.footer-group {
  display: grid;
  align-content: start;
}

.footer-stack {
  display: grid;
  gap: 0.7rem;
}

.footer-stack a,
.footer-stack p {
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 86, 114, 0.25);
}

.page-outro {
  margin-top: 0.25rem;
}

.page-outro .cta-band {
  background:
    linear-gradient(180deg, rgba(238, 243, 248, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(43, 86, 114, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(43, 86, 114, 0.18), rgba(239, 139, 30, 0.14)),
    rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.65, 0, 0.35, 1);
}

.announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(24, 39, 51, 0.54);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.announcement-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.announcement-modal {
  width: min(38rem, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 248, 0.98));
  box-shadow: 0 28px 80px rgba(20, 36, 48, 0.24);
  transform: translateY(18px) scale(0.96);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.announcement-overlay.is-open .announcement-modal {
  transform: translateY(0) scale(1);
}

.announcement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.announcement-body {
  margin-top: 1rem;
  color: var(--muted);
}

.announcement-body p + p {
  margin-top: 0.8rem;
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

body.is-leaving .page-transition,
body.is-entering .page-transition {
  opacity: 1;
  transform: scaleY(1);
}

body.is-leaving {
  overflow: hidden;
}

body.is-leaving main,
body.is-leaving .site-header,
body.is-leaving .site-footer {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}

body.is-entering main,
body.is-entering .site-header,
body.is-entering .site-footer {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}

body.is-entering-ready main,
body.is-entering-ready .site-header,
body.is-entering-ready .site-footer {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-slide-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-fade-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── 1080px: tablet ─────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .three-up,
  .pricing-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .coach-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-panel-head {
    flex-direction: column;
    align-items: start;
  }
}

/* ─── 860px: mobile nav + layout ─────────────────────── */
@media (max-width: 860px) {

  /* ── Navigation ── */
  .nav {
    align-items: flex-start;
    border-radius: 1.5rem;
    padding: 0.8rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0.15rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0.75rem;
    right: 0.75rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 16px 48px rgba(27, 50, 68, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Bigger tap targets for nav links */
  .nav-links a:not(.button) {
    font-size: 1.05rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    transition: background 150ms ease;
  }

  .nav-links a:not(.button):active,
  .nav-links a:not(.button):hover {
    background: rgba(43, 86, 114, 0.07);
  }

  /* Active indicator on mobile: left border instead of underline */
  .nav-links a.is-active::after {
    display: none;
  }

  .nav-links a.is-active {
    background: rgba(43, 86, 114, 0.08);
    border-radius: 10px;
  }

  /* Mobile dropdowns: JS-only, disable CSS hover */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown-menu {
    overflow: hidden;
    max-height: 0;
    display: block !important;
    transition: max-height 280ms ease;
  }

  .nav-dropdown.dropdown-open .nav-dropdown-menu {
    max-height: 300px;
  }

  .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    padding-top: 0.25rem;
    padding-left: 0.75rem;
    padding-bottom: 0.25rem;
    min-width: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    font-size: 0.98rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    white-space: normal;
    color: var(--muted) !important;
  }

  /* Book Now button full-width in mobile menu */
  .nav-links .button.button-small {
    width: 100%;
    margin-top: 0.3rem;
    justify-content: center;
  }

  /* ── Typography ── */
  h2 {
    font-size: clamp(2rem, 5.5vw, 2.7rem);
  }

  h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  .eyebrow {
    font-size: 0.82rem;
  }

  .lead {
    font-size: 1rem;
    max-width: 100%;
  }

  /* ── Layout ── */
  .quick-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual,
  .feature-list,
  .coach-grid,
  .card-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* ── Images ── */
  .visual-large,
  .visual-large img {
    min-height: 22rem;
  }

  .visual-small,
  .visual-small img {
    min-height: 14rem;
  }

  .page-hero-image,
  .page-hero-image img,
  .panel-image,
  .panel-image img {
    min-height: 18rem;
  }

  .visual-large,
  .visual-small:nth-child(2),
  .visual-small:nth-child(3) {
    clip-path: none;
  }

  /* ── CTA + Footer ── */
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-map {
    min-height: 220px;
  }

  /* ── Tables ── */
  .rate-table {
    min-width: 0;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.9rem;
  }

  .rate-table .rate-value {
    font-size: 1.2rem;
  }

  .court-rate-table {
    min-width: 44rem;
  }

  .court-table-wrap {
    padding: 0.9rem;
    border-radius: 20px;
  }

  .court-rate-table thead th,
  .court-rate-table tbody td {
    padding: 0.95rem 1rem;
  }

  .court-rate-value {
    font-size: 2.15rem;
  }

  /* ── Forms ── */
  .lead-card-head,
  .lead-meta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pickleball-site-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem;
  }

  .pickleball-site-arrow {
    display: none;
  }

  .instagram-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem 1.75rem;
  }

  .instagram-cta {
    width: 100%;
    text-align: center;
  }
}

/* ─── 560px: small phone ──────────────────────────────── */
@media (max-width: 560px) {
  :root {
    --container: min(1180px, calc(100vw - 1.25rem));
  }

  /* ── Spacing ── */
  .hero,
  .page-hero {
    padding: 1.5rem 0 1.25rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  /* ── Typography ── */
  h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
    max-width: none;
    line-height: 0.97;
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .lead {
    font-size: 0.97rem;
    margin-top: 0.9rem;
  }

  .section-copy {
    font-size: 0.97rem;
  }

  /* ── Cards ── */
  .quick-info {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
    gap: 0.7rem;
  }

  .quick-info article,
  .info-card,
  .feature-row,
  .program-detail,
  .coach-card,
  .pricing-card,
  .panel,
  .stat-card {
    padding: 1.1rem;
  }

  .cta-band {
    padding: 1.1rem;
  }

  /* ── Buttons ── */
  .hero-actions,
  .stack-actions {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.1rem;
  }

  .button,
  .button-small {
    width: 100%;
    min-height: 3rem;
    font-size: 0.97rem;
  }

  /* ── Page hero image hidden on very small to save space ── */
  .page-hero-image,
  .page-hero-image img {
    min-height: 13rem;
  }

  /* ── Schedule table ── */
  .schedule-table {
    font-size: 0.82rem;
  }

  .schedule-table thead th,
  .schedule-table tbody td {
    padding: 0.45rem 0.65rem;
  }

  /* ── Footer map ── */
  .footer-map {
    min-height: 180px;
  }

  /* ── Announcement ── */
  .announcement-actions {
    flex-direction: column;
  }

  .announcement-actions .button {
    width: 100%;
  }

  /* ── Nav ── */
  .brand img {
    width: 9rem;
  }

  .footer-group h3 {
    font-size: 1.1rem;
  }
}

/* ─── 380px: very small (iPhone SE etc.) ─────────────── */
@media (max-width: 380px) {
  h1 {
    font-size: clamp(2.2rem, 13vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.6rem, 7.5vw, 2rem);
  }

  .nav {
    padding: 0.65rem 0.8rem;
  }

  .brand img {
    width: 8rem;
  }

  .quick-info article,
  .info-card,
  .feature-row,
  .program-detail,
  .panel,
  .cta-band {
    padding: 0.95rem;
  }

  .schedule-table {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
