:root {
  --ink: #1c2520;
  --muted: #657169;
  --paper: #f8f6ef;
  --surface: #ffffff;
  --line: #d9ddd2;
  --forest: #234f37;
  --field: #7a9b59;
  --clay: #9b4e32;
  --gold: #c7a45b;
  --shadow: 0 18px 50px rgba(28, 37, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(248, 246, 239, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-script {
  color: var(--forest);
  font-family: "Lavishly Yours", "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: .85;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--forest); }

.hero {
  position: relative;
  min-height: min(720px, 88vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}
.hero-slider { isolation: isolate; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 28, 23, .86), rgba(20, 28, 23, .38) 56%, rgba(20, 28, 23, .08));
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(48px, 10vh, 110px) clamp(18px, 6vw, 88px);
  color: #fff;
}
.hero-side-note {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: 62px;
  z-index: 3;
  width: min(330px, calc(100% - 36px));
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0,0,0,.72);
}
.hero-side-note span {
  display: block;
  margin-bottom: 4px;
  color: #e6c878;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-side-note h2 {
  color: #fff;
  font-size: clamp(16px, 1.55vw, 23px);
  line-height: 1.08;
}
.hero-side-note p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.45;
}
.hero-dots {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  gap: 9px;
}
.hero-dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  cursor: pointer;
}
.hero-dots button.is-active { background: #e6c878; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy > p { max-width: 650px; font-size: clamp(18px, 2.2vw, 24px); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #e6c878; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary { color: #fff; background: var(--forest); }
.ghost { color: var(--forest); background: rgba(255,255,255,.82); }
.danger { color: #fff; background: #8f2e24; border-color: #8f2e24; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div {
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--surface);
}
.stats strong { display: block; font-size: 30px; color: var(--forest); }
.stats span { color: var(--muted); }

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 104px) 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}
h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.prose p { margin-top: 0; color: var(--muted); font-size: 18px; }

.process, .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile, .card, .metric, .admin-panel, .inquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tile { padding: 22px; box-shadow: none; }
.tile p, .card p, .card small { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.card { padding: 24px; }
.services {
  padding-top: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.service-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-weight: 900;
}
.service-grid p {
  color: var(--muted);
}
.dog-profiles {
  display: grid;
  gap: clamp(24px, 5vw, 54px);
}
.dog-profile {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.dog-profile:nth-child(even) .dog-photo { order: 2; }
.dog-profile:nth-child(even) .dog-copy { order: 1; }
.dog-photo img, .dog-photo .image-placeholder {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: #e8ebdf;
}
.image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  border: 1px dashed #b9c1b3;
}
.dog-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dog-copy h3 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 14px;
}
.dog-copy p {
  color: var(--muted);
  font-size: 18px;
}
.dog-copy small {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.card span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-weight: 800;
  font-size: 13px;
}

.band {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  background: #eef2e8;
}
.puppy-list { display: grid; gap: 14px; }
.puppy-list article {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.puppy-list article.has-thumb { grid-template-columns: minmax(120px, 180px) 1fr 240px; }
.puppy-list article.no-thumb { grid-template-columns: 1fr 240px; }
.litter-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.puppy-list p { margin: 0; color: var(--muted); }
.puppy-list aside strong, .puppy-list aside span { display: block; }
.puppy-list aside strong { color: var(--forest); font-size: 20px; }
.puppy-list aside span { color: var(--muted); }
.puppy-list aside a { display: inline-block; margin-top: 8px; color: var(--forest); font-weight: 800; }

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.checklist li {
  padding: 16px 18px;
  background: var(--surface);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
}
.puppy-program { background: #f2eee2; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.program-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.program-grid strong {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 14px;
}
.program-grid p, .standard-list p { color: var(--muted); }
.standard-list {
  display: grid;
  gap: 14px;
}
.standard-list article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.faq details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
}
.faq p { color: var(--muted); }

.media-section { padding-top: 72px; }
.promo-strip {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 20px 0;
  background: #18251d;
  color: #fff;
}
.promo-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 37, 29, .96), rgba(24, 37, 29, .76) 48%, rgba(24, 37, 29, .48));
}
.promo-marquee {
  position: absolute;
  inset: 0;
  opacity: .34;
}
.promo-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  height: 100%;
  animation: promoSlide 54s linear infinite;
}
.promo-track img {
  width: clamp(160px, 18vw, 280px);
  height: clamp(160px, 18vw, 280px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.28));
}
@keyframes promoSlide {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.promo-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-right: auto;
  margin-left: clamp(18px, 7vw, 96px);
  padding: 70px 0;
}
.promo-content h2 {
  color: #fff;
  margin-bottom: 14px;
}
.promo-content p {
  max-width: 620px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
}
.coupon-box {
  display: inline-grid;
  gap: 2px;
  margin: 18px 0 20px;
  padding: 14px 18px;
  color: var(--ink);
  background: #f4e2a7;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
}
.coupon-box span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.coupon-box strong {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.media-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.media-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.media-grid figcaption {
  display: grid;
  gap: 4px;
  padding: 12px;
}
.media-grid figcaption span { color: var(--muted); font-size: 14px; }
.facebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.facebook-page-embed {
  margin: 22px 0;
}
.facebook-page-embed iframe {
  width: min(500px, 100%);
  max-width: 100%;
  background: #fff;
}
.facebook-grid article {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.facebook-grid iframe {
  width: 100%;
  max-width: 500px;
  background: #fff;
}

.litter-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 20px;
}
.litter-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.litter-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1;
}
.litter-hero p { color: var(--muted); font-size: 19px; }

