﻿/* ================================================================
  MATEJ'S ANGELS KENNEL. Royal Design System
   Palette: Deep Navy · Royal Gold · Ivory Cream
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- VARIABLES ---- */
:root {
  --navy:          #0D1B2A;
  --navy-mid:      #162236;
  --navy-light:    #1E3050;
  --navy-card:     #12243a;
  --gold:          #D4AF37;
  --gold-light:    #F0D878;
  --gold-dark:     #A8880A;
  --gold-muted:    rgba(212,175,55,0.28);
  --gold-glow:     rgba(212,175,55,0.18);
  --cream:         #FAF6F0;
  --cream-dark:    #EDE5D5;
  --cream-muted:   #C8BFAF;
  --white:         #FFFFFF;
  --text-dark:     #1C1C1C;
  --text-light:    #FAF6F0;
  --text-muted:    #7A90A8;
  --red-memoriam:  #8B1A1A;
  --green-clear:   #4CAF50;
  --orange-carrier:#FF9800;
  --red-affected:  #f44336;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg:     0 16px 56px rgba(0,0,0,0.5);
  --shadow-gold:   0 8px 32px rgba(212,175,55,0.25);
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-width:     1200px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--navy);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.22;
  color: var(--gold);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.72; color: var(--cream-dark); }
strong { color: var(--cream); font-weight: 600; }
em { font-style: italic; }

