/*
Theme Name: God's Gift
Description: Kennel Mini Bullterriers theme.
Version: 1.4
Author: GK
*/

/**
 * PERFORMANCE NOTE:
 * Google Fonts are now loaded via wp_enqueue_style() in functions.php
 * with preconnect hints for better LCP. This eliminates the render-blocking
 * @import statement that was previously here.
 *
 * See functions.php -> godsgift_enqueue_google_fonts()
 */

/* =============================
   CSS VARIABLES (DESIGN SYSTEM TOKENS)
   
   EDITING GUIDE:
   - Colors: Update primary/secondary for brand changes
   - Typography: Scale uses modular sizing (1rem = 16px base)
   - Spacing: Uses consistent 0.25rem increments
   - All values here control the entire theme
============================= */
:root {
  /* -------------------------
     COLORS - Primary Brand
     ------------------------- */
  --color-primary: #EC5C45;
  --color-primary-hover: #D04A35;
  --color-secondary: #EC5C45;
  --color-primary-rgb: 236, 92, 69; /* For rgba() usage */
  
  /* -------------------------
     COLORS - Neutrals
     ------------------------- */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark: #333333;
  --color-light: #fafafa;
  
  /* -------------------------
     COLORS - Gray Scale
     ------------------------- */
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #e0e0e0;
  --color-gray-400: #ccc;
  --color-gray-500: #888;
  --color-gray-600: #666;
  --color-gray-700: #555;
  --color-gray-800: #333;
  
  /* -------------------------
     COLORS - Borders
     ------------------------- */
  --color-border-light: #eee;
  --color-border-medium: #ddd;
  --color-border-dark: #ccc;
  
  /* -------------------------
     COLORS - Status/Semantic
     ------------------------- */
  --color-success: #28a745;
  --color-success-bg: #d4edda;
  --color-warning: #ffc107;
  --color-warning-bg: #fff3cd;
  --color-danger: #dc3545;
  --color-danger-bg: #f8d7da;
  --color-info: #17a2b8;
  --color-info-bg: #d1ecf1;
  --color-male: #4a90e2;
  --color-female: #e24a90;
  
  /* -------------------------
     TYPOGRAPHY - Font Families
     ------------------------- */
  --font-family-body: 'Open Sans', sans-serif;
  --font-family-heading: 'Montserrat', sans-serif;
  
  /* -------------------------
     TYPOGRAPHY - Font Sizes
     (Modular scale ~1.25 ratio)
     ------------------------- */
  --font-size-xs: 0.7rem;      /* 11.2px */
  --font-size-sm: 0.8rem;      /* 12.8px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md: 1.1rem;      /* 17.6px */
  --font-size-lg: 1.2rem;      /* 19.2px */
  --font-size-xl: 1.3rem;      /* 20.8px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 2rem;       /* 32px */
  --font-size-4xl: 2.5rem;     /* 40px */
  --font-size-5xl: 3.5rem;     /* 56px */
  --font-size-6xl: 5rem;       /* 80px - for 404 etc. */
  --font-size-7xl: 8rem;       /* 128px - huge display */
  
  /* -------------------------
     TYPOGRAPHY - Font Weights
     ------------------------- */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* -------------------------
     TYPOGRAPHY - Line Heights
     ------------------------- */
  --line-height-tight: 1.2;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.7;
  --line-height-loose: 1.8;
  
  /* -------------------------
     SPACING SCALE
     (Based on 0.25rem = 4px)
     ------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* -------------------------
     PARTNER MARQUEE (8pt grid)
     ------------------------- */
  --partner-card-width: 224px;    /* 28×8 = 224px */
  --partner-logo-box: 120px;      /* 15×8 = 120px - fixed logo container height */
  --partner-scroll-gap: 1.5rem;   /* 24px = 3×8 */
  --partner-auto-scroll-speed: 0.5; /* pixels per frame at 60fps */
  
  /* -------------------------
     BORDER RADIUS
     ------------------------- */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-base: 8px;
  --radius-lg: 12px;
  --radius-xl: 15px;
  --radius-2xl: 20px;
  --radius-full: 50px;
  --radius-circle: 50%;
  
  /* -------------------------
     SHADOWS
     ------------------------- */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 4px 12px rgba(236, 92, 69, 0.3);
  --shadow-primary-lg: 0 8px 25px rgba(236, 92, 69, 0.4);
  
  /* -------------------------
     TRANSITIONS
     ------------------------- */
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.4s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* -------------------------
     LAYOUT
     ------------------------- */
  --max-width-content: 1200px;
  --max-width-narrow: 800px;
  --max-width-form: 600px;
  
  /* -------------------------
     Z-INDEX SCALE
     ------------------------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 500;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-popover: 1100;
  --z-tooltip: 1200;
  
  /* -------------------------
     STICKY NAV OFFSET
     Accounts for WordPress admin bar when logged in.
     ------------------------- */
  --sticky-top: 0px;
  
  /* ===========================
     LEGACY ALIASES
     (For backward compatibility)
     =========================== */
  --primary-color: var(--color-primary);
  --primary-hover: var(--color-primary-hover);
  --secondary-color: var(--color-secondary);
  --dark-bg: var(--color-dark);
  --light-bg: var(--color-light);
  --white: var(--color-white);
  --black: var(--color-black);
  --gray-lightest: var(--color-gray-50);
  --gray-light: var(--color-gray-100);
  --gray-medium: var(--color-gray-600);
  --gray-dark: var(--color-gray-700);
  --gray-muted: var(--color-gray-500);
  --border-light: var(--color-border-light);
  --border-medium: var(--color-border-medium);
  --border-dark: var(--color-border-dark);
  --font-body: var(--font-family-body);
  --font-heading: var(--font-family-heading);
  --shadow: var(--shadow-md);
  --shadow-hover: var(--shadow-lg);
  --shadow-card: var(--shadow-md);
  --shadow-card-hover: var(--shadow-xl);
  --border-radius: var(--radius-lg);
  --border-radius-sm: var(--radius-md);
  --border-radius-lg: var(--radius-2xl);
  --max-width: var(--max-width-content);
  --transition: var(--transition-base);
}

/* =============================
   ADMIN BAR STICKY OFFSET
   When WordPress admin bar is visible, offset sticky nav.
============================= */
body.admin-bar {
  --sticky-top: var(--wp-admin--admin-bar--height, 32px);
}

/* =============================
   SVG ICON SYSTEM
   
   Cross-OS consistent icons using SVG sprite.
   All icons render identically on macOS/Windows/iOS/Android.
   
   Usage:
   - General icons: <?php godsgift_icon_e('name'); ?>
   - Badges (mask): <span class="badge__icon badge__icon--male"></span>
============================= */

/* Base icon class - inline SVG via <use> */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  flex-shrink: 0;
  /* Ensure no layout shift */
  overflow: hidden;
}

/* Icon size modifiers */
.icon--sm {
  width: 0.875em;
  height: 0.875em;
}

.icon--lg {
  width: 1.25em;
  height: 1.25em;
}

.icon--xl {
  width: 1.5em;
  height: 1.5em;
}

.icon--2xl {
  width: 2em;
  height: 2em;
}

.icon--3xl {
  width: 3em;
  height: 3em;
}

/* Status icons - inherit color from parent status class */
.icon.status-icon {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.25em;
}

/* Sex icons - inherit color from sex class */
.icon.sex-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.15em;
}

/* Feature/reason icons - larger decorative icons */
.reason-icon .icon,
.guarantee-icon .icon,
.feature-icon .icon {
  width: 6.75rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Menu toggle icon */
.menu-toggle-icon .icon {
  width: 1.5em;
  height: 1.5em;
}

/* =============================
   BADGE ICONS (CSS MASK-IMAGE)
   
   Apple-style badges where icon color follows currentColor.
   Uses CSS mask to render SVG as a solid color shape.
   Guarantees identical appearance across all platforms.
============================= */

/* Base badge icon - rendered via CSS mask */
.badge__icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
  margin-right: 0.25em;
  vertical-align: -0.1em;
}

