/* Homepage — original layout + modern polish */

:root {
  --cream-page: #ebe8e0;
  --cream-hero-plinth: rgba(245, 241, 235, 0.4);
  --slate: #4a5d74;
  --slate-dark: #3a506b;
  --text-dark: #2a2a2a;
}

body.page-home {
  background: var(--cream-page);
  --cream-light: var(--cream-page);
  --cream: #e4ddd4;
}

/* Nav — matches site-wide minimal style on homepage */
body.page-home .site-header {
  background: rgba(235, 228, 216, 0.9);
  border-bottom: 1px solid rgba(42, 42, 42, 0.06);
}

body.page-home .logo-text span {
  color: var(--slate);
}

/* Mountain hero */
.hero--mountain {
  min-height: clamp(420px, 52vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero slideshow — continuous horizontal scroll (rightward) */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  container-type: inline-size;
}

.hero__slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(30, 25, 20, 0.26) 0%,
    rgba(50, 40, 30, 0.06) 46%,
    rgba(50, 40, 30, 0.06) 54%,
    rgba(80, 65, 50, 0.22) 100%
  );
}

.hero__slideshow-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
  animation: heroMarqueeRight 56s linear infinite;
}

.hero__slide-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroPanelPan 56s linear infinite;
}

@keyframes heroMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes heroPanelPan {
  from { background-position: 42% 40%; }
  to { background-position: 58% 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slideshow-track {
    animation: none;
    transform: translateX(0);
  }

  .hero__slide-panel {
    animation: none;
    transform: scale(1.06);
  }

  .hero__slide-panel:not(:first-child) {
    display: none;
  }
}

.hero__smoke {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
}

/* Ghost logos — sides & edges of slideshow only */
.hero__edge-ghosts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__edge-ghost {
  position: absolute;
  width: clamp(140px, 22vw, 260px);
  height: auto;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  filter: brightness(1.15) contrast(0.92);
  user-select: none;
}

.hero__edge-ghost--left {
  left: -4%;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}

.hero__edge-ghost--right {
  right: -4%;
  top: 50%;
  transform: translateY(-50%) rotate(6deg) scaleX(-1);
  mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
}

.hero__edge-ghost--top {
  left: 50%;
  top: -6%;
  width: clamp(120px, 18vw, 200px);
  opacity: 0.1;
  transform: translateX(-50%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* Center lockup — brand / dog / tagline (matches reference layout) */
.hero--mountain .hero__lockup {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  width: 100%;
  padding: clamp(1rem, 3vw, 1.75rem);
  text-align: center;
  pointer-events: none;
  isolation: isolate;
}

.hero--mountain .hero__lockup-line {
  margin: 0;
  width: 100%;
  max-width: 95vw;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 3px 28px rgba(0, 0, 0, 0.55),
    0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero--mountain .hero__lockup-logo {
  display: block;
  width: clamp(160px, 32vw, 280px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 1;
  filter:
    brightness(0) invert(1) brightness(1.2) contrast(1.05)
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.55))
    drop-shadow(0 4px 20px rgba(0, 0, 0, 0.25));
}

/* Litter card on home */
.home-litter-wrap {
  padding: 0 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
}

.home-litter-wrap .litter-card {
  margin: 0 auto;
  background: var(--slate);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-litter-wrap .litter-card[data-status="available"] {
  background: var(--banner-available);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Photo galleries — original rectangular grid */
.home-strip {
  background: var(--cream-page);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.home-gallery {
  display: grid;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  max-width: min(100% - 1.5rem, 1180px);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
}

.home-gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.home-gallery--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.home-gallery figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #d8d2c8;
  box-shadow: 0 4px 24px rgba(30, 30, 30, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.home-gallery--4 figure {
  aspect-ratio: 1;
}

.home-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 30, 30, 0.14);
}

.home-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.home-gallery figure:hover img {
  transform: scale(1.04);
}

/* Headings & CTA — original order: photos then title */
.home-heading-block {
  text-align: center;
  max-width: 900px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 1rem;
}

.home-heading-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.home-heading-block .btn-slate {
  display: inline-flex;
  padding: 0.65rem 2.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  background: var(--slate);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.home-heading-block .btn-slate:hover {
  background: var(--slate-dark);
  color: #fff;
  transform: translateY(-2px);
}

.home-rule {
  border: none;
  height: 1px;
  background: #2a2a2a;
  max-width: min(100% - 2rem, 1100px);
  margin: clamp(2rem, 4vw, 3rem) auto;
  opacity: 0.85;
}

/* Quote band — original slate blue */
body.page-home .quote-band {
  background: var(--slate);
  color: #fff;
  border: none;
  max-width: min(100% - 2rem, 1100px);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 8px 32px rgba(58, 80, 107, 0.2);
}

/* Family testimonials */
.home-testimonials {
  background: var(--cream-page);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.home-testimonials__inner {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.home-testimonials__header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.home-testimonials__header .eyebrow {
  display: block;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
}

.home-testimonials__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.home-testimonials__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  align-items: stretch;
}

.home-testimonial {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  background: #e4ddd4;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(30, 30, 30, 0.1);
}

.home-testimonial__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #2a2a2a;
  vertical-align: middle;
}

/* Nationwide service area */
.home-service-area {
  padding: clamp(2rem, 5vw, 3rem) 1rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.home-service-area .container {
  max-width: 42rem;
}

.home-service-area__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  color: var(--text-dark, #2a2a2a);
}

.home-service-area__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(42, 42, 42, 0.82);
}

/* Contact on home */
body.page-home .form-panel {
  background: var(--slate);
}

body.page-home .social-bar {
  background: var(--slate-dark);
}

body.page-home .site-footer {
  background: var(--slate-dark);
}

@media (max-width: 640px) {
  .home-testimonials__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-gallery--3,
  .home-gallery--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__edge-ghost {
    opacity: 0.12;
  }

  .hero__edge-ghost--top {
    display: none;
  }
}

@media (max-width: 520px) {
  .home-gallery--3,
  .home-gallery--4 {
    grid-template-columns: 1fr;
  }

  .home-gallery--4 figure {
    aspect-ratio: 4/3;
  }
}