.text-gold    { color: var(--gold) !important; }
.text-cream   { color: var(--cream) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-center  { text-align: center; }
.text-dark-bg { color: var(--text-dark); }
.serif        { font-family: var(--font-serif); }
.italic       { font-style: italic; }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.section        { padding: 5.5rem 0; }
.section-sm     { padding: 3.5rem 0; }
.section-light  { background: var(--cream); color: var(--text-dark); }
.section-mid    { background: var(--navy-mid); }

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 { color: var(--navy); }
.section-light p   { color: #3a4f62; }
.section-light .text-muted { color: #7A8E9A; }

/* ---- DECORATIVE DIVIDER ---- */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem auto;
  max-width: 320px;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.gold-divider span {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.75rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.section-light .section-header .subtitle { color: #7A8E9A; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(13, 27, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-muted);
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--gold-muted);
}
.nav-logo-fallback {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--navy-mid);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.2;
}
.nav-brand small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--cream-muted);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-glow);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
  justify-content: flex-end;
}
.lang-switch {
  display: flex;
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-switch a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 15px;
  transition: var(--transition);
  min-width: 46px;
  text-align: center;
}
.lang-switch a:hover { color: var(--cream); }
.lang-switch a.active {
  background: var(--gold);
  color: var(--navy);
}
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.page-content { padding-top: 72px; }

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,27,42,0.55) 0%,
    rgba(13,27,42,0.82) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gold-muted);
  padding-bottom: 0.5rem;
}
.hero-content h1 {
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-content h1 em { color: var(--gold); }
.hero-content p {
  font-size: 1.12rem;
  color: rgba(250,246,240,0.82);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

/* ---- INDEX LANDING ---- */
.index-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 2rem;
}
.index-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(212,175,55,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.index-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.index-logo-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 0.9s ease-out both;
}
.index-logo-wrap img {
  width: clamp(180px, 32vw, 320px);
  height: clamp(180px, 32vw, 320px);
  object-fit: contain;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 8px 40px rgba(212,175,55,0.35));
  border-radius: 50%;
}
.logo-placeholder-large {
  width: clamp(180px, 32vw, 320px);
  height: clamp(180px, 32vw, 320px);
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 0 80px rgba(212,175,55,0.2), inset 0 0 40px rgba(212,175,55,0.05);
}
.logo-placeholder-large span {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  font-style: italic;
}
.index-kennel-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.index-kennel-name em { color: var(--gold); font-style: italic; }
.index-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.lang-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.1s 0.2s ease-out both;
}
.lang-card {
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  padding: 1.75rem 2.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  width: 210px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lang-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  background: var(--navy-light);
}
.lang-card-flag { font-size: 2.75rem; margin-bottom: 0.6rem; line-height: 1; }
.lang-card-label {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.2rem;
}
.lang-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* ---- LANG POPUP OVERLAY ---- */
.lang-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13,27,42,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.4s ease-out both;
}
.lang-popup-overlay.hiding {
  animation: fadeOut 0.35s ease-in forwards;
}
.lang-popup {
  background: var(--navy);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem 2.25rem;
  text-align: center;
  max-width: 380px;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(212,175,55,0.08);
  position: relative;
  animation: fadeInUp 0.45s 0.05s ease-out both;
}
.lang-popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.lang-popup .index-logo-wrap {
  animation: none;
}
.lang-popup .index-logo-wrap img,
.lang-popup .logo-placeholder-large {
  width: 280px;
  height: 280px;
  margin-bottom: 1rem;
}
.lang-popup .index-kennel-name {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}
.lang-popup .index-tagline {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.lang-popup .gold-divider {
  margin: 0.9rem auto;
}
.lang-popup .lang-cards {
  animation: none;
  gap: 0.75rem;
}
.lang-popup .lang-card {
  width: 130px;
  padding: 1rem 0.75rem;
}
.lang-popup .lang-card-flag {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.lang-popup .lang-card-label {
  font-size: 1rem;
}
.lang-popup .lang-card-sub {
  font-size: 0.7rem;
}
.lang-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid var(--gold-muted);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-popup-close:hover {
  background: var(--navy-mid);
  border-color: var(--gold);
  color: var(--gold);
}
.lang-popup-close--page {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  text-decoration: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.85rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(250,246,240,0.25);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(250,246,240,0.08); }
.btn-sm { padding: 0.45rem 1.2rem; font-size: 0.8rem; }
.btn-lg { padding: 0.95rem 2.25rem; font-size: 0.96rem; }

/* ---- CARD GRIDS ---- */
.cards-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.cards-grid-2  { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.75rem; }
.cards-grid-4  { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }

.breed-feature-title {
  background: var(--navy-light);
  border-bottom: 2px solid var(--gold);
  min-height: 136px;
  padding: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.breed-feature-title h3 {
  color: var(--gold);
  font-size: 1.85rem;
  line-height: 1.22;
  margin: 0;
  transition: color 0.3s ease;
}
.breed-feature-title:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.breed-feature-title:hover h3 {
  color: var(--navy);
}

/* ---- DOG CARD ---- */
.dog-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
}
.dog-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.dog-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.dog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.dog-card-body { padding: 1.2rem 1.35rem 1.35rem; }
.dog-card-breed {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.dog-card-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.dog-card-call {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.dog-card-call::before {
  content: 'a.k.a.\00a0';
  font-style: normal;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.7;
}
.dog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ---- IN MEMORIAM RIBBON ---- */
.ribbon-wrapper { position: relative; overflow: hidden; }
.ribbon-wrapper.memoriam::after {
  content: 'In Memoriam';
  position: absolute;
  top: 24px;
  left: -30px;
  width: 148px;
  background: var(--red-memoriam);
  color: #fff;
  text-align: center;
  padding: 7px 0;
  transform: rotate(-45deg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* ---- LITTER CARD ---- */
.litter-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
}
.litter-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.litter-card-badge {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  text-align: center;
  padding: 2.25rem 1rem;
  position: relative;
}
.litter-card-badge::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 12px;
  background: var(--navy-card);
  clip-path: ellipse(52% 100% at 50% 100%);
}
.litter-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.litter-word {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.75;
  display: block;
  margin-top: 0.25rem;
  margin-left: 0.5rem;
}
.litter-card-body { padding: 1.3rem 1.35rem 1.4rem; }
.litter-card-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.litter-card-breed {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.litter-card-count { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.litter-card-parents { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ---- LITTERS ZIGZAG TIMELINE ---- */
.litters-timeline {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0;
}
.litters-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-muted) 6%, var(--gold-muted) 94%, transparent);
  pointer-events: none;
}
.tl-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.tl-node {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212,175,55,0.22), 0 0 16px rgba(212,175,55,0.4);
  flex-shrink: 0;
}
.tl-space { min-height: 1px; }
@media (max-width: 680px) {
  .litters-timeline::before { left: 24px; transform: none; }
  .tl-row {
    grid-template-columns: 48px 1fr;
  }
  .tl-row.tl-left .tl-space,
  .tl-row.tl-right .tl-space { display: none; }
  .tl-row.tl-left,
  .tl-row.tl-right {
    grid-template-columns: 48px 1fr;
  }
  .tl-row.tl-left .tl-node,
  .tl-row.tl-right .tl-node {
    grid-column: 1; grid-row: 1;
    align-self: start; padding-top: 1.4rem;
  }
  .tl-row.tl-left .tl-card,
  .tl-row.tl-right .tl-card {
    grid-column: 2; grid-row: 1;
  }
}

/* ---- CHRONOLOGY CARD ---- */
.chron-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem 1.5rem;
  transition: var(--transition);
}
.chron-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.chron-year {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.chron-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.chron-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.chron-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.chron-card-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: block;
}

/* ---- BREED SECTION HEADER ---- */
.breed-section {
  margin-bottom: 4rem;
}
.breed-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.breed-heading-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-muted), transparent);
}
.breed-heading-line.right {
  background: linear-gradient(90deg, transparent, var(--gold-muted));
}
.breed-heading h3 { margin: 0; white-space: nowrap; }

