/* ===== Cosmic Mi-Kis — Brushstroke Heart Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --blue-900: #2E4F66; --blue-800: #3D6580; --blue-700: #4F7B9B; --blue-600: #5E8DAE;
  --blue-500: #7A9FB9; --blue-400: #94B4CA; --blue-300: #B0C9DA; --blue-200: #CDDBE7;
  --blue-100: #E3EDF3; --blue-50: #F1F6F9;
  --pink-700: #9E3570; --pink-600: #C74B8E; --pink-500: #D4609E; --pink-400: #E088B7;
  --pink-300: #EDB3D2; --pink-200: #F5D5E6; --pink-100: #FBE9F2;
  --brand-blue: var(--blue-700); --brand-blue-dark: var(--blue-900); --brand-pink: var(--pink-600);
  --text: #2D3A44; --text-mid: #5A6B78; --text-light: #8A9BA8;
  --sage: #7FA07A; --sage-light: #C6DBC3;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Nunito Sans', 'Segoe UI', sans-serif;
  --max-w: 1180px; --radius: 14px; --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(46,79,102,0.07);
  --shadow-md: 0 6px 28px rgba(46,79,102,0.10);
  --shadow-lg: 0 10px 44px rgba(46,79,102,0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: #fff; line-height: 1.75; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--brand-pink); }
h1, h2, h3, h4, h5 { font-family: var(--display); color: var(--brand-blue-dark); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1em; }

/* Buttons */
.btn { display: inline-block; padding: 14px 36px; border-radius: 50px; font-family: var(--body); font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; transition: all 0.3s var(--ease); cursor: pointer; border: 2px solid transparent; }
.btn-pink { background: var(--brand-pink); color: #fff; border-color: var(--brand-pink); }
.btn-pink:hover { background: var(--pink-700); border-color: var(--pink-700); }
.btn-blue { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-blue:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-outline { background: transparent; color: var(--brand-blue); border-color: var(--blue-300); }
.btn-outline:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-white { background: #fff; color: var(--brand-blue-dark); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--blue-100); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 2px 24px rgba(46,79,102,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.brand-text { font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--brand-blue-dark); }
.brand-text span { color: var(--brand-pink); }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a { color: var(--text-mid); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px; padding: 6px 0; position: relative; transition: color 0.25s; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--brand-pink); transition: width 0.3s var(--ease); }
nav a:hover, nav a.active { color: var(--brand-blue); }
nav a:hover::after, nav a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--brand-blue-dark); transition: 0.3s; border-radius: 2px; }

/* ===== Hero — White center so logo blends seamlessly ===== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 0% 50%, var(--blue-50), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 50%, var(--pink-100), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, var(--blue-100), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-200), var(--pink-200), transparent);
}
.hero-content { position: relative; z-index: 2; padding: 20px 28px 40px; max-width: 680px; }
.hero-logo {
  max-width: 420px; margin: 0 auto 12px;
  animation: logoIn 1s var(--ease) both;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 32px; font-weight: 400; line-height: 1.8; animation: fadeUp 0.8s 0.4s var(--ease) both; }
.hero-buttons { animation: fadeUp 0.8s 0.6s var(--ease) both; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Accent line */
.accent-line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-pink)); border-radius: 3px; }
.story-text .accent-line { margin-bottom: 20px; }
.page-header .accent-line { margin: 16px auto 0; position: relative; z-index: 1; }

/* Story */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.story-img { position: relative; }
.story-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story-img::after { content: ''; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px; border: 2px solid var(--blue-200); border-radius: var(--radius); z-index: -1; }
.story-text h2 { margin-bottom: 24px; }
.story-text p { color: var(--text-mid); font-size: 1rem; }

