:root {
  --bg: #fbf6e8;
  --bg-deep: #efe2c4;
  --paper: #fffdf6;
  --ink: #3a2a16;
  --muted: #6b5340;
  --line: #ead9b4;
  --line-strong: #c9b48a;
  --sun: #e2a317;
  --sun-deep: #7a4e0c;
  --leaf: #2f5a38;
  --leaf-deep: #23462c;
  --terra: var(--sun);
  --terra-dark: var(--leaf);
  --sage: #2f5a38;
  --sage-soft: #e5f0e4;
  --gold-soft: #f8e7a8;
  --gold-ink: #6b4a2b;
  --cream-panel: rgba(255, 248, 232, 0.94);
  --shadow: 0 18px 40px rgba(58, 42, 22, 0.1);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -8%, rgba(226, 163, 23, 0.2), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(47, 90, 56, 0.12), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
body.has-callbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-name, .footer-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.35em; }
h3 { font-size: 1.35rem; margin: 0 0 0.3em; }
p { margin: 0 0 0.8em; }
a { color: var(--terra-dark); }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
::selection { background: #f6df8a; color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.lead, .prose p { max-width: 40rem; }
.lead { font-size: 1.15rem; }
.fine { color: var(--muted); font-size: 0.95rem; }
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--sun-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.meta { color: var(--muted); margin-bottom: 0.4rem; }
.story-p { white-space: pre-line; }

.sample-banner {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  background: #f8e7a8;
  color: #3a2a16;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 12px;
}
.brand {
  order: 1;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-size: 1.02rem; max-width: 9rem; }
.header-call {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--terra-dark);
  color: white;
  text-decoration: none;
  font-weight: 700;
  flex: none;
}
.header-call:hover { color: white; background: var(--leaf-deep); }
.call-full { display: none; }
.nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a, .text-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav form { margin: 0; }
.text-button {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--terra-dark);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: white; background: var(--leaf-deep); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-secondary:hover { color: var(--ink); background: rgba(255, 252, 248, 0.7); }
.btn-danger {
  background: transparent;
  color: var(--terra-dark);
  border: 1px solid #e2b2a8;
}
.btn-danger:hover { color: var(--terra-dark); background: #fdecea; }

.hero {
  position: relative;
  padding: 196px 0 28px;
  background: transparent;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 280px;
  background:
    linear-gradient(180deg, rgba(42, 28, 12, 0.05), rgba(42, 28, 12, 0.18)),
    url("/images/sunflowers/field-rows.jpg") center 40% / cover no-repeat;
}
.hero-grid { position: relative; z-index: 1; }
.hero-copy {
  background: var(--cream-panel);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(36, 24, 8, 0.22);
  padding: 22px 20px 8px;
}
.hero-figure { margin: 0; }
.hero-grid, .detail-grid, .about-grid, .contact-grid { display: grid; gap: 22px; }
.hero-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.hero-figure img, .card-photo img, .gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-deep);
}
.hero-figure img {
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  box-shadow: none;
}
.page-intro { padding: 18px 0 48px; }
.photo-wash {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(251, 246, 232, 0.38), rgba(251, 246, 232, 0.72) 42%, var(--bg)),
    var(--wash);
  background-position: center, center 52%;
  background-size: auto, auto 170%;
  background-repeat: no-repeat;
}
.photo-wash .prose,
.intro-copy {
  background: var(--cream-panel);
  border-radius: 28px;
  padding: 18px 18px 8px;
  box-shadow: 0 14px 32px rgba(58, 42, 22, 0.08);
}
.photo-wash .chip { background: rgba(255, 253, 246, 0.92); }
.wash-day { --wash: url("/images/sunflowers/field-sunset.jpg"); background-size: auto, auto 240%; background-position: center, center 46%; }
.wash-rows { --wash: url("/images/sunflowers/field-rows.jpg"); background-size: auto, auto 420%; background-position: center, center 58%; }
.wash-bloom { --wash: url("/images/sunflowers/bloom.jpg"); background-size: auto, auto 180%; background-position: center, center 28%; }
.wash-sunset { --wash: url("/images/sunflowers/field-day.jpg"); background-size: auto, auto 280%; background-position: center, center 52%; }
.band { background: rgba(255, 253, 246, 0.72); border-block: 1px solid var(--line); }
.band.photo-band {
  position: relative;
  border-block: 0;
  background-color: var(--bg-deep);
  background-image: var(--band);
  background-position: center 58%;
  background-size: auto 220%;
  background-repeat: no-repeat;
}
.band.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 246, 232, 0.34);
  pointer-events: none;
}
.photo-band .section-head {
  background: var(--cream-panel);
  border-radius: 22px;
  padding: 16px 16px 4px;
}
.photo-band .steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.band.photo-band > .wrap { position: relative; z-index: 1; }
.band-rows { --band: url("/images/sunflowers/field-sunset.jpg"); background-position: center 48%; background-size: auto 260%; }
.band-bloom { --band: url("/images/sunflowers/bloom.jpg"); background-position: center 30%; background-size: auto 160%; }
.band-day { --band: url("/images/sunflowers/field-rows.jpg"); background-position: center 60%; background-size: auto 420%; }
.band .wrap, section > .wrap { padding-block: 32px; }
.page-intro .wrap { padding-block: 8px 36px; }
.section-head { margin-bottom: 18px; }
.section-link { margin-top: 16px; }