/* ---- PARENTS SECTION (Litter page) ---- */
.parents-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
}
.parent-card { text-align: center; }
.parent-img-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  margin: 0 auto 1rem;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.parent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.parent-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.parent-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.parents-connector { font-size: 2rem; color: var(--red-memoriam); text-align: center; }

/* ---- PUPPY GRID ---- */
.puppy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.puppy-card {
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.puppy-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.puppy-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.puppy-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.puppy-card-body { padding: 0.85rem 1rem 1rem; }
.puppy-card-name { font-family: var(--font-serif); font-size: 1rem; color: var(--cream); margin-bottom: 0.2rem; }
.puppy-card-info { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.badge-status {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
}
.status-available { background: rgba(76,175,80,0.18); color: #81c784; border: 1px solid rgba(76,175,80,0.4); }
.status-reserved  { background: rgba(255,152,0,0.18); color: #ffb74d; border: 1px solid rgba(255,152,0,0.4); }
.status-sold      { background: rgba(120,120,120,0.18); color: #aaa; border: 1px solid rgba(120,120,120,0.4); }
.color-orange     { background: rgba(255,140,0,0.15); color: #e8901a; border: 1px solid rgba(255,140,0,0.4); }
.color-dark       { background: rgba(30,30,30,0.35); color: #bbb; border: 1px solid rgba(80,80,80,0.5); }
.color-unknown    { background: rgba(120,120,120,0.12); color: #888; border: 1px solid rgba(120,120,120,0.3); font-style: italic; }

/* ---- GALLERY GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.6rem;
}
.gallery-grid.masonry {
  columns: 4;
  column-gap: 0.6rem;
  display: block;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--navy-mid);
  display: block;
}
.gallery-grid.masonry .gallery-item { break-inside: avoid; margin-bottom: 0.6rem; aspect-ratio: unset; }
.gallery-grid.masonry .gallery-item img { height: auto; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { background: rgba(13,27,42,0.42); }
.gallery-overlay-icon {
  color: var(--gold);
  opacity: 0;
  transition: var(--transition);
  font-size: 2.2rem;
  line-height: 1;
}
.gallery-item:hover .gallery-overlay-icon { opacity: 1; transform: scale(1.1); }
.gallery-note {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}
.gallery-note strong { color: var(--gold); }

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 10, 18, 0.95);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-muted);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  color: var(--cream-muted);
  font-style: italic;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 1rem; right: 1.25rem;
  color: var(--cream-muted);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10000;
  background: none;
  border: none;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,27,42,0.75);
  border: 1px solid var(--gold-muted);
  color: var(--gold);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
  z-index: 10000;
}
.lightbox-btn:hover { background: var(--gold-muted); }
#lb-prev { left: 0.75rem; }
#lb-next { right: 0.75rem; }

/* ---- DOG PROFILE PAGE ---- */
.dog-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: start;
  padding: 3.5rem 0;
}
.dog-profile-sidebar { position: sticky; top: 88px; }
/* Prevent the wide pedigree tree from expanding the grid column beyond 1fr */
.dog-profile-grid > div { min-width: 0; }
.dog-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-muted);
  aspect-ratio: 3/4;
  background: var(--navy-light);
  margin-bottom: 1.5rem;
}
.dog-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dog-img-frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.dog-img-frame.memoriam::after {
  content: 'In Memoriam';
  position: absolute;
  top: 30px;
  left: -35px;
  width: 175px;
  background: var(--red-memoriam);
  color: #fff;
  text-align: center;
  padding: 9px 0;
  transform: rotate(-45deg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}
.dog-quick-stats { display: flex; flex-direction: column; gap: 0.6rem; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(212,175,55,0.1);
  gap: 1rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-key {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.stat-val {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--cream);
  text-align: right;
}

.dog-info-header { margin-bottom: 2rem; }
.dog-breed-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 0.28rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}
.dog-full-name {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 0.2rem;
}
.dog-call-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}
.dog-call-name::before {
  content: 'a.k.a.\00a0';
  font-style: normal;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.7;
}
.dog-tabs { margin-top: 2.5rem; }
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--gold-muted);
  margin-bottom: 2rem;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.85rem 1.5rem;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  letter-spacing: 0.2px;
}
.tab-btn:hover { color: var(--cream); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; overflow-x: hidden; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease-out; overflow-x: auto; }

/* ---- PEDIGREE SCROLL HINT ---- */
.ped-scroll-wrap { position: relative; }
.ped-scroll-hint {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72px;
  background: linear-gradient(to right, transparent, rgba(5, 10, 18, 0.78));
  pointer-events: none;
  transition: opacity 0.35s ease;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ---- PEDIGREE ---- */
.pedigree-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  table-layout: fixed;
  font-size: 0.88rem;
  margin-top: 1rem;
  min-width: 520px;
}
.pedigree-table th,
.pedigree-table td {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}
.pedigree-table th {
  background: var(--navy-mid);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--gold-muted);
}
.pedigree-table td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(212,175,55,0.12);
  color: var(--cream-dark);
  vertical-align: top;
}
.pedigree-table tr:nth-child(even) td { background: rgba(255,255,255,0.025); }
.pedigree-table tr:last-child td:first-child { border-bottom-left-radius: var(--radius-md); }
.pedigree-table tr:last-child td:last-child { border-bottom-right-radius: var(--radius-md); }
.pedigree-table tr:first-child th:first-child { border-top-left-radius: var(--radius-md); }
.pedigree-table tr:first-child th:last-child { border-top-right-radius: var(--radius-md); }
.pedigree-gen { font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.65rem; margin-top: 1.5rem; }
.pedigree-gen:first-child { margin-top: 0; }

/* ---- ACHIEVEMENTS ---- */
.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}
.achievement-item:last-child { border-bottom: none; }
.ach-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.ach-text { color: var(--cream-dark); font-size: 0.95rem; line-height: 1.5; }
.ach-text strong { color: var(--cream); display: block; }

