:root {
  --red: #c81019;
  --dark-red: #9f0b12;
  --black: #090909;
  --white: #ffffff;
  --soft: #f5f5f5;
  --text: #171717;
  --muted: #5f5f5f;
  --line: #dedede;
  --max: 1240px;
  --image-radius: 12px;
  --image-shadow: 0 8px 24px rgba(0,0,0,.1);
  --image-shadow-hover: 0 14px 34px rgba(0,0,0,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
}
[id] { scroll-margin-top: 112px; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 5px;
  background: white;
  color: var(--black);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.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;
}

.media-placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d5d5d5;
  border-radius: var(--image-radius);
  background: linear-gradient(135deg, #f5f5f5, #e7e7e7);
  box-shadow: var(--image-shadow);
  color: var(--muted);
  contain: layout paint;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.media-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transform: translateX(-180%) skewX(-12deg);
  animation: image-placeholder-shimmer 2s ease-in-out infinite;
  pointer-events: none;
}
.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  pointer-events: none;
}
.media-placeholder > img,
.media-placeholder > picture,
.media-placeholder > picture > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-placeholder > :not(img):not(picture) {
  position: relative;
  z-index: 1;
}
.media-placeholder > img {
  background: var(--soft);
  transition: opacity .2s ease;
}

.hero-photo,
.about picture,
.program-image-slot {
  overflow: hidden;
  border-radius: var(--image-radius);
  box-shadow: var(--image-shadow);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hero-photo,
.puppy-program-image,
.about picture img {
  animation: image-reveal .45s ease both;
}
.about picture {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--soft);
}
.about picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.about .home-trainer-photo img {
  object-fit: contain;
  object-position: center;
}

@media (hover: hover) {
  .media-placeholder:hover,
  .hero-photo:hover,
  .about picture:hover,
  .program-image-slot:hover {
    transform: translateY(-3px) scale(1.003);
    box-shadow: var(--image-shadow-hover);
    filter: saturate(1.025);
  }
}

@keyframes image-placeholder-shimmer {
  0%, 18% { transform: translateX(-180%) skewX(-12deg); opacity: 0; }
  38% { opacity: 1; }
  72%, 100% { transform: translateX(340%) skewX(-12deg); opacity: 0; }
}

@keyframes image-reveal {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .media-placeholder,
  .hero-photo,
  .about picture,
  .program-image-slot,
  .media-placeholder > img { transition: none; }
  .media-placeholder::before { animation: none; }
  .hero-photo,
  .puppy-program-image,
  .about picture img { animation: none; }
}