.breed-grid, .cards { display: grid; gap: 16px; }
.breed-card, .dog-card, .panel, .cta, .empty {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.breed-card { overflow: hidden; }
.breed-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.breed-card div, .card-body, .empty, .panel, .cta { padding: 16px 16px 8px; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:hover h3 { color: var(--terra-dark); }
.card-photo { position: relative; }
.card-body h3, .card-body .excerpt { overflow-wrap: anywhere; }
.excerpt { color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-available { background: var(--sage-soft); color: #1e4d32; }
.badge-reserved { background: var(--gold-soft); color: var(--gold-ink); }
.badge-sold { background: #ece7e1; color: #4a453f; }
.badge-sample {
  background: white;
  color: var(--sun-deep);
  border: 1px solid #e2c98a;
}
.card-photo .badge { position: absolute; top: 12px; left: 12px; }
.card-photo .badge-sample { left: auto; right: 12px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terra-dark);
  color: white;
  font-weight: 700;
}
.cta-band { padding-bottom: 12px; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(120deg, rgba(47, 90, 56, 0.84), rgba(35, 70, 44, 0.82)),
    url("/images/sunflowers/field-day.jpg") center 55% / cover no-repeat;
  color: white;
  border-radius: 28px;
  padding: 22px;
}
.cta-inner h2, .cta-inner p { color: white; }
.cta-inner .btn { background: #f8e7a8; color: var(--ink); }
.cta-inner .btn:hover { color: var(--ink); background: #fff4c8; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.chip {
  flex: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip span { font-weight: 600; opacity: 0.8; }

.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.gallery img {
  flex: 0 0 100%;
  border-radius: 22px;
  scroll-snap-align: center;
}
.swipe-hint { color: var(--muted); font-size: 0.92rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 18px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: 0.82rem; }
.facts dd { margin: 0; font-weight: 700; }
.callout {
  background: #f8e7a8;
  border-radius: 16px;
  padding: 12px 14px;
  color: #3a2a16;
}
.back-link { margin-bottom: 8px; }
.group-title { margin-top: 8px; }
.phone-link {
  display: inline-block;
  margin: 8px 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
  text-decoration: none;
  color: var(--terra-dark);
}
.plain-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.empty { padding: 18px; }

.site-footer { padding: 12px 0 28px; color: var(--muted); }
.footer-grid { display: grid; gap: 12px; }
.footer-name { color: var(--ink); font-size: 1.4rem; margin: 0 0 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-footer a { color: var(--ink); }

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 252, 248, 0.96);
  border-top: 1px solid var(--line);
}
.callbar .btn { width: min(420px, 100%); }

.admin-wrap { padding: 18px 0 72px; }
.stack-form, .login-card { display: grid; gap: 14px; }
.field, fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.field span, legend { font-weight: 700; }
input, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices-3 { grid-template-columns: 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-weight: 700;
}
.choice input:checked + span { border-color: var(--leaf); background: #eef6ea; color: var(--leaf); }
.choice input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; flex: none; }
.file-field { position: relative; display: inline-flex; }
.file-field input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-field span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  font-weight: 700;
}
.file-field input:focus-visible + span { outline: 3px solid var(--terra); }
small { color: var(--muted); }
.form-actions {
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 28%);
}
.errors, .flash { border-radius: 16px; padding: 12px 14px; }
.errors { background: #fdecea; border: 1px solid #e2b2a8; color: #6f2e24; }
.errors ul { margin: 0; padding-left: 1.1rem; }
.flash { background: #e5f2e6; border: 1px solid #b7d4bb; color: #1d4a2c; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.admin-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; }
.admin-row span { display: grid; min-width: 0; }
.admin-row small { color: var(--muted); }
.admin-row strong, .admin-row small { overflow-wrap: anywhere; }
.admin-group { margin-bottom: 18px; }
.photo-admin { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-admin li { display: grid; gap: 6px; }
.photo-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.parent-preview-img { width: min(100%, 240px); aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.danger { margin-top: 28px; }
.danger summary { cursor: pointer; color: var(--muted); }
.login-card { max-width: 28rem; }

@media (min-width: 640px) {
  .call-short { display: none; }
  .call-full { display: inline; }
  .choices-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 880px) {
  body.has-callbar { padding-bottom: 0; }
  .callbar { display: none; }
  .header-inner { flex-wrap: nowrap; padding-bottom: 12px; }
  .brand { margin-right: 0; }
  .brand-name { max-width: none; font-size: 1.3rem; }
  .brand-break { display: none; }
  .nav { order: 2; flex: 1 1 auto; justify-content: flex-end; overflow: visible; padding: 0; }
  .header-call { order: 3; }
  .hero { padding: 56px 0 64px; }
  .hero::before { height: auto; bottom: 0; background-position: center 58%; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 18px; }
  .breed-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .parent-preview { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-grid .fine { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .cards.parent-preview { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .callbar, .hero-actions, .filters { display: none; }
  body { background: white; padding: 0; }
  .hero, .photo-wash, .band.photo-band, .cta-inner { background: white !important; }
  .hero::before, .band.photo-band::before { display: none; }
  .hero-copy, .hero-figure { box-shadow: none; }
}