/* ---- HEALTH ---- */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.health-card {
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  transition: var(--transition);
}
.health-card:hover { border-color: var(--gold); }
.health-test {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.health-result { font-family: var(--font-serif); font-size: 1rem; }
.health-result.clear    { color: var(--green-clear); }
.health-result.carrier  { color: var(--orange-carrier); }
.health-result.affected { color: var(--red-affected); }
.health-result.pending  { color: var(--text-muted); }
.health-date { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- MEMORIAM TRIBUTE ---- */
.memoriam-tribute {
  background: linear-gradient(135deg, rgba(139,26,26,0.15) 0%, rgba(139,26,26,0.05) 100%);
  border: 1px solid rgba(139,26,26,0.4);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  text-align: center;
}
.memoriam-tribute h3 { color: #ef9a9a; font-style: italic; margin-bottom: 0.5rem; }
.memoriam-tribute p { color: var(--cream-muted); font-size: 0.95rem; }
.memoriam-dates { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gold-muted); }
.faq-item:first-child { border-top: 1px solid var(--gold-muted); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover, .faq-q.open { color: var(--gold); }
.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  color: var(--gold);
}
.faq-q.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-a.open { max-height: 600px; padding-bottom: 1.25rem; }
.faq-a p { color: var(--cream-dark); }
.section-light .faq-item { border-color: rgba(13,27,42,0.15); }
.section-light .faq-q { color: var(--text-dark); }
.section-light .faq-q:hover, .section-light .faq-q.open { color: var(--navy); }
.section-light .faq-chevron { color: var(--navy); }
.section-light .faq-a p { color: #3a4f62; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; flex-wrap: wrap; }
.blog-card-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.blog-card-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  background: var(--gold-muted);
  color: var(--gold);
  text-transform: uppercase;
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.35;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: var(--gold); }
.blog-card-excerpt { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.blog-card-read { font-size: 0.8rem; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--gold-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text strong { color: var(--cream); font-size: 0.88rem; display: block; margin-bottom: 0.2rem; }
.contact-info-text span, .contact-info-text a { color: var(--text-muted); font-size: 0.88rem; }
.contact-info-text a:hover { color: var(--gold); }
.contact-form-box {
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  color: var(--cream);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.form-group textarea { min-height: 135px; resize: vertical; }
.form-group select option { background: var(--navy); color: var(--cream); }

/* ---- FOOTER ---- */
.footer {
  background: #070e18;
  border-top: 1px solid var(--gold-muted);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand .brand-name small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-top: 2px;
}
.footer-brand p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.2rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px;
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 0.55rem; font-size: 0.86rem; line-height: 1.5; color: var(--text-muted); }
.footer-col ul li a { color: inherit; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.12);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--cream-muted); }
.footer-bottom a { color: var(--gold); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.85rem 0 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--gold); }

/* ---- LITTER DETAIL HEADER ---- */
.litter-header {
  background: var(--navy-mid);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--gold-muted);
}
.litter-header-inner { display: flex; align-items: center; gap: 2.5rem; }
.litter-badge-large {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  flex-shrink: 0;
  min-width: 120px;
}
.litter-badge-large .big-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.litter-badge-large .big-word {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}
.litter-header-info { flex: 1; }
.litter-header-info h1 { color: var(--cream); margin-bottom: 0.5rem; }
.litter-header-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.litter-meta-item { font-size: 0.82rem; color: var(--text-muted); }
.litter-meta-item strong { color: var(--gold); display: block; font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 0.2rem; }