.site-header {
  min-height: 92px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 180px 1fr 210px;
  align-items: center;
  gap: 24px;
  background: var(--black);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand img {
  width: 120px;
  height: 68px;
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  font-weight: 600;
}
.desktop-nav a:hover { color: #ff4b53; }
.desktop-nav .current-page { color: #ff4b53; }
.header-call {
  display: grid;
  gap: 6px;
  text-align: center;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b3b3b;
  border-radius: 7px;
  background: #171717;
  color: white;
  cursor: pointer;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.menu-toggle-icon { position: relative; }
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.button {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: .2s ease;
  max-width: 100%;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255,75,83,.48);
  outline-offset: 3px;
}
.button:disabled { cursor: wait; opacity: .72; }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: var(--dark-red); }
.button-outline { border-color: var(--red); color: var(--red); background: white; }
.button-black { background: var(--black); color: white; }

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 48% 52%;
  background: white;
}
.hero-copy {
  padding: 72px 40px 52px max(28px, calc((100vw - var(--max)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0 -170px 0 auto;
  width: 220px;
  background: linear-gradient(90deg, white 0%, rgba(255,255,255,.9) 35%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 span { color: var(--red); }
.hero-summary {
  max-width: 630px;
  font-size: 1.18rem;
  line-height: 1.55;
  margin: 24px 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-phone {
  display: block;
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 800;
}
.hero-trust-line {
  max-width: 650px;
  margin: 6px 0 0;
  color: #4a4a4a;
  font-size: clamp(.78rem, 1.2vw, .95rem);
  font-weight: 700;
  line-height: 1.4;
}
.service-line { margin: 8px 0 0; color: var(--muted); }

.hero-photo {
  min-height: 590px;
  background-image: url("assets/alan-three-dogs.jpeg");
  background-image: image-set(
    url("assets/alan-three-dogs.webp") type("image/webp"),
    url("assets/alan-three-dogs.jpeg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 42%;
}
.home-hero-photo {
  background-image: url("assets/home-hero-psa.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.benefits {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.benefits article {
  height: 100%;
  text-align: center;
  padding: 12px 28px;
  border-right: 1px solid var(--line);
}
.benefits article:last-child { border-right: 0; }
.icon {
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
}
.benefits h2 { font-size: 1.08rem; margin: 10px 0 8px; }
.benefits p { margin: 0; line-height: 1.5; color: #333; font-size: .93rem; }

.programs {
  background: var(--black);
  color: white;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2)) 34px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}
.section-heading span { height: 2px; background: var(--red); }
.section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  font-size: 2.4rem;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  position: relative;
  background: white;
  color: var(--text);
  border-radius: 12px;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
  height: 100%;
}
.price-card header {
  background: linear-gradient(#d7141e, #b80b13);
  color: white;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
}
.price-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  padding: 18px 18px 6px;
}
.price-card h3 {
  color: var(--red);
  font-size: .95rem;
  margin: 4px 18px 8px;
}
.price-card ul {
  list-style: none;
  padding: 0 18px;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.price-card li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
  margin-right: 8px;
}
.price-card .button { margin: auto 16px 14px; }
.popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b1b1b;
  color: white;
  padding: 5px 22px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.featured { overflow: visible; }
.featured header { border-radius: 12px 12px 0 0; }
.financing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.about {
  max-width: 1440px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 54px;
  align-items: center;
}
.about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.about picture { display: block; }
.about h2 {
  font-size: 2.7rem;
  margin: 4px 0 18px;
}
.about > div > p:not(.eyebrow) { line-height: 1.7; color: #333; }

.reviews {
  background: var(--soft);
  padding: 48px max(24px, calc((100vw - var(--max)) / 2));
  text-align: center;
}
.centered { text-align: center; }
.reviews h2 { margin: 0 0 28px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}
.review-grid article {
  height: 100%;
  background: white;
  padding: 24px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(0,0,0,.07);
}
.stars { color: var(--red); letter-spacing: .14em; }
.review-grid p { line-height: 1.55; }

.contact {
  background: linear-gradient(120deg, #c81019, #9b0710);
  color: white;
  padding: 40px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.light { color: white; }
.contact h2 { font-size: 2.3rem; margin: 8px 0 14px; }
.contact-copy > a { font-size: 1.8rem; font-weight: 800; }
.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact label {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
}
.contact input,
.contact select {
  min-height: 46px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 13px 12px;
  font: inherit;
}
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 5px;
  background: rgba(9,9,9,.82);
  color: white;
  font-weight: 700;
  line-height: 1.45;
}
.form-status.is-error { background: #6f070c; }
.full { grid-column: 1 / -1; }
.hidden { display: none; }

.mobile-call { display: none; }

@media (max-width: 1150px) and (min-width: 951px) {
  .site-header {
    grid-template-columns: 150px 1fr 190px;
    gap: 18px;
  }
  .desktop-nav { gap: 20px; font-size: .94rem; }
}

@media (max-width: 950px) {
  .site-header {
    grid-template-columns: 120px 1fr auto;
  }
  .desktop-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 10px 24px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    box-shadow: 0 12px 24px rgba(0,0,0,.24);
  }
  .desktop-nav.is-open { display: flex; }
  .desktop-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #303030;
  }
  .desktop-nav a:last-child { border-bottom: 0; }
  .header-call { justify-self: end; }
  .menu-toggle { display: inline-flex; }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 56px 28px 38px;
    order: 2;
  }
  .hero-copy::after { display: none; }
  .hero-photo {
    order: 1;
    min-height: 430px;
    background-position: center 32%;
  }
  .home-hero-photo {
    background-image: url("assets/home-hero-psa-tablet.jpeg");
    background-position: center;
  }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits article:nth-child(2) { border-right: 0; }
  .benefits article { border-bottom: 1px solid var(--line); }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { padding-bottom: 58px; }
  .site-header {
    position: relative;
    min-height: 72px;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .brand img { width: 105px; height: 58px; }
  .header-call { display: none; }
  .menu-toggle {
    position: absolute;
    top: 12px;
    right: 20px;
  }
  .hero-photo {
    min-height: 360px;
    background-size: cover;
    background-position: center 35%;
  }
  .home-hero-photo {
    background-image: url("assets/home-hero-psa.jpeg");
    background-position: center;
  }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions { display: grid; }
  .hero-phone { font-size: 1.65rem; }
  .benefits { grid-template-columns: 1fr; }
  .benefits article { border-right: 0; }
  .program-grid { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; text-align: center; }
  .section-heading span { display: none; }
  .section-heading h2 { font-size: 2.1rem; }
  .about h2 { font-size: 2.1rem; }
  .contact form { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .mobile-call {
    display: flex;
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: white;
    font-weight: 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link,
  .button { transition: none; }
  .button:hover { transform: none; }
}
