/* ============================================================
   CCSC redesign — shared stylesheet
   ============================================================ */

:root {
  --ink: #14211B;
  --forest: #1B4D36;
  --forest-dark: #143C2A;
  --turf: #3E9B4F;
  --turf-soft: #E4F2E6;
  --amber: #E8A33D;
  --amber-dark: #C9821B;
  --cream: #FAF7F1;
  --white: #FFFFFF;
  --border: #E3DED2;
  --muted: #5D6B62;
  --danger: #B3402E;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(20, 33, 27, 0.08);
  --shadow-md: 0 6px 24px rgba(20, 33, 27, 0.10);
  --shadow-lg: 0 16px 48px rgba(20, 33, 27, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--turf); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--forest);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turf);
  margin-bottom: 10px;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-amber:hover { background: var(--amber-dark); color: var(--ink); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--turf-soft); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ---------- Announcement banner ---------- */
.announce {
  background: var(--ink);
  color: #F2EFE7;
  font-size: 0.875rem;
  position: relative;
}
.announce .wrap { display: flex; gap: 12px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.announce strong { color: var(--amber); }
.announce a { color: #fff; }
.announce-dismiss {
  margin-left: auto;
  flex: none;
  background: none;
  border: 0;
  color: #F2EFE7;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.announce-dismiss:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
  transition: padding 0.2s ease;
}
.site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { height: 48px; width: auto; transition: height 0.2s ease; }
.site-header.scrolled .brand img { height: 38px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.main-nav a:hover { background: var(--turf-soft); color: var(--forest); }
.main-nav a[aria-current="page"] { background: var(--forest); color: #fff; font-weight: 600; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--forest);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--forest);
}
.nav-toggle svg { display: block; }

@media (max-width: 1039px) {
  .brand-name span { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 16px; border-radius: var(--radius); font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--forest-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 32, 24, 0.88) 0%, rgba(15, 32, 24, 0.62) 45%, rgba(15, 32, 24, 0.18) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 140px) 20px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 52ch; color: #E9EDE6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-eyebrow { color: var(--amber); display: block; }

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 22px;
  color: #fff;
}
.countdown-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.countdown-pill strong { color: var(--amber); }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }
.section-green { background: var(--forest); color: #E9EDE6; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green .eyebrow { color: var(--amber); }
.section-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-green .section-head p { color: #C9D6CC; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.card-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.15rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card-cta { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--forest); font-size: 0.9rem; }
.card-cta::after { content: " →"; }

/* Badges / chips */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--turf-soft);
  color: var(--forest);
}
.badge-amber { background: #FBEBD2; color: var(--amber-dark); }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.badge-red { background: #F7E2DE; color: var(--danger); }
.badge-green { background: var(--turf-soft); color: var(--forest); }

/* ---------- Class catalog ---------- */
.filter-bar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.chip:hover { border-color: var(--turf); color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }

.filter-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-controls input[type="search"], .filter-controls select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
}
.filter-controls input[type="search"] { flex: 1 1 260px; }
.filter-controls select { flex: 0 1 auto; }
.filter-controls input:focus, .filter-controls select:focus { border-color: var(--turf); outline-offset: 0; }

.class-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.class-meta strong { color: var(--ink); font-weight: 600; }
.price-tag { font-weight: 700; color: var(--forest); font-size: 1.05rem; }

.results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* ---------- Class detail ---------- */
.detail-hero { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1040px) { .detail-hero { grid-template-columns: 1.1fr 0.9fr; } }
.detail-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.fact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.fact-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.95rem; }
.fact-list .fact-label { font-weight: 600; min-width: 110px; flex: none; }

