/* Greenlake Martial Arts landing (GMA-313). Every value comes from tokens.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { line-height: var(--h2-lh); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--h2-size); margin-bottom: var(--gap-sm); }
h3 { font-size: var(--h3-size); line-height: var(--h3-lh); }
[hidden] { display: none !important; }
/* A modal dialog is open (js/scroll-lock.js, GMA-379): the page behind does not scroll. */
html.scroll-locked { overflow: hidden; }
:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-offset); }
section[id] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: calc(-1 * var(--header-h) * 2); z-index: 100;
  background: var(--c-cta-bg); color: var(--c-cta-text); padding: var(--gap-sm) var(--gap);
  border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--gap-sm); }

.eyebrow {
  font-size: var(--eyebrow-size); font-weight: 700; letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--gap-xs);
  display: flex; align-items: center; gap: var(--gap-sm);
}
.eyebrow::before { content: ""; width: 24px; height: var(--accent-w); border-radius: var(--radius-pill); background: var(--c-cta-bg); flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gap-xs);
  min-height: var(--touch); padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font: inherit; font-size: var(--btn-size); font-weight: 700; line-height: 1.15;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--ease), filter var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: var(--shadow-card); }
.btn:active { transform: none; box-shadow: none; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn-sm { padding: 8px 16px; font-size: var(--small-size); }
.btn-lg { padding: var(--btn-lg-pad-y) var(--btn-lg-pad-x); font-size: var(--btn-lg-size); }
.btn-cta { background: var(--c-cta-bg); color: var(--c-cta-text); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-text); filter: none; }

/* Program color sets: one custom-property pair per program, consumed by .btn-program,
   .btn-buy and .pricing-tab[aria-selected="true"]. Unknown programs fall back to the main CTA. */
[data-program] { --p-bg: var(--c-cta-bg); --p-text: var(--c-cta-text); }
[data-program="adult"] { --p-bg: var(--c-adult-bg); --p-text: var(--c-adult-text); }
[data-program="teen"] { --p-bg: var(--c-teen-bg); --p-text: var(--c-teen-text); }
[data-program="womens"] { --p-bg: var(--c-womens-bg); --p-text: var(--c-womens-text); }
[data-program="superhero"] { --p-bg: var(--c-superhero-bg); --p-text: var(--c-superhero-text); }
.btn-buy { background: var(--p-bg); color: var(--p-text); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-header-bg); box-shadow: var(--shadow-header);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-sm); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--gap-sm); text-decoration: none; min-height: var(--touch); min-width: var(--touch); }
.logo-disc {
  width: var(--logo-size); height: var(--logo-size); border-radius: 50%; background: var(--c-logo-disc);
  display: grid; place-items: center; flex: none; overflow: hidden;
}
.logo-disc img { width: 90%; height: 90%; object-fit: contain; }
.wordmark { font-weight: 800; font-size: var(--wordmark-size); letter-spacing: 0.01em; display: none; }
.header-nav { display: flex; align-items: center; gap: var(--gap-xs); }
.nav-link {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--gap-sm);
  font-weight: 700; font-size: var(--small-size); text-decoration: none; color: var(--c-text); border-radius: var(--radius-sm);
}
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 560px) { .wordmark { display: inline; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade); }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Focal points of the bundled hero photos (GMA-331): a phone shows only about 40% of a landscape
   photo's width and a desktop crops its top and bottom, so each crop is anchored on the people.
   Any other photo (an upload from the Hero slides editor) stays centered. */