.contact {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 36px;
}
.form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd5cb;
  border-radius: 6px;
  font: inherit;
}
.notice { padding: 12px 14px; border-radius: 6px; font-weight: 800; }
.good { color: #17452e; background: #dcecdf; }
.bad { color: #7a1e1e; background: #f5dddd; }
.site-alert {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-page { background: #f3f4ef; }
.admin-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-header h1 { margin: 0; line-height: 1.1; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric { padding: 22px; }
.metric strong { display: block; font-size: 38px; color: var(--forest); }
.metric span { color: var(--muted); }
.admin-panel { padding: 24px; }
.admin-panel + .admin-panel { margin-top: 22px; }
.admin-panel h2 { margin-bottom: 18px; font-size: 28px; }
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.admin-form + .admin-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
label[data-file]::after {
  content: attr(data-file);
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
}
.admin-form label:has(textarea), .admin-form button { grid-column: 1 / -1; }
.compact-form { grid-template-columns: repeat(3, 1fr); align-items: end; }
.compact-form button { grid-column: auto; }
.admin-note { color: var(--muted); margin-bottom: 0; }
.admin-edit-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.admin-edit-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #f9faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-edit-card label:has(textarea),
.admin-edit-card .admin-form-actions {
  grid-column: 2 / -1;
}
.admin-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e8ebdf;
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-form-actions .button {
  min-height: 42px;
}
.media-admin-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.media-admin-list .admin-edit-card {
  grid-template-columns: 1fr;
}
.media-admin-list .admin-edit-card label:has(textarea),
.media-admin-list .admin-edit-card .admin-form-actions {
  grid-column: auto;
}
.admin-hero-slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.admin-hero-slides figure {
  margin: 0;
  overflow: hidden;
  background: #f9faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-hero-slides img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.admin-hero-slides figcaption {
  display: grid;
  gap: 2px;
  padding: 10px;
}
.admin-hero-slides span {
  color: var(--muted);
  font-size: 13px;
}
.admin-dog-list { display: grid; gap: 12px; }
.admin-dog-row {
  display: grid;
  grid-template-columns: 80px 1fr minmax(180px, 260px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-dog-row img, .admin-dog-row .admin-thumb-empty {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8ebdf;
}
.admin-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-dog-row span { display: block; color: var(--muted); }
.toggle-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle-line input { width: auto; }
.admin-promo-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.admin-promo-images figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf6;
}
.admin-promo-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.admin-promo-images figcaption {
  color: var(--muted);
  font-size: 13px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(480px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.login-panel h1 { margin-top: 0; line-height: 1.08; }
.login-google { width: 100%; margin-top: 14px; }

.error-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 37, 29, .94), rgba(24, 37, 29, .72)),
    url("/assets/img/wirehaired-dachshunds-hero.png") center / cover fixed;
}
.error-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.error-panel {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  color: #fff;
  background: rgba(28, 37, 32, .86);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 54px;
  margin-bottom: 18px;
  color: var(--ink);
  background: #f4e2a7;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
}
.error-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}
.error-panel p {
  max-width: 620px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
}
.error-panel small {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.62);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.error-details {
  margin-top: 20px;
  padding: 14px;
  color: #f7efe0;
  background: rgba(0,0,0,.28);
  border-radius: 8px;
}
.error-details summary {
  cursor: pointer;
  font-weight: 800;
}
.error-details pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0;
}
.inquiry { padding: 18px; margin-top: 12px; box-shadow: none; }
.inquiry header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--forest);
}
.inquiry p { color: var(--ink); }
.inquiry small, .inquiry header span { color: var(--muted); }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .stats, .process, .cards, .admin-grid, .media-grid, .facebook-grid, .program-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact, .puppy-list article, .litter-hero, .admin-form, .compact-form, .admin-dog-row, .admin-edit-card, .dog-profile, .hero-slide { grid-template-columns: 1fr; }
  .admin-edit-card label:has(textarea), .admin-edit-card .admin-form-actions { grid-column: auto; }
  .hero-slide { align-items: end; }
  .hero-side-note {
    right: 18px;
    bottom: 54px;
    max-width: 280px;
  }
  .hero-dots { right: 18px; bottom: 14px; }
  .dog-profile:nth-child(even) .dog-photo, .dog-profile:nth-child(even) .dog-copy { order: initial; }
  .admin-form label:has(textarea), .admin-form button { grid-column: auto; }
}

@media (max-width: 580px) {
  .nav { gap: 10px 14px; }
  .hero { min-height: 760px; }
  .stats, .process, .cards, .admin-grid, .media-grid, .facebook-grid, .program-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-copy { margin-left: 18px; }
  .hero-side-note {
    left: 18px;
    right: auto;
    text-align: left;
  }
  .footer, .admin-header { flex-direction: column; align-items: flex-start; }
}
