/* ============================================================
   FRISCO COMMUNITY TENNIS — Design System
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Variables --- */
:root {
  --color-blue:        #1A4FA0;
  --color-blue-hover:  #153E87;
  --color-blue-light:  #EBF2FF;
  --color-navy:        #061E4B;
  --color-charcoal:    #1A2035;
  --color-yellow:      #F5C107;
  --color-yellow-hover:#DBA90A;
  --color-yellow-light:#FFF8DC;
  --color-white:       #ffffff;
  --color-off-white:   #F4F7FC;
  --color-gray-100:    #EAEFF8;
  --color-gray-200:    #D1DAF0;
  --color-gray-400:    #9DAAC4;
  --color-gray-500:    #6B7A9E;
  --color-gray-700:    #3B4668;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.5rem;
  --space-lg:      2.5rem;
  --space-xl:      4rem;
  --space-2xl:     6rem;
  --space-section: 5.5rem;

  --container-width:  1200px;
  --container-narrow: 800px;
  --header-height:    72px;

  --transition: 0.18s ease;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 36px rgba(0,0,0,0.13);
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 1rem;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h2 { font-weight: 600; }
h3, h4 { font-weight: 600; }

.section--navy h2, .section--navy h3, .section--navy h4,
.section--blue  h2, .section--blue  h3, .section--blue  h4 {
  color: var(--color-white);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  line-height: 1.8;
  color: var(--color-gray-700);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--color-charcoal);
}

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-section) 0;
}

.section--light { background: var(--color-off-white); }
.section--navy  { background: var(--color-navy); }
.section--blue  { background: var(--color-blue); }

/* --- Section Header --- */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.section--navy .section-label,
.section--blue .section-label { color: var(--color-yellow); }

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  font-size: 1.05rem;
  max-width: 620px;
}

.section-header--center p {
  margin: 0 auto;
}

/* Accent bar */
.accent-bar {
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-yellow);
  margin-bottom: 1.5rem;
}

.section--navy .accent-bar,
.section--blue .accent-bar { background: rgba(255,255,255,0.3); }

.accent-bar--center { margin-left: auto; margin-right: auto; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.82rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
}

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-navy);
  border-color: var(--color-yellow);
}
.btn-yellow:hover {
  background: var(--color-yellow-hover);
  border-color: var(--color-yellow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn-outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-gray-100);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.site-logo .logo-img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.site-logo .logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-top: 3px;
}

.logo-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-yellow);
  margin-left: 3px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a,
.nav-dropdown-toggle {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  padding: 0.45rem 0.85rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a.active,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--color-blue);
  border-bottom-color: var(--color-yellow);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 175px;
  padding: 0.55rem 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  border-bottom: none;
  white-space: nowrap;
}

.header-cta { flex-shrink: 0; }

.header-portal {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  flex-shrink: 0;
  transition: color var(--transition);
}
.header-portal:hover { color: var(--color-blue-hover); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-charcoal);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-white);
  z-index: 199;
  overflow-y: auto;
  padding: 1.5rem;
  flex-direction: column;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-gray-200);
  transition: color var(--transition);
}

.mobile-nav .mobile-sub-link {
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-blue);
}

.mobile-nav .mobile-cta {
  margin-top: 2rem;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-yellow);
  color: var(--color-navy) !important;
  border-bottom: none;
  padding: 0.9rem 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* --- Hero --- */
.hero {
  background: var(--color-navy);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Action photo fades in from the right — 62% width keeps the nearly-square image from zooming */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  bottom: 0;
  background: url('/assets/images/hero-homepage.jpeg') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.45) 22%, black 56%);
  mask-image:         linear-gradient(to right, transparent 0%, rgba(0,0,0,0.45) 22%, black 56%);
}

/* Yellow accent line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-yellow);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.08;
}

.hero .lead {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero .section-label {
  color: var(--color-yellow);
  margin-bottom: 1.25rem;
  opacity: 1;
}

.home-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: color var(--transition), border-color var(--transition);
}

.home-social a:hover {
  color: var(--color-yellow);
  border-color: rgba(245,193,7,0.5);
}

.home-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--color-navy);
  padding: 3.5rem 0 3rem;
  border-bottom: 3px solid var(--color-yellow);
}

.page-hero .breadcrumb {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.page-hero .breadcrumb a:hover { color: var(--color-yellow); }
.page-hero .breadcrumb span { margin: 0 0.4em; }

.page-hero .section-label { color: var(--color-yellow); }

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .lead {
  color: rgba(255,255,255,0.68);
  max-width: 560px;
}

/* --- Sport / Program Cards --- */
.sport-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.sport-card {
  display: block;
  padding: 2.25rem 2.25rem 2.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.sport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-yellow);
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.sport-card:hover {
  background: var(--color-off-white);
  border-color: var(--color-yellow);
  box-shadow: 0 6px 24px rgba(26, 79, 160, 0.08);
}
.sport-card:hover::before { transform: scaleX(1); }

