/* ============================================
   HONEYHILLS CORGI - Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #866246;
  --color-primary-dark: #5b4331;
  --color-accent: #526f62;
  --color-dark: #24211e;
  --color-text: #4d4842;
  --color-text-light: #756f68;
  --color-bg: #f6f3ed;
  --color-bg-alt: #eee8df;
  --color-white: #ffffff;
  --color-card: #fffdf9;
  --color-line: #ded6ca;
  --color-footer-bg: #181715;
  --color-footer-text: #d8d1c7;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 18px 45px rgba(48, 39, 31, 0.08);
  --shadow-hover: 0 24px 60px rgba(48, 39, 31, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --max-width: 1180px;
  --header-height: 126px;
  --transition: 0.24s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition); }
ul { list-style: none; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(91, 67, 49, 0.14);
  box-shadow: 0 10px 28px rgba(48, 39, 31, 0.05);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-logo h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-dark);
}

.site-logo h1 a { color: inherit; }

.site-logo .tagline {
  margin-top: 5px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text);
}

.site-logo .values {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---- NAV ---- */
.main-nav { padding: 14px 0 13px; }

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
  border-color: rgba(134, 98, 70, 0.26);
  background: rgba(134, 98, 70, 0.07);
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(91, 67, 49, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero,
.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-dark);
}

.hero { height: clamp(260px, 42vw, 500px); }
.page-hero { height: clamp(240px, 32vw, 360px); display: flex; align-items: center; justify-content: center; }

.hero img,
.page-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(24, 23, 21, 0.32);
}

.page-hero h2 {
  position: relative;
  z-index: 2;
  max-width: min(900px, calc(100% - 40px));
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.36);
  letter-spacing: 0;
}

/* ---- SECTIONS ---- */
.section-bg,
.section-plain {
  background: var(--color-bg);
  padding: 84px 24px;
}

.section-tight-top { padding-top: 0; }
.section-card-offset { margin-top: 40px; }

.content-card {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(32px, 5.5vw, 64px);
  border: 1px solid rgba(91, 67, 49, 0.12);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.section-title {
  margin-bottom: 36px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}

.section-subtitle {
  margin-bottom: 22px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  text-align: center;
  letter-spacing: 0;
}

.section-divider {
  width: 86px;
  height: 2px;
  margin: 0 auto 32px;
  border: 0;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0.7;
}

/* ---- WELCOME ---- */
.welcome {
  padding: 84px 24px 72px;
  background: var(--color-bg);
  text-align: center;
}

.welcome-inner {
  max-width: 920px;
  margin: 0 auto;
}

.welcome h2 {
  margin-bottom: 22px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.08;
}

.welcome p {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--color-text-light);
  font-size: 1.06rem;
  line-height: 1.9;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  letter-spacing: 0;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  color: #fff;
  background: var(--color-primary-dark);
  box-shadow: 0 10px 22px rgba(91, 67, 49, 0.2);
}

.btn-primary:hover {
  background: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(36, 33, 30, 0.22);
}

.btn-dark {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 22px rgba(82, 111, 98, 0.18);
}

.btn-dark:hover {
  background: #3f574d;
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-right { margin-left: auto; }

/* ---- ABOUT ---- */
.about-img {
  max-width: 760px;
  margin: 0 auto 34px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 67, 49, 0.14);
  box-shadow: var(--shadow-card);
}

.about-img img,
.puppy-gallery img,
.masonry-grid img,
.litter-card img,
.cert-item img {
  width: 100%;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 1.04rem;
  line-height: 1.86;
}

.about-masonry { margin-top: 32px; }

/* ---- PUPPY SECTION ---- */
.puppy-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 42px;
}