/* Page Header */
.page-header { padding: 88px 0 48px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(170deg, var(--blue-100), var(--blue-200) 50%, var(--pink-100) 100%); }
.page-header::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 80px; background: linear-gradient(to top, #fff, transparent); }
.page-header h1 { position: relative; z-index: 1; color: var(--brand-blue-dark); }
.page-header p { position: relative; z-index: 1; color: var(--text-mid); font-size: 1.1rem; margin-top: 8px; }

/* Dog Profiles */
.dog-profile { border-bottom: 1px solid var(--blue-100); padding-bottom: 64px; margin-bottom: 64px; }
.dog-profile:last-child { border-bottom: none; margin-bottom: 0; }
.dog-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.dog-grid.reverse { grid-template-columns: 1.2fr 1fr; }
.dog-grid.reverse .dog-photo { order: 2; }
.dog-photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.dog-info h3 { font-size: 1.6rem; margin-bottom: 4px; }
.dog-titles { color: var(--brand-blue); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.dog-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dog-tag { padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; background: var(--blue-100); color: var(--blue-800); }
.dog-bio { color: var(--text-mid); }

/* Puppy Cards */
.puppy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.puppy-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.puppy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.puppy-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.puppy-card-body { padding: 24px; }
.puppy-card h3 { margin-bottom: 4px; }
.puppy-details { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 8px; }
.puppy-weight { font-weight: 700; color: var(--sage); font-size: 0.85rem; margin-bottom: 12px; }
.puppy-bio { color: var(--text-mid); font-size: 0.92rem; }
.status-badge { display: inline-block; padding: 5px 16px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.status-available { background: var(--sage-light); color: #2D5A2D; }
.status-onhold { background: #FFF3CD; color: #7A6215; }
.status-reserved { background: var(--pink-200); color: var(--pink-700); }
.status-adopted { background: var(--blue-100); color: var(--blue-800); }

/* Parents */
.parents-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 36px 0; }
.parent-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.parent-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.parent-card-body { padding: 20px; flex: 1; }
.role-label { display: inline-block; background: var(--brand-blue); color: #fff; padding: 3px 14px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* Info Cards */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.info-card { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--brand-pink); }
.info-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.info-card p { color: var(--text-mid); }

/* ===== Showcase Carousel ===== */
.showcase {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 28px; box-shadow: var(--shadow-lg);
  aspect-ratio: 16/7;
}
.showcase-stage { position: relative; width: 100%; height: 100%; }
.showcase-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease-in-out;
}
.showcase-slide.active { opacity: 1; z-index: 1; }
.showcase-slide img { width: 100%; height: 100%; object-fit: cover; }
.showcase-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px 24px;
  background: linear-gradient(to top, rgba(46,79,102,0.7) 0%, rgba(46,79,102,0.3) 50%, transparent 100%);
  color: #fff; font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.showcase-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,0.15); border: none; color: rgba(255,255,255,0.85);
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; backdrop-filter: blur(4px);
}
.showcase-nav:hover { background: rgba(255,255,255,0.3); color: #fff; }
.showcase-prev { left: 16px; }
.showcase-next { right: 16px; }
.showcase-progress {
  position: absolute; bottom: 0; left: 0; z-index: 3;
  height: 3px; background: var(--brand-pink);
  width: 0; transition: width linear;
}
.showcase-dots {
  position: absolute; bottom: 14px; right: 20px; z-index: 3;
  display: flex; gap: 7px;
}
.showcase-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s;
}
.showcase-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ===== Gallery ===== */
.gallery-section { background: var(--blue-50); }
.gallery-section h2 { text-align: center; margin-bottom: 12px; }
.gallery-intro { text-align: center; color: var(--text-mid); margin-bottom: 40px; }

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}
.gallery-mosaic .gal-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  cursor: pointer;
}
.gallery-mosaic .gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s;
}
.gallery-mosaic .gal-item:hover img { transform: scale(1.08); }
.gallery-mosaic .gal-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,79,102,0.4) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.gallery-mosaic .gal-item:hover::after { opacity: 1; }
.gallery-mosaic .gal-item .gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px; color: #fff; font-size: 0.82rem; font-weight: 600;
  transform: translateY(100%); transition: transform 0.35s var(--ease);
  z-index: 2;
}
.gallery-mosaic .gal-item:hover .gal-caption { transform: translateY(0); }
.gallery-mosaic .gal-span-2 { grid-column: span 2; }
.gallery-mosaic .gal-tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,16,22,0.92); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap {
  position: relative; max-width: 90vw; max-height: 85vh;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.92); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.35s;
}
.lightbox.open .lightbox-img-wrap img { transform: scale(1); opacity: 1; }
.lightbox-caption {
  text-align: center; color: rgba(255,255,255,0.85); margin-top: 16px;
  font-size: 0.9rem; font-weight: 500;
}
.lightbox-counter {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 2px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 32px; cursor: pointer; transition: color 0.2s;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.lightbox-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.8);
  width: 52px; height: 52px; border-radius: 50%; font-size: 24px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); color: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.lightbox-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.25s;
  padding: 0;
}
.lightbox-dot.active { background: var(--brand-pink); width: 24px; border-radius: 4px; }

