@font-face { font-family: 'Anton'; src: url('fonts/Anton-400.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Public Sans'; src: url('fonts/PublicSans-400.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Public Sans'; src: url('fonts/PublicSans-600.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'Public Sans'; src: url('fonts/PublicSans-700.woff2') format('woff2'); font-weight: 700; }

:root {
  --ink: #15181A;
  --wash: #F4F6F3;
  --kelly: #0F7A42;
  --deep: #0C6336;
  --lime: #9DD348;
  --muted: #5A6360;
  --on-dark: #E8ECEA;
  --paper: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .anton {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, .btn {
  display: inline-block;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 4px;
}

/* Base Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid { display: grid; }
.flex { display: flex; }
.text-center { text-align: center; }

/* Navigation */
.header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--wash);
}
.header-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
}
.logo img { height: 40px; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.nav-links a:hover { color: var(--kelly); }
.header-cta {
  background: var(--kelly);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
}
.header-cta:hover { background: var(--deep); }
.header-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* Hero */
.hero {
  position: relative;
  background-color: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(21,24,26,0.9) 0%, rgba(21,24,26,0.4) 60%, rgba(21,24,26,0) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  /* BUG FIX: this element also carries .container; capping ITS width to 600px
     turned the copy into a centered island floating mid-screen over the dog
     (margin:0 auto came from .container). Keep container width; cap the copy
     per-element instead so it anchors to the page grid's left edge - which is
     exactly where the scrim is darkest. */
  max-width: 1200px;
  /* .hero is a FLEX container: without an explicit width this item
     shrinks to fit its ~640px content and margin:auto centers the island.
     width:100% makes it behave as the true page container. */
  width: 100%;
}
.hero h1 { max-width: 640px; }
.hero p { max-width: 560px; }
.hero-kicker {
  color: var(--lime);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 64px;
  margin-bottom: 24px;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--on-dark);
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.btn-primary {
  background: var(--kelly);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--deep); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }

.btn-outline {
  border: 2px solid var(--paper);
  color: var(--paper);
  padding: 12px 24px; /* Adjusting for border width */
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* The Two Tracks */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.track-card {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* align panel copy with the page container's gutters */
.track-card.pet { padding-left: max(48px, calc((100vw - 1200px) / 2 + 24px)); }
.track-card.performance { padding-right: max(48px, calc((100vw - 1200px) / 2 + 24px)); }
.track-card h2 { max-width: 34ch; }
.track-card p { max-width: 52ch; }
.track-card.pet {
  background: var(--wash);
  color: var(--ink);
}
.track-card.performance {
  background: var(--ink);
  color: var(--paper);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  align-self: flex-start;
}
.chip.pet-chip { background: var(--deep); color: var(--paper); }
.chip.perf-chip { background: var(--lime); color: var(--ink); }
.track-card h2 { font-size: 32px; margin-bottom: 16px; }
.track-card p { font-size: 16px; line-height: 1.6; }
.track-card.pet p { color: var(--ink); }
.track-card.performance p { color: var(--on-dark); }

/* Force Free Strip */
.force-free {
  padding: 24px 0;
  border-bottom: 1px solid var(--wash);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
}
.force-free svg { width: 20px; height: 20px; fill: var(--kelly); }

/* The Lineup */
.lineup {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
}
.section-kicker {
  color: var(--lime);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lineup h2 {
  font-size: 48px;
  margin-bottom: 48px;
}
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trainer-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
}
.trainer-photo {
  height: 240px;
}
.trainer-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.trainer-info { padding: 24px; }
.trainer-name { font-size: 24px; margin-bottom: 8px; }
.trainer-cert {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.trainer-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark);
}

/* Facility */
.facility {
  padding: 80px 0;
  background: var(--paper);
}
.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.facility-photos {
  position: relative;
}
.facility-photos img:first-child {
  border-radius: 8px;
  width: 80%;
}
.facility-photos img:last-child {
  border-radius: 8px;
  width: 60%;
  position: absolute;
  bottom: -40px;
  right: 0;
  border: 4px solid var(--paper);
}
.facility-content h2 { font-size: 48px; margin-bottom: 24px; }
.facility-content p { font-size: 16px; line-height: 1.6; margin-bottom: 32px; color: var(--muted); }
.rental-prices { border-top: 1px solid var(--wash); }
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--wash);
  font-size: 14px;
}
.price-row strong { color: var(--kelly); }

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--wash);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--paper);
  padding: 32px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.testi-quote {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.testi-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--deep);
}

