@font-face {
  font-family: 'Allerta Stencil';
  src: url('../assets/fonts/allerta-stencil-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../assets/fonts/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../assets/fonts/source-sans-3-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon: #5E0D16;
  --ink: #262222;
  --sage: #3D3F38;
  --wash: #ECEEE8;
  --white: #FFFFFF;
  --text-ink: #262222;
  --dark-text: #E9E5E5;
  --dark-muted: #C9CAC4;
  --dark-hairline: #4A4542;
  --radius: 3px;
  --max-width: 1200px;
}

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

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .stencil, .kicker, .tag {
  font-family: 'Allerta Stencil', sans-serif;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
  overflow-wrap: break-word;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.preview-ribbon {
  background-color: #262222;
  color: #E9E5E5;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-ribbon.hidden {
  display: none;
}

.preview-ribbon a {
  text-decoration: underline;
  color: #FFFFFF;
}

.preview-ribbon button.dismiss {
  color: #C9CAC4;
  font-size: 16px;
  margin-left: auto;
}

.mobile-call-bar {
  display: none;
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-weight: 600;
}
.mobile-call-bar a {
  display: block;
  width: 100%;
}

header {
  background: var(--ink);
  color: var(--white);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-area img {
  width: 48px;
  height: auto;
}
.wordmark {
  display: flex;
  flex-direction: column;
}
.wordmark-title {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.5px;
}
.wordmark-sub {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--dark-muted);
  margin-top: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}
.nav-desktop a:hover {
  opacity: 0.8;
}
.nav-desktop .current {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-cta {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.nav-cta:hover {
  opacity: 0.9;
}

.nav-mobile {
  display: none;
}
.nav-mobile details {
  position: relative;
}
.nav-mobile summary {
  list-style: none;
  border: 1px solid var(--dark-hairline);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--ink);
  border: 1px solid var(--dark-hairline);
  padding: 16px;
  margin-top: 8px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.nav-mobile-dropdown a {
  padding: 8px;
  display: block;
}

.hero-unit {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-copy {
  flex: 1;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--maroon);
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-size: 56px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero-copy h1 span {
  color: var(--maroon);
  display: block;
}
.hero-copy p {
  font-size: 18px;
  color: var(--sage);
  max-width: 500px;
  margin-bottom: 40px;
}
.ctas {
  display: flex;
  gap: 16px;
}
.btn-primary {
  background: var(--maroon);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: opacity 0.2s;
  text-align: center;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-outline {
  border: 2px solid var(--maroon);
  color: var(--maroon);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}
.btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
}

.hero-photo-wrapper {
  flex: 0 0 560px;
  position: relative;
}
.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tag-plate {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--ink);
  color: var(--dark-muted);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 1px;
}

.ticker-band {
  background: var(--maroon);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.ticker-track {
  display: inline-block;
  animation: ticker 40s linear infinite;
}
.ticker-item {
  display: inline-block;
  margin-right: 48px;
  font-size: 14px;
}
.ticker-item .outlet {
  color: #E9C9CC;
  margin-right: 8px;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}
.ticker-mobile {
  display: none;
}

.credentials-band {
  background: var(--wash);
  padding: 24px 32px;
}
.credentials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.credentials-label {
  font-size: 14px;
  letter-spacing: 1px;
}
.credentials-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip-outline {
  border: 1px solid #C9CAC4;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  background: var(--wash);
  color: var(--ink);
}

.section-programs {
  padding: 80px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}
.programs-header h2 {
  font-size: 32px;
}
.programs-header a {
  font-weight: 600;
  color: var(--maroon);
}
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  border: 1px solid #ECEEE8;
  display: flex;
  flex-direction: column;
}
.card-large {
  grid-row: span 2;
}
.card-large img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tag {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--maroon);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}
.card p {
  color: var(--sage);
  margin: 0;
}
.card-wide {
  background: var(--wash);
  border: none;
  grid-column: 1 / -1;
  padding: 40px;
}
.card-wide .card-content {
  padding: 0;
}
.programs-para {
  margin-top: 40px;
  max-width: 70ch;
  color: var(--sage);
}

.section-story {
  background: var(--ink);
  color: var(--dark-text);
  padding: 80px 32px;
}
.story-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}
.story-copy h2 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 32px;
}
.story-copy p {
  margin-bottom: 24px;
  color: var(--dark-muted);
}
.story-rail h3 {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--dark-muted);
  margin-bottom: 24px;
}
.pack-member {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.pack-member img {
  width: 96px;
  height: 72px;
  object-fit: cover;
}
.pack-member .chip-outline {
  background: transparent;
  color: var(--dark-muted);
  border-color: var(--dark-hairline);
}

.section-testimonials {
  padding: 80px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.testimonials-header {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: left;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--wash);
  padding: 32px;
  border-radius: var(--radius);
}
.testimonial-card p {
  margin: 0 0 24px 0;
  font-size: 16px;
}
.testimonial-attr {
  font-size: 14px;
  color: var(--maroon);
  letter-spacing: 1px;
}

.section-contact {
  background: var(--wash);
  padding: 80px 32px;
}
.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h2 {
  font-size: 32px;
  margin-bottom: 32px;
}
.contact-info p {
  margin-bottom: 16px;
  color: var(--sage);
}
.contact-info a {
  color: inherit;
}
.contact-info strong {
  color: var(--ink);
}
.contact-info .map-link {
  color: var(--maroon);
  font-weight: 600;
  display: inline-block;
  margin-top: 16px;
}
.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}
.contact-form-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ECEEE8;
  border-radius: var(--radius);
  font-family: inherit;
}
.form-note {
  font-size: 12px;
  color: var(--sage);
  margin-top: 16px;
}
.btn-submit {
  width: 100%;
  background: var(--maroon);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
}

