/* =================================================================
 * Dream Goldens — site theme
 * Cream / warm-charcoal / soft gold. Elegant, calm, golden-retriever-y.
 * ================================================================= */

:root {
  /* Brand */
  --brand-ink:        #2A1D0E;   /* deep walnut for body text + headers */
  --brand-ink-soft:   #4A3825;
  --brand-gold:       #B98944;   /* warm gold for accents */
  --brand-gold-deep:  #8E6326;
  --brand-cream:      #FAF3E5;   /* page background tint */
  --brand-cream-soft: #F6EFE2;
  --brand-line:       #E5D8BD;   /* hairlines, dividers */
  --brand-mist:       #FFFDF7;   /* card surface */

  /* Neutrals */
  --ink:        #261A0C;
  --ink-soft:   #5C4A33;
  --muted:      #8A7B62;
  --line:       #ECE0C5;
  --bg:         #FFFDF7;
  --surface:    #FFFFFF;
  --surface-2:  #FAF3E5;

  /* Accents */
  --accent:     var(--brand-gold);
  --accent-ink: #FFFFFF;
  --warn:       #B45309;
  --error:      #9B1C1C;
  --error-bg:   #FDECEA;

  /* Type */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max:   1180px;
  --rad-s: 8px;
  --rad-m: 14px;
  --rad-l: 22px;
  --shadow-s: 0 2px 8px rgba(40, 24, 8, .06);
  --shadow-m: 0 6px 22px rgba(40, 24, 8, .10);
  --shadow-l: 0 18px 48px rgba(40, 24, 8, .15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--brand-cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-gold-deep); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Skip link */
.skip {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 14px;
  background: var(--brand-ink); color: #fff; border-radius: 6px; z-index: 9999;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brand-ink);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.18;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
.eyebrow {
  display: inline-block;
  font: 600 11px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin: 0 0 14px;
}
.lede {
  font: 400 1.15rem/1.65 var(--sans);
  color: var(--ink-soft);
  max-width: 60ch;
}
.muted { color: var(--muted); }

/* Layout helpers */
.wrap     { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section  { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--brand-cream-soft); }
.section--ink { background: var(--brand-ink); color: #F4E9D2; }
.section--ink h1, .section--ink h2 { color: #FAF3E5; }
.section--ink .lede { color: #D9C9A8; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 229, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--brand-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 14px 22px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--brand-ink);
}
.brand img { height: 44px; width: auto; }
.brand:hover { text-decoration: none; }
.brand-text {
  font: 500 1.18rem/1 var(--serif);
  letter-spacing: .01em;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font: 500 .95rem/1 var(--sans);
  color: var(--brand-ink);
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--brand-gold-deep); text-decoration: none; }
.nav-links .is-active { color: var(--brand-gold-deep); }

/* `.nav-links a` has specificity (0,1,1) and would override .nav-cta (0,1,0)
   — qualify with the element selector so the white text actually sticks. */
.nav-links a.nav-cta {
  background: var(--brand-ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
}
.nav-links a.nav-cta:hover {
  background: var(--brand-gold-deep);
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--brand-ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--brand-cream);
    border-bottom: 1px solid var(--brand-line);
    padding: 8px 0 14px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links .nav-cta {
    display: block; padding: 14px 22px; width: 100%;
    border-radius: 0; background: transparent; color: var(--brand-ink);
    font-size: 1.05rem;
  }
  .nav-links .nav-cta {
    margin-top: 6px; background: var(--brand-ink); color: #fff; text-align: center;
    border-radius: 6px; width: calc(100% - 44px); margin-left: 22px;
  }
}

/* Buttons — explicit properties + appearance:none so <button> doesn't get
   stuck with native UA styling that hides our text. */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn--primary { background: var(--brand-ink); color: #ffffff; }
.btn--primary:hover { background: var(--brand-gold-deep); color: #ffffff; text-decoration: none; }
.btn--gold    { background: var(--brand-gold); color: #ffffff; }
.btn--gold:hover { background: var(--brand-gold-deep); color: #ffffff; text-decoration: none; }
.btn--ghost   {
  background: transparent;
  color: var(--brand-ink);
  border: 1.5px solid var(--brand-ink);
  padding: 12px 24px;
}
.btn--ghost:hover { background: var(--brand-ink); color: #ffffff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
button.btn { font-family: var(--sans); }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(620px, 86vh, 880px);
  display: grid; place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 22px 96px;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, #3B2A18 0%, #5B3A1E 100%);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover;
  background-position: center center;     /* dogs framed in the middle */
  opacity: 1;
}
/* Subtle scrim — only darkens behind the headline area so text stays
   readable, but most of the photo comes through. */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,12,4,0) 0%, rgba(20,12,4,0) 35%, rgba(20,12,4,.55) 100%),
    radial-gradient(ellipse at center 70%, rgba(20,12,4,.45) 0%, rgba(20,12,4,0) 60%);
}
.hero-inner { max-width: 800px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4);
  margin-bottom: 18px;
}
.hero p {
  font: 400 1.2rem/1.55 var(--sans);
  color: #F4E9D2;
  max-width: 60ch;
  margin: 0 auto 32px;
  text-shadow: 0 1px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.35);
}
.hero .btn--primary { background: var(--brand-gold); }
.hero .btn--primary:hover { background: #fff; color: var(--brand-ink); }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .hero-eyebrow {
  display: inline-block;
  font: 700 11px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
}

/* Section heading shared */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--brand-gold-deep); }