.hero-slide img[src$="tsun-jo-heavy-bag-training.jpg"] { object-position: 90% 40%; }
.hero-slide img[src$="technique-drill.jpg"] { object-position: 58% 30%; }
.hero-slide img[src$="partner-drill.jpg"] { object-position: 52% 20%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: var(--c-scrim); }
.hero-copy {
  min-height: var(--hero-min-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: var(--gap); padding-top: 72px; padding-bottom: 40px; color: var(--c-on-photo);
}
.hero .eyebrow { color: var(--c-on-photo); margin-bottom: 0; }
/* Slide text (GMA-322): every slide's text sits in the same grid cell and crossfades with its photo,
   so the block keeps the height of the tallest slide and the controls never jump. */
.hero-texts { display: grid; width: 100%; justify-items: center; }
.hero-text {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: var(--gap);
  opacity: 0; visibility: hidden; transition: opacity var(--text-fade) ease, visibility var(--text-fade);
}
/* The old text fades out first, then the new one fades in, so two slides never overlap. */
.hero-text.is-on { opacity: 1; visibility: visible; transition-delay: var(--text-fade); }
.hero-title { font-size: var(--h1-size); line-height: var(--h1-lh); font-weight: 800; max-width: 18ch; }
.hero-subtitle { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: 700; max-width: 32ch; }
.hero-body { font-size: var(--lead-size); max-width: 44ch; }
.hero .btn-lg { margin-top: var(--gap-xs); }

.hero-controls { display: flex; align-items: center; gap: var(--gap-xs); margin-top: var(--gap); }
.carousel-toggle, .carousel-dot {
  width: var(--touch); height: var(--touch); border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; color: var(--c-on-photo);
}
.carousel-toggle { background: var(--c-control-bg); }
.carousel-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.carousel-toggle .icon-play { display: none; }
.carousel-toggle[data-paused="true"] .icon-play { display: block; }
.carousel-toggle[data-paused="true"] .icon-pause { display: none; }
.carousel-dots { display: flex; }
.carousel-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-dot);
  transition: background var(--ease), transform var(--ease);
}
.carousel-dot:hover::before { background: var(--c-dot-hover); }
.carousel-dot.is-on::before { background: var(--c-on-photo); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-text, .btn, .carousel-dot::before, .program-card, .card-more svg, .wa-bubble { transition: none; }
  .program-card:hover, .program-card:focus-within, .wa-bubble:hover { transform: none; }
  .program-card:hover .card-more svg, .program-card:focus-within .card-more svg { transform: none; }
}

/* ---------- sections ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-surface { background: var(--c-surface); }
.section-sub { color: var(--c-muted); margin-bottom: var(--gap-lg); }

/* Programs */
.program-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap-lg); }
/* The whole card is the link: the h3 anchor stretches over the card (::after), so there is one
   tab stop and one accessible name per card. */
.program-card {
  position: relative; cursor: pointer;
  background: var(--c-surface); border: var(--line-w) solid var(--c-line); border-top: var(--accent-w) solid var(--p-bg);
  border-radius: var(--radius-lg); padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--gap-sm);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.program-card:hover { transform: translateY(-3px); background: var(--c-surface-raised); box-shadow: var(--shadow-card); }