.sport-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.sport-card h3 { margin-bottom: 0.75rem; }

.sport-card p {
  font-size: 0.93rem;
  margin-bottom: 1.75rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  transition: gap var(--transition);
}

.card-link:hover { gap: 0.8rem; }

.card-link::after {
  content: '→';
  font-size: 1rem;
  line-height: 1;
}

/* --- Stat Bar --- */
.stat-bar {
  background: var(--color-yellow);
  padding: 0;
  margin: 0;
}

.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(6,30,75,0.14);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(6,30,75,0.55);
}

/* --- Feature Split --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.feature-split.reverse .feature-image { order: 2; }
.feature-split.reverse .feature-body  { order: 1; }

.feature-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.feature-image-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #061E4B 0%, #0D3578 55%, #1A4FA0 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.feature-image-inner .image-caption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.feature-body {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-white);
}

.section--light .feature-body { background: var(--color-off-white); }

.feature-body .section-label { margin-bottom: 0.6rem; }
.feature-body h2 { margin-bottom: 1.25rem; }
.feature-body p  { margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gray-700);
}

.feature-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
  flex-shrink: 0;
  border: 1.5px solid var(--color-yellow-hover);
}

/* --- Programs Grid --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.program-item {
  display: block;
  background: var(--color-white);
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  color: inherit;
}

.section--light .program-item { background: var(--color-off-white); }
.section--light .program-item:hover { background: var(--color-white); }

.program-item:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue);
  box-shadow: 0 4px 16px rgba(26, 79, 160, 0.08);
}

.program-sport {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  display: block;
  margin-bottom: 0.4rem;
}

.program-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.program-item p {
  font-size: 0.9rem;
}

/* --- Registration / Membership Box --- */
.register-box {
  background: var(--color-off-white);
  padding: 2.5rem;
  border-top: 3px solid var(--color-yellow);
  border-radius: 12px;
}

.register-box-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1.25rem;
  display: block;
}

.register-option-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.register-option-list span {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-blue);
}

/* --- Quote / Testimonial --- */
.quote-section {
  background: var(--color-off-white);
  padding: var(--space-section) 0;
  text-align: center;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-yellow);
  opacity: 0.55;
  display: block;
  margin-bottom: -1rem;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.55;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.quote-attr {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

/* --- Info panel --- */
.info-panel {
  background: var(--color-off-white);
  border-top: 3px solid var(--color-blue);
  padding: 2rem 2.25rem;
  border-radius: 10px;
}

.info-panel h3 {
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.88rem;
}

.info-row:last-child { border-bottom: none; }

.info-row-label {
  font-weight: 600;
  color: var(--color-blue);
  min-width: 72px;
  flex-shrink: 0;
}

.info-row-value {
  color: var(--color-gray-700);
  line-height: 1.6;
}

.info-row-value a {
  color: var(--color-gray-700);
  transition: color var(--transition);
}

.info-row-value a:hover { color: var(--color-navy); }

/* --- Note block --- */
.note-block {
  background: var(--color-blue-light);
  border-left: 3px solid var(--color-blue);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.note-block p {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  margin: 0;
}

/* --- Hours --- */
.hours-block { display: grid; gap: 0; }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.9rem;
}

.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 600; color: var(--color-navy); }
.hours-time { color: var(--color-gray-700); text-align: right; }

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.form-group legend {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  padding: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.78rem 1rem;
  border: 1px solid var(--color-gray-200);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26, 79, 160, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group[role="group"],
fieldset.form-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-group .choice-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.choice-item input {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: var(--color-blue);
}

.form-divider {
  height: 1px;
  background: var(--color-gray-200);
  margin: 3rem 0;
}

/* --- Map --- */
.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.map-placeholder {
  background: var(--color-gray-100);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-500);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Intro block --- */
.intro-block { max-width: 720px; }
.intro-block h2 { margin-bottom: 1rem; }
.intro-block p  { margin-bottom: 1rem; }
.intro-block p:last-child { margin-bottom: 0; }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-gray-200);
  margin: 0;
}

/* --- Utilities --- */
.text-center  { text-align: center; }
.text-white   { color: var(--color-white) !important; }
.text-blue    { color: var(--color-blue); }
.text-navy    { color: var(--color-navy); }
.text-yellow  { color: var(--color-yellow); }
.text-muted   { color: var(--color-gray-500); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

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

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.team-card:hover {
  box-shadow: 0 6px 24px rgba(26, 79, 160, 0.1);
  border-color: var(--color-blue);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-gray-100);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.team-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  display: block;
  margin-bottom: 0.75rem;
}