/* Card grid (dogs, litters) */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border-radius: var(--rad-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.card-photo {
  aspect-ratio: 4 / 3;
  background: var(--brand-cream-soft) center / cover no-repeat;
  position: relative;
}
.card-photo--portrait { aspect-ratio: 3 / 4; }
.card-photo .badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(40,24,8,.85);
  color: #FAF3E5;
  font: 600 11px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-photo .badge--gold { background: var(--brand-gold); color: #fff; }
.card-photo .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--brand-gold-deep);
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--brand-cream) 0%, var(--brand-cream-soft) 100%);
}
.card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.card-body h3 { margin-bottom: 6px; }
.card-meta {
  font: 600 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: 14px;
}
.card-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: .98rem; }
.card-foot { margin-top: auto; }

/* Empty state */
.empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--rad-m);
  color: var(--muted);
  border: 1px dashed var(--line);
}
.empty p { margin: 0; }

/* Promises (3-up, with photo) */
.promises {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.promise {
  background: var(--surface);
  border-radius: var(--rad-m);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.promise:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.promise-photo {
  aspect-ratio: 16 / 10;
  background: var(--brand-cream-soft) center / cover no-repeat;
}
.promise-body { padding: 26px 28px 32px; }
.promise-body h3 { margin-bottom: 10px; }
.promise-body p { color: var(--ink-soft); margin: 0; }
/* Legacy icon block (still supported in case anyone uses it) */
.promise .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-deep) 100%);
  color: #fff;
  margin-bottom: 18px;
  font-size: 24px;
}

/* "Just couches" split layout — text + photo side-by-side */
.couches-wrap {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.couches-wrap .eyebrow { display: inline-block; }
.couches-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--rad-m);
  box-shadow: var(--shadow-m);
}
@media (max-width: 760px) {
  .couches-wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; }
}

/* Litter card (parents pair) */
.litter-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border-radius: var(--rad-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.litter-card .pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: linear-gradient(135deg, var(--brand-cream-soft) 0%, var(--brand-cream) 100%);
}
.litter-card .pair .parent {
  padding: 20px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.litter-card .pair .parent img {
  width: 130px; height: 130px; object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brand-gold);
  box-shadow: var(--shadow-s);
}
.litter-card .pair .parent .placeholder {
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  font: 500 2.4rem/1 var(--serif);
}
.litter-card .pair .parent strong {
  font: 500 1.2rem/1.2 var(--serif); color: var(--brand-ink);
}
.litter-card .pair .parent .role {
  font: 600 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}