/* Badge icon variants - sex */
.badge__icon--male {
  -webkit-mask-image: url('assets/icons/sex-male.svg');
  mask-image: url('assets/icons/sex-male.svg');
}

.badge__icon--female {
  -webkit-mask-image: url('assets/icons/sex-female.svg');
  mask-image: url('assets/icons/sex-female.svg');
}

/* Badge icon variants - status */
.badge__icon--available {
  -webkit-mask-image: url('assets/icons/status-available.svg');
  mask-image: url('assets/icons/status-available.svg');
}

.badge__icon--reserved {
  -webkit-mask-image: url('assets/icons/status-reserved.svg');
  mask-image: url('assets/icons/status-reserved.svg');
}

.badge__icon--sold,
.badge__icon--home {
  -webkit-mask-image: url('assets/icons/status-home.svg');
  mask-image: url('assets/icons/status-home.svg');
}

.badge__icon--stay {
  -webkit-mask-image: url('assets/icons/status-stay.svg');
  mask-image: url('assets/icons/status-stay.svg');
}

/* Badge icon variants - common */
.badge__icon--check {
  -webkit-mask-image: url('assets/icons/check-circle.svg');
  mask-image: url('assets/icons/check-circle.svg');
}

.badge__icon--cross {
  -webkit-mask-image: url('assets/icons/cross-circle.svg');
  mask-image: url('assets/icons/cross-circle.svg');
}

/* Badge sizes for sex/status pills */
.puppy-badge .badge__icon,
.litter-status .badge__icon {
  width: 1.1em;
  height: 1.1em;
}

/* =============================
   GENETIC TEST ICONS
   Uses inline SVG icons for check/cross.
============================= */
.genetic-check .icon,
.genetic-cross .icon {
  width: 1.25em;
  height: 1.25em;
}

.genetic-check .icon {
  color: var(--color-success);
}

.genetic-cross .icon {
  color: var(--color-danger);
}

/* SVG Sprite Container - Hidden */
.svg-sprite-container {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =============================
   BASE & RESET
============================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark-bg);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

/* =============================
   LAYOUT - Containers
============================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.page-container .entry-header {
  text-align: left;
  margin-bottom: 2rem;
}

.page-container .entry-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.page-container .entry-content {
  line-height: 1.8;
}

.page-container .entry-content h1,
.page-container .entry-content h2,
.page-container .entry-content h3,
.page-container .entry-content h4,
.page-container .entry-content h5,
.page-container .entry-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-container .entry-content p {
  margin-bottom: 1rem;
}

.page-container .entry-content ul,
.page-container .entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.page-container .entry-content li {
  margin-bottom: 0.5rem;
}

/* =============================
   SITE HEADER - Apple-style Always-Fixed Header
   
   BEHAVIOR:
   - Header is ALWAYS position: fixed from page load
   - Body has padding-top to compensate for header height
   - Only visual styles change on scroll (background, blur, shadow)
   - NO position switching, NO layout shift, NO CLS
============================= */

/* Header height variable - must match actual computed height */
:root {
  --site-header-height: 72px;
}

/* Body compensation for fixed header */
body {
  padding-top: var(--site-header-height);
}

/* 
 * Site Header: ALWAYS fixed to top
 * Never changes position - only visual appearance changes on scroll
 */
.site-header {
  position: fixed;
  top: var(--sticky-top);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--site-header-height);
  z-index: var(--z-fixed);
  box-sizing: border-box;
  /* Default appearance: transparent/white background */
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  /* Smooth visual transitions */
  transition: background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              -webkit-backdrop-filter 0.3s ease,
              backdrop-filter 0.3s ease;
}

/* 
 * SCROLLED STATE: Apple-like translucent blur
 * Triggered when body has .header-scrolled class
 */
body.header-scrolled .site-header {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04);
}

/* Header inner container */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  gap: 2rem;
}

/* =============================
   SITE BRAND (Logo + Title)
============================= */
.site-brand {
  flex-shrink: 0;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.site-brand-link:hover {
  text-decoration: none;
}

.site-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-base);
  object-fit: cover;
}

.site-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--gray-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================
   SITE NAVIGATION
============================= */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--dark-bg);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(236, 92, 69, 0.1);
  color: var(--primary-color);
  outline: none;
}

/* Focus visible for keyboard navigation */
.nav-menu a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Navigation Dropdowns */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: var(--z-dropdown);
  padding: 0.5rem 0;
}

body.header-scrolled .nav-menu li ul {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul {
  display: block;
}

.nav-menu li ul li {
  width: 100%;
}

.nav-menu li ul a {
  padding: 0.6rem 1rem;
  border-radius: 0;
}

/* =============================
   MOBILE MENU TOGGLE
============================= */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--dark-bg);
  z-index: 10;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-toggle.active {
  background: var(--primary-color);
  color: var(--white);
}

.menu-toggle-icon {
  display: block;
  line-height: 1;
}

/* =============================
   HERO SECTION
============================= */
.hero-section {
  min-height: 80vh;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background overlay via pseudo-element (opacity only affects this layer) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('assets/images/parallax-bg.jpg') center/cover no-repeat;
  opacity: 0.03;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  opacity: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  min-height: 60vh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 1rem;
  position: relative;
}

.hero-text h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.hero-text h2 {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--dark-bg);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 200px;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-hover);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* =============================
   8-POINT DESIGN SYSTEM - SECTIONS
   
   Base unit: 8px
   All spacing uses multiples of 8px
   1rem = 16px = 2×8px
============================= */

/* Section Layout Contract */
.section,
.hero-section,
.litters-section,
.why-choose-section,
.about-section,
.journey-section,
.new-homes-section,
.guarantees-section,
.faq-section,
.pricing-section,
.partners-section,
.contact-cta-section {
  padding-top: 4rem;    /* 64px = 8×8 */
  padding-bottom: 4rem; /* 64px = 8×8 */
}

/* =============================
   SECTION TITLES
============================= */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem; /* 24px = 3×8 */
  padding-bottom: 1rem;  /* 16px = 2×8 - space for underline */
  color: var(--black);
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* =============================
   LITTERS SECTION
============================= */
.litters-section {
  background: var(--gray-light);
}

.litters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; /* 24px = 3×8 */
}

/* Litter Cards */
.litter-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.litter-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

/* =============================
   LITTER CARD MEDIA CONTAINER
   
   Apple-like media handling with:
   - Fixed aspect-ratio (no layout shift)
   - Overflow hidden (clip-to-bounds)
   - Border-radius inherited from card
   - object-fit: cover (no stretching)
============================= */
.litter-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  /* Ensure images are clipped to rounded corners */
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.litter-image img,
.litter-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Smooth fade transition for image rotation */
  transition: opacity 0.3s ease;
}

/* Fade out state for image rotation */
.litter-image img.is-fading,
.litter-image__img.is-fading {
  opacity: 0;
}

/* Ensure status badge stays above fading image */
.litter-image .litter-status {
  z-index: 3;
}

/* Disable fade animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .litter-image img,
  .litter-image__img {
    transition: none;
  }
}

/* =============================
   CARD MEDIA PLACEHOLDER SYSTEM
   
   Reusable hero-style SVG placeholders for cards without images.
   Matches the visual language of show card placeholders.
   
   Usage:
   <div class="litter-image card-media--placeholder">
     <span class="card-media__icon" aria-hidden="true">
       <?php godsgift_icon_e('paw', array('class' => 'icon--3xl')); ?>
     </span>
   </div>
============================= */