.team-rate {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-yellow-light);
  color: var(--color-charcoal);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.team-email {
  font-size: 0.78rem;
  color: var(--color-blue);
  transition: opacity var(--transition);
  display: block;
  word-break: break-all;
}

.team-email:hover { opacity: 0.7; }

/* --- Location List (compact school table) --- */
.location-list {
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.location-row {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-200);
  border-right: 1px solid var(--color-gray-200);
}

.location-row:nth-child(even) { border-right: none; }

.location-row:nth-last-child(-n+2) { border-bottom: none; }
.location-row:last-child          { border-bottom: none; }

/* Yellow left bar on FCT program campuses */
.location-row--program {
  border-left: 3px solid var(--color-yellow);
  padding-left: calc(1.25rem - 3px);
}

.location-name {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.88rem;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.2rem;
}

.location-addr {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  display: block;
}

@media (max-width: 640px) {
  .location-list { grid-template-columns: 1fr; }
  .location-row { border-right: none; }
  .location-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--color-gray-200); }
  .location-row:last-child { border-bottom: none; }
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  display: block;
  height: 44px;
  width: auto;
  transition: opacity var(--transition), transform var(--transition);
}

/* Google Play badge has ~20% internal padding; bump height so visual weight matches Apple */
.store-badge--google {
  height: 56px;
}

.store-badge:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

/* --- Court Pricing --- */
.pricing-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.pricing-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 4px 20px rgba(26, 79, 160, 0.08);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-unit {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.pricing-card p {
  font-size: 0.88rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-navy);
  border-top: 3px solid var(--color-yellow);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.3rem;
}

.footer-brand .logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-yellow);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.865rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-contact {
  font-size: 0.865rem;
  color: rgba(255,255,255,0.38);
  line-height: 2;
}

.footer-contact a {
  color: rgba(255,255,255,0.38);
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--color-yellow); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--color-white); }

.footer-hours {
  font-size: 0.865rem;
  color: rgba(255,255,255,0.5);
  line-height: 2;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--color-yellow); }

/* --- Chat Widget --- */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: -1.8rem;
  z-index: 300;
  font-family: var(--font-body);
  --chat-viewport-width: 100vw;
  --chat-viewport-height: 100vh;
  --chat-viewport-left: 0px;
  --chat-viewport-top: 0px;
}

.chat-widget button,
.chat-widget textarea { font: inherit; }

.chat-widget button { border: 0; cursor: pointer; }

.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.chat-launcher:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
}

.chat-launcher-pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-yellow);
  box-shadow: 0 0 0 5px rgba(245, 193, 7, 0.25);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 4rem;
  width: min(430px, calc(100vw - 2rem));
  height: min(700px, calc(100vh - 7rem));
  max-height: min(700px, calc(100vh - 7rem));
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--color-gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: flex;
  flex-direction: column;
}

.chat-panel[hidden] { display: none; }

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-navy);
}

.chat-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.chat-header h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-white);
}

.chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 1.35rem;
  line-height: 1;
}

.chat-close:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
}

.chat-disclaimer {
  margin: 0.9rem 1rem 0;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  background: var(--color-blue-light);
  color: var(--color-gray-700);
  font-size: 0.76rem;
  line-height: 1.45;
}

.chat-messages {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding: 12px;
  scroll-behavior: smooth;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 17px;
  font-size: 0.9rem;
  line-height: 1.36;
  white-space: pre-line;
  overflow-wrap: anywhere;
  animation: chat-bubble-in 0.22s ease both;
}

@keyframes chat-bubble-in {
  from { opacity: 0; transform: translateY(5px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message--assistant {
  align-self: flex-start;
  background: var(--color-gray-100);
  color: var(--color-charcoal);
  border-bottom-left-radius: 4px;
}

.chat-message--assistant a {
  color: var(--color-blue);
  text-decoration: underline;
}

.chat-message--user {
  align-self: flex-end;
  background: var(--color-blue);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.chat-message--loading {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 30px;
  color: transparent;
}

.chat-message--loading::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gray-500);
  box-shadow: 8px 0 0 var(--color-gray-500), 16px 0 0 var(--color-gray-500);
  animation: chat-typing 1.15s infinite ease-in-out;
}

@keyframes chat-typing {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-2px); }
}

.chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.9rem;
}

.chat-starter {
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: transparent;
  color: var(--color-gray-700);
  font-size: 0.75rem;
  line-height: 1.2;
}

.chat-starter:hover {
  border-color: var(--color-blue);
  background: var(--color-blue-light);
  color: var(--color-blue);
}

.chat-contact { padding: 0 1rem 0.95rem; }

.chat-contact-link {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
}

.chat-contact-link:hover { background: var(--color-yellow-hover); }

.chat-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 1rem;
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.chat-form textarea {
  width: 100%;
  max-height: 110px;
  resize: none;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  background: var(--color-gray-100);
  color: var(--color-charcoal);
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
  outline: none;
}

