/* ============================================
   K9 Dominion — Kraftwork K9 Pro–style layout
   Layout, font, spacing inspired by kraftworkk9pro.com
   ============================================ */

:root {
  --accent: #1a365d;
  --accent-dark: #0f2744;
  --accent-light: #2c5282;
  --accent-soft: rgba(26, 54, 93, 0.08);
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-warm: #fafafa;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --border: #e0e0e0;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 6rem;
  --header-h: 132px;
  --top-bar-h: 2rem;
  --transition: 0.2s ease;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --container: 1140px;
  --line-height-body: 1.75;
  --line-height-tight: 1.3;
}

@media (max-width: 900px) {
  :root {
    --header-h: 112px;
  }
}
@media (max-width: 480px) {
  :root {
    --header-h: 92px;
  }
}
/* Legacy alias for components that use --royal */
:root {
  --royal: var(--accent);
  --royal-dark: var(--accent-dark);
  --royal-light: var(--accent-light);
  --royal-soft: var(--accent-soft);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--line-height-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-dark);
}

/* ----- Container (Kraftwork-style max-width) ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Top bar (Kraftwork-style) ----- */
.top-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 6px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.top-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.top-bar a:hover {
  color: rgba(255,255,255,0.9);
}

/* ----- Header (sticky with top bar) ----- */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.site-header-wrap.is-hidden {
  transform: translateY(calc(-1 * (var(--top-bar-h) + var(--header-h))));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header {
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-social {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0 var(--space-sm);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(26,54,93,0.35);
}
.social-facebook {
  background: #1877F2;
  border-color: #1877F2;
}
.social-facebook:hover {
  background: #0f5fc7;
  border-color: #0f5fc7;
}
.social-icon {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  transform: translateY(-1px);
}

.header-phone {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.header-phone a {
  color: var(--accent);
  padding: 6px 0;
}
.header-phone a:hover {
  color: var(--accent-dark);
}
@media (max-width: 900px) {
  .header-phone {
    font-size: 16px;
  }
}
/* Legacy .header-cta for pages that still use it */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.header-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  transition: background var(--transition), color var(--transition);
}
.header-cta a:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 900px) {
  .header-cta {
    display: none;
  }
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  color: var(--text);
  font-weight: 600;
}
.logo:hover {
  color: var(--text);
}
.site-logo-img {
  display: block;
  height: 120px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-logo-img {
    height: 96px;
  }
}
@media (max-width: 480px) {
  .site-logo-img {
    height: 76px;
  }
}
.logo-icon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}
.nav-list a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover {
  color: var(--accent);
}
.nav-list a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

/* Kraftwork-style dropdowns */
.nav-item-has-children {
  position: relative;
}
.nav-arrow {
  font-size: 0.6em;
  opacity: 0.8;
  margin-left: 2px;
}
.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  min-width: 200px;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 50;
}
.nav-item-has-children:hover .nav-dropdown,
.nav-item-has-children.focus .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li {
  margin: 0;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  border-radius: 0;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 900px) {
  .nav-list {
    position: fixed;
    top: calc(var(--top-bar-h) + var(--header-h));
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--top-bar-h) - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-list.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-list > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-list > li > a {
    font-size: 1.05rem;
    padding: 14px 12px;
    display: block;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 16px;
    background: var(--bg-alt);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-item-has-children.dropdown-open .nav-dropdown {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-dropdown a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  .nav-arrow {
    transition: transform 0.2s ease;
  }
  .nav-item-has-children.dropdown-open .nav-arrow {
    transform: rotate(180deg);
  }
  .nav-toggle {
    display: flex;
  }
}

/* Lock body scroll when mobile nav or glossary popup is open */
html.nav-open,
body.nav-open,
body.term-popup-open {
  overflow: hidden;
}

/* ----- Video preview + modal (YouTube popup) ----- */
.video-preview {
  width: 100%;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}
.video-preview:hover {
  box-shadow: var(--shadow-md);
}
.video-preview-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-preview-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: #fff;
  text-shadow: 0 8px 22px rgba(0,0,0,0.85);
}
.video-preview-meta strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.video-preview-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.video-modal[hidden] {
  display: none;
}
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}
.video-modal-panel {
  position: relative;
  width: min(960px, calc(100vw - 24px));
  margin: calc(var(--top-bar-h) + var(--header-h) + 12px) auto 12px;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover {
  background: rgba(0,0,0,0.75);
}
.video-modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-modal-fallback {
  padding: 14px 16px 18px;
  background: #0b0b0b;
  color: rgba(255,255,255,0.92);
  text-align: center;
}
.video-modal-fallback p {
  margin: 0.25rem 0;
  color: rgba(255,255,255,0.86);
}

@media (max-width: 640px) {
  .video-preview {
    grid-template-columns: 1fr;
  }
  .video-modal-panel {
    margin: calc(var(--top-bar-h) + var(--header-h) + 8px) auto 8px;
    width: calc(100vw - 16px);
  }
}

/* ----- "Link-like" button (for inline OFA/FCI triggers) ----- */
.linkish {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover {
  color: var(--accent-dark);
}

/* ----- Article preview modal ----- */
.article-modal[hidden] { display: none; }
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.article-modal-panel {
  position: relative;
  width: min(980px, calc(100vw - 24px));
  margin: calc(var(--top-bar-h) + var(--header-h) + 12px) auto 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.article-modal-close:hover {
  background: var(--bg-alt);
}
.article-modal-body {
  padding: clamp(16px, 3vw, 28px);
  max-height: calc(100vh - var(--top-bar-h) - var(--header-h) - 32px);
  overflow: auto;
}
.article-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 0.35rem;
}
.article-modal-sub {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
}
.article-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}
.article-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1.1rem;
}
.article-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.article-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.article-modal-note {
  margin: var(--space-md) 0 0;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .article-modal-grid {
    grid-template-columns: 1fr;
  }
  .article-modal-panel {
    width: calc(100vw - 16px);
    margin: calc(var(--top-bar-h) + var(--header-h) + 8px) auto 8px;
  }
}

