:root {
  --pine: #24352a;
  --pine-dark: #16211b;
  --cream: #f6f1e6;
  --gold: #b8863f;
  --gold-light: #d9a75e;
  --slate: #4a5347;
  --line: #d8cfb8;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--pine-dark);
  font-family: var(--font-body);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine-dark);
  margin: 0 0 0.4em;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* NAV */
nav.site-nav {
  background: var(--pine);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.brand span { color: var(--gold-light); }
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.85; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold-light); }

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--pine) 0%, var(--pine-dark) 100%);
  color: var(--cream);
  padding: 90px 0 70px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--cream);
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #d9d3c2;
  font-size: 1.05rem;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gold);
}
.btn-gold { background: var(--gold); color: var(--pine-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--cream); margin-left: 12px; }
.btn-outline:hover { background: rgba(246,241,230,0.08); }

/* SECTIONS */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem;
  color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.section-head p { color: var(--slate); }

.divider {
  width: 60px; height: 3px; background: var(--gold); margin: 18px auto 0;
}

/* GRID / CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,33,27,0.12); }
.card-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e7e0cc, #d8cfb0);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 0.8rem; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.card-titles { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.card-meta { font-size: 0.82rem; color: var(--slate); line-height: 1.7; }
.card-meta .label { color: var(--pine); font-weight: 600; }
.card-meta a { color: var(--gold); text-decoration: underline; }

/* footer */
footer {
  background: var(--pine-dark);
  color: #c8c2b0;
  padding: 40px 0 30px;
  text-align: center;
  font-size: 0.85rem;
}
footer .brand { display: block; margin-bottom: 10px; }

/* three-column feature row (home) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
}
.feature .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.feature p { color: var(--slate); font-size: 0.92rem; }

.cta-band {
  background: var(--pine);
  color: var(--cream);
  text-align: center;
  padding: 54px 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #d9d3c2; margin-bottom: 26px; }

@media (max-width: 720px) {
  nav.site-nav .container { flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
}

/* ============================================================
   BREEDING PAGES (planned-breedings.html, litters.html)
   ============================================================ */

.pairings { display: grid; gap: 34px; }

.pairing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.pairing-head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.pairing-head h3 { font-size: 1.5rem; margin: 0; flex: 1 1 240px; }
.pairing-when { color: var(--slate); font-size: 0.9rem; margin: 0; }

.status {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 2px;
  white-space: nowrap;
}
.status-planned   { background: #e9e2cd; color: var(--pine); }
.status-confirmed { background: var(--gold); color: var(--pine-dark); }
.status-whelped   { background: var(--pine); color: var(--cream); }
.status-available { background: #5f7f52; color: #fff; }
.status-reserved  { background: var(--slate); color: var(--cream); }

/* sire x dam */
.pairing-parents {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 26px;
}
.parent { text-align: center; }
.parent-role {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.parent-photo {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e0cc, #d8cfb0);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.parent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.parent h4 { font-family: var(--font-display); font-size: 1.2rem; margin: 14px 0 3px; }
.parent-titles { color: var(--gold); font-size: 0.84rem; font-weight: 600; margin-bottom: 8px; }
.parent-meta { font-size: 0.8rem; color: var(--slate); line-height: 1.7; }
.parent-meta a { color: var(--gold); text-decoration: underline; }
.cross {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  padding: 0 22px;
}

/* fact strip */
.pairing-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  margin: 0;
}
.pairing-facts > div { background: #fff; padding: 16px 20px; }
.pairing-facts dt {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.68rem; color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.pairing-facts dd { margin: 0; font-size: 0.92rem; }

/* combination pedigree */
.pedigree { border-top: 1px solid var(--line); padding: 24px 26px 28px; background: #fbf8f1; }
.pedigree-head {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.pedigree-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.pedigree-frame img { width: 100%; display: block; }
.pedigree-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 150px; cursor: default;
  color: var(--slate); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(135deg, #efe9d8, #e2dac2);
}
.pedigree-note { font-size: 0.82rem; color: var(--slate); margin: 10px 0 0; }
.pedigree-note a { color: var(--gold); text-decoration: underline; }

/* empty page state */
.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 54px 26px;
  text-align: center;
  color: var(--slate);
}
.empty-state h3 { margin-bottom: 8px; }

/* pedigree lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(22,33,27,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 28px; z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox-close {
  position: absolute; top: 14px; right: 22px;
  color: var(--cream); font-size: 2.2rem; line-height: 1;
  background: none; border: 0; cursor: pointer;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .pairing-parents { grid-template-columns: 1fr; padding: 20px; }
  .cross { padding: 10px 0; }
  .pairing-head { padding: 18px 20px 16px; }
  .pedigree { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* litter write-up */
.pairing-callname {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}
.pairing-copy {
  border-top: 1px solid var(--line);
  padding: 24px 26px 26px;
}
.pairing-copy h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.pairing-copy p { font-size: 0.94rem; line-height: 1.75; margin: 0 0 14px; }
.pairing-copy p:last-child { margin-bottom: 0; }
.pairing-highlights {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.pairing-highlights li {
  background: #fbf8f1;
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine);
}

/* prominent pedigree link (replaces the embedded pedigree image) */
.pedigree-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--pine);
  color: var(--cream);
  border-radius: 5px;
  padding: 24px 26px;
  text-decoration: none;
  border: 2px solid var(--pine);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pedigree-link:hover,
.pedigree-link:focus-visible {
  background: var(--pine-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.pedigree-link-text { display: block; }
.pedigree-link-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.pedigree-link-text span { font-size: 0.86rem; color: #c8c2b0; line-height: 1.6; }
.pedigree-link-arrow {
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .pedigree-link { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* sire / dam under the dog's name */
.card-parents {
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.card-parents .label {
  color: var(--pine);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}