/* Placeholder state - orange gradient background with centered icon */
.card-media--placeholder {
  background: linear-gradient(135deg, var(--color-primary, #EC5C45), var(--color-secondary, #EC5C45));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder icon wrapper - white, centered, with subtle shadow */
.card-media__icon {
  color: var(--color-white, #fff);
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  /* Explicit sizing for SVG icons */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Keep placeholder icon below status badges */
  position: relative;
  z-index: 1;
}

.card-media__icon .icon {
  width: clamp(144px, 48%, 216px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.card-media__icon .icon--lg {
  width: clamp(156px, 51%, 228px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.puppy-image.card-media--placeholder .card-media__icon .icon {
  width: clamp(132px, 54%, 198px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* 
 * Status badge icons - DEFENSIVE sizing rule.
 * Ensures status icons maintain proper size even when inside placeholder containers.
 */
.litter-status .icon,
.puppy-badge .icon,
.puppy-status .icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* 
 * Base badge class: LAYOUT ONLY.
 * Colors come from modifier classes (.status-*).
 * Fallback colors for when no modifier is applied.
 */
.litter-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  /* Ensure status badge is above placeholder icon (z-index: 1) */
  z-index: 3;
  /* Fallback: neutral colors when no modifier class is present */
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.litter-info {
  padding: 1.5rem;
}

.litter-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.litter-date {
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.litter-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.litter-link:hover {
  background: var(--primary-hover);
}

/* Litter Slider */
.litters-slider {
  padding: 2rem;
}

.slider-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.slide {
  min-width: 200px;
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  border-radius: var(--border-radius-sm);
}

.slide-caption {
  text-align: center;
  margin-top: 0.5rem;
}

/* Litter Gallery Slider */
.litter-slider-group {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scroll-padding-left: 1rem;
}

.litter-slider-group figure {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.litter-slider-group img {
  width: 100%;
  border-radius: var(--border-radius-sm);
}

/* Litter Gallery */
.litter-gallery img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Litter Checks (Genetic Tests) */
.litter-checks ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
  max-width: 250px;
}

.litter-checks ul li {
  display: grid;
  grid-template-columns: 1fr 30px;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border-dark);
  font-size: 1rem;
}

.litter-checks ul li span:last-child {
  width: 24px;
  text-align: right;
}

/* =============================
   WHY CHOOSE US SECTION
============================= */
.why-choose-section {
  background: var(--white);
}

/* .reasons-grid layout is handled by .smart-grid classes */
.reasons-grid {
  /* Grid properties defined by smart-grid system */
}

.reason-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.reason-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 9rem;
  margin: 0 auto 1rem;
}

.reason-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.reason-card p {
  color: var(--gray-medium);
  line-height: 1.6;
}

/* =============================
   ABOUT SECTION
============================= */
.about-section {
  background: var(--gray-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--gray-medium);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* 24px = 3×8 */
  margin-top: 1.5rem; /* 24px = 3×8 */
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* About Us Layout - MOVED TO assets/css/about.css */

/* =============================
   JOURNEY SECTION
============================= */
.journey-section {
  background: var(--white);
}

.journey-map {
  display: grid;
  gap: 1.5rem; /* 24px = 3×8 */
  max-width: 800px;
  margin: 0 auto;
}

.journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem; /* 24px = 3×8 */
  align-items: start;
  padding: 1.5rem; /* 24px = 3×8 */
  background: var(--white);
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.journey-step::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 4rem;
  bottom: -2rem;
  width: 2px;
  background: var(--primary-color);
}

.journey-step:last-child::before {
  display: none;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.step-content p {
  line-height: 1.8;
  color: var(--gray-medium);
}

/* =============================
   JOURNEY STEP CTA (Step 5)
   Inverted colors: orange bg, white text
   
   Uses doubled class selector for higher specificity
   to override base .journey-step styles.
============================= */

/* Card container - inverted colors */
.journey-step.journey-step--cta {
  background: var(--color-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    outline 0.15s ease;
}

/* Inverted title: white text */
.journey-step.journey-step--cta .step-content h3 {
  color: var(--color-white);
}

/* Inverted description: white text */
.journey-step.journey-step--cta .step-content p {
  color: var(--color-white);
}

/* Inverted step number badge: white bg, orange text */
.journey-step.journey-step--cta .step-number {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Inverted timeline connector line (white, visible on orange) */
.journey-step.journey-step--cta::before {
  background: rgba(255, 255, 255, 0.6);
}

/* Hover state: lift + stronger shadow */
.journey-step.journey-step--cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Focus state: remove default outline */
.journey-step.journey-step--cta:focus {
  outline: none;
}

/* Focus-visible: white outline ring for keyboard navigation */
.journey-step.journey-step--cta:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Active state: click feedback */
.journey-step.journey-step--cta:active {
  transform: translateY(-2px);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .journey-step.journey-step--cta {
    transition: none;
  }
  
  .journey-step.journey-step--cta:hover {
    transform: none;
  }
  
  .journey-step.journey-step--cta:active {
    transform: none;
  }
}

/* =============================
   NEW HOMES SECTION
============================= */
.new-homes-section {
  background: var(--gray-light);
}

.puppies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.puppy-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.puppy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.puppy-image {
  height: 150px;
  overflow: hidden;
}

.puppy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.puppy-info {
  padding: 1rem;
  text-align: center;
}

.puppy-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.puppy-status {
  color: var(--primary-color);
  font-weight: 600;
}

/* =============================
   GUARANTEES SECTION
============================= */
.guarantees-section {
  background: var(--white);
}

/* .guarantees-grid layout is handled by .smart-grid classes */
.guarantees-grid {
  /* Grid properties defined by smart-grid system */
}

.guarantee-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.guarantee-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 9rem;
  margin: 0 auto 1rem;
}

.guarantee-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.guarantee-card p {
  color: var(--gray-medium);
  line-height: 1.6;
}

/* =============================
   FAQ SECTION
============================= */
.faq-section {
  background: var(--gray-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.faq-question:hover {
  background: var(--gray-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--black);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 800;
  transition: var(--transition);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* =============================
   PRICING SECTION
============================= */
.pricing-section {
  background: var(--white);
}

.pricing-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pricing-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-medium);
  margin-bottom: 2rem; /* 32px = 4×8 */
}

/* .pricing-features layout is handled by .smart-grid classes */
.pricing-features {
  /* Grid properties defined by smart-grid system */
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: var(--border-radius);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
}

/* =============================
   SMART GRID SYSTEM
   
   Intelligent grid layout based on item count.
   Prevents "lonely" last card (e.g., 4 items → 2×2, not 3+1).
   
   Classes are applied via PHP: godsgift_smart_grid_open()
   
   Layout rules:
   - 1-3 items: 1 row
   - 4-8 items: 2 rows
   - 9+ items: 3 rows
============================= */

/* Base smart grid - all smart grids use CSS Grid */
.smart-grid {
  display: grid;
  gap: var(--space-6); /* 24px = 3×8 */
}

/* -------------------------
   1 ROW LAYOUTS
   For 1-3 items
   ------------------------- */
.grid--rows-1.grid--cols-1 {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.grid--rows-1.grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--rows-1.grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* -------------------------
   2 ROW LAYOUTS
   For 4-8 items
   ------------------------- */
.grid--rows-2.grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--rows-2.grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--rows-2.grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* -------------------------
   3 ROW LAYOUTS
   For 9+ items
   ------------------------- */
.grid--rows-3.grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--rows-3.grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =============================
   PARTNERS SECTION (Marquee)
   Scroll-based infinite marquee with JS control
============================= */
.partners-section {
  background: var(--gray-light);
  overflow: hidden;
}

/* Full-width marquee wrapper - breaks out of container */
.partners-marquee-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* 16px between rows */
}

/* Individual marquee row - scrollable container */
.partners-row {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Fade edges for premium feel */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
}

.partners-row::-webkit-scrollbar {
  display: none;
}

/* The scrolling track - flex container for cards */
.partners-row .partners-track {
  display: flex;
  gap: var(--partner-scroll-gap);
  width: max-content;
  padding: var(--space-2) 60px; /* Padding to account for mask fade */
}

/* =============================
   PARTNER CARD
   Card-style with fixed width, auto height
============================= */
.partner-card {
  flex: 0 0 var(--partner-card-width);
  width: var(--partner-card-width);
  /* Height is AUTO - grows with content */
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card--clickable {
  cursor: pointer;
}

.partner-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.partner-card--clickable:focus-within {
  outline: 3px solid rgba(236, 92, 69, 0.5);
  outline-offset: 2px;
}

/* Partner card link - full card clickable */
.partner-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.partner-card__link:hover,
.partner-card__link:focus {
  text-decoration: none;
  color: inherit;
}

.partner-card__link:focus {
  outline: none; /* Focus ring on parent card */
}

/* Logo container - fixed height box */
.partner-card__logo {
  flex: 0 0 var(--partner-logo-box);
  height: var(--partner-logo-box);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: var(--gray-lightest);
}

/* Logo image - crisp rendering, no distortion */
.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  /* Prevent blurry scaling */
  -webkit-font-smoothing: antialiased;
}

/* Partner info section - auto height */
.partner-card__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3);
  text-align: center;
}

.partner-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin: 0;
  line-height: 1.4;
  /* Allow natural wrapping, no clamping */
  word-wrap: break-word;
  hyphens: auto;
}

.partner-card__description {
  font-size: 0.75rem;
  color: var(--gray-medium);
  margin: var(--space-1) 0 0;
  line-height: 1.4;
}

/* Reduced motion: disable auto-scroll, allow manual only */
@media (prefers-reduced-motion: reduce) {
  .partners-row {
    /* Remove edge fade - full visibility for manual scroll */
    -webkit-mask-image: none;
    mask-image: none;
  }
  
  .partners-row .partners-track {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* =============================
   CONTACT CTA SECTION
============================= */
.contact-cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.contact-cta-section .section-title {
  color: var(--white);
}

.contact-cta-section .section-title::after {
  background: var(--white);
}

.cta-description {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem; /* 32px = 4×8 */
  /* Use rgba color instead of opacity to keep text fully readable */
  color: rgba(255, 255, 255, 0.95);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--black);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  margin: 0 auto;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* =============================
   FOOTER CTA FORM
============================= */
.footer-cta {
  background: var(--gray-lightest);
  padding-top: 4rem;    /* 64px = 8×8 */
  padding-bottom: 4rem; /* 64px = 8×8 */
}

.footer-cta .container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-cta p {
  margin-bottom: 2rem;
  color: var(--gray-dark);
}

.footer-cta__form {
  display: grid;
  gap: 1rem;
}

.footer-cta__form input,
.footer-cta__form textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  resize: none;
  overflow: hidden;
  line-height: 1.4;
  font-family: inherit;
}

.footer-cta__form input {
  height: 3rem;
}

.footer-cta__form textarea {
  height: auto;
  min-height: 3rem;
  max-height: 200px;
}

.footer-cta__form button {
  background: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.footer-cta__form button:hover {
  background: var(--primary-hover);
}

/* =============================
   404 ERROR PAGE
============================= */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-title {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

.error-subtitle {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin: 1rem 0;
  text-align: center;
}

.error-description {
  font-size: 1.2rem;
  color: var(--gray-medium);
  line-height: 1.6;
  margin: 2rem 0;
  text-align: center;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.error-btn.primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(236, 92, 69, 0.3);
}

.error-btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 92, 69, 0.4);
}

.error-btn.secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.error-btn.secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.error-suggestions {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--gray-lightest);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.error-suggestions h3 {
  color: var(--black);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-align: center;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.error-suggestions li {
  margin: 0;
}

.error-suggestions a {
  display: block;
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  border: 1px solid #e9ecef;
  transition: var(--transition);
  font-weight: 500;
}

.error-suggestions a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =============================
   ANIMATIONS
============================= */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px - 2rem)); }
}

@keyframes buttonAppear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
}

/* =============================
   RESPONSIVE - Large Tablet (1024px)
============================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  /* Smart Grid - Large Tablet: max 3 columns */
  .smart-grid.grid--cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile header adjustments */
  :root {
    --site-header-height: 64px;
  }
  
  .site-header-inner {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  /* Hide tagline on mobile */
  .site-tagline {
    display: none;
  }
  
  .site-logo {
    width: 44px;
    height: 44px;
  }
  
  .site-title {
    font-size: 1.1rem;
  }
  
  /* Mobile Menu Toggle - visible on mobile */
  .menu-toggle {
    display: block;
  }
  
  /* Hide nav by default on mobile */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius-base) var(--radius-base);
    display: none;
    padding: 0.5rem 0;
  }
  
  /* Nav dropdown background when scrolled */
  body.header-scrolled .site-nav {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  
  /* Show nav when active */
  .site-nav.active {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    padding: 1rem 1.5rem;
    border-radius: 0;
    width: 100%;
  }
  
  /* Mobile dropdown submenus */
  .nav-menu li ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--gray-50, #f8f9fa);
  }
  
  .top-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .top-logo img {
    max-height: 50px;
  }
  
  .top-title {
    height: auto;
    min-height: 50px;
  }
  
  /* Partners Marquee - Tablet */
  .partners-row {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 40px,
      black calc(100% - 40px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 40px,
      black calc(100% - 40px),
      transparent 100%
    );
  }
  
  .partners-row .partners-track {
    padding-left: 40px;
    padding-right: 40px;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    min-height: 50vh;
    padding: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.5rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-cta-btn {
    min-width: 180px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  /* Journey */
  .journey-step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .journey-step::before {
    display: none;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }

  /* Smart Grid - Tablet: max 2 columns */
  .smart-grid {
    gap: var(--space-4); /* 16px on tablet */
  }
  
  .smart-grid.grid--cols-3,
  .smart-grid.grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .smart-grid.grid--rows-1.grid--cols-1 {
    max-width: 100%;
  }

  /* 8pt Grid - Tablet Section Spacing */
  .section,
  .hero-section,
  .litters-section,
  .why-choose-section,
  .about-section,
  .journey-section,
  .new-homes-section,
  .guarantees-section,
  .faq-section,
  .pricing-section,
  .partners-section,
  .contact-cta-section,
  .footer-cta {
    padding-top: 3rem;    /* 48px = 6×8 */
    padding-bottom: 3rem; /* 48px = 6×8 */
  }

  .section-title {
    margin-bottom: 1.25rem; /* 20px ≈ 2.5×8 */
    padding-bottom: 0.75rem; /* 12px */
  }
  
  /* Partners Marquee - Tablet/Small screens */
  :root {
    --partner-card-width: 200px;
    --partner-logo-box: 100px;
  }
  
  .partner-card__name {
    font-size: 0.8125rem;
  }
  
  .card-media__icon .icon {
    width: clamp(144px, 54%, 216px);
  }
  
  .puppy-card__placeholder .icon,
  .puppy-image.card-media--placeholder .card-media__icon .icon {
    width: clamp(132px, 60%, 198px);
  }
  
  .exhibition-card__placeholder .icon {
    width: clamp(144px, 54%, 216px);
  }
}

/* =============================
   RESPONSIVE - Mobile
============================= */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .page-container {
    padding: 1rem;
  }
  
  .page-container .entry-title {
    font-size: 2rem;
  }
  
  /* Partners Marquee - Mobile */
  :root {
    --partner-card-width: 176px;   /* 22×8 */
    --partner-logo-box: 88px;      /* 11×8 */
  }
  
  .partners-marquee-wrapper {
    gap: var(--space-3); /* 12px between rows */
  }
  
  .partners-row {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 24px,
      black calc(100% - 24px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 24px,
      black calc(100% - 24px),
      transparent 100%
    );
  }
  
  .partners-row .partners-track {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .partner-card__logo {
    padding: var(--space-2);
  }
  
  .partner-card__info {
    padding: var(--space-2);
  }
  
  .partner-card__name {
    font-size: 0.8125rem;
  }
  
  .partner-card__description {
    display: none; /* Hide description on mobile */
  }
  
  /* 404 Page */
  .error-404 {
    padding: 2rem 0;
    min-height: 50vh;
  }
  
  .error-title {
    font-size: 5rem;
  }
  
  .error-subtitle {
    font-size: 1.8rem;
  }
  
  .error-description {
    font-size: 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .error-suggestions {
    padding: 1.5rem;
  }
  
  .error-suggestions ul {
    grid-template-columns: 1fr;
  }
  
  /* Hero */
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 1.2rem;
  }
  
  .hero-text p {
    font-size: 0.9rem;
  }
  
  .hero-cta-btn {
    min-width: 160px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Legacy grids fallback */
  .litters-grid {
    grid-template-columns: 1fr;
  }

  /* Smart Grid - Mobile: single column */
  .smart-grid {
    gap: var(--space-4); /* 16px on mobile */
  }
  
  .smart-grid[class*="grid--cols-"] {
    grid-template-columns: 1fr;
  }

  /* 8pt Grid - Mobile Section Spacing */
  .section,
  .hero-section,
  .litters-section,
  .why-choose-section,
  .about-section,
  .journey-section,
  .new-homes-section,
  .guarantees-section,
  .faq-section,
  .pricing-section,
  .partners-section,
  .contact-cta-section,
  .footer-cta {
    padding-top: 2rem;    /* 32px = 4×8 */
    padding-bottom: 2rem; /* 32px = 4×8 */
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;   /* 16px = 2×8 */
    padding-bottom: 0.5rem; /* 8px = 1×8 */
  }
  
  .card-media__icon .icon {
    width: clamp(144px, 60%, 216px);
  }
  
  .puppy-card__placeholder .icon,
  .puppy-image.card-media--placeholder .card-media__icon .icon {
    width: clamp(132px, 63%, 198px);
  }
  
  .exhibition-card__placeholder .icon {
    width: clamp(144px, 60%, 216px);
  }
  
  .puppy-hero-placeholder .icon {
    width: clamp(144px, 57%, 216px);
  }
}

/* =============================
   SINGLE DOG & LITTER PAGES
============================= */

/* Litter-like Badge */
.litter-like-badge {
  font-size: 1rem;
  color: var(--gray-muted);
}

/* Dog Subtitle */
.dog-subtitle {
  font-size: 1.2rem;
  color: var(--gray-medium);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Meta Row */
.dog-meta-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sex Icons */
.sex-male {
  color: #4a90e2;
  font-weight: bold;
}

.sex-female {
  color: #e24a90;
  font-weight: bold;
}

/* Parent Links */
.parent-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.parent-link:hover {
  color: var(--white);
  background-color: var(--primary-color);
  text-decoration: none;
  border-color: var(--primary-color);
}

/* Dog Awards */
.dog-awards {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--gray-lightest);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.dog-awards h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  color: var(--dark-bg);
}

.dog-awards h3 .icon {
  width: 2.25rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

.dog-awards ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 0;
}

.dog-awards li {
  margin-bottom: 0.5rem;
}

/* 
 * Status Badges - Base class: LAYOUT ONLY.
 * Colors come from modifier classes (.status-*).
 * Fallback colors for when no modifier class is present.
 */
.dog-status-badge {
  border-left: 6px solid var(--color-gray-400);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  /* Fallback: neutral colors when no modifier class is present */
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

/* 
 * Status modifier classes - Pattern B (soft look):
 * Light background + dark text of matching color for proper contrast.
 * These override both background AND color from parent selectors.
 */
.status-available {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-left-color: var(--color-success);
}

.status-reserved {
  background: var(--color-warning-bg);
  color: #856404; /* Dark amber for readability on yellow bg */
  border-left-color: var(--color-warning);
}

.status-sold {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-left-color: var(--color-success);
}

.status-stay {
  background: var(--color-info-bg);
  color: #0c5460; /* Dark teal for readability on light blue bg */
  border-left-color: var(--color-info);
}

/* Hearing Status */
.hearing-normal {
  color: #28a745;
  font-weight: bold;
}

.hearing-partial {
  color: #ffc107;
  font-weight: bold;
}

.hearing-deaf {
  color: #dc3545;
  font-weight: bold;
}

.hearing-unknown {
  color: #6c757d;
  font-weight: bold;
}

/* Dog Links */
.dog-links {
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--gray-lightest);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-bg);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 120px;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--dark-bg);
}

.social-link-pedigree:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.social-link-dogfiles:hover {
  background: #f3e5f5;
  border-color: #9c27b0;
}

.social-text {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Litter Puppies Section */
.litter-puppies-section {
  margin: 2rem 0;
}

.litter-puppies-section h2 {
  margin-bottom: 1.5rem;
  color: var(--dark-bg);
}

.puppies-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Puppy Cards */
.puppy-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.puppy-card:hover {
  transform: translateY(-2px);
}

.puppy-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.puppy-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.puppy-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #EC5C45, #EC5C45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

/* 
 * Puppy Badges - Base class: LAYOUT ONLY.
 * Colors come from modifier classes (.badge-*).
 * Fallback colors for when no modifier class is present.
 */
.puppy-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Ensure badge is above placeholder icon (z-index: 1) */
  z-index: 3;
  /* Fallback: neutral colors when no modifier class is present */
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.puppy-status-badge {
  top: 8px;
  right: 8px;
}

.puppy-sex-badge {
  top: 8px;
  left: 8px;
  /* Remove border for seamless pill appearance */
  border: none;
  /* DO NOT set color here - let modifier classes (.badge-male, .badge-female) handle it */
}

/* 
 * Badge color classes - Pattern B (soft look):
 * Light background + dark text of matching color for proper contrast.
 */
.badge-available {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-reserved {
  background: var(--color-warning-bg);
  color: #856404; /* Dark amber for readability on yellow bg */
}

/* 
 * .badge-sold UNIFIED with .status-sold
 * "Уехал в новый дом" is a SUCCESS state (puppy found home!)
 * Must be GREEN everywhere for consistency.
 */
.badge-sold {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-stay {
  background: var(--color-info-bg);
  color: #0c5460; /* Dark teal for readability on light blue bg */
}

.badge-default {
  background: var(--gray-lightest);
  color: var(--color-gray-700);
}

/* 
 * Sex Badges - Unified solid pill design with SVG icons.
 * 
 * CROSS-PLATFORM CONSISTENCY:
 * - Uses SVG icons via CSS mask-image for identical rendering on all OS.
 * - Icon color follows currentColor (white on colored background).
 * - No emoji fallback - pure SVG for consistency.
 * 
 * ACCESSIBILITY: White text/icons on colored background passes WCAG AA.
 * - #4a90e2 (male) + white = 4.5:1 contrast ratio ✓
 * - #e24a90 (female) + white = 4.6:1 contrast ratio ✓
 */
.badge-male {
  background-color: var(--color-male);
  color: var(--color-white);
}

.badge-female {
  background-color: var(--color-female);
  color: var(--color-white);
}

/* Sex badge layout with icon + text */
.puppy-sex-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
}

/* SVG icons inside badges inherit currentColor */
.puppy-sex-badge .icon,
.puppy-sex-badge .badge__icon {
  flex-shrink: 0;
}

/* Puppy Card Content */
.puppy-card-content {
  padding: 1rem;
}

.puppy-card-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--dark-bg);
  font-size: 1.1rem;
}

.puppy-card-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.puppy-card-link:hover {
  background: var(--primary-hover);
  color: var(--white);
}

/* Litter Gallery */
.litter-gallery {
  margin-top: 2rem;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* Site Footer */
.site-footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
  /* Use rgba color instead of opacity to keep text readable */
  color: rgba(255, 255, 255, 0.85);
}

/* =============================
   CLICKABLE CARDS
   
   Makes entire card surface clickable while preserving
   accessibility and existing interactive elements.
============================= */

/* Base clickable card styles */
.card--clickable {
  cursor: pointer;
  position: relative;
  /* Ensure focus ring is not clipped */
  overflow: visible;
}

/* 
 * CARD MEDIA CLIPPING - Apple-style rounded corners
 * 
 * Media containers inherit the card's top border-radius so content
 * (images + placeholders) is clipped to match the card's rounded corners.
 * Shadow remains on card root (not clipped because overflow: visible).
 */
.card--clickable .litter-image,
.card--clickable .puppy-card-image,
.card--clickable .puppy-image {
  overflow: hidden;
  /* Inherit card's border-radius for top corners only */
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

/* Subtle hover effect - no layout shift */
.card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Accessible focus ring for keyboard navigation */
.card--clickable:focus {
  outline: none;
}

.card--clickable:focus-visible {
  outline: 3px solid rgba(236, 92, 69, 0.5);
  outline-offset: 4px;
  box-shadow: var(--shadow-xl);
}

/* Ensure smooth transitions */
.card--clickable {
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    outline 0.15s ease;
}

/* Active state for click feedback */
.card--clickable:active {
  transform: translateY(-2px);
}

/* =============================
   SINGLE PUPPY PAGE
   
   Apple-like layout with centered content,
   8pt spacing system, and proper image handling.
   
   @since 1.5.0
============================= */

/* Page container */
.puppy-page {
  background: var(--color-white);
  min-height: 60vh;
  padding-top: var(--space-8);     /* 32px = 4x8 */
  padding-bottom: var(--space-16); /* 64px = 8x8 */
}

/* Content container - centered, readable width */
.puppy-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);  /* 24px = 3x8 */
  padding-right: var(--space-6); /* 24px = 3x8 */
}

/* =============================
   PUPPY HEADER
============================= */
.puppy-header {
  text-align: center;
  margin-bottom: var(--space-8); /* 32px = 4x8 */
}

.puppy-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl); /* 40px */
  font-weight: var(--font-weight-extrabold);
  color: var(--color-black);
  margin: 0 0 var(--space-2) 0;
  line-height: var(--line-height-tight);
}

.puppy-header .dog-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-600);
  margin: 0;
}