.puppy-gallery img {
  height: 250px;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 67, 49, 0.12);
  box-shadow: 0 14px 32px rgba(48, 39, 31, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.puppy-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.puppy-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0;
  margin-bottom: 42px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.feature-card {
  min-height: 132px;
  padding: 24px 16px;
  border-right: 1px solid var(--color-line);
  text-align: center;
  transition: background-color var(--transition);
}

.feature-card:last-child { border-right: 0; }

.feature-card:hover { background: rgba(82, 111, 98, 0.06); }

.feature-icon {
  display: block;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: 1.65rem;
  line-height: 1;
}

.feature-card span:last-child {
  display: block;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.puppy-info h3 {
  margin: 32px 0 14px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.2;
}

.puppy-info ul {
  margin-bottom: 18px;
  padding-left: 24px;
  list-style: disc;
}

.puppy-info li,
.puppy-info p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.78;
}

.puppy-info li { margin-bottom: 6px; }
.puppy-info p { margin-bottom: 12px; }

.pricing-line {
  margin-bottom: 26px;
  text-align: center;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 28px;
  border: 1px solid rgba(91, 67, 49, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-primary-dark);
  background: #f8f1e7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.puppy-cta {
  margin-top: 42px;
  text-align: center;
}

/* ---- APPLICATION FORM ---- */
.form-frame-card {
  max-width: 850px;
  overflow: hidden;
  padding: 0;
}

.application-frame {
  display: block;
  min-height: 85vh;
  height: 900px;
  border: 0;
  background: var(--color-white);
}

.application-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  margin-bottom: 7px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-group label .required { color: var(--color-primary-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(82, 111, 98, 0.16);
}

.form-group textarea { min-height: 110px; resize: vertical; }

.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 16px;
  text-align: right;
}

.form-success {
  padding: 40px 0;
  text-align: center;
}

.form-success svg {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  fill: var(--color-accent);
}

.form-success h2 {
  margin-bottom: 16px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 2.2rem;
}

.form-success p {
  color: var(--color-text-light);
  font-size: 1.08rem;
}

/* ---- DOG PROFILES ---- */
.dog-profiles {
  padding: 84px 24px;
}

.dog-card {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  grid-template-areas:
    "gallery info"
    "bio bio"
    "achievements achievements";
  gap: 28px 34px;
  max-width: 980px;
  padding: clamp(24px, 4.2vw, 38px);
}

.dog-card + .dog-card { margin-top: 34px; }

.dog-gallery {
  grid-area: gallery;
  width: 100%;
  min-width: 0;
}

.slider-wrapper {
  position: relative;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(91, 67, 49, 0.16);
  border-radius: var(--radius);
  background: var(--color-dark);
  box-shadow: 0 18px 38px rgba(48, 39, 31, 0.14);
}

.slider-images,
.slider-images img.slide {
  width: 100%;
  height: 100%;
}

.slider-images { position: relative; }

.slider-images img.slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.slider-images img.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slider-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.88);
  color: var(--color-dark);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color var(--transition), transform var(--transition), opacity var(--transition);
}

.slider-nav:hover {
  background: var(--color-white);
}

.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

.slider-dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

.slider-wrapper.is-single-slide .slider-nav,
.slider-wrapper.is-single-slide .slider-dots {
  display: none;
}

.zoom-preview { display: none; }