.litter-card .pair .x {
  display: grid; place-items: center;
  font: 500 1.6rem/1 var(--serif);
  color: var(--brand-gold);
  padding: 0 12px;
}
.litter-card .body { padding: 28px 32px 32px; }
.litter-card h3 { margin-bottom: 8px; }
.litter-card .meta {
  font: 600 11px/1.5 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: 14px;
}
.litter-card .meta .status {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--brand-gold); color: #fff; margin-right: 8px;
  letter-spacing: .12em;
}
.litter-card .meta .status--planned    { background: #6B7280; }
.litter-card .meta .status--expecting  { background: var(--brand-gold-deep); }
.litter-card .meta .status--born       { background: #B45309; }
.litter-card .meta .status--available  { background: #2F6F3E; }
.litter-card .meta .status--sold_out   { background: #4A3825; }
.litter-card .meta .status--past       { background: #4A3825; }
.litter-card .puppy-strip {
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-top: 18px;
}
.litter-card .puppy-strip img {
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-s);
}

@media (min-width: 720px) {
  .litter-card { grid-template-columns: 380px 1fr; }
  .litter-card .pair { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; }
  .litter-card .pair .x { padding: 8px 0; }
}

/* Dog detail (used on /our-dogs/) */
.dog-detail {
  background: var(--surface);
  border-radius: var(--rad-m);
  padding: 28px 32px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  display: none;
}
.dog-card.is-open .dog-detail { display: block; }
.dog-detail h4 { margin: 18px 0 8px; }
.dog-detail .gallery {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 14px;
}
.dog-detail .gallery img {
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; cursor: zoom-in;
  box-shadow: var(--shadow-s);
}

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form > div { display: grid; gap: 6px; }
.form label {
  font: 600 .9rem/1.2 var(--sans);
  color: var(--brand-ink);
}
.form input, .form textarea, .form select {
  font: 400 1rem/1.4 var(--sans);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--rad-s);
  background: #fff;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(185, 137, 68, .18);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .error-banner {
  margin-bottom: 4px;
  padding: 12px 16px;
  border-radius: var(--rad-s);
  background: var(--error-bg);
  color: var(--error);
  font-size: .95rem;
}

/* Footer */
.site-footer {
  background: var(--brand-ink);
  color: #D9C9A8;
  padding: 56px 0 40px;
  margin-top: 72px;
}
.site-footer a { color: #E5C964; }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: #FAF3E5;
  font: 600 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer .copy {
  border-top: 1px solid #4A3825;
  margin-top: 40px; padding-top: 22px;
  font-size: .85rem; color: #B8A788;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.site-footer .exioite-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer .exioite-credit a {
  display: inline-flex;
  align-items: center;
}
.site-footer .exioite-credit img {
  height: 40px;
  width: auto;
  vertical-align: middle;
  opacity: .92;
}
.site-footer .exioite-credit a:hover img { opacity: 1; }
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* Gallery strip */
.gallery-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 28px;
}
.gallery-strip img {
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--rad-m);
  box-shadow: var(--shadow-s);
}

/* Pretty body copy block (used on About / philosophy) */
.prose {
  max-width: 70ch;
  font-size: 1.06rem;
  color: var(--ink);
}
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* Status pill (used inline in body copy) */
.pill {
  display: inline-block;
  font: 600 11px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-cream-soft);
  color: var(--brand-gold-deep);
  border: 1px solid var(--brand-line);
}

/* Anchor offset (sticky header) */
:target { scroll-margin-top: 90px; }

/* Loading state */
.is-loading {
  position: relative; min-height: 120px;
  background: linear-gradient(90deg, var(--brand-cream-soft) 0%, var(--brand-cream) 50%, var(--brand-cream-soft) 100%);
  background-size: 200% 100%;
  border-radius: var(--rad-m);
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