.puppy-header .litter-like-badge {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  color: var(--color-gray-500);
}

/* =============================
   PUPPY HERO IMAGE
   
   Proper aspect-ratio + object-fit handling.
   No stretching, no distortion.
============================= */
.puppy-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-gray-100);
  margin-bottom: var(--space-8); /* 32px = 4x8 */
  box-shadow: var(--shadow-md);
}

.puppy-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder when no image */
.puppy-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.puppy-hero-placeholder .icon {
  width: clamp(144px, 48%, 216px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  color: var(--color-white);
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* =============================
   PUPPY DETAILS (ACF Fields)
============================= */
.puppy-details {
  margin-bottom: var(--space-12); /* 48px = 6x8 */
}

.puppy-details p {
  margin-bottom: var(--space-3); /* 12px */
  line-height: var(--line-height-normal);
  color: var(--color-dark);
}

.puppy-details p strong {
  color: var(--color-black);
}

/* =============================
   PUPPY GROWTH TIMELINE
   
   Chronological growth sections with age headings
   and mosaic galleries. 8pt spacing throughout.
   BEM naming: .puppy-growth, .puppy-growth-gallery
============================= */
.puppy-growth {
  margin-top: var(--space-12); /* 48px = 6x8 */
  padding-top: var(--space-8); /* 32px = 4x8 */
  border-top: 1px solid var(--color-border-light);
}

.puppy-growth__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl); /* 32px */
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  text-align: center;
  margin: 0 0 var(--space-10) 0; /* 40px = 5x8 */
  position: relative;
}

