/* ============================================================
   X'CALIBER BEAGLES — heritage kennel rebuild (Mode B+)
   Brand DNA preserved: near-black ground · their red owns the CTA
   · gold accents · cream text. Fraunces display / Inter body.
   ============================================================ */

:root {
  --ground: #0f0c09;
  --ground-2: #161009;
  --panel: #1d1610;
  --saddle: #3a2a1a;
  --cream: #f4ede2;
  --cream-dim: #cfc4b2;
  --gold: #c9a04e;
  --gold-soft: rgba(201, 160, 78, 0.35);
  --red: #e0212a;
  --red-deep: #b8161e;
  --hairline: rgba(201, 160, 78, 0.22);
  --hairline-soft: rgba(244, 237, 226, 0.1);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

em { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }

.btn-gold {
  border-color: var(--gold-soft);
  color: var(--gold);
  background: transparent;
}
.btn-gold:hover { border-color: var(--gold); color: var(--cream); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  background: rgba(15, 12, 9, 0.55);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(15, 12, 9, 0.93);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.header-logo { flex: 0 0 auto; }
.header-logo img { height: 44px; width: auto; }

.header-nav {
  display: flex;
  gap: 1.45rem;
  margin-left: auto;
  align-items: center;
}
.header-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--gold); }

.header-phone {
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }

/* mobile nav (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block; height: 2px; width: 26px;
  margin: 0 auto;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 1023px) {
  .header-nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(15, 12, 9, 0.98);
    border-bottom: 1px solid var(--hairline);
    padding: 0.4rem 0 1rem;
    display: none;
  }
  .header-nav a { padding: 0.8rem 1.6rem; font-size: 1rem; width: 100%; }
  .nav-toggle:checked ~ .header-nav { display: flex; }
  .nav-toggle-label { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-phone { display: none; }
}

/* ---------- shared section bones ---------- */

main { display: block; }
section { padding: 6.5rem 1.4rem; }
.wrap { max-width: 76rem; margin: 0 auto; }
.wrap-narrow { max-width: 52rem; margin: 0 auto; }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
  max-width: 24ch;
}

.lede { color: var(--cream-dim); max-width: 44rem; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: 9.5rem 1.4rem 4rem;
  background:
    radial-gradient(120% 90% at 50% 0%, #241a10 0%, var(--ground) 62%);
  border-bottom: 1px solid var(--hairline-soft);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.page-hero .lede { margin-top: 1.2rem; }

/* ---------- home hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 1.4rem 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 75% 10%, #2c1f12 0%, rgba(15,12,9,0) 55%),
    radial-gradient(120% 90% at 20% 100%, #1a120a 0%, var(--ground) 60%);
}

.hero-dusk {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-dusk canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-dusk canvas.is-live { opacity: 1; }

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero h1 .gold { color: var(--gold); }

.h-line { display: block; overflow: hidden; }
.h-line-inner { display: block; }

.hero-sub { color: var(--cream-dim); max-width: 34rem; margin-bottom: 2.2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.8rem; }

.hero-photo {
  position: relative;
}
.hero-photo img {
  border-radius: 0.5rem;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 0.5rem;
  z-index: -1;
}

/* trust chips */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream);
  background: rgba(244, 237, 226, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 2rem;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
}
.chip .star { color: var(--gold); }
a.chip:hover { border-color: var(--gold); }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.pup-card {
  background: var(--panel);
  border: 1px solid var(--hairline-soft);
  border-radius: 0.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pup-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.pup-card img { aspect-ratio: 1 / 1.1; object-fit: cover; width: 100%; }
.pup-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.pup-card-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.pup-card-body p { font-size: 0.92rem; color: var(--cream-dim); }
.price-tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* dog profile rows */
.dog-profile {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 3fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.6rem 0;
  border-top: 1px solid var(--hairline-soft);
}
.dog-profile:last-child { border-bottom: 1px solid var(--hairline-soft); }
.dog-profile figure { position: relative; }
.dog-profile img {
  border-radius: 0.5rem;
  border: 1px solid var(--hairline);
  background: var(--panel);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.dog-profile h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0.8rem;
}
.dog-profile .dog-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.dog-profile p { color: var(--cream-dim); }

/* litter cards */
.litter-card {
  background: var(--panel);
  border: 1px solid var(--hairline-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1.8rem 1.8rem 1.6rem;
  margin-top: 1.4rem;
}
.litter-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.litter-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.litter-card p { color: var(--cream-dim); font-size: 0.97rem; }
.litter-card .btn { margin-top: 1.2rem; }

/* ---------- policy list ---------- */

.policy-list { list-style: none; margin-top: 2rem; }
.policy-list li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--cream-dim);
}
.policy-list li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 1.1rem;
  color: var(--gold);
  font-size: 0.8rem;
}
.policy-list li strong { color: var(--cream); }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--hairline-soft);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.gallery-grid img:hover { transform: scale(1.02); border-color: var(--gold-soft); }
.gallery-grid-large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery-grid-large img { aspect-ratio: 4 / 5; }

/* dog medallions (their portrait assets are circular crops — lean in) */
.medallion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.6rem 1rem;
  margin-top: 2.6rem;
}
.medallion {
  text-align: center;
  text-decoration: none;
}
.medallion img {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.medallion:hover img { border-color: var(--gold); transform: translateY(-3px); }
.medallion span {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-dim);
}
.medallion:hover span { color: var(--gold); }

/* ---------- review band ---------- */

.review-band { text-align: center; background: var(--ground-2); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.review-stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 0.3em; margin-bottom: 1.4rem; }
.review-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 auto 1.6rem;
}
.review-cite {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.review-band .chip { margin-top: 1.8rem; }

/* ---------- contact / form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2.6rem;
}

.contact-facts { list-style: none; }
.contact-facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.97rem;
}
.contact-facts li span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
}
.contact-facts a { text-decoration: none; font-weight: 600; }
.contact-facts a:hover { color: var(--gold); }

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(244, 237, 226, 0.05);
  border: 1px solid var(--hairline-soft);
  border-radius: 0.35rem;
  padding: 0.8rem 0.95rem;
}
.inquiry-form select option { color: #1a1a1a; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  border-color: var(--gold); outline: none;
}
.form-note { font-size: 0.85rem; color: var(--cream-dim); margin-top: 0.9rem; }

/* ---------- footer ---------- */

.site-footer {
  background: #0a0805;
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 1.4rem 7rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
}
.footer-grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.footer-grid a { color: var(--cream-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-legal {
  max-width: 76rem;
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.78rem;
  color: rgba(207, 196, 178, 0.55);
}

/* ---------- sticky mobile bar ---------- */

.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 12, 9, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
}
.sticky-bar .btn { flex: 1; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero { min-height: 0; padding-top: 7.5rem; }
  .hero-photo { max-width: 26rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .dog-profile { grid-template-columns: 1fr; gap: 1.4rem; }
  .dog-profile figure { max-width: 20rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 768px) {
  section { padding: 4.5rem 1.25rem; }
  .page-hero { padding-top: 7.5rem; }
  .sticky-bar { display: flex; }
  .site-footer { padding-bottom: 8.5rem; }
}

/* ---------- motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