/* ---- ANIMATED KENNEL BACKGROUND PATTERN ---- */
/*
   Diagonal scrolling pattern with paw prints and bones.
  Icons are the same gold accent at very low opacity, barely visible and elegant.
   Tile size: 220px. Animation moves diagonally (right + up) for a seamless loop.
*/
.bg-kennel-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* SVG tile: one symmetric paw (top-left, tilted), two bones (randomly tilted) */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='rgb(212,175,55)'%3E%3Cg transform='translate(58,68) rotate(-15)'%3E%3Cellipse cx='0' cy='10' rx='17' ry='13'/%3E%3Ccircle cx='-14' cy='-8' r='6.5'/%3E%3Ccircle cx='-5' cy='-15' r='6.5'/%3E%3Ccircle cx='5' cy='-15' r='6.5'/%3E%3Ccircle cx='14' cy='-8' r='6.5'/%3E%3C/g%3E%3Cg transform='translate(162,92) rotate(35)'%3E%3Ccircle cx='-22' cy='-6' r='7'/%3E%3Ccircle cx='-22' cy='6' r='7'/%3E%3Ccircle cx='22' cy='-6' r='7'/%3E%3Ccircle cx='22' cy='6' r='7'/%3E%3Crect x='-22' y='-6' width='44' height='12' rx='3'/%3E%3C/g%3E%3Cg transform='translate(72,172) rotate(-22)'%3E%3Ccircle cx='-22' cy='-6' r='7'/%3E%3Ccircle cx='-22' cy='6' r='7'/%3E%3Ccircle cx='22' cy='-6' r='7'/%3E%3Ccircle cx='22' cy='6' r='7'/%3E%3Crect x='-22' y='-6' width='44' height='12' rx='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.052;
  animation: bgKennelDrift 38s linear infinite;
}

@keyframes bgKennelDrift {
  from { background-position: 0 0; }
  to   { background-position: 220px -220px; }
}