/* ----- Thank-you modal (form submissions) ----- */
.thankyou-modal[hidden] { display: none; }
.thankyou-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.thankyou-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}
.thankyou-panel {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  margin: calc(var(--top-bar-h) + var(--header-h) + 18px) auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(16px, 3vw, 26px);
  text-align: center;
}
.thankyou-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.thankyou-close:hover {
  background: var(--bg-alt);
}
.thankyou-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0 0 0.5rem;
}
.thankyou-sub {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .thankyou-panel {
    margin: calc(var(--top-bar-h) + var(--header-h) + 10px) auto;
    width: calc(100vw - 16px);
  }
}

/* ----- Hero (Home) — Kraftwork-style ----- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--top-bar-h) + var(--header-h) + 48px) 24px 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg .hero-video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep key subject centered; mobile crops tighter on sides */
  object-position: 50% 50%;
}
.hero-bg .hero-video {
  display: block;
}
.hero-bg .hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  animation: heroPosterFade 2.6s ease forwards;
}
.hero-bg .hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

@keyframes heroPosterFade {
  0% { opacity: 1; }
  62% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .hero-bg-fallback {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  /* Small screens/tablets: fill the frame (no letterbox bars) */
  .hero-bg .hero-video,
  .hero-bg img {
    object-fit: cover;
    /* Bias slightly to keep the head + bottom logo framing */
    object-position: 50% 60%;
  }
}
/* When video is missing or fails, fallback image remains visible underneath */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Darker, more progressive overlay so text always reads clearly over video */
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.65) 35%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.9) 100%),
    linear-gradient(135deg, rgba(26,54,93,0.4) 0%, rgba(26,54,93,0.6) 50%, rgba(26,54,93,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 62vh;
  padding-top: 0;
}

/* Home hero readability: thick shadow (no box) */
.hero-tag {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin: 0 0 16px;
}

/* Kraftwork-style hero: eyebrow + tagline */
.hero-kraftwork .hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin: 0 0 8px;
  /* Move to very top of video (without colliding on small screens) */
  margin-top: clamp(-28px, -3vh, -10px);
  text-shadow: 0 4px 14px rgba(0,0,0,0.95);
}

@media (max-width: 600px) {
  .hero-kraftwork .hero-eyebrow {
    margin-top: clamp(-18px, -2vh, -8px);
  }
}
.hero-kraftwork .hero-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 14px rgba(0,0,0,0.95);
}
.hero-kraftwork .hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 20px;
}
.hero-kraftwork .hero-sub {
  /* Keep this line near the bottom of the hero video */
  margin: auto auto 0;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 5px 18px rgba(0,0,0,0.95);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 22px rgba(0,0,0,0.95);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.95);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.65;
  text-shadow: 0 5px 18px rgba(0,0,0,0.95);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Metro K9–style hero: two breed buttons */
.hero-breed-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin: var(--space-lg) 0;
}
.hero-breed-btns a {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow var(--transition);
  text-decoration: none;
}
.hero-breed-btns a {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.hero-breed-btns a:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Breed buttons below hero video */
.hero-breed-cta-strip {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}
.hero-cta.hero-cta-below {
  margin: 0 0 var(--space-md);
}
.hero-breed-btns.hero-breed-btns-below {
  margin: 0;
}
.hero-breed-btns.hero-breed-btns-below a {
  color: #fff;
}

.hero-reserve {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.95);
  margin: var(--space-md) 0 0;
  line-height: 1.6;
}
.hero-reserve strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: #fff;
}

/* Press / CTA block (Kraftwork "Secure a Top-Trained GSD" style) */
.press-cta-block {
  background: var(--accent);
  color: #fff;
  padding: var(--space-xl) 0;
  text-align: center;
}
.press-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.press-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: #fff;
}
.press-cta-text {
  margin: 0 0 var(--space-lg);
  color: rgba(255,255,255,0.95);
  line-height: 1.65;
  font-size: 1.05rem;
}
.press-cta-block .btn-primary {
  background: #fff;
  color: var(--accent);
}
.press-cta-block .btn-primary:hover {
  background: var(--bg-alt);
  color: var(--accent-dark);
}

/* Facility links (Kraftwork "Facility Photos | Meet the Team | In the Press") */
.facility-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Featured grid (Kraftwork product-style cards) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.featured-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.featured-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.featured-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.featured-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.featured-card:hover .featured-card-cta {
  text-decoration: underline;
}

.home-path-grid-kraftwork {
  max-width: 720px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
  .home-path-grid-kraftwork {
    grid-template-columns: 1fr;
  }
}

/* ----- Resource hub cards ----- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.resource-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.resource-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.resource-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.resource-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.resource-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.resource-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.resource-card:hover .resource-card-cta {
  text-decoration: underline;
}
.resource-card-featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}
.newsletter-form button {
  flex-shrink: 0;
}

.table-wrap { margin-top: var(--space-md); }
.feeding-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.feeding-table th,
.feeding-table td { padding: 10px 14px; text-align: left; border: 1px solid var(--border); }
.feeding-table th { background: var(--bg-alt); font-weight: 600; }
.feeding-table tbody tr:nth-child(even) { background: var(--bg-warm); }
.calculator-form .form-group { margin-bottom: 1rem; }
.calculator-form label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.calculator-form input,
.calculator-form select { width: 100%; max-width: 240px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.calculator-result { margin-top: var(--space-lg); padding: var(--space-md); background: var(--accent-soft); border-radius: var(--radius); }

/* ----- Long-form article prose ----- */
.long-form-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-sm);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.long-form-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.long-form-content p { margin: 0 0 1rem; line-height: var(--line-height-body); }
.long-form-content .intro { font-size: 1.1rem; color: var(--text-muted); }

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ----- Page hero (inner pages) — Kraftwork-style ----- */
.page-hero {
  background: var(--bg-alt);
  padding: calc(var(--top-bar-h) + var(--header-h) + 48px) 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .container {
  max-width: 780px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: var(--line-height-tight);
}
.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
  line-height: var(--line-height-body);
}
.page-hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-hero .hero-cta-line {
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}
.page-hero .hero-cta-line a {
  font-weight: 600;
}
.page-hero .page-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.page-hero .page-hero-cta .btn {
  min-width: 240px;
  justify-content: center;
}
@media (max-width: 640px) {
  .page-hero .page-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero .page-hero-cta .btn {
    width: 100%;
    min-width: 0;
  }
}
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  color: var(--text-muted);
  margin: 0 0.35em;
}

/* ----- Photo gallery / image strips ----- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.photo-grid.two { grid-template-columns: repeat(2, 1fr); }
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-grid.four { grid-template-columns: repeat(4, 1fr); }
.img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
  background: var(--bg-alt);
  position: relative;
}
.img-wrap.landscape { aspect-ratio: 4/3; }
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.img-wrap:hover img {
  transform: scale(1.05);
}
.img-wrap .puppy-cards-pdf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border: 0;
  pointer-events: none;
  background: transparent;
}
.photo-grid .img-wrap { margin: 0; }
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid.four { grid-template-columns: repeat(2, 1fr); }
  .img-wrap .puppy-cards-pdf,
  .breed-card-img .puppy-cards-pdf {
    display: none;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.btn-outline.dark {
  color: var(--text);
  border-color: var(--border);
}
.btn-outline.dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block {
  width: 100%;
}

/* ----- Sections — Kraftwork-style spacing ----- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: var(--line-height-tight);
}
.section-title.center {
  text-align: center;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 28px;
  line-height: var(--line-height-body);
}
.section-sub.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 var(--space-md);
  line-height: 1.65;
}
.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-content p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  line-height: 1.7;
}
.about-content p:last-child {
  margin-bottom: 0;
}

/* ----- Testimonials ----- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.testimonial {
  margin: 0;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.testimonial p {
  margin: 0 0 var(--space-sm);
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
}
.testimonial cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ----- Intro / Home content ----- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
}
.intro-text p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
}
.intro-stats {
  display: flex;
  gap: var(--space-lg);
  flex-shrink: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-stats {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* ----- Breed cards ----- */
.breed-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.breed-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-xl);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}
.breed-card:hover {
  box-shadow: var(--shadow-lg);
}
.breed-card:nth-child(even) {
  grid-template-columns: 1fr 380px;
}
.breed-card:nth-child(even) .breed-card-img {
  order: 2;
}
.breed-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.breed-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}
.breed-card-img .puppy-cards-pdf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border: 0;
  pointer-events: none;
  background: transparent;
}
.breed-card:hover .breed-card-img img {
  transform: scale(1.03);
}
.breed-card-content {
  padding: var(--space-lg);
}
.breed-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: var(--text);
}
.breed-card-content p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.breed-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breed-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
}
.breed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .breed-card,
  .breed-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .breed-card:nth-child(even) .breed-card-img {
    order: 0;
  }
  .breed-card-img {
    aspect-ratio: 16/10;
  }
}

/* ----- Training grid ----- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}
.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
  box-shadow: var(--shadow);
}
.training-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.training-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}
.training-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--text);
}
.training-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Protection ----- */
.protection-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}
.protection-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.protection-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.protection-item p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.protection-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.protection-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.protection-content:hover .protection-img img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .protection-content {
    grid-template-columns: 1fr;
  }
  .protection-img {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ----- Scent ----- */
.scent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.scent-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.scent-block:hover {
  box-shadow: var(--shadow-md);
}
.scent-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--text);
}
.scent-block p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 700px) {
  .scent-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Obedience ----- */
.obedience-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.obedience-col h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 var(--space-xs);
}
.obedience-col p {
  margin: 0 0 var(--space-md);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.obedience-col p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .obedience-content {
    grid-template-columns: 1fr;
  }
}

/* ----- Behavior ----- */
.behavior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.behavior-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.behavior-item:hover {
  box-shadow: var(--shadow-md);
}
.behavior-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-sm);
}
.behavior-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .behavior-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Why ----- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.why-card {
  text-align: center;
  padding: var(--space-lg);
}
.why-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
}
.why-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Build a Beast options & add-ons ----- */
.options-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin: var(--space-xl) 0 var(--space-md);
  text-align: center;
}
.beast-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}
.beast-options-grid.beast-addons {
  margin-top: var(--space-sm);
}
.beast-option-card {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.beast-option-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 var(--space-xs);
}
.beast-option-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.beast-options-form {
  max-width: 720px;
  margin: 0 auto;
}
.beast-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--bg-warm);
}
.beast-fieldset legend {
  font-weight: 600;
  color: var(--text);
  padding: 0 0.5rem;
}
.beast-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-sm);
}
.beast-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}
.beast-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--accent);
}

@media (max-width: 600px) {
  .beast-options-grid {
    grid-template-columns: 1fr;
  }
  .beast-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Contact ----- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.contact-info-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}
.contact-form-block {
  min-width: 0;
}
@media (max-width: 700px) {
  .contact-info-top {
    grid-template-columns: 1fr;
  }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-info {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-info p strong {
  color: var(--text);
}
.contact-note {
  margin-top: var(--space-md) !important;
  font-size: 0.85rem !important;
  opacity: 0.9;
}

@media (max-width: 700px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* ----- Skip link (accessibility) ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ----- Footer trust strip ----- */
.footer-trust-strip {
  background: var(--accent);
  color: #fff;
  padding: var(--space-md) 0;
  text-align: center;
}
.footer-trust-line {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.footer-trust-line span:not(:last-child)::after {
  content: " · ";
  margin-left: 0.25rem;
  opacity: 0.9;
}

/* ----- Footer ----- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 0;
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  margin-bottom: var(--space-xs);
}
.footer-brand .logo-icon {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  text-align: left;
  justify-items: center;
}
.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.footer-nav-group a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-nav-group a:hover {
  color: var(--accent);
}
.footer-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
}
.footer-contact a {
  color: var(--accent);
}
.footer-quicklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.footer-quicklinks a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-quicklinks a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0;
}

/* ----- Related resources block (internal linking + usability) ----- */
.related-resources {
  background: var(--bg-alt);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}
.related-resources h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  text-align: center;
}
.related-resources-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 640px;
  margin: 0 auto;
}
.related-resources-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.related-resources-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ----- Start here / Quick actions (home) ----- */
.quick-actions {
  background: var(--bg-alt);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}
.quick-actions .container {
  max-width: 900px;
}
.quick-actions h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-sm);
  text-align: center;
}
.quick-actions p.sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 var(--space-lg);
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
  box-shadow: var(--shadow);
}
.quick-action-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.quick-action-btn .icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
  line-height: 1;
}
.quick-action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quick-action-btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ----- Home: Metro K9–style path cards (four options) ----- */
.home-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
.home-path-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.home-path-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
}
.home-path-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-sm);
}
.home-path-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.55;
}
.home-path-card a.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-path-card a.card-link::after {
  content: "→";
}

/* ----- Home: Litter info form block ----- */
.litter-form-block {
  background: var(--bg-alt);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}
.litter-form-intro {
  text-align: center;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.litter-form-block .litter-form,
.litter-form-block .contact-form {
  max-width: 520px;
  margin: 0 auto;
}
.form-required-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.form-required-hint .required-mark {
  color: var(--accent);
  font-weight: 600;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
.form-row-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
.litter-form-block .form-group label,
.litter-form-block .litter-form label,
.litter-form-block .contact-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9em;
}
.required-mark {
  color: var(--accent);
}
.litter-form-block .litter-form input,
.litter-form-block .litter-form textarea,
.litter-form-block .contact-form input,
.litter-form-block .contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.litter-form-block .litter-form input:focus,
.litter-form-block .litter-form textarea:focus,
.litter-form-block .contact-form input:focus,
.litter-form-block .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.litter-form-block .litter-form textarea,
.litter-form-block .contact-form textarea {
  min-height: 4rem;
  resize: vertical;
}
.litter-form-block .litter-form .btn-block {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
}
.home-cta-line {
  text-align: center;
  margin: var(--space-lg) 0;
  font-size: 1.05rem;
  color: var(--text);
}
.home-cta-line a {
  font-weight: 600;
}

/* ----- FAQ (home) ----- */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.faq-q {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.faq-a {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: var(--line-height-body);
}

/* ----- Article list (blog) ----- */
.article-list {
  display: grid;
  gap: var(--space-xl);
  max-width: 720px;
  margin: 0 auto;
}
.article-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.article-card-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}
.article-card-title a {
  color: var(--text);
  text-decoration: none;
}
.article-card-title a:hover {
  color: var(--accent);
}
.article-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.article-card-excerpt {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
  line-height: var(--line-height-body);
}
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

/* ----- Proudly Serving (home) ----- */
.proudly-serving {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.proudly-serving h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-sm);
}
.proudly-serving p {
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ----- Inner page bottom CTA (Metro K9 style) ----- */
.inner-page-bottom-cta {
  padding: var(--space-xl) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.inner-page-bottom-cta p {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  color: var(--text);
}
.inner-page-bottom-cta p a {
  font-weight: 600;
}
.inner-page-bottom-cta .related-links {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.inner-page-bottom-cta .related-links a {
  color: var(--accent);
}
.inner-page-bottom-cta .related-links span {
  margin: 0 0.35rem;
  color: var(--border);
}

/* ----- Utility: link to next section ----- */
.page-cta {
  text-align: center;
  padding: var(--space-lg) 0;
}
.page-cta .btn {
  margin: 0 var(--space-xs);
}

/* ----- Glossary terms: click to show definition popup ----- */
.term {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  color: inherit;
}
.term:hover {
  color: var(--accent);
}
.term:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.term-popup {
  position: fixed;
  z-index: 10000;
  max-width: 320px;
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.term-popup[aria-hidden="true"] {
  display: none;
}
.term-popup .term-popup-close {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
}
.term-popup .term-popup-close:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.term-popup .term-popup-title {
  margin: 0 24px 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}
.term-popup .term-popup-body {
  margin: var(--space-sm) 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
body.term-popup-open .term-popup {
  display: block;
}
@media (max-width: 480px) {
  .term-popup {
    left: 12px !important;
    right: 12px;
    max-width: none;
    top: 50% !important;
    transform: translateY(-50%);
  }
}