.puppy-growth__title::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Individual growth stage */
.puppy-growth__stage {
  margin-bottom: var(--space-12); /* 48px = 6x8 */
}

.puppy-growth__stage:last-child {
  margin-bottom: 0;
}

.puppy-growth__age {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl); /* 24px */
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin: 0 0 var(--space-4) 0; /* 16px = 2x8 */
  padding-left: var(--space-4);
  border-left: 4px solid var(--color-primary);
}

/* =============================
   PUPPY GROWTH GALLERY (Mosaic Grid)
   
   Apple-like responsive CSS Grid with 8pt gaps.
   Thumbnails open full images in new tab.
   
   Responsive columns:
   - Base: 2 columns
   - >= 640px: 3 columns
   - >= 960px: 4 columns
============================= */
.puppy-growth-gallery {
  display: grid;
  gap: 8px; /* 8pt spacing system */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .puppy-growth-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .puppy-growth-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Gallery item link - clip to bounds with rounded corners */
.puppy-growth-gallery__item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-gray-100);
  aspect-ratio: 4 / 3;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover - Apple-like lift */
.puppy-growth-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Focus-visible ring for keyboard navigation */
.puppy-growth-gallery__item:focus {
  outline: none;
}

.puppy-growth-gallery__item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Gallery image - object-fit cover, no distortion */
.puppy-growth-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

/* Image hover zoom inside clipped container */
.puppy-growth-gallery__item:hover .puppy-growth-gallery__img {
  transform: scale(1.05);
}

/* Gallery responsive - tablet */
@media (max-width: 768px) {
  .puppy-page {
    padding-top: var(--space-6);
    padding-bottom: var(--space-12);
  }
  
  .puppy-content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .puppy-title {
    font-size: var(--font-size-3xl);
  }
  
  .puppy-hero-image {
    border-radius: var(--radius-base);
    margin-bottom: var(--space-6);
  }
  
  .puppy-growth__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-8);
  }
  
  .puppy-growth__stage {
    margin-bottom: var(--space-8);
  }
  
  .puppy-growth__age {
    font-size: var(--font-size-xl);
  }
}

/* Gallery responsive - mobile */
@media (max-width: 480px) {
  .puppy-content {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  
  .puppy-title {
    font-size: var(--font-size-2xl);
  }
  
  .puppy-hero-image {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
  }
  
  .puppy-growth-gallery__item {
    border-radius: 8px;
  }
}

/* =============================
   UNIFIED PUPPY CARD COMPONENT
   
   Single source of truth for puppy cards.
   Renders IDENTICALLY on:
   - Homepage ("Щенки в новых домах")
   - Single litter pages ("Щенки из этого помёта")
   - Bulls page (if applicable)
   
   BEM naming: .puppy-card, .puppy-card__*
   8pt spacing system throughout.
   
   @since 1.6.0
============================= */

/* Card container */
.puppy-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.puppy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* =============================
   PUPPY CARD MEDIA CONTAINER
   
   Apple-like media handling:
   - Fixed aspect-ratio (no CLS)
   - Overflow hidden (clip-to-bounds)
   - Border-radius from card
   - object-fit: cover (no stretch)
============================= */
.puppy-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-gray-100);
  /* Inherit card's top border-radius */
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.puppy-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder state */
.puppy-card__media--placeholder {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.puppy-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0.9;
}

.puppy-card__placeholder .icon {
  width: clamp(132px, 54%, 198px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* =============================
   PUPPY CARD BADGES
   
   Unified badge styling for status and sex.
   Positioned absolutely within media container.
============================= */
.puppy-card__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  z-index: 3;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status badge - top right */
.puppy-card__badge--status {
  top: 8px;
  right: 8px;
}

/* Sex badge - top left */
.puppy-card__badge--sex {
  top: 8px;
  left: 8px;
  border: none;
}

/* =============================
   PUPPY CARD STATUS COLORS
   
   CRITICAL: These colors are the SINGLE SOURCE OF TRUTH.
   Must match across all pages.
   
   "Уехал в новый дом" = GREEN (success, happy ending!)
============================= */
.puppy-badge--available {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.puppy-badge--reserved {
  background: var(--color-warning-bg);
  color: #856404;
}

/* UNIFIED: sold = GREEN (puppy found home = success!) */
.puppy-badge--sold {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.puppy-badge--stay {
  background: var(--color-info-bg);
  color: #0c5460;
}

.puppy-badge--default {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

/* =============================
   PUPPY CARD CONTENT SECTION
============================= */
.puppy-card__content {
  padding: var(--space-4); /* 16px = 2x8 */
  text-align: center;
}

.puppy-card__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  margin: 0 0 var(--space-2) 0;
  line-height: var(--line-height-snug);
}

.puppy-card__link {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.puppy-card__link:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

/* =============================
   PUPPY CARD RESPONSIVE
============================= */
@media (max-width: 768px) {
  .puppy-card__media {
    aspect-ratio: 1 / 1;
  }
  
  .puppy-card__content {
    padding: var(--space-3);
  }
  
  .puppy-card__title {
    font-size: var(--font-size-base);
  }
}

/* =============================
   LITTER CONTENT CONTAINER
   
   Centered container for single litter pages.
   Follows 8pt spacing system.
   Max-width ≈ 960px for readability.
   
   @since 1.6.0
============================= */
.litter-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);  /* 24px = 3x8 */
  padding-right: var(--space-6); /* 24px = 3x8 */
  padding-top: var(--space-8);   /* 32px = 4x8 */
  padding-bottom: var(--space-16); /* 64px = 8x8 */
}

/* =============================
   LITTER HEADER: TWO-COLUMN LAYOUT
   
   Desktop: Text (left) + Parent Images (right)
   Mobile: Stacked (text above images)
   
   @since 1.8.0
============================= */
.litter-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-black);
  margin: 0 0 var(--space-8) 0;
  text-align: center;
}

.litter-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 961px) {
  .litter-header {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.litter-header__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.litter-header__left > p {
  margin: 0;
  line-height: var(--line-height-normal);
}

.litter-header__right {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8); /* 32px */
}

/* Individual parent image container */
.parent-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px; /* 16px = 2×8 */
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease;
}

.parent-image:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.parent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* Litter puppies section spacing */
.litter-content .litter-puppies-section {
  margin-top: var(--space-12); /* 48px = 6x8 */
}

.litter-content .litter-puppies-section h2 {
  font-size: var(--font-size-2xl);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* Litter gallery spacing */
.litter-content .litter-gallery {
  margin-top: var(--space-12);
}

@media (max-width: 960px) {
  .litter-header {
    grid-template-columns: 1fr;
  }
  
  .litter-header__right {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .litter-content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    padding-top: var(--space-6);
    padding-bottom: var(--space-12);
  }
  
  .litter-title {
    font-size: var(--font-size-3xl);
  }
}

/* =============================
   CONTACTS PAGE LAYOUT
   
   Two-column grid layout for contacts page:
   - Desktop: Map (left, 1.2fr) + Info (right, 0.8fr)
   - Mobile: Single column (map stacked above info)
   
   Content is filtered via the_content() and wrapped in grid.
   Nested inside .page-container > .entry-content.
   
   8pt spacing system throughout.
   Apple-like calm, centered container.
   
   @since 1.7.0
============================= */

/* 
 * Section wrapper - breaks out of page-container to full width.
 * Uses negative margins to escape parent padding.
 */
.contacts {
  /* Reset parent padding impact */
  margin-left: calc(-1 * var(--space-8));
  margin-right: calc(-1 * var(--space-8));
  padding-top: var(--space-4);     /* 16px = 2×8 */
  padding-bottom: var(--space-8);  /* 32px = 4×8 */
  background: var(--color-white);
}

/* Centered container with proper padding */
.contacts__inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);  /* 32px = 4×8 */
  padding-right: var(--space-8); /* 32px = 4×8 */
}

/* Two-column grid layout */
.contacts__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8); /* 32px = 4×8 */
  align-items: start;
}

/* Fallback: single column when no map */
.contacts__grid--no-map {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================
   CONTACTS MAP CONTAINER
   
   Apple-like rounded corners with clip.
   Responsive iframe handling.
============================= */
.contacts__map {
  border-radius: 24px; /* 3×8 */
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-gray-100);
}

/* Remove any wrapper styles that might interfere */
.contacts__map figure,
.contacts__map div,
.contacts__map p {
  margin: 0;
  padding: 0;
}

/* Responsive iframe - 16:9 aspect ratio */
.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* =============================
   CONTACTS INFO SECTION
   
   Vertical stack of contact details.
   8pt-based spacing between elements.
============================= */
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* 16px = 2×8 */
}

/* Typography within info section */
.contacts__info p {
  margin: 0;
  line-height: var(--line-height-normal);
  color: var(--color-dark);
}

.contacts__info a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contacts__info a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Headings in info section */
.contacts__info h2,
.contacts__info h3,
.contacts__info h4 {
  font-family: var(--font-family-heading);
  color: var(--color-black);
  margin: 0;
  line-height: var(--line-height-snug);
}

.contacts__info h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.contacts__info h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

/* =============================
   CONTACTS RESPONSIVE - TABLET
============================= */
@media (max-width: 960px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6); /* 24px = 3×8 */
  }
  
  .contacts__map {
    order: 1;
  }
  
  .contacts__info {
    order: 2;
  }
}

/* =============================
   CONTACTS RESPONSIVE - MOBILE
============================= */
@media (max-width: 768px) {
  .contacts {
    /* Adjust breakout for smaller parent padding */
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
  }
  
  .contacts__inner {
    padding-left: var(--space-4);  /* 16px = 2×8 */
    padding-right: var(--space-4);
  }
  
  .contacts__map {
    border-radius: var(--radius-lg); /* 12px */
  }
  
  .contacts__grid {
    gap: var(--space-6); /* 24px = 3×8 */
  }
}

@media (max-width: 480px) {
  .contacts {
    /* Adjust breakout for smaller parent padding */
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
  }
  
  .contacts__inner {
    padding-left: var(--space-3);  /* 12px */
    padding-right: var(--space-3);
  }
  
  .contacts__map {
    border-radius: var(--radius-base); /* 8px */
  }
  
  .contacts__map iframe {
    aspect-ratio: 4 / 3; /* Slightly taller on mobile */
  }
  
  .contacts__grid {
    gap: var(--space-4); /* 16px = 2×8 */
  }
  
  .contacts__info {
    gap: var(--space-3); /* 12px */
  }
}

/* =============================
   EXHIBITIONS ARCHIVE
   
   Vertical list of exhibition cards.
   Cards are fully clickable via data-card-link.
   Horizontal layout on desktop, stacked on mobile.
   
   8pt spacing system throughout.
   Apple-like rounded corners with clip-to-bounds.
   Shadow via pseudo-element pattern.
   
   @since 1.8.0
============================= */

.exhibitions-archive {
  padding-top: var(--space-8);     /* 32px = 4×8 */
  padding-bottom: var(--space-16); /* 64px = 8×8 */
  background: var(--color-white);
}