/* Ensure page content stays above the background pattern */
.page-content {
  position: relative;
  z-index: 1;
}
.footer {
  position: relative;
  z-index: 1;
}

/* ---- GALLERY DATE SEPARATOR ---- */
.gallery-date-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
}
.gallery-date-sep::before,
.gallery-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted));
}
.gallery-date-sep::after {
  background: linear-gradient(90deg, var(--gold-muted), transparent);
}
.gallery-date-sep:first-child { margin-top: 0; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
[data-anim] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-anim].in-view { opacity: 1; transform: translateY(0); }

/* ---- UTILITY ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.inline-flex { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .dog-profile-grid { grid-template-columns: 300px 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(9,19,31,0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--gold-muted);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0.1rem 0.75rem;
    white-space: normal;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--gold-glow);
    color: var(--gold);
  }
  .nav-right {
    gap: 0.85rem;
    margin-left: auto;
  }
  .lang-switch { padding: 3px 0.45rem; }
  .lang-switch a { padding: 0.2rem 0.4rem; }
  .hamburger { display: flex; padding: 10px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .parents-row { grid-template-columns: 1fr; }
  .parents-connector { font-size: 2.5rem; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .nav-logo img, .nav-logo-fallback { height: 38px; width: 38px; }
  .nav-brand { font-size: 0.97rem; }
  .nav-brand small { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Collapse inline 2-column grids throughout HTML pages */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Collapse inline 2-column grid with larger gap (about, contact etc.) */
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .cards-grid-2 { grid-template-columns: 1fr !important; }

  .dog-profile-grid { grid-template-columns: 1fr; }
  .dog-profile-sidebar { position: static; }
  .dog-img-frame { max-width: 300px; margin: 0 auto 1.5rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer { padding: 3rem 0 1.5rem; }

  .litter-header-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .health-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content { padding: 3rem 1.25rem; }
  .hero-content p { font-size: 1rem; }

  .contact-form-box { padding: 1.5rem 1.25rem; }

  .pedigree-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .pedigree-wrapper .pedigree-table { min-width: 560px; }

  .memoriam-tribute { padding: 1.5rem 1.25rem; }

  .breed-heading { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }

  .navbar { padding: 0 1rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .health-grid { grid-template-columns: 1fr 1fr; }

  .hero-content { padding: 2.5rem 1rem; }

  .dog-img-frame { max-width: 260px; }
  .parent-img-wrap { width: 130px; height: 130px; }

  .litter-badge-large { padding: 1rem 1.5rem; }
  .litter-badge-large .big-letter { font-size: 2.8rem; }

  .pedigree-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 420px) {
  .lang-cards { flex-direction: column; align-items: center; }
  .lang-card { width: 100%; max-width: 280px; padding: 1.4rem 2rem; }
  .lang-popup .lang-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
  .lang-popup .lang-card { width: 130px; max-width: none; padding: 1rem 0.75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { white-space: normal; text-align: center; }
  .footer-grid { gap: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ================================================================
   QoL ENHANCEMENTS
   ================================================================ */

/* ---- BACK TO TOP BUTTON ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  border: none;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ---- COPY EMAIL BUTTON ---- */
.copy-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.15rem 0.3rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
  vertical-align: middle;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
}
.copy-email-btn:hover { color: var(--gold); background: var(--gold-glow); }

/* ---- COPY TOAST ---- */
.copy-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--navy-mid);
  border: 1px solid var(--gold-muted);
  color: var(--cream);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.copy-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- WHATSAPP LINK ---- */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.82rem;
  color: #25D366;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.wa-link:hover { opacity: 0.75; }

/* ---- LITTER TABS: YOUTUBE GRID ---- */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.yt-embed {
  position: relative;
  padding-top: 56.25%;
  background: var(--navy-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.yt-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.where-now-placeholder {
  padding: 3rem 0;
  text-align: center;
}
.where-now-placeholder p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.where-now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.where-now-card {
  background: var(--navy-light);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.where-now-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.where-now-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}
.where-now-card-no-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
}
.where-now-card-body {
  padding: 0.75rem 1rem 1rem;
}
.where-now-card-name {
  font-weight: 700;
  color: var(--cream);
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}
.where-now-card-loc {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.where-now-card-date {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
}
.where-now-stayed {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