/* Registration */
.registration { padding: 80px 0; }
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.reg-steps {
  counter-reset: reg-counter;
}
.reg-steps h2 { font-size: 48px; margin-bottom: 40px; }
.step {
  position: relative;
  padding-left: 48px;
  margin-bottom: 32px;
}
.step::before {
  counter-increment: reg-counter;
  content: counter(reg-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Anton', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; font-family: 'Public Sans', sans-serif; text-transform: none; font-weight: 700; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.reg-form-wrap {
  background: var(--wash);
  padding: 40px;
  border-radius: 8px;
}
.reg-form-wrap h3 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #D0D5D3;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.form-submit {
  width: 100%;
  background: var(--kelly);
  color: var(--paper);
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.form-submit:hover { background: var(--deep); }
.form-alt {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.form-alt a { color: inherit; text-decoration: underline; }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 64px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-logo img { height: 48px; }
.footer-brand { font-family: 'Anton', sans-serif; font-size: 24px; color: var(--paper); }
.footer-copy { font-size: 12px; color: var(--muted); margin-top: 8px; }
.footer-right { text-align: right; }
.footer-contact { font-size: 14px; margin-bottom: 8px; font-weight: 700; }
.footer-contact a { color: var(--paper); }
.footer-contact a:hover { color: var(--kelly); }
.footer-address { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.footer-signoff {
  font-family: 'Anton', sans-serif;
  color: var(--lime);
  font-size: 24px;
}

/* Classes Page */
.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.page-header h1 { font-size: 48px; }
/* padding-block, NOT the shorthand - this element also carries .container
   and the shorthand wiped its side gutters (flush text on phones) */
.class-list { padding-block: 80px; }
.class-item {
  border-bottom: 1px solid var(--wash);
  padding: 32px 0;
}
.class-item:last-child { border-bottom: none; }
.class-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.class-title { font-size: 24px; font-weight: 700; }
.class-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.class-desc { font-size: 16px; line-height: 1.6; color: var(--ink); }

/* Mobile nav */
.mobile-nav-toggle { display: none; }
.mobile-nav { display: none; }

/* Preview Ribbon */
.preview-ribbon {
  background: var(--deep);
  color: var(--paper);
  padding: 12px 24px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.preview-actions { display: flex; gap: 12px; align-items: center; }
.preview-chip {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.preview-chip:hover { background: rgba(255,255,255,0.3); }
.preview-dismiss { cursor: pointer; opacity: 0.8; font-size: 20px; }
.preview-dismiss:hover { opacity: 1; }

.mobile-call-bar { display: none; }

@media (max-width: 768px) {
  .nav-links, .header-cta { display: none; }
  details.mobile-nav { display: block; }
  summary { list-style: none; cursor: pointer; padding: 12px; font-size: 24px; }
  summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    padding: 24px; border-bottom: 1px solid var(--wash);
    display: flex; flex-direction: column; gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .mobile-menu a { display: block; padding: 12px 0; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--wash); }
  
  .hero { padding: 64px 0; min-height: auto; }
  .hero h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; width: 100%; }
  
  .tracks { grid-template-columns: 1fr; }
  .track-card { padding: 48px 24px; }
  
  .roster { grid-template-columns: 1fr; }
  
  .facility-grid { grid-template-columns: 1fr; gap: 40px; }
  .facility-photos img:last-child { bottom: -20px; width: 50%; }
  
  .testi-grid { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-right { text-align: left; }
  
  body { padding-bottom: 64px; }
  .mobile-call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--deep); color: var(--paper); justify-content: center;
    align-items: center; padding: 16px; font-weight: 700; font-size: 16px; z-index: 100; gap: 8px;
  }
  .mobile-call-bar svg { fill: currentColor; width: 20px; height: 20px; }
  
  .preview-ribbon { flex-direction: column; text-align: center; gap: 12px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* --- QA FIX (layout, 2026-07-19) --- */
@media (max-width: 768px) {
  /* the horizontal scrim left text washing out over the photo on phones -
     use a vertical one and give the fold breathing room */
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(21,24,26,0.55) 0%, rgba(21,24,26,0.88) 78%);
  }
  .hero { min-height: 560px; padding: 72px 0; }
  .hero h1 { font-size: 40px; }
  .track-card { padding: 48px 24px; }
  .track-card.pet, .track-card.performance { padding-left: 24px; padding-right: 24px; }
}

.nowrap { white-space: nowrap; }