.exhibitions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* 24px = 3×8 */
}

/* =============================
   EXHIBITION CARD
   
   Horizontal card layout (media left, content right).
   Fully clickable surface via data-card-link.
   
   Shadow via ::after pseudo-element for performance.
============================= */
.exhibition-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    outline 0.15s ease;
}

/* Shadow via pseudo-element (NOT box-shadow directly) */
.exhibition-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-card);
  pointer-events: none;
  transition: box-shadow 0.2s ease;
  z-index: -1;
}

/* Hover state */
.exhibition-card:hover {
  transform: translateY(-4px);
}

.exhibition-card:hover::after {
  box-shadow: var(--shadow-xl);
}

/* Focus state for keyboard navigation */
.exhibition-card:focus {
  outline: none;
}

.exhibition-card:focus-visible {
  outline: 3px solid rgba(236, 92, 69, 0.5);
  outline-offset: 4px;
}

.exhibition-card:focus-visible::after {
  box-shadow: var(--shadow-xl);
}

/* Active state */
.exhibition-card:active {
  transform: translateY(-2px);
}

/* =============================
   EXHIBITION CARD MEDIA
============================= */
.exhibition-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-gray-100);
  /* Inherit card's left border-radius */
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.exhibition-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder state */
.exhibition-card__media--placeholder {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibition-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-white);
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.exhibition-card__placeholder .icon {
  width: clamp(144px, 48%, 216px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* =============================
   EXHIBITION CARD CONTENT
============================= */
.exhibition-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* 8px = 1×8 */
  padding: var(--space-6); /* 24px = 3×8 */
}

.exhibition-card__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 0;
  line-height: var(--line-height-snug);
}

.exhibition-card__date,
.exhibition-card__location,
.exhibition-card__dogs {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  line-height: var(--line-height-normal);
}

.exhibition-card__date strong,
.exhibition-card__location strong,
.exhibition-card__dogs strong {
  color: var(--color-dark);
  margin-right: var(--space-1);
}

/* Awards chips */
.exhibition-card__awards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2); /* 8px = 1×8 */
  margin-top: var(--space-2);
}

.exhibition-card__award-chip {
  display: inline-block;
  padding: var(--space-1) var(--space-3); /* 4px 12px */
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
}

/* Visual-only link button */
.exhibition-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

/* =============================
   EXHIBITION CARD RESPONSIVE
============================= */
@media (max-width: 768px) {
  .exhibition-card {
    grid-template-columns: 1fr;
  }
  
  .exhibition-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }
  
  .exhibition-card__content {
    padding: var(--space-4); /* 16px = 2×8 */
  }
  
  .exhibition-card__title {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  .exhibitions-archive {
    padding-top: var(--space-6);
    padding-bottom: var(--space-12);
  }
  
  .exhibitions-list {
    gap: var(--space-4);
  }
  
  .exhibition-card__media {
    aspect-ratio: 4 / 3;
    border-top-left-radius: var(--radius-base);
    border-top-right-radius: var(--radius-base);
  }
  
  .exhibition-card {
    border-radius: var(--radius-base);
  }
  
  .exhibition-card__content {
    padding: var(--space-3);
  }
}

/* No exhibitions message */
.no-exhibitions {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-gray-500);
  font-size: var(--font-size-lg);
}

/* =============================
   SINGLE EXHIBITION PAGE
   
   Centered container with 8pt spacing.
   Max-width for readability.
   Apple-like calm design.
   
   @since 1.8.0
============================= */

.exhibition-page {
  background: var(--color-white);
  min-height: 60vh;
  padding-top: var(--space-8);     /* 32px = 4×8 */
  padding-bottom: var(--space-16); /* 64px = 8×8 */
}

.exhibition-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);  /* 24px = 3×8 */
  padding-right: var(--space-6); /* 24px = 3×8 */
}

/* =============================
   EXHIBITION HEADER
============================= */
.exhibition-header {
  text-align: center;
  margin-bottom: var(--space-8); /* 32px = 4×8 */
}

.exhibition-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl); /* 40px */
  font-weight: var(--font-weight-extrabold);
  color: var(--color-black);
  margin: 0;
  line-height: var(--line-height-tight);
}

/* =============================
   EXHIBITION META (Date, Location)
============================= */
.exhibition-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius-base);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-4);
}

.exhibition-meta strong {
  color: var(--color-dark);
  min-width: 140px;
}

.exhibition-meta span {
  color: var(--color-gray-600);
  font-size: var(--font-size-md);
}

/* =============================
   EXHIBITION SECTION TITLES
============================= */
.exhibition-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl); /* 24px */
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  margin: var(--space-8) 0 var(--space-4) 0;
}

.exhibition-section-title .icon {
  width: 2.25rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

/* =============================
   EXHIBITION DOGS LIST
============================= */
.exhibition-dogs {
  margin-top: var(--space-8);
}

.exhibition-dogs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.exhibition-dogs__item {
  margin: 0;
}

.exhibition-dogs__link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-gray-50);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-base);
  color: var(--color-dark);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.exhibition-dogs__link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* =============================
   EXHIBITION AWARDS LIST
============================= */
.exhibition-awards {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.exhibition-awards .exhibition-section-title {
  margin-top: 0;
}

.exhibition-awards__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.exhibition-awards__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-base);
  border-left: 4px solid #ffd700;
  box-shadow: var(--shadow-xs);
}

.exhibition-awards__item .icon {
  width: 2.25rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  color: #ffd700;
  flex-shrink: 0;
}

.exhibition-awards__item span {
  color: var(--color-dark);
  font-weight: var(--font-weight-medium);
}

/* =============================
   EXHIBITION FEATURED IMAGE
============================= */
.exhibition-featured-image {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.exhibition-featured-image__img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================
   EXHIBITION GALLERY
============================= */
.exhibition-gallery {
  margin-top: var(--space-12);
}

.exhibition-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px; /* 8pt spacing */
}

.exhibition-gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-gray-100);
  aspect-ratio: 4 / 3;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exhibition-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.exhibition-gallery__item:focus {
  outline: none;
}

.exhibition-gallery__item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.exhibition-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.exhibition-gallery__item:hover img {
  transform: scale(1.05);
}

/* =============================
   EXHIBITION EDITOR CONTENT
============================= */
.exhibition-editor-content {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.exhibition-editor-content p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--color-dark);
}

.exhibition-editor-content h2,
.exhibition-editor-content h3,
.exhibition-editor-content h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-black);
}

/* =============================
   EXHIBITION NAVIGATION
============================= */
.exhibition-navigation {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.exhibition-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-base);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.exhibition-back-link:hover {
  background: var(--color-primary-hover);
  transform: translateX(-4px);
  color: var(--color-white);
}

.exhibition-back-link:focus-visible {
  outline: 3px solid rgba(236, 92, 69, 0.5);
  outline-offset: 2px;
}

/* =============================
   SINGLE EXHIBITION RESPONSIVE
============================= */
@media (max-width: 768px) {
  .exhibition-page {
    padding-top: var(--space-6);
    padding-bottom: var(--space-12);
  }
  
  .exhibition-content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .exhibition-title {
    font-size: var(--font-size-3xl);
  }
  
  .exhibition-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  
  .exhibition-meta strong {
    min-width: auto;
  }
  
  .exhibition-section-title {
    font-size: var(--font-size-xl);
  }
  
  .exhibition-awards {
    padding: var(--space-4);
  }
  
  .exhibition-featured-image {
    border-radius: var(--radius-base);
  }
  
  .exhibition-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .exhibition-content {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  
  .exhibition-title {
    font-size: var(--font-size-2xl);
  }
  
  .exhibition-gallery__grid {
    gap: 4px;
  }
  
  .exhibition-gallery__item {
    border-radius: var(--radius-sm);
  }
}
