/* === Hero Section — BOLD & IMMERSIVE === */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,209,102,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,107,53,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(6,214,160,0.2) 0%, transparent 50%),
    var(--color-blush);
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 5;
  /* Anchor the headline/buttons to the left edge instead of a centered
     1200px container, so they don't drift toward the middle on wide
     screens (the reviews live on the right). */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 40px clamp(24px, 5vw, 80px);
}

.hero__text {
  max-width: 800px;
}

.hero__eyebrow {
  font-family: 'Pacifico', cursive;
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.hero__headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 28px;
  color: var(--color-deep);
  letter-spacing: -0.03em;
}

.hero__headline .word {
  display: inline-block;
}

.hero__headline .accent {
  color: var(--color-primary);
  font-style: italic;
}

.hero__sub {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 550px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Floating Background Elements — Parallax === */
.hero__bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.float-el {
  position: absolute;
  opacity: 0.5;
  will-change: transform;
}

.float-el.star { top: 12%; left: 68%; font-size: 3rem; animation: float 3s ease-in-out infinite; }
.float-el.cloud { top: 8%; left: 82%; font-size: 4rem; animation: float 4.5s ease-in-out infinite 0.5s; }
.float-el.duck { top: 55%; left: 72%; font-size: 3.5rem; animation: float 3.5s ease-in-out infinite 1s; }
.float-el.paw { top: 65%; left: 88%; font-size: 2.5rem; animation: float 3s ease-in-out infinite 1.5s; }
.float-el.star-2 { top: 28%; left: 78%; font-size: 2.5rem; animation: float 4.5s ease-in-out infinite 0.8s; }
.float-el.balloon { top: 40%; left: 62%; font-size: 4rem; animation: float 3.2s ease-in-out infinite 0.3s; }

/* Large decorative blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,209,102,0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,214,160,0.2) 0%, transparent 70%);
  bottom: -50px;
  left: -100px;
}

/* Hero SVG illustration */
.hero__illustration {
  position: absolute;
  right: 5%;
  bottom: 15%;
  z-index: 3;
  width: 35vw;
  max-width: 500px;
  opacity: 0.9;
}

/* Hero wave */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 6;
}

.hero__wave svg {
  width: 100%;
  height: auto;
}

/* === Pet Care Hero === */
.hero--pet {
  min-height: 70vh;
  background: linear-gradient(135deg, var(--color-accent) 0%, #04c292 50%, #06D6A0 100%);
}

.hero--pet .hero__headline {
  color: var(--color-white);
  /* Scaled to fill the taller hero while still fitting the longer phrase. */
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 26px;
}

.hero--pet .hero__sub {
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  margin-bottom: 32px;
}

.hero--pet .hero__eyebrow {
  color: var(--color-white);
  margin-bottom: 14px;
}

.paw-rain {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  animation: paw-fall linear infinite;
}

/* === Scroll Indicator === */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.8s ease 2s both;
}

.scroll-indicator__text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator__line {
  width: 2px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* === Photo Hero Backgrounds === */
/* Drop a photo behind the hero text. The first (top) layer is a soft
   overlay that keeps the text readable; the photo sits beneath it. If
   the image is missing, the background-color fallback shows instead.
   The wavy bottom edge (.hero__wave) is a separate overlay, so the
   curved look is preserved automatically. */

/* Home hero — DARK text, so a light cream overlay. */
.hero--photo {
  /* Shorter than full screen so it doesn't dominate — pulls the wave up. */
  min-height: calc(100vh - 290px);
  background-image:
    linear-gradient(rgba(255,241,230,0.66), rgba(255,241,230,0.46)),
    url('../images/hero-home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hide the building-blocks illustration over a real photo (avoids clutter). */
.hero--photo .hero__illustration {
  display: none;
}

/* Testimonial accent pinned to the right third of the hero. */
.hero__quote {
  position: absolute;
  top: 44%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 4;
  width: 320px;
  margin: 0;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero__quote-stars {
  font-size: 1.25rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.hero__quote-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.4;
  margin: 0 0 14px;
}

.hero__quote-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Home hero — dark text, gold-orange stars, light halo for legibility. */
.hero--photo .hero__quote-stars {
  color: var(--color-primary);
}
.hero--photo .hero__quote-text,
.hero--photo .hero__quote-name {
  color: var(--color-deep);
  text-shadow: 0 1px 14px rgba(255,241,230,0.7);
}

/* Pet hero — white text, sunshine stars, dark halo for legibility. */
.hero--photo-pet .hero__quote-stars {
  color: var(--color-secondary);
}
.hero--photo-pet .hero__quote-text,
.hero--photo-pet .hero__quote-name {
  color: #fff;
  text-shadow: 0 1px 16px rgba(7,59,76,0.55);
}

.hero__accent-words .accent-dot {
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0.45;
  margin: 4px 0;
}

/* Make the scroll cue pop against the home hero photo. */
.hero--photo .scroll-indicator__text {
  color: var(--color-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero--photo .scroll-indicator__line {
  width: 3px;
  height: 52px;
  background: var(--color-primary);
  box-shadow: 0 0 14px rgba(255,107,53,0.65);
}

/* Pet hero — WHITE text, so a deeper mint/teal overlay. */
.hero--photo-pet {
  /* Taller hero so the headline, subtext, and button have room to breathe. */
  min-height: calc(70vh + 20px);
  background-color: #06D6A0;
  background-image:
    linear-gradient(135deg, rgba(7,59,76,0.64) 0%, rgba(6,214,160,0.50) 100%),
    url('../images/hero-pet.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
