/* The Motivated Dog — shared styles */

:root {
  --kennel: #141110;
  --coal: #1f1b1a;
  --coal-2: #2a2524;
  --line: #3a3331;
  --red: #d7262e;
  --red-deep: #a51820;
  --red-text: #ff5a5f;
  --bone: #f3eee8;
  --ash: #a39c97;

  --font-display: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (1.25 ratio) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.5vw, 3.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--kennel);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: var(--bone); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; max-width: 66ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--bone);
  color: var(--kennel);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 16, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--red-text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { margin: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--red-text); }
.site-nav a[aria-current="page"] {
  color: var(--red-text);
  box-shadow: inset 0 -2px 0 var(--red);
  border-radius: 0;
}
.site-nav .btn { margin-left: 0.5rem; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kennel);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .btn { margin: 1rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--bone); color: var(--bone); }
.btn-ghost:hover { background: var(--bone); border-color: var(--bone); color: var(--kennel); }
.site-nav .btn { color: #fff; padding: 0.55rem 1.1rem; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero > img {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--kennel) 32%, rgba(20,17,16,0.6) 44%, rgba(20,17,16,0) 62%),
    linear-gradient(0deg, var(--kennel) 0%, rgba(20,17,16,0) 22%);
}
.hero .wrap { padding-block: 6rem 4rem; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 1.5rem + 7vw, 7rem);
  letter-spacing: -0.01em;
  /* Shrink to the width of "Motivated" so "Dog" can sit at its right end */
  width: fit-content;
}
.wordmark span { display: block; }
.wordmark .wm-the,
.wordmark .wm-dog {
  font-size: 0.55em;
  color: var(--bone);
}
.wordmark .wm-dog { text-align: right; }
.wordmark .wm-motivated {
  color: var(--red);
  -webkit-text-stroke: 0.025em var(--bone);
  paint-order: stroke fill;
  text-shadow: 0 0 0.25em rgba(215, 38, 46, 0.45);
}

.hero-lede {
  font-size: var(--step-1);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

@media (max-width: 860px) {
  .hero { min-height: 0; display: block; }
  .hero > img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 45% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero::after { display: none; }
  .hero .wrap { padding-block: 0 3.5rem; margin-top: -3rem; position: relative; }
}

/* Video hero: portrait clip in its own frame beside the wordmark */
.hero.hero-video { min-height: 0; display: block; overflow: visible; }
.hero.hero-video::after { display: none; }
.hero-video .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-media {
  position: relative;
  margin: 0;
  order: 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--coal);
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 8rem);
  justify-self: end;
  width: 100%;
  box-shadow: -14px 14px 0 var(--red);
}
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.video-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 17, 16, 0.7);
  color: var(--bone);
  cursor: pointer;
}
.video-toggle:hover { background: var(--kennel); }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }

@media (max-width: 860px) {
  .hero-video .wrap {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
    gap: 2rem;
  }
  .hero-media video { object-position: 50% 42%; }
  .hero-media {
    order: 0;
    max-height: 82vh;
    justify-self: stretch;
    box-shadow: -8px 8px 0 var(--red);
    margin-left: 8px;
    width: calc(100% - 8px);
  }
  .hero-video .wrap { margin-top: 0; }
}

/* One orchestrated load moment for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero .wordmark span,
  .hero .hero-lede,
  .hero .btn-row {
    animation: rise 700ms cubic-bezier(.2,.7,.2,1) both;
  }
  .hero .wordmark .wm-motivated { animation-delay: 120ms; }
  .hero .wordmark .wm-dog { animation-delay: 240ms; }
  .hero .hero-lede { animation-delay: 380ms; }
  .hero .btn-row { animation-delay: 480ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  position: relative;
  padding-block: 4.5rem 3rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-head.has-img {
  min-height: clamp(26rem, 52vw, 38rem);
  display: flex;
  align-items: flex-end;
  padding-block: 3rem 2.5rem;
}
.page-head.has-img .wrap { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.page-head > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  z-index: -2;
}
/* On narrower screens the photo is cropped at the sides, so end it above the
   heading (fading out) to keep the dogs clear of the text */
@media (max-width: 860px) {
  .page-head.has-img > img {
    height: 84%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
}
/* Darken only the bottom strip behind the heading so the photo stays visible */
.page-head.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(20,17,16,0.92) 0%, rgba(20,17,16,0.55) 28%, rgba(20,17,16,0) 55%);
}
.page-head p { font-size: var(--step-1); color: var(--bone); margin: 0; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--coal); }
.section-intro { margin-bottom: 2.5rem; }
.section-intro p { color: var(--ash); font-size: var(--step-1); }