/* CTA */
.cta { text-align: center; color: #fff; background: linear-gradient(135deg, var(--blue-800), var(--brand-blue), var(--blue-600)); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }

/* Content Page */
.content-page { max-width: 800px; margin: 0 auto; }
.content-page p { color: var(--text-mid); }
.content-page h3 { margin-top: 2em; margin-bottom: 0.5em; padding-bottom: 8px; border-bottom: 2px solid var(--blue-100); }
.content-page img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }

/* Litter */
.litter-section { border-bottom: 1px solid var(--blue-100); padding-bottom: 48px; margin-bottom: 48px; }
.litter-section:last-child { border-bottom: none; }
.litter-date { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.site-footer h4 { color: var(--blue-200); font-family: var(--display); font-size: 1.2rem; margin-bottom: 16px; }
.site-footer a { color: var(--pink-300); }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: 0.9rem; line-height: 1.8; }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; opacity: 0.85; }
.copyright { text-align: center; font-size: 0.82rem; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .story-grid, .dog-grid, .dog-grid.reverse, .parents-row, .footer-grid { grid-template-columns: 1fr; }
  .dog-grid.reverse .dog-photo { order: 0; }
  .story-img::after { display: none; }
  .gallery-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .gallery-mosaic .gal-span-2 { grid-column: span 1; }
  .showcase { aspect-ratio: 16/8; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: #fff; padding: 32px; z-index: 99; transform: translateX(100%); transition: transform 0.35s var(--ease); }
  nav.open { transform: translateX(0); }
  nav ul { flex-direction: column; gap: 20px; }
  .hero { min-height: auto; padding: 40px 0 20px; }
  .hero-logo { max-width: 280px; }
  .section { padding: 56px 0; }
  .puppy-grid { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-mosaic .gal-tall { grid-row: span 1; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===== Photo placeholders (when editor has no image yet) ===== */
.photo-placeholder {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue-100), var(--pink-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue); font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius);
}
.photo-placeholder.small { aspect-ratio: 1; font-size: 0.75rem; }
.photo-placeholder.large { aspect-ratio: 16/10; }

/* ===== Photo strip (puppy galleries on Nursery) ===== */
.photo-strip-label {
  font-size: 0.78rem; font-weight: 700; color: var(--brand-blue);
  text-transform: uppercase; letter-spacing: 1.5px;
  text-align: center; margin: 24px 0 12px;
}
.photo-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.photo-strip img {
  flex: 0 0 200px; height: 150px; object-fit: cover;
  border-radius: var(--radius-sm); scroll-snap-align: start;
}
.photo-strip.tall img { height: 220px; flex-basis: 280px; }

.pup-section { margin-bottom: 48px; }
.pup-section-header {
  display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: center;
}
.pup-section-header > img, .pup-section-header > .photo-placeholder {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.pup-section-info h3 { margin-bottom: 6px; }
.pup-section-gallery { margin-top: 16px; }
@media (max-width: 768px) {
  .pup-section-header { grid-template-columns: 1fr; }
}

/* ===== Embark section on Our Dogs ===== */
.embark-block {
  background: var(--blue-50); border-left: 3px solid var(--brand-pink);
  padding: 16px 20px; border-radius: 4px; margin-top: 20px;
}
.embark-block.coming-soon { color: var(--text-mid); font-size: 0.9rem; }
.embark-block h4 {
  font-family: var(--body); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand-blue); margin-bottom: 12px;
}
.embark-detail { margin-bottom: 12px; }
.embark-detail strong { display: block; color: var(--brand-blue-dark); font-size: 0.95rem; margin-bottom: 2px; }
.embark-detail p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 0; }

/* ===== Horizontal scroll lists (Future Hopefuls, Certificates) ===== */
.hscroll-list, .cert-list, .litter-strip {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 6px 4px 24px; scroll-snap-type: x mandatory;
  scroll-padding: 20px;
}
.hscroll-card, .litter-strip-card {
  flex: 0 0 320px; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  scroll-snap-align: start; transition: transform 0.35s, box-shadow 0.35s;
}
.hscroll-card:hover, .litter-strip-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.hscroll-card img, .litter-strip-card img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.hscroll-card-body, .litter-strip-card-body { padding: 20px; }
.hscroll-card-body h3 { margin-bottom: 6px; font-size: 1.2rem; }
.litter-strip-card-body h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--brand-blue-dark); }
.litter-strip-card-body p { color: var(--text-mid); font-size: 0.88rem; margin-bottom: 4px; }
.litter-strip-card { text-decoration: none; color: inherit; }