.session-picker { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 20px; }
@media (min-width: 480px) { .session-picker { grid-template-columns: 1fr 1fr; } }
.session-opt {
  position: relative;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.12s ease;
}
.session-opt:hover:not([disabled]) { border-color: var(--turf); }
.session-opt[aria-pressed="true"] { border-color: var(--forest); background: var(--turf-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.session-opt strong { display: block; font-size: 0.95rem; }
.session-opt .session-dates { color: var(--muted); }
.session-opt[disabled] { opacity: 0.55; cursor: not-allowed; background: #F4F1EA; }
.session-flag { position: absolute; top: 10px; right: 10px; }

.time-picker { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 24px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--turf); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 130px; }
.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 5px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }

.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.upload-box:hover { border-color: var(--turf); }
.upload-box strong { color: var(--forest); }

/* Progress steps */
.steps { display: flex; align-items: center; gap: 0; list-style: none; margin: 0 0 32px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); margin: 0 12px; border-radius: 2px; }
.step-num {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--border);
  font-size: 0.8rem;
}
.steps li.active { color: var(--forest); }
.steps li.active .step-num { background: var(--forest); border-color: var(--forest); color: #fff; }
.steps li.done { color: var(--turf); }
.steps li.done .step-num { background: var(--turf); border-color: var(--turf); color: #fff; }
.steps li.done:not(:last-child)::after { background: var(--turf); }
@media (max-width: 719px) { .steps .step-label { display: none; } .steps li { flex: 0 1 auto; } .steps li:not(:last-child)::after { min-width: 24px; } }

.review-list { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.review-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 0.92rem; background: var(--white); }
.review-list li:nth-child(even) { background: var(--cream); }
.review-list .review-label { color: var(--muted); font-weight: 500; }
.review-list .review-value { font-weight: 600; text-align: right; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1040px) { .checkout-layout { grid-template-columns: 0.9fr 1.1fr; } }

.order-summary { position: sticky; top: 96px; }
.summary-lines { list-style: none; margin: 16px 0; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.summary-lines li.total { border-bottom: 0; font-weight: 700; font-size: 1.15rem; padding-top: 14px; }
.summary-lines .discount-line { color: var(--turf); font-weight: 600; }

.promo-row { display: flex; gap: 8px; margin-top: 4px; }
.promo-row input { flex: 1; font-family: var(--font-body); font-size: 0.9rem; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; }
.promo-msg { font-size: 0.82rem; margin-top: 6px; }
.promo-msg.ok { color: var(--turf); }
.promo-msg.err { color: var(--danger); }

.express-pay { display: grid; gap: 10px; }
@media (min-width: 480px) { .express-pay { grid-template-columns: 1fr 1fr; } }
.pay-express-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity 0.12s ease;
}
.pay-express-btn:hover { opacity: 0.85; }
.apple-pay { background: #000; color: #fff; }
.gpay { background: #fff; color: #3c4043; border-color: #dadce0; }

.pay-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 0.85rem; }
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.card-input-wrap { position: relative; }
.card-brand-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; margin: 16px 0; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); flex: none; }

.recurring-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FBEBD2;
  border: 1px solid #F0D5A8;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--amber-dark);
  margin-bottom: 18px;
}

.secure-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  text-align: center;
}
.secure-footer .sep { opacity: 0.5; }
.secure-mark { font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.receipt-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--turf-soft);
  color: var(--turf);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.conf-number {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  display: inline-block;
  letter-spacing: 0.06em;
}
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.next-steps .step-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--turf-soft); color: var(--forest); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Pricing (memberships) ---------- */
.pricing-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card { display: flex; flex-direction: column; padding: 26px 24px; position: relative; overflow: visible; }
.pricing-grid { padding-top: 12px; }
.plan-card.featured { border: 2px solid var(--forest); box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; margin: 10px 0 2px; color: var(--forest); }
.plan-per { color: var(--muted); font-size: 0.9rem; }
.plan-detail { color: var(--muted); font-size: 0.9rem; margin: 12px 0 20px; flex: 1; }
.plan-card .btn { margin-top: auto; }

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; }
.benefit-list .tick { flex: none; color: var(--turf); font-weight: 700; margin-top: 1px; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--turf-soft);
  border: 1.5px solid var(--turf);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.callout-icon { flex: none; font-size: 1.6rem; line-height: 1.2; }