.program-card:focus-within { transform: translateY(-3px); background: var(--c-surface-raised); outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-offset); }
.card-link { text-decoration: none; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card-link:focus-visible { outline: none; }
.program-card p { color: var(--c-muted); }
.program-card .program-kicker { color: var(--c-text); font-weight: 600; font-size: var(--small-size); }
.card-more {
  margin-top: auto; padding-top: var(--gap-xs); display: inline-flex; align-items: center; gap: 2px;
  font-weight: 700; font-size: var(--small-size); color: var(--c-text);
}
.card-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ease); }
.program-card:hover .card-more svg, .program-card:focus-within .card-more svg { transform: translateX(3px); }
@media (min-width: 640px) { .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .program-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pricing. Without JS every panel shows stacked under its own title; with JS (html.js) the
   tablist appears and only the selected panel shows. */
.pricing-tabs { display: none; }
.js .pricing-tabs { display: flex; flex-wrap: wrap; gap: var(--gap-sm); margin-bottom: var(--gap-lg); }
.pricing-tab {
  min-height: var(--touch); padding: 8px 18px; border-radius: var(--radius-pill);
  border: 2px solid var(--c-line); background: var(--c-bg); color: var(--c-text);
  font: inherit; font-size: var(--small-size); font-weight: 700; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pricing-tab:hover { border-color: var(--c-muted); }
.pricing-tab[aria-selected="true"] { background: var(--p-bg); color: var(--p-text); border-color: var(--p-bg); }
.pricing-panel + .pricing-panel { margin-top: var(--gap-lg); }
.js .pricing-panel + .pricing-panel { margin-top: 0; }
.js .pricing-panel:not(.is-on) { display: none; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-title { margin-bottom: var(--gap); }
.pricing-panel:focus-visible { outline-offset: 6px; border-radius: var(--radius-md); }

.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.plan-card {
  background: var(--c-surface); border: var(--line-w) solid var(--c-line); border-radius: var(--radius-lg);
  padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--gap-xs);
}
.plan-name { font-weight: 800; font-size: var(--h3-size); line-height: var(--h3-lh); }
.plan-amount { font-size: var(--price-size); font-weight: 800; line-height: 1.1; }
.plan-cadence { color: var(--c-muted); font-size: var(--small-size); }
.plan-note { color: var(--c-muted); }
.plan-card .btn { margin-top: auto; align-self: stretch; }
.plan-card > :has(+ .btn) { margin-bottom: var(--gap-sm); }
.plan-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.plan-card .plan-actions .btn { margin-top: 0; }
.plan-card > :has(+ .plan-actions) { margin-bottom: var(--gap-sm); }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-card .btn { align-self: flex-start; } }
@media (min-width: 1000px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pricing-footnote { color: var(--c-muted); font-size: var(--small-size); margin-top: var(--gap-lg); }
.checkout-status { color: var(--c-error-text); font-size: var(--small-size); margin-top: var(--gap-sm); min-height: 1em; }
.checkout-status:empty { display: none; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-lg); }
.contact { font-style: normal; display: flex; flex-direction: column; gap: var(--gap-sm); margin: var(--gap) 0 var(--gap-lg); }
.contact-line { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.contact-label { color: var(--c-muted); font-size: var(--eyebrow-size); font-weight: 700; letter-spacing: var(--eyebrow-ls); text-transform: uppercase; }
.contact a { display: inline-flex; align-items: center; min-height: var(--touch); text-underline-offset: 4px; }
.wa-link { gap: var(--gap-sm); }
.wa-link svg { width: 20px; height: 20px; color: var(--c-whatsapp); flex: none; }
.hours-title { margin-bottom: var(--gap); }
.hours { display: flex; flex-direction: column; gap: var(--gap-sm); }
.hours div { display: flex; justify-content: space-between; gap: var(--gap); padding-bottom: var(--gap-sm); border-bottom: var(--line-w) solid var(--c-line); }
.hours dt { font-weight: 600; }
.hours dd { color: var(--c-muted); text-align: right; }
@media (min-width: 800px) { .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 64px; } .hours-title { margin-top: 40px; } }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: var(--gap-sm); margin-top: var(--gap); }
.social-link {
  display: inline-flex; align-items: center; gap: var(--gap-sm); min-height: var(--touch); padding: 8px 18px 8px 14px;
  border: var(--line-w) solid var(--c-line); border-radius: var(--radius-pill); text-decoration: none; font-weight: 600;
}
.social-link:hover { border-color: var(--c-text); }
.social-link svg { width: 22px; height: 22px; fill: currentColor; }

/* Footer */
.site-footer { background: var(--c-band); border-top: var(--line-w) solid var(--c-line); padding: var(--gap-lg) 0; color: var(--c-muted); font-size: var(--small-size); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--gap-sm); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--touch); text-underline-offset: 4px; }

/* WhatsApp floating bubble (same pattern as Kinect). Stays clear of the footer link by the
   footer's own bottom padding. */
.wa-bubble {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-whatsapp); color: var(--c-on-whatsapp);
  box-shadow: var(--shadow-bubble);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.wa-bubble svg { width: 28px; height: 28px; }
.wa-bubble:hover { transform: translateY(-2px); box-shadow: var(--shadow-bubble-hover); }
.wa-bubble:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-offset); }
.site-footer { padding-bottom: calc(var(--gap-lg) + 56px); }
@media (min-width: 640px) { .site-footer { padding-bottom: var(--gap-lg); } }
