/* ==========================================================================
   Page-level compositions
   ========================================================================== */

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

.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 70%;
  background: radial-gradient(ellipse at 50% 0%,
    color-mix(in srgb, var(--brass) 12%, transparent), transparent 68%);
  pointer-events: none; z-index: -1;
}

.hero__grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); }
}

.hero h1 { font-size: var(--t-4xl); margin-bottom: var(--s-5); }
.hero .lede { font-size: var(--t-lg); max-width: 34ch; margin-bottom: var(--s-6); }

.hero--home { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1rem, 3vw, 2.5rem); }
.hero--home::before {
  inset: -12rem auto auto -15rem; width: 42rem; height: 42rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--brass) 16%, transparent), transparent 68%);
}
.hero--home .hero__grid { gap: clamp(2.5rem, 5vw, 5.5rem); }
.hero--home h1 { max-width: 10ch; line-height: .98; letter-spacing: -.035em; }
.hero--home h1 em { color: var(--brass-deep); font-weight: 500; }
.hero__copy { position: relative; z-index: 2; }
.hero__photo {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10rem 10rem var(--r-xl) var(--r-xl);
  background: var(--bone-2); box-shadow: var(--shadow-lg); position: relative;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, white 28%, transparent);
  pointer-events: none;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero__signature {
  position: absolute; z-index: 2; left: var(--s-5); top: var(--s-5);
  display: flex; align-items: center; gap: .75rem; padding: .65rem .95rem;
  color: #fff; background: rgba(21, 23, 26, .42); border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r-pill); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hero__signature svg { width: 2rem; height: 2rem; flex: 0 0 auto; }
.hero__signature span { display: grid; line-height: 1.02; }
.hero__signature strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; }
.hero__signature small { color: rgba(255,255,255,.8); font-size: .52rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero__promises {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-6);
  padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2);
  font-size: var(--t-sm); font-weight: 600;
}
.hero__promises span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__promises span::before { content: "✓"; color: var(--ok); font-weight: 800; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6); font-size: var(--t-sm); color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .45em; }

.hero__media { position: relative; }
.hero__media .photo { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero__float {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--s-4) var(--s-5); max-width: 15rem;
}
@media (max-width: 940px) { .hero__float { position: static; margin-top: var(--s-4); max-width: none; } }
.hero__float .badge { margin-bottom: var(--s-2); }
.hero__float p { font-size: var(--t-sm); line-height: 1.5; }
.hero__float .link-arrow { margin-top: var(--s-1); }

@media (min-width: 940px) {
  .hero--home .hero__grid { grid-template-columns: minmax(0, .86fr) minmax(28rem, 1.14fr); }
  .hero--home .hero__media { margin-right: -3vw; }
  .hero--home .hero__photo { aspect-ratio: 1.16 / 1; border-radius: 12rem 0 0 12rem; }
  .hero--home .hero__float { left: -2.25rem; bottom: 2rem; }
}
@media (max-width: 600px) {
  .hero--home h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero--home .btn { width: 100%; }
  .hero__photo { aspect-ratio: 4 / 3; border-radius: 6rem 6rem var(--r-xl) var(--r-xl); }
  .hero__signature { left: var(--s-3); top: var(--s-3); transform: scale(.88); transform-origin: top left; }
}

.editorial-intro { background: var(--paper); }
.editorial-intro .section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.editorial-intro .section-head h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value-card { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line); }
.value-card:last-child { border-right: 0; }
.value-card__number { display: block; font-family: var(--font-display); color: var(--brass); font-size: var(--t-sm); margin-bottom: var(--s-6); }
.value-card h3 { font-size: var(--t-xl); }
.value-card p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; }
  .value-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .value-card:last-child { border-bottom: 0; }
}

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

.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--s-6); }
.page-head h1 { margin-bottom: var(--s-4); }
.page-head .lede { max-width: 60ch; }

.crumbs { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s-4); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brass-deep); }
.crumbs span { margin-inline: .45em; opacity: .5; }

.section-head { margin-bottom: var(--s-6); }
.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--s-4);
}
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { color: var(--ink-2); max-width: 55ch; margin-bottom: 0; }

/* --- Litter & puppy cards ---------------------------------------------- */

.litter {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm);
}
.litter + .litter { margin-top: var(--s-6); }

.litter__head {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: flex-start; justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
  background: var(--paper-sunk);
}
.litter__title { margin-bottom: var(--s-1); font-size: var(--t-lg); }
.litter__pair { font-size: var(--t-sm); color: var(--ink-2); }
.litter__pair a { font-weight: 600; }