table.rate-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); font-size: 0.95rem; }
table.rate-table th, table.rate-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); }
table.rate-table tr:last-child td { border-bottom: 0; }
table.rate-table th { background: var(--cream); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Events ---------- */
.month-group { margin-bottom: 36px; }
.month-label { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 16px; }
.event-row {
  display: flex; gap: 18px; align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.date-badge {
  flex: none;
  width: 64px; min-height: 64px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700;
  line-height: 1.1;
  padding: 6px 4px;
  text-align: center;
}
.date-badge .db-month { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); }
.date-badge .db-day { font-size: 1.15rem; font-family: var(--font-display); }
.event-info { flex: 1 1 240px; }
.event-info h3 { margin: 0 0 2px; font-size: 1.08rem; }
.event-info p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.event-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Instructor grid ---------- */
.instructor-card { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.avatar {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.instructor-card h3 { margin: 0; font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; }
.instructor-card p { margin: 3px 0 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.map-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background:
    linear-gradient(rgba(27, 77, 54, 0.06), rgba(27, 77, 54, 0.06)),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(20, 33, 27, 0.07) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(20, 33, 27, 0.07) 46px 47px),
    #EBE6DA;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.map-road { position: absolute; background: #D9D2C0; }
.map-road.h1 { top: 42%; left: 0; right: 0; height: 26px; transform: rotate(-3deg); }
.map-road.v1 { top: 0; bottom: 0; left: 24%; width: 14px; transform: rotate(4deg); }
.map-pin-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  text-align: center;
  max-width: 260px;
}
.map-pin-card .pin { font-size: 2rem; display: block; margin-bottom: 6px; }

.contact-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-card-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-card-list .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--turf-soft); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ---------- How it works ---------- */
.how-step { text-align: center; padding: 8px 12px; }
.how-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.how-step h3 { font-size: 1.12rem; }
.how-step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.section-green .how-step p { color: #C9D6CC; }
.section-green .how-num { color: var(--ink); }

/* ---------- Stats / facility strip ---------- */
.stat { text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--amber); line-height: 1.1; }
.stat .stat-label { font-size: 0.85rem; color: #C9D6CC; margin-top: 4px; }

.quote-card { padding: 28px 30px; }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.45; }
.quote-card cite { display: block; margin-top: 14px; font-style: normal; color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C4BC; padding: clamp(44px, 7vw, 72px) 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #B9C4BC; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.05rem; line-height: 1.2; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 18px 0;
  font-size: 0.8rem;
  color: #7E8B82;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--forest); color: #E9EDE6; padding: clamp(44px, 7vw, 80px) 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { max-width: 60ch; color: #C9D6CC; font-size: 1.05rem; margin: 0; }
.page-hero .eyebrow { color: var(--amber); }
.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; color: #9FB3A6; }
.breadcrumb a { color: #C9D6CC; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Admin ---------- */
.admin-body { background: #F1EEE6; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 64px); }
@media (min-width: 1040px) { .admin-shell { grid-template-columns: 230px 1fr; } }
.admin-sidebar { background: var(--ink); padding: 20px 14px; }
@media (min-width: 1040px) { .admin-sidebar { min-height: 100%; } }
.admin-sidebar nav { display: flex; gap: 4px; flex-wrap: wrap; }
@media (min-width: 1040px) { .admin-sidebar nav { flex-direction: column; } }
.admin-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: auto;
  background: none; border: 0;
  color: #B9C4BC;
  font-family: var(--font-body); font-weight: 500; font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
@media (min-width: 1040px) { .admin-nav-btn { width: 100%; } }
.admin-nav-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-btn[aria-current="true"] { background: var(--forest); color: #fff; font-weight: 600; }
.admin-main { padding: clamp(20px, 3.5vw, 40px); min-width: 0; }
.admin-note {
  background: #FBEBD2; border: 1px solid #F0D5A8; color: var(--amber-dark);
  border-radius: var(--radius); padding: 10px 16px; font-size: 0.85rem; margin-bottom: 24px;
  display: flex; gap: 10px; align-items: center;
}
.kpi-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
@media (min-width: 1040px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card { padding: 18px 20px; }
.kpi-card .kpi-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.kpi-card .kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; margin-top: 4px; }
.kpi-card .kpi-sub { font-size: 0.8rem; color: var(--turf); font-weight: 600; }

.admin-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.admin-table th { background: var(--cream); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); position: sticky; top: 0; }
table.admin-table tr:last-child td { border-bottom: 0; }
table.admin-table td .btn { margin-right: 6px; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-toolbar h2 { margin: 0; font-size: 1.5rem; }

.status-chip { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-Paid, .status-Succeeded { background: var(--turf-soft); color: var(--forest); }
.status-Pending { background: #FBEBD2; color: var(--amber-dark); }
.status-Refunded { background: #F7E2DE; color: var(--danger); }

.method-icon { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.82rem; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 33, 27, 0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 30px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { margin: 0; }
.modal-close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { background: var(--cream); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; } .mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 36px; } .mb-4 { margin-bottom: 36px; }
.center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

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

/* ============================================================
   v3 additions — accounts, portals, waitlist, credits, charts
   ============================================================ */

.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;
}
.mt-1 { margin-top: 8px; }

/* Logo on dark backgrounds: always sit on a light chip */
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 9px 10px;
  border-radius: 10px;
  flex: none;
}
.logo-chip img { display: block; height: 40px; width: auto; }

/* ---------- header auth ---------- */
.nav-auth a { font-weight: 500; }
.nav-user { position: relative; }
.nav-user-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--turf-soft);
  border: 0;
  color: var(--forest);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-user-btn:hover { background: #d5e9d8; }
.user-menu {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  padding: 6px;
  z-index: 150;
}
.user-menu.open { display: block; }
.user-menu a, .user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none; border: 0;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--turf-soft); color: var(--forest); }
@media (max-width: 1039px) {
  .nav-user { position: static; }
  .user-menu { position: static; box-shadow: none; border: 0; display: block; padding: 0 0 0 12px; }
  .nav-user-btn { width: 100%; justify-content: flex-start; border-radius: var(--radius); }
}

/* ---------- login ---------- */
.demo-accounts {
  border: 1.5px dashed var(--amber);
  background: #FDF6E9;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.demo-accounts h3 { font-size: 1.02rem; margin-bottom: 4px; }
.demo-account-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0DFC0;
  flex-wrap: wrap;
}
.demo-account-row:last-child { border-bottom: 0; }
.demo-account-row code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.7);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- portals ---------- */
.portal-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1040px) { .portal-grid { grid-template-columns: 1.5fr 1fr; } }
.enroll-card { display: flex; gap: 0; overflow: hidden; margin-bottom: 14px; }
.enroll-card-img { width: 130px; object-fit: cover; flex: none; }
@media (max-width: 479px) { .enroll-card-img { width: 84px; } }
.enroll-card-body { padding: 16px 18px; min-width: 0; }
.enroll-card-body h3 { font-size: 1.05rem; margin-bottom: 2px; }

.dog-card { padding: 18px 20px; margin-bottom: 14px; overflow: visible; }
.dog-card-head { display: flex; gap: 14px; align-items: center; }
.dog-card-head h3 { font-size: 1.08rem; margin: 0; }
.dog-photo { border-radius: 50%; object-fit: cover; flex: none; }
.dog-card .avatar { flex: none; }
.link-toggle {
  background: none; border: 0; padding: 0;
  margin-top: 10px;
  color: var(--forest);
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-toggle:hover { color: var(--turf); }
.dog-form .field { margin-bottom: 12px; }

.form-section-head {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin: 22px 0 12px;
}

/* profile (instructor) */
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-quote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  border-left: 4px solid var(--amber);
  padding-left: 16px;
}
.photo-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-opt {
  width: 56px; height: 56px;
  padding: 0;
  border: 2.5px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  overflow: hidden;
}
.photo-opt img { width: 100%; height: 100%; object-fit: cover; }
.photo-opt.selected { border-color: var(--forest); box-shadow: 0 0 0 2px var(--turf-soft); }

/* ---------- radio pills + behavior questions ---------- */
.radio-field { border: 0; padding: 0; margin: 0 0 18px; }
.radio-field legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.radio-row { display: flex; gap: 10px; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-block;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 500; font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.12s ease;
}
.radio-pill input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.radio-detail { margin-top: 10px; }
.radio-detail textarea { width: 100%; font-family: var(--font-body); font-size: 0.95rem; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; }
.reassure { color: var(--forest); background: var(--turf-soft); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; }

/* ---------- waiver ---------- */
.waiver-box {
  max-height: 200px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: #3E4A42;
  margin-bottom: 14px;
}
.waiver-box p:last-child { margin-bottom: 0; }
.rules-summary {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px 18px;
  margin-top: 12px;
}
.rules-summary h4 { margin-bottom: 8px; }
.rules-summary ul { margin: 0 0 10px; padding-left: 20px; }

/* ---------- waitlist ---------- */
.session-waitlist { border-style: dashed; }
.session-waitlist .waitlist-cta { display: block; margin-top: 4px; font-weight: 700; color: var(--amber-dark); font-size: 0.85rem; }
.waitlist-card {
  background: #FDF6E9;
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 4px 0 18px;
}
.waitlist-card h4 { margin-bottom: 4px; }
.waitlist-ok { background: var(--turf-soft); border-color: var(--turf); }

/* ---------- vaccination chips + banner ---------- */
.vax-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.vax-chip {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.vax-ok { background: var(--turf-soft); color: var(--forest); }
.vax-soon { background: #FBEBD2; color: var(--amber-dark); }
.vax-expired { background: #F7E2DE; color: var(--danger); }
.vax-banner {
  background: #FBEBD2;
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--amber-dark);
  margin-bottom: 16px;
}

/* ---------- credits punch card ---------- */
.punch-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 8px; }
.punch-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--turf);
  background: var(--white);
}
.punch-dot.filled { background: var(--turf); box-shadow: inset 0 0 0 3px var(--white); }

/* ---------- footer newsletter ---------- */
.footer-news { margin-top: 20px; }
.footer-news h4 { margin-bottom: 10px; }
.footer-news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-news-form input {
  flex: 1 1 170px;
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  min-width: 0;
}
.footer-news-form input::placeholder { color: #8E9B92; }
.footer-news-ok { color: #9FD3A8; font-size: 0.88rem; margin: 0; }

/* ---------- admin statistics charts (pure CSS) ---------- */
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 44px; gap: 10px; align-items: center; font-size: 0.85rem; }
@media (max-width: 479px) { .bar-row { grid-template-columns: 110px 1fr 40px; } }
.bar-label { text-align: right; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--cream); border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--forest); border-radius: 6px; min-width: 4px; }
.bar-fill.turf { background: var(--turf); }
.bar-fill.amber { background: var(--amber); }
.bar-value { font-weight: 700; }

.vbar-chart {
  display: flex; gap: 14px;
  align-items: flex-end;
  height: 170px;
  padding-top: 10px;
}
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.vbar .vbar-fill { width: 100%; max-width: 56px; background: var(--turf); border-radius: 6px 6px 0 0; }
.vbar.current .vbar-fill { background: var(--forest); }
.vbar .vbar-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.vbar .vbar-amount { font-size: 0.72rem; font-weight: 700; }