.dog-info {
  grid-area: info;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.dog-name {
  margin-bottom: 6px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.dog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dog-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(134, 98, 70, 0.28);
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: #f6efe5;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dog-titles {
  margin-bottom: 20px;
  color: var(--color-accent);
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dog-details {
  padding: 22px 0 0;
  border-top: 1px solid var(--color-line);
}

.dog-details ul { padding: 0; list-style: none; }

.dog-details li {
  display: grid;
  grid-template-columns: minmax(118px, 150px) minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(222, 214, 202, 0.72);
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.dog-details li:last-child { border-bottom: 0; }

.dog-details strong {
  color: var(--color-dark);
  font-weight: 800;
}

.dog-bio {
  grid-area: bio;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.86;
}

.dog-achievements {
  grid-area: achievements;
  padding: 24px;
  border: 1px solid rgba(82, 111, 98, 0.18);
  border-radius: var(--radius);
  background: rgba(82, 111, 98, 0.055);
}

.dog-achievements h3 {
  margin-bottom: 16px;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 1.42rem;
  line-height: 1.2;
}

.dog-achievements ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.dog-achievements li {
  padding-left: 14px;
  border-left: 2px solid var(--color-accent);
  color: var(--color-text);
  font-size: 0.94rem;
  line-height: 1.62;
}

.dog-achievements strong {
  color: var(--color-dark);
  font-weight: 800;
}

/* ---- CERTIFICATES ---- */
.certificates-section {
  padding: 72px 24px 84px;
  background: var(--color-bg-alt);
}

.certificates-card {
  max-width: 1040px;
  text-align: center;
}

.cert-intro {
  max-width: 680px;
  margin: -16px auto 32px;
  color: var(--color-text-light);
  font-size: 1.04rem;
  line-height: 1.8;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

.cert-item {
  padding: 10px;
  border: 1px solid rgba(91, 67, 49, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cert-item:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 111, 98, 0.28);
  box-shadow: 0 16px 34px rgba(48, 39, 31, 0.1);
}

.cert-item img {
  height: auto;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cert-label {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

/* ---- PLACEHOLDER PAGE ---- */
.placeholder-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-state {
  padding: clamp(44px, 8vw, 78px);
  text-align: center;
}

.empty-state-icon {
  display: block;
  margin-bottom: 22px;
  color: var(--color-accent);
  font-size: 3.2rem;
  line-height: 1;
}

.empty-state-title { margin-bottom: 16px; }

.empty-state-copy {
  max-width: 560px;
  margin: 0 auto 16px;
  color: var(--color-text-light);
  font-size: 1.08rem;
  line-height: 1.8;
}

.empty-state-contact {
  margin-bottom: 32px;
  color: var(--color-text-light);
  font-size: 0.96rem;
}

.empty-state-contact a {
  color: var(--color-primary-dark);
  font-weight: 800;
  border-bottom: 1px solid rgba(134, 98, 70, 0.34);
}

/* ---- GALLERIES ---- */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.masonry-grid img {
  margin-bottom: 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 67, 49, 0.12);
  box-shadow: 0 12px 28px rgba(48, 39, 31, 0.08);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.masonry-grid img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.litter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.litter-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 67, 49, 0.12);
  border-radius: var(--radius);
  background: var(--color-dark);
  box-shadow: 0 14px 30px rgba(48, 39, 31, 0.08);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.litter-card:hover {
  transform: translateY(-3px);
  border-color: rgba(82, 111, 98, 0.3);
  box-shadow: var(--shadow-hover);
}

.litter-card img {
  height: 260px;
  transition: transform 0.5s ease;
}

.litter-card:hover img { transform: scale(1.035); }

/* ---- STATS ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 22px;
  margin: 42px 0;
}

.stat-item {
  padding: 0 10px;
  text-align: center;
}

.stat-number {
  display: block;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--color-text-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 58px max(24px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-contacts h3 {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.55rem;
}

.footer-contacts p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.footer-contacts a {
  color: #f2dfcc;
  border-bottom: 1px solid rgba(242, 223, 204, 0.22);
}

.footer-socials { margin-top: 10px; }

.footer-socials a.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(242, 223, 204, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
}

.footer-socials a.social-link:hover {
  border-color: rgba(242, 223, 204, 0.36);
  background: rgba(242, 223, 204, 0.1);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 223, 204, 0.12);
  color: #9e958a;
  font-size: 0.84rem;
  text-align: center;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(12, 12, 11, 0.92);
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1001;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  color: var(--color-dark);
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox.is-single-slide .lightbox-nav { display: none; }
body.lightbox-open { overflow: hidden; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(36, 33, 30, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-dark);
  transform: translateY(-2px);
}

/* ---- ANIMATIONS AND ACCESSIBILITY ---- */
.fade-in,
.fade-in-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible,
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.26s; }
.stagger-5 { transition-delay: 0.32s; }
.stagger-6 { transition-delay: 0.38s; }
.stagger-7 { transition-delay: 0.44s; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-dark);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus { top: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .application-form { grid-template-columns: repeat(2, 1fr); }
  .content-card { padding: 40px 30px; }
  .stats-row { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .dog-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "info"
      "bio"
      "achievements";
    max-width: 720px;
  }
  .dog-gallery {
    max-width: 500px;
    margin: 0 auto;
  }
  .dog-achievements ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 74px; }

  .site-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 16px;
    text-align: left;
  }

  .site-logo {
    flex: 1;
    min-width: 0;
    padding-right: 58px;
  }

  .site-logo h1 { font-size: clamp(1.22rem, 5vw, 1.75rem); }
  .site-logo .tagline { overflow: hidden; font-size: 0.72rem; white-space: nowrap; text-overflow: ellipsis; }
  .site-logo .values { display: none; }

  .main-nav { width: 100%; padding: 0; }

  .nav-toggle {
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 130;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 18px rgba(48, 39, 31, 0.12);
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    margin-top: 8px;
    overflow: hidden;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--color-card);
    box-shadow: none;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.24s ease, padding 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  }

  .main-nav ul.open {
    max-height: 560px;
    padding: 10px;
    border-color: rgba(91, 67, 49, 0.14);
    box-shadow: var(--shadow-card);
    opacity: 1;
  }

  .main-nav a {
    justify-content: center;
    min-height: 44px;
    font-size: 0.86rem;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(24, 23, 21, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  .section-bg,
  .section-plain,
  .dog-profiles,
  .certificates-section,
  .welcome {
    padding: 54px 16px;
  }

  .section-tight-top { padding-top: 0; }
  .section-card-offset { margin-top: 28px; }
  .content-card { padding: 30px 20px; }
  .page-hero { height: 230px; }
  .hero { height: 280px; }

  .puppy-gallery,
  .cert-grid,
  .litter-grid {
    grid-template-columns: 1fr;
  }

  .puppy-gallery img { height: auto; }
  .puppy-features { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(2n) { border-right: 0; }

  .application-form { grid-template-columns: 1fr; }
  .application-frame { height: 820px; }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-socials a.social-link {
    width: 100%;
    justify-content: center;
  }

  .lightbox { padding: 16px; }
  .lightbox-close { top: 8px; right: 12px; padding: 12px; min-width: 48px; min-height: 48px; }
  .lightbox-nav { width: 52px; height: 52px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }

  .slider-nav { width: 48px; height: 48px; }
  .slider-dots .dot { width: 12px; height: 12px; position: relative; }
  .slider-dots .dot::after { content: ''; position: absolute; inset: -14px; }

  .puppy-gallery img:hover,
  .feature-card:hover,
  .litter-card:hover,
  .masonry-grid img:hover,
  .btn-primary:hover,
  .btn-dark:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .content-card { padding: 26px 16px; }
  .welcome p,
  .dog-bio,
  .cert-intro,
  .empty-state-copy {
    font-size: 0.98rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .dog-card {
    padding: 18px;
    gap: 22px;
  }

  .dog-details li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dog-achievements { padding: 20px; }
  .slider-wrapper { aspect-ratio: 3 / 4; }
  .masonry-grid { columns: 1; }

  .action-row .btn {
    width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: max(20px, calc(14px + env(safe-area-inset-bottom)));
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 561px) and (max-width: 768px) {
  .masonry-grid { columns: 2; }
}

@media (max-width: 380px) {
  .puppy-features,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .feature-card:last-child { border-bottom: 0; }
  .pricing-badge { width: 100%; justify-content: center; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