footer {
  background: var(--ink);
  color: var(--dark-muted);
  padding: 64px 32px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.footer-left h2 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 16px;
}
.footer-left p {
  margin: 4px 0;
}
.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.footer-copyright {
  font-size: 12px;
  letter-spacing: 1px;
}

.subpage-hero {
  background: var(--wash);
  padding: 80px 32px;
  text-align: center;
}
.subpage-hero .kicker {
  justify-content: center;
  margin-bottom: 16px;
}
.subpage-hero h1 {
  font-size: 48px;
  color: var(--ink);
}
.programs-list {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.program-item h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.program-item p {
  color: var(--sage);
  margin: 0;
}

.photo-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 80px;
}
.photo-band img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-caption {
  font-size: 14px;
  color: var(--sage);
  margin-top: 12px;
  text-align: left;
}

.specialized-band {
  background: var(--ink);
  color: var(--dark-text);
  padding: 80px 32px;
}
.specialized-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.specialized-inner h2 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 24px;
}
.specialized-inner p {
  margin-bottom: 40px;
  color: var(--dark-muted);
}
.specialized-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.working-dogs-note {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 32px;
  color: var(--sage);
  text-align: center;
}

.ask-band {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 32px;
  text-align: center;
}
.ask-band .ctas {
  justify-content: center;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .hero-unit {
    flex-direction: column;
  }
  .hero-photo-wrapper {
    flex: auto;
    width: 100%;
    height: 400px;
  }
  .ticker-band {
    display: none;
  }
  .ticker-mobile {
    display: flex;
    flex-direction: column;
    background: var(--maroon);
    color: var(--white);
    padding: 16px 32px;
    gap: 8px;
  }
  .ticker-mobile .ticker-item {
    margin-right: 0;
    white-space: normal;
  }
  .credentials-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .card-large {
    grid-row: auto;
  }
  .story-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-testimonials {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-right {
    text-align: left;
    align-items: flex-start;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .mobile-call-bar {
    display: block;
  }
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-copy {
    padding: 40px 24px;
  }
  .ctas {
    flex-direction: column;
  }
}

/* --- QA FIXES (supervisor) --- */
@media (max-width: 768px) {
  a.btn, .btn, button, summary { min-height: 44px; }
  nav a, details a, .mnav a, .mobile-nav a { min-height: 44px; display: flex; align-items: center; }
}

/* --- QA FIX: mobile call bar belongs at the BOTTOM (thumb zone), not pinned
   above the masthead. It was position:sticky;top:0, which pushed a maroon bar
   above the logo on phones. --- */
@media (max-width: 768px) {
  .mobile-call-bar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
  }
  body { padding-bottom: 60px; }
}