.muted { color: var(--ash); }
.red { color: var(--red-text); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.flip > :first-child { order: 2; }
}
.split img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split img.landscape { aspect-ratio: 3 / 2; }

/* ---------- Service list (home) ---------- */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0.25rem;
  color: var(--bone);
  text-decoration: none;
}
.service-list h3 {
  margin: 0;
  font-size: var(--step-2);
  transition: color 180ms ease;
}
.service-list .price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--red-text);
  white-space: nowrap;
}
.service-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ash);
}
.service-list a:hover h3 { color: var(--red-text); }

/* ---------- Steps (real sequence) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--red);
  padding-top: 1.25rem;
}
.steps li::before {
  content: "Step " counter(step);
  display: block;
  color: var(--red-text);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { color: var(--ash); margin: 0; }

/* ---------- Services page ---------- */

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.service-nav a {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.service-nav a:hover { border-color: var(--red); color: var(--red-text); }

.service {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.service:nth-of-type(even) { background: var(--coal); }
.service .meta { color: var(--ash); margin-bottom: 1.5rem; }

.price-list {
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 34rem;
}
.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.price-list dt { color: var(--bone); }
.price-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red-text);
  white-space: nowrap;
}
.price-list .from { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--ash); margin-right: 0.3em; }

.note {
  border-left: 3px solid var(--red);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--ash);
  max-width: 60ch;
}

.packages {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 860px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package {
  background: var(--kennel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.package.featured { border-color: var(--red); border-width: 2px; }
.package h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.package .pkg-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--red-text);
  margin-bottom: 0.75rem;
}
.package p { color: var(--ash); margin: 0; }
.package .best { color: var(--bone); font-weight: 600; margin-bottom: 0.5rem; }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review {
  margin: 0;
  padding: 1.75rem;
  background: var(--coal);
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
}
.review.wide { grid-column: 1 / -1; }
.review blockquote { margin: 0 0 1rem; font-size: var(--step-1); line-height: 1.5; }
.review figcaption { color: var(--ash); font-size: var(--step--1); }
.review figcaption strong { color: var(--bone); font-weight: 600; }
.stars { color: var(--red-text); letter-spacing: 0.15em; margin-bottom: 0.75rem; font-size: 1.1rem; }

.pull-review {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  max-width: 28ch;
  margin: 0 0 1rem;
}
.pull-review::before { content: "\201C"; color: var(--red); }
.pull-review::after { content: "\201D"; color: var(--red); }

/* ---------- Gallery ---------- */

.gallery {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius); }
.gallery figcaption { color: var(--ash); font-size: var(--step--1); padding-top: 0.4rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--red-text);
  border-bottom: 2px solid var(--red-text);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--ash); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- About ---------- */

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.facts svg { flex: none; margin-top: 0.2rem; color: var(--red-text); }

.dogs {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0;
}
.dogs div {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}
.dogs dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.dogs dd { margin: 0; color: var(--ash); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }

.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; }
.field .hint { color: var(--ash); font-size: var(--step--1); margin: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--bone);
  background: var(--coal);
  border: 1px solid #5a514e;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  min-height: 48px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--red-text); outline: 2px solid var(--red-text); outline-offset: 0; }
.field .error { color: var(--red-text); font-size: var(--step--1); margin: 0; }
.field [aria-invalid="true"] { border-color: var(--red-text); }

.contact-card {
  background: var(--coal);
  border-radius: var(--radius);
  padding: 1.75rem;
  align-self: start;
}
.contact-card h2 { font-size: var(--step-2); }
.contact-card dl { margin: 0 0 1.5rem; }
.contact-card dt { color: var(--ash); font-size: var(--step--1); margin-top: 1rem; }
.contact-card dd { margin: 0; font-size: var(--step-1); }
.contact-card dd a { color: var(--bone); }
.contact-card .btn-row { flex-direction: column; }
.contact-card .btn { width: 100%; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { margin: 0; max-width: 22ch; }
.cta-band p { margin: 0.5rem 0 0; }
.cta-band .btn { background: var(--kennel); border-color: var(--kennel); }
.cta-band .btn:hover { background: #000; border-color: #000; }
.cta-band .btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--red-deep); }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
  color: var(--ash);
  font-size: var(--step--1);
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: var(--bone); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-footer a { color: var(--bone); text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.site-footer a:hover { color: var(--red-text); text-decoration: underline; }
.site-footer .brand { font-size: 1.5rem; margin-bottom: 0.75rem; display: inline-block; }
.footer-base { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.site-footer .credits { margin-top: 1.75rem; }

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