/* Radda's K9 Event Center. Palette pulled from the logo: navy ring, red banner,
   golden Lab, sky blue. */

:root {
  --navy: #1b2a57;
  --navy-700: #22356b;
  --navy-900: #121d3d;
  --red: #c2352f;
  --red-700: #a32a25;
  --gold: #e6b65c;
  --gold-300: #f3d9a4;
  --sky: #dcedf7;
  --cream: #fbf7ef;
  --sand: #f3ecdf;
  --paper: #ffffff;
  --ink: #1b2233;
  --muted: #5c6577;
  --line: #e6dccb;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(27 34 51 / 6%), 0 2px 8px rgb(27 34 51 / 6%);
  --shadow: 0 2px 4px rgb(27 34 51 / 5%), 0 12px 32px rgb(27 34 51 / 10%);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 104px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

img { max-width: 100%; display: block; }
a { color: var(--red-700); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3, .h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .75rem;
}
.eyebrow a { color: inherit; text-decoration: none; }

.lead { font-size: 1.18rem; color: #3a4357; max-width: 62ch; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgb(27 42 87 / 20%); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-900); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 40%); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--red-700); text-decoration: none; }
.text-link svg { transition: transform .15s; }
a:hover .text-link svg, .text-link:hover svg { transform: translateX(3px); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the
   header itself would make it the containing block for the fixed mobile menu,
   clipping the menu to the header's height. */
.site-header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgb(251 247 239 / 92%);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); max-width: 1380px; }

.brand { min-width: 0; flex: 0 1 auto; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { flex: none; height: 72px; width: auto; max-width: 190px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; text-wrap: balance; }
.brand-text small { font-size: .88rem; color: var(--muted); letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0; background: none;
  font: 600 1.06rem var(--font-body);
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav-link svg { fill: none; stroke: currentColor; stroke-width: 2; width: 20px; height: 20px; transition: transform .15s; }
.nav-link:hover { background: var(--sand); color: var(--navy); }
.nav-link.is-active { color: var(--red-700); }

.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.submenu a:hover, .submenu a[aria-current] { background: var(--sand); color: var(--red-700); }
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-menu.is-open .nav-link svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1081px) {
  .has-menu:hover .submenu { opacity: 1; visibility: visible; transform: none; }
}

.nav-cta { padding: .8em 1.4em; font-size: 1.04rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Laptop widths: same tall header, slightly tighter nav so it stays on one row. */
@media (max-width: 1349px) and (min-width: 1081px) {
  .header-inner { gap: 18px; }
  .brand img { height: 62px; max-width: 130px; }
  .brand-text strong { font-size: 1.28rem; }
  .brand-text small { font-size: .8rem; }
  .nav-link { padding: 10px 9px; font-size: .98rem; }
  .nav-cta { padding: .7em 1.1em; font-size: .98rem; }
}

@media (max-width: 1080px) {
  :root { --header-h: 84px; }
  .brand img { height: 60px; max-width: 150px; }
  .brand-text strong { font-size: 1.3rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 32px;
    background: var(--cream);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.1rem; }
  .submenu {
    position: static; display: none;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: none; padding: 0 0 10px 8px;
  }
  .has-menu.is-open .submenu { display: block; }
  .nav-cta { align-self: flex-start; }
}

@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand img { height: 52px; max-width: 120px; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-text small { display: none; }
}

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

.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--sand); }
.section-navy { background: var(--navy); color: #e6e9f2; }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split-center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose p { color: #353e52; }
.prose-light h2 { color: #fff; }
.prose-light p { color: #d3d8e6; }
.prose-light .lead { color: #fff; }
.prose-light .eyebrow { color: var(--gold); }

.framed { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------------------------------------------------------------- Home hero */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
/* Top-of-page small heading, shared by the homepage hero, inner pages and dog pages. */
.hero .eyebrow, .page-hero .eyebrow, .dog-hero .eyebrow { font-size: clamp(.9rem, 1.2vw, 1.05rem); letter-spacing: .12em; margin-bottom: 1rem; }
.hero-media { position: relative; isolation: isolate; }
.slideshow {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.hero-slides { aspect-ratio: 5 / 4; border-radius: 32px 32px 32px 120px; }
.slideshow .slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slideshow .slide.is-active { opacity: 1; z-index: 1; }
.slideshow .slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.slideshow .slide.is-active img { transform: scale(1); }

/* "contain" galleries: whole photo, over a blurred copy of itself */
.slideshow-contain .slide { overflow: hidden; }
.slideshow-contain .slide::before {
  content: ''; position: absolute; inset: -40px;
  background: var(--slide-bg) center / cover no-repeat;
  filter: blur(28px) brightness(.55) saturate(1.2);
}
.slideshow-contain .slide img { object-fit: contain; transform: none; }

.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px 28px 52px;
  background: linear-gradient(to top, rgb(10 16 34 / 85%), rgb(10 16 34 / 0%));
  color: #fff;
}
.slide-caption span { font-weight: 600; font-size: 1.05rem; }
.brag-caption { display: flex; flex-direction: column; gap: 4px; }
.brag-achievement { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--gold); color: var(--navy-900); padding: 4px 12px; border-radius: 999px; font-size: .9rem !important; font-weight: 700 !important; }
.brag-achievement svg { width: 1em; height: 1em; }
.brag-dog { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; color: #fff; }
.brag-meta { color: #dfe4f0; font-weight: 500 !important; }
.brag-note { color: #c8cee0; font-weight: 400 !important; font-style: italic; }

.slide-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / 85%); color: var(--navy);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.slide-nav:hover { background: #fff; }
.slide-prev { left: 16px; }
.slide-next { right: 16px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgb(255 255 255 / 45%); cursor: pointer; }
.slide-dots button[aria-current] { background: #fff; width: 26px; border-radius: 999px; }

.gallery-slides { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.brag-slides { aspect-ratio: 16 / 10; }
@media (max-width: 640px) {
  .gallery-slides { aspect-ratio: 4 / 5; }
  .slide-caption { padding: 40px 18px 46px; }
  .slide-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }
}
.hero-media::before {
  content: ''; position: absolute; z-index: -1;
  inset: -28px -60px auto auto; width: 70%; aspect-ratio: 1;
  background: var(--sky); border-radius: 50%;
}
.next-event {
  position: absolute; left: -24px; bottom: 28px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  max-width: 290px;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  border-left: 4px solid var(--gold);
}
.next-event .eyebrow { margin: 0; font-size: .7rem; }
.next-event strong { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; line-height: 1.25; }
.next-event span:last-child { color: var(--muted); font-size: .9rem; }
.next-event:hover { color: var(--ink); box-shadow: 0 16px 40px rgb(27 34 51 / 16%); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-slides { border-radius: 24px 24px 24px 72px; }
  .next-event { left: 12px; bottom: -24px; right: 12px; max-width: none; }
  .hero-copy { padding-top: 24px; }
}

.stat-band { background: var(--navy); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid rgb(255 255 255 / 12%); display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold); font-weight: 600; line-height: 1.1; }
.stat span { color: #c8cee0; font-size: .92rem; }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 12%); }
}

/* ---------------------------------------------------------------- Cards */

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); font-size: .97rem; flex: 1; }

.contact-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: 1.5rem; }
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { color: var(--red); margin-top: 4px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--red-700); text-decoration: underline; }

.cta-band { background: var(--navy); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .25em; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-inner p { color: #c8cee0; margin: 0; }
.cta-inner .actions { margin: 0; }

/* ---------------------------------------------------------------- Inner page hero */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px);
  background:
    radial-gradient(circle at 92% 10%, var(--sky) 0 160px, transparent 161px),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }

/* Inner-page header with a slideshow beside the title */
.page-hero-media { background: var(--cream); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-slides { aspect-ratio: 4 / 3; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 80px; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-slides { aspect-ratio: 16 / 10; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 56px; }
}

/* ---------------------------------------------------------------- Lists */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg {
  width: 26px; height: 26px; padding: 5px;
  border-radius: 50%; background: var(--gold-300); color: var(--navy);
}
.checklist small { display: block; color: var(--muted); font-size: .88rem; }
.checklist-compact { gap: 8px; margin-bottom: 1em; }
.checklist-compact svg { width: 22px; height: 22px; padding: 4px; }
.checklist-light svg { background: rgb(255 255 255 / 14%); color: var(--gold); }

.pill-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--sky); color: var(--navy); padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

/* ---------------------------------------------------------------- Photos */

.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.photo-grid-2 { grid-template-columns: 1fr 1fr; }
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .photo-grid-3, .photo-grid-4 { grid-template-columns: 1fr 1fr; } }
.photo { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo:hover img { transform: scale(1.05); }

.photo-masonry { display: block; columns: 4 220px; column-gap: 12px; }
.photo-masonry .photo { aspect-ratio: auto; margin-bottom: 12px; break-inside: avoid; }
.photo-masonry .photo img { height: auto; }

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgb(10 14 28 / 92%); }
.lightbox-inner { display: grid; place-items: center; height: 100%; padding: 56px 72px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #e6e9f2; font-size: .95rem; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgb(255 255 255 / 12%); color: #fff; font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgb(255 255 255 / 24%); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-inner { padding: 64px 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; }
}

/* ---------------------------------------------------------------- Events */

.event-list { display: grid; gap: 12px; }
.event-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.event-row[hidden] { display: none; }
.event-body h3 { margin: 0; font-size: 1.25rem; }
.event-body p:last-child { margin: .4em 0 0; color: var(--muted); font-size: .95rem; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.event-cal { font-size: .9rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .event-row { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
  .event-cal { grid-column: 2; }
}

.date-tile {
  width: 64px; text-align: center;
  border-radius: 12px; overflow: hidden;
  background: var(--cream); border: 1px solid var(--line);
}
.date-tile span { display: block; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 0; }
.date-tile strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); line-height: 1.4; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--sky); color: var(--navy); }
.chip-agility { background: #dcedf7; color: #1b2a57; }
.chip-scentwork { background: #f6e3c0; color: #6b4a10; }
.chip-workshop { background: #e7e0f4; color: #43307a; }
.chip-run-thru { background: #dcefe3; color: #1f5a37; }
.chip-closed { background: #f6dcda; color: #8a2621; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.chip-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font: 600 .92rem var(--font-body); cursor: pointer;
}
.chip-btn:hover { border-color: var(--navy); }
.chip-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.month-group { margin-bottom: 2.5rem; }
.month-group[hidden] { display: none; }
.month-title { font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }

.archive { display: grid; gap: 10px; }
.archive details { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.archive summary { padding: 14px 20px; cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.archive summary .muted { font-family: var(--font-body); font-size: .85rem; font-weight: 500; margin-left: 8px; }
.archive-list { list-style: none; margin: 0; padding: 0 20px 14px; }
.archive-list li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.archive-list time { color: var(--muted); }
@media (max-width: 600px) { .archive-list li { grid-template-columns: 1fr; gap: 0; } }

.empty { padding: 32px; text-align: center; background: var(--paper); border-radius: var(--radius); color: var(--muted); }

/* ---------------------------------------------------------------- Trainers */

.trainer-list { display: grid; gap: clamp(48px, 7vw, 80px); }
.trainer { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.trainer-flip { grid-template-columns: 1fr 340px; }
.trainer-flip .trainer-photo { order: 2; }
.trainer-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
@media (max-width: 760px) {
  .trainer, .trainer-flip { grid-template-columns: 1fr; }
  .trainer-flip .trainer-photo { order: 0; }
  .trainer-photo { max-width: 360px; aspect-ratio: 1; }
}

/* ---------------------------------------------------------------- Classes */

.jump-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.jump-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.jump-nav a { flex: none; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.jump-nav a:hover { background: var(--sand); color: var(--navy); }

.class-list { display: grid; gap: 28px; }
.class-card {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 44px);
  background: var(--paper); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.class-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--sand); align-self: start; }
.class-media img { width: 100%; height: 100%; object-fit: cover; }
.class-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: .75rem; }
.class-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.class-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1rem; }
.class-meta div { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.class-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.class-meta dd { margin: 0; font-weight: 600; color: var(--navy); }
.class-summary { font-weight: 600; color: var(--navy); }
.class-closing { font-weight: 600; color: var(--red-700); margin: 1rem 0 0; }
.levels { list-style: none; counter-reset: lvl; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 12px; }
.levels > li { counter-increment: lvl; position: relative; padding: 16px 18px 14px 58px; background: var(--cream); border-radius: var(--radius); }
.levels > li::before {
  content: counter(lvl); position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem;
}
.levels h3 { font-size: 1.1rem; margin-bottom: .25em; }
.levels p { margin: 0; color: #3a4357; font-size: .97rem; }
.levels ul { margin: .5em 0 0; padding-left: 1.2em; color: #3a4357; font-size: .95rem; }
@media (max-width: 760px) {
  .class-card { grid-template-columns: 1fr; }
  .class-media { max-width: 220px; aspect-ratio: 4 / 3; }
}

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gold-300); color: #5a3d06; font-family: var(--font-body); font-size: .8rem; font-weight: 700; vertical-align: middle; }
.badge-full { background: #f6dcda; color: #8a2621; }
.badge-lg { font-size: .9rem; margin-bottom: 1rem; }

.note-card { background: var(--navy); color: #d3d8e6; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.note-card h2 { color: #fff; }
.note-card strong { color: #fff; }
.note-card .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 40%); }
.note-card .btn-ghost:hover { border-color: #fff; }

/* ---------------------------------------------------------------- Boarding */

.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .rate-grid { grid-template-columns: 1fr; } }
.rate-card { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--navy); }
.rate-card h2 { font-size: 1.6rem; }
.rate-size { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); background: var(--sand); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.rate-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: .5rem 0; }
.rate-price strong { font-family: var(--font-display); font-size: 3rem; color: var(--red); line-height: 1; font-weight: 600; }
.rate-price span { color: var(--muted); font-size: .95rem; }
.rate-card-alt { background: var(--sky); border-top-color: var(--gold); box-shadow: none; }
.rate-card-alt li { padding: 10px 0; border-bottom: 1px solid rgb(27 42 87 / 12%); }
.rate-card-alt li:last-child { border-bottom: 0; }

.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .extras-grid { grid-template-columns: 1fr; } }
.vip-card { background: var(--navy); color: #e6e9f2; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.vip-card .eyebrow { color: var(--gold); }
.vip-card h3 { color: #fff; font-size: 1.8rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vip-card h3 span { color: var(--gold); }
.menu-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.menu-card h3 { font-size: 1.8rem; }
.menu { list-style: none; padding: 0; margin: 0 0 1rem; }
.menu li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--red); font-weight: 600; }
.menu small { display: block; color: var(--muted); }

.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.policy-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.policy-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.policy-toc a { display: block; padding: 6px 14px; color: var(--muted); text-decoration: none; font-weight: 500; margin-left: -2px; border-left: 2px solid transparent; }
.policy-toc a:hover { color: var(--navy); border-left-color: var(--red); }
.policy { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.policy:last-child { border-bottom: 0; }
.policy h2 { font-size: 1.6rem; }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--sky); color: var(--navy); padding: 16px 18px; border-radius: var(--radius); margin: 0; }
.callout svg { margin-top: 4px; }
@media (max-width: 860px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.big-list li { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; color: var(--navy); padding: 4px 0; }
.big-list svg { color: var(--red); }

/* ---------------------------------------------------------------- Labradors */

.dog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .dog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dog-grid { grid-template-columns: 1fr; } }
.dog-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.dog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.dog-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.dog-img img { width: 100%; height: 100%; object-fit: cover; }
.dog-body { padding: 20px 22px 24px; }
.dog-body h2 { font-size: 1.6rem; margin-bottom: .3em; }
.dog-body p { margin: 0; color: var(--muted); font-size: .92rem; }

.dog-hero { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.dog-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.registered { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-700); font-style: italic; }
.dog-hero-img { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.dog-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 1.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .dog-hero-grid { grid-template-columns: 1fr; }
  .dog-hero-img { order: -1; }
}
.pager { display: flex; justify-content: space-between; gap: 12px; padding-block: 32px 64px; }
.pager a { font-weight: 600; text-decoration: none; }

.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .link-cards { grid-template-columns: 1fr; } }
.link-card { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: 26px 56px 26px 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.link-card p { margin: 0; color: var(--muted); }
.link-card > svg { position: absolute; right: 24px; top: 28px; color: var(--red); transition: transform .15s; }
.link-card:hover { color: var(--ink); }
.link-card:hover > svg { transform: translateX(4px); }

.notice { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 2px dashed var(--gold); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 3rem; }
.notice > svg { width: 40px; height: 40px; color: var(--gold); }
.notice-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: .3em; }
.notice p:last-child { margin: 0; }

/* ---------------------------------------------------------------- Questionnaire */

.q-list { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: 22px; }
.field { counter-increment: q; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field label::before { content: counter(q) '. '; color: var(--red); }
.field input, .field textarea, .q-output {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6ccb9; border-radius: 12px;
  background: var(--paper);
  font: 1rem/1.5 var(--font-body); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 3px solid rgb(230 182 92 / 50%); border-color: var(--gold); }
.field.is-invalid input { border-color: var(--red); }
.form-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions p { margin: 0; flex: 1 1 260px; font-size: .92rem; }
.q-result { margin-top: 2rem; background: var(--sky); padding: 24px; border-radius: var(--radius-lg); }
.q-output { margin: .5rem 0 1rem; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }

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

.site-footer { background: var(--navy-900); color: #c8cee0; padding-top: clamp(48px, 7vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .muted { color: #8e97b0; font-size: .9rem; }
.footer-brand img { height: 96px; width: auto; max-width: 260px; object-fit: contain; margin-bottom: 12px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-nav ul { columns: 2; column-gap: 20px; }
.footer-nav li { padding: 3px 0; font-size: .95rem; break-inside: avoid; }
.footer-base { border-top: 1px solid rgb(255 255 255 / 10%); padding-block: 20px; font-size: .88rem; color: #8e97b0; }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

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

/* ---------------------------------------------------------------- Class schedule */

.session-list { display: grid; gap: 12px; }
.session-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px;
}
.session-body h3 { margin: 0 0 6px; font-size: 1.25rem; }
.session-body h3 a { color: inherit; text-decoration: none; }
.session-body h3 a:hover { color: var(--red-700); }
.session-level { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--navy); background: var(--sky); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.session-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: .93rem; }
.session-facts li { display: inline-flex; align-items: center; gap: 6px; }
.session-facts svg { color: var(--red); width: 1em; height: 1em; }
.session-note { margin: 6px 0 0; font-size: .92rem; color: #3a4357; }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; white-space: nowrap; }
@media (max-width: 640px) {
  .session-row { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
  .session-row > .btn { grid-column: 2; justify-self: start; }
}

.status-open { background: #dcefe3; color: #1f5a37; }
.status-few-spots { background: var(--gold-300); color: #5a3d06; }
.status-full { background: #f6dcda; color: #8a2621; }
.status-waitlist { background: #e7e0f4; color: #43307a; }

.next-sessions { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 1rem; }
.next-sessions .eyebrow { margin-bottom: 6px; }
.next-sessions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.next-sessions .badge { font-size: .72rem; padding: 2px 9px; }

.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link svg { width: 1.3em; height: 1.3em; }