.litter__facts {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
}
.fact__k {
  font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: .2rem;
}
.fact__v { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }

.pups {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  padding: var(--s-6);
}

.pup {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.pup:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pup.is-placed { opacity: .62; }
.pup.is-placed:hover { transform: none; box-shadow: none; }

.pup__media { position: relative; }
.pup__media .photo { border-radius: 0; }
.pup__status { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; box-shadow: var(--shadow-sm); }

.pup__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.pup__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); line-height: 1.2; }
.pup__collar { display: inline-flex; align-items: center; gap: .4em; font-size: var(--t-xs); color: var(--ink-3); }
.pup__swatch { width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; }

.pup__specs { display: grid; gap: .35rem; font-size: var(--t-xs); color: var(--ink-2); margin: 0; }
.pup__specs div { display: flex; justify-content: space-between; gap: var(--s-3); }
.pup__specs dt { color: var(--ink-3); }
.pup__specs dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.pup__foot { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.pup__price { font-family: var(--font-display); font-size: var(--t-md); font-weight: 600; }

/* Status filter chips */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip {
  padding: .4rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* --- Dog cards & pedigree ---------------------------------------------- */

.dog-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.dog-card:hover { color: inherit; }
.dog-card .photo { border-radius: 0; }
.dog-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.dog-card__call { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; line-height: 1.15; }
.dog-card__reg { font-size: var(--t-xs); color: var(--ink-3); font-style: italic; line-height: 1.4; }
.dog-card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); }

.pedigree {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  font-size: var(--t-xs);
}
@media (max-width: 860px) {
  .pedigree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pedigree__gen[data-gen="3"], .pedigree__gen[data-gen="4"] { display: none; }
  .pedigree__note { display: block; }
}
.pedigree__note { display: none; }
.pedigree__gen { display: grid; gap: var(--s-2); align-content: center; }
.pedigree__cell {
  padding: var(--s-3);
  background: var(--paper-sunk); border: 1px solid var(--line);
  border-radius: var(--r-sm); line-height: 1.4;
  display: grid; align-content: center; min-height: 3.4rem;
}
.pedigree__cell b { display: block; font-weight: 650; }
.pedigree__cell span { color: var(--ink-3); font-size: .68rem; }
.pedigree__head {
  font-size: var(--t-xs); font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--s-2); text-align: center;
}

/* Health results table rows */
.health-row__test { font-weight: 650; }
.health-row__result { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--ok); }

/* --- Timeline ----------------------------------------------------------- */

.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ""; position: absolute; left: .68rem; top: .6rem; bottom: .6rem;
  width: 2px; background: linear-gradient(var(--brass), color-mix(in srgb, var(--brass) 15%, transparent));
}
.tl-step { position: relative; padding-bottom: var(--s-6); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ""; position: absolute; left: -2.5rem; top: .35rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
  box-shadow: 0 0 0 4px var(--bone);
}
.tl-step__n {
  position: absolute; left: -2.5rem; top: .35rem;
  width: 1.45rem; height: 1.45rem;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: var(--brass-deep);
}
.tl-step h3 { font-size: var(--t-md); margin-bottom: var(--s-1); }
.tl-step__when {
  font-size: var(--t-xs); font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brass-deep); margin-bottom: var(--s-2);
}
.tl-step p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 0; }
.band .tl-step::before { box-shadow: 0 0 0 4px var(--bone-2); }

/* --- Pricing ----------------------------------------------------------- */

.price-card { display: flex; flex-direction: column; gap: var(--s-4); }
.price-card__amount {
  font-family: var(--font-display); font-size: var(--t-2xl);
  font-weight: 600; line-height: 1; letter-spacing: -0.02em;
}
.price-card__amount small { font-size: var(--t-sm); font-weight: 500; color: var(--ink-3); font-family: var(--font-body); }
.price-card--feature { border-color: var(--brass); box-shadow: var(--shadow-md); }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.tick-list li { display: flex; gap: var(--s-3); font-size: var(--t-sm); line-height: 1.5; margin: 0; }
.tick-list svg { width: 1.1rem; height: 1.1rem; color: var(--ok); flex-shrink: 0; margin-top: .15rem; }

/* --- Application stepper ------------------------------------------------ */