.cert-card {
  flex: 0 0 240px; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  scroll-snap-align: start; transition: transform 0.35s, box-shadow 0.35s;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cert-card-body { padding: 14px 18px; }
.cert-card-body h4 { font-family: var(--body); font-size: 0.95rem; margin-bottom: 4px; color: var(--brand-blue-dark); }
.cert-card-body p { color: var(--text-mid); font-size: 0.8rem; margin-bottom: 0; }

/* ===== Chart / Certificate modal ===== */
.chart-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,16,22,0.92); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.chart-modal.open { opacity: 1; pointer-events: all; }
.chart-modal img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.chart-modal-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 32px; cursor: pointer; transition: color 0.2s;
  width: 48px; height: 48px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
}
.chart-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.chart-trigger { cursor: pointer; position: relative; display: inline-block; }
.chart-trigger .zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(46,79,102,0.85); color: #fff;
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

/* ===== Care blocks (Mi-Ki Care page) ===== */
.care-block {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  margin-bottom: 80px; align-items: center;
}
.care-block.reverse { grid-template-columns: 1fr 1.2fr; }
.care-block.reverse .care-text { order: 2; }
.care-text h3 { margin-bottom: 16px; }
.care-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.product-card {
  background: var(--blue-50); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 12px;
}
.product-card h4 {
  font-family: var(--body); font-size: 1rem; font-weight: 700;
  color: var(--brand-blue-dark); margin-bottom: 4px;
}
.product-card p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 8px; }
.product-link {
  font-size: 0.85rem; font-weight: 600; color: var(--brand-pink);
}

@media (max-width: 768px) {
  .care-block, .care-block.reverse { grid-template-columns: 1fr; }
  .care-block.reverse .care-text { order: 0; }
}

/* ===== Gallery Layout & Caption Variants (set by editor) ===== */
/* Layouts: mosaic (default), uniform, columns-3 */
.gallery-mosaic.layout-uniform { grid-auto-rows: 220px; }
.gallery-mosaic.layout-uniform .gal-item { grid-column: span 1 !important; grid-row: span 1 !important; }
.gallery-mosaic.layout-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-mosaic.layout-columns-3 .gal-span-2 { grid-column: span 1; }

/* Captions: hover (default), always, none */
.gallery-mosaic.captions-always .gal-item .gal-caption {
  transform: translateY(0);
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  padding-top: 24px;
}
.gallery-mosaic.captions-always .gal-item::after { opacity: 1; }
.gallery-mosaic.captions-none .gal-item .gal-caption { display: none; }

/* Hover effects: zoom (default), tilt, fade */
.gallery-mosaic.effect-tilt .gal-item:hover img { transform: scale(1.05) rotate(-1deg); }
.gallery-mosaic.effect-fade .gal-item:hover img { transform: none; filter: brightness(1.1) saturate(1.15); }
.gallery-mosaic.effect-none .gal-item:hover img { transform: none; }