.chat-form textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26, 79, 160, 0.1);
  background: var(--color-white);
}

.chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  align-self: end;
  border-radius: 999px;
  background: var(--color-blue);
  color: var(--color-white);
}

.chat-form button:hover { background: var(--color-blue-hover); }

.chat-form button svg { width: 18px; height: 18px; }

.chat-form--loading {
  opacity: 0.72;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .site-nav,
  .header-cta,
  .header-portal { display: none; }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-inner {
    gap: 1rem;
    justify-content: flex-start;
  }

  .site-logo,
  .site-logo .logo-text { min-width: 0; }

  .site-logo {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .nav-toggle { margin-left: auto; }

  .site-logo .logo-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feature-split    { grid-template-columns: 1fr; }
  .programs-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature-split.reverse .feature-image,
  .feature-split.reverse .feature-body { order: unset; }

  .feature-image { min-height: 320px; }
  .feature-body  { padding: 3rem 2.5rem; }

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

  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(6,30,75,0.14); }
  .stat-item:nth-child(2),
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  :root {
    --space-section: 3.5rem;
    --header-height: 64px;
  }

  .hero { padding: 3.5rem 0 3rem; }

  /* On mobile: full-width photo backdrop at low opacity behind the text */
  .hero::before {
    width: 100%;
    background: url('/assets/images/hero-homepage.jpeg') center / cover no-repeat;
    opacity: 0.18;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sport-cards { grid-template-columns: 1fr; gap: 1rem; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .programs-grid,
  .programs-grid--3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .feature-body { padding: 2.5rem 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

  body.chatbot-open { overflow: hidden; }

  .chat-widget {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: calc(env(safe-area-inset-bottom) - 2.35rem);
    left: auto;
  }

  .chat-launcher[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
  }

  .chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: var(--chat-viewport-width, 100vw);
    height: var(--chat-viewport-height, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate3d(var(--chat-viewport-left, 0px), var(--chat-viewport-top, 0px), 0);
  }

  .chat-header {
    align-items: center;
    padding: calc(0.8rem + env(safe-area-inset-top)) 1rem 0.85rem;
  }

  .chat-header h2 { font-size: 0.9rem; }

  .chat-disclaimer {
    margin: 0.75rem 0.85rem 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.74rem;
  }

  .chat-messages { padding: 0.75rem 0.85rem; }

  .chat-message {
    max-width: 92%;
    padding: 7px 11px;
    font-size: 0.86rem;
  }

  .chat-starters {
    gap: 0.4rem;
    padding: 0 0.85rem 0.75rem;
  }

  .chat-starter {
    padding: 0.34rem 0.62rem;
    font-size: 0.72rem;
  }

  .chat-contact { padding: 0 0.85rem 0.85rem; }

  .chat-form {
    gap: 0.55rem;
    padding: 0.78rem 0.85rem calc(0.78rem + env(safe-area-inset-bottom));
  }

  .chat-form textarea {
    min-height: 42px;
    padding: 0.68rem 0.78rem;
    border-radius: 18px;
    font-size: 16px;
  }

  .chat-form button { width: 42px; height: 42px; }

  .chat-panel:has(.chat-form textarea:focus) .chat-disclaimer,
  .chat-panel:has(.chat-form textarea:focus) .chat-starters { display: none; }

  .chat-keyboard-open .chat-header {
    justify-content: flex-end;
    padding: 0.5rem 0.85rem;
    border-bottom: 0;
  }

  .chat-keyboard-open .chat-kicker,
  .chat-keyboard-open .chat-header h2,
  .chat-keyboard-open .chat-disclaimer,
  .chat-keyboard-open .chat-starters,
  .chat-keyboard-open .chat-contact { display: none; }

  .chat-keyboard-open .chat-messages {
    min-height: 96px;
    padding: 0.45rem 0.85rem 0.65rem;
  }

  .chat-keyboard-open .chat-form { padding: 0.65rem 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .site-logo { gap: 0.5rem; }
  .site-logo .logo-img { height: 34px; }
  .site-logo .logo-name { font-size: 0.92rem; }
  .site-logo .logo-sub  { display: none; }
  .nav-toggle { padding: 0.45rem 0.25rem; }

  .btn-group      { flex-direction: column; }
  .btn-group .btn { width: 100%; text-align: center; }

  .store-badges        { gap: 0.65rem; }
  .store-badge         { height: 40px; }
  .store-badge--google { height: 51px; }

  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }

  .stat-bar-inner { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .chat-launcher {
    min-height: 32px;
    padding: 0 0.62rem;
    gap: 0.38rem;
    font-size: 0.64rem;
  }

  .chat-launcher-pulse {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 4px rgba(245, 193, 7, 0.2);
  }

  .chat-panel { width: 100vw; }
}