.stepper { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); }
.stepper__seg { flex: 1; display: grid; gap: var(--s-2); }
.stepper__bar { height: 4px; border-radius: var(--r-pill); background: var(--line); transition: background .3s var(--ease); }
.stepper__seg.is-done .stepper__bar,
.stepper__seg.is-current .stepper__bar { background: var(--brass); }
.stepper__label {
  font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  font-weight: 650; color: var(--ink-3);
}
.stepper__seg.is-current .stepper__label { color: var(--brass-deep); }
@media (max-width: 720px) { .stepper__label { display: none; } }

.step { display: none; }
.step.is-active { display: block; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.form-nav {
  display: flex; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line);
}

.form-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.saved-flag {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--t-xs); color: var(--ok); font-weight: 600;
  opacity: 0; transition: opacity .3s var(--ease);
}
.saved-flag.is-on { opacity: 1; }

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

.cta-band {
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.4rem + 3vw, 4rem);
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--brass) 16%, transparent), transparent 60%),
    var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--s-3); }
.cta-band p { max-width: 48ch; margin-inline: auto; color: var(--ink-2); margin-bottom: var(--s-6); }

/* --- Quotes ------------------------------------------------------------- */

.quote { display: flex; flex-direction: column; gap: var(--s-4); height: 100%; }
.quote__text { font-family: var(--font-display); font-size: var(--t-md); line-height: 1.5; color: var(--ink); }
.quote__text::before { content: "\201C"; color: var(--brass); }
.quote__text::after  { content: "\201D"; color: var(--brass); }
.quote__by { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.quote__avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0; }
.quote__name { font-weight: 650; font-size: var(--t-sm); line-height: 1.2; }
.quote__meta { font-size: var(--t-xs); color: var(--ink-3); }

/* --- Reality-check (breed honesty) grid --------------------------------- */

.reality { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.reality__item { padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.reality__num {
  font-family: var(--font-display); font-size: var(--t-xl);
  font-weight: 600; color: var(--brass-deep); line-height: 1; margin-bottom: var(--s-2);
}
.reality__item h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.reality__item p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 0; }

/* --- Old English Sheepdog illustration ---------------------------------
   Generated by scripts/hero.py. Colours come from tokens so the drawing
   holds up in both themes; swap the whole block for a photograph when one
   is available. */

:root {
  --oes-dark:  #7B8792;
  --oes-mid:   #AAB5BF;
  --oes-light: #F4F1EA;
  --oes-nose:  #23262A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --oes-dark:  #5B6771;
    --oes-mid:   #8894A0;
    --oes-light: #E4E0D6;
    --oes-nose:  #15171A;
  }
}
:root[data-theme="dark"] {
  --oes-dark:  #5B6771;
  --oes-mid:   #8894A0;
  --oes-light: #E4E0D6;
  --oes-nose:  #15171A;
}

.oes-stage {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(1rem, .5rem + 3vw, 3rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%,
      color-mix(in srgb, var(--brass) 22%, transparent) 0%,
      color-mix(in srgb, var(--brass) 8%, transparent) 45%,
      transparent 72%),
    var(--bone-2);
  box-shadow: var(--shadow-lg);
}
.oes-stage::before {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: inherit; pointer-events: none;
}

.oes-illustration {
  width: 100%; max-width: 30rem; height: auto;
  display: block; position: relative; z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(30, 34, 38, .18));
}
:root[data-theme="dark"] .oes-illustration,
:root:not([data-theme="light"]) .oes-illustration {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .oes-illustration {
    filter: drop-shadow(0 18px 28px rgba(30, 34, 38, .18));
  }
}

.oes-ruff       { fill: var(--oes-dark); }
.oes-ear        { fill: var(--oes-dark); }
.oes-head       { fill: var(--oes-mid); }
.oes-beard      { fill: var(--oes-light); }
.oes-muzzle     { fill: var(--oes-light); }
.oes-fringe     { fill: var(--oes-mid); }
.oes-fringe-hi  { fill: var(--oes-light); opacity: .5; }
.oes-nose       { fill: var(--oes-nose); }
.oes-nostril    { fill: #fff; opacity: .16; }
.oes-mouth      { stroke: var(--oes-nose); stroke-width: 5; stroke-linecap: round; }
.oes-eye        { fill: var(--oes-nose); }
.oes-eye-hi     { fill: #fff; opacity: .85; }

/* A slow, barely-there breathing motion. Off for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .oes-illustration { animation: oes-breathe 7s ease-in-out infinite; transform-origin: 50% 80%; }
  @keyframes oes-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.008); }
  }
}
