/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;900&family=Poppins:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-cream: #FDFBF7;
  --bg-mint: #E8F3F1;
  --bg-white: #FFFFFF;
  --text-color: #2C3E50;
  --text-light: #596A7A;
  --accent-coral: #FF8C73;
  --accent-mint: #A3C4BC;
}

/* --- Base Styles --- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-color);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--text-color);
  margin-top: 0;
}

/* --- Floating Glassmorphism Navbar --- */
nav {
  position: sticky;
  top: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

nav a:hover { color: var(--accent-coral); transform: translateY(-2px); }

/* --- Full-Width Sections & Layout --- */
section {
  width: 100%;
  padding: 5rem 0;
  position: relative;
}

.bg-cream { background-color: var(--bg-cream); }
.bg-mint { background-color: var(--bg-mint); }
.bg-white { background-color: var(--bg-white); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.text-center { text-align: center; }

/* --- Custom "Puppy First" Hero with CSS Carousel --- */
.hero-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.carousel-container {
    flex: 1.2;
    min-width: 300px;
    height: 450px; /* Taller area for puppy photos */
    position: relative;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    border: 5px solid #fff;
    overflow: hidden; /* Important! Hides slides outside container */
}

/* The actual fading logic */
.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.2s ease-in-out; /* Smooth fade effect */
    animation: fadeCarousel 35s infinite; /* 35s second total loop */
}

/* Individual Slide Backgrounds - Using user list names */
.slide1 { background-image: url('litter.jpeg'); animation-delay: 0s; opacity: 1; } /* Fallback, first visible */
.slide2 { background-image: url('litter3.jpeg'); animation-delay: 5s; }
.slide3 { background-image: url('lunamom.jpeg'); animation-delay: 10s; }
.slide4 { background-image: url('simba1.jpg'); animation-delay: 15s; }
.slide5 { background-image: url('pax.jpeg'); animation-delay: 20s; }
.slide6 { background-image: url('poppy2.jpeg'); animation-delay: 25s; }
.slide7 { background-image: url('twin1.jpeg'); animation-delay: 30s; }

/* The Fade Keyframes (for 7 slides with seamless crossfade) */
@keyframes fadeCarousel {
    0% { opacity: 0; }
    5% { opacity: 1; }  /* Fades in smoothly */
    17% { opacity: 1; } /* Stays at full visibility while the next slide fades in on top of it */
    22% { opacity: 0; } /* Fades out only after the next slide is visible */
    100% { opacity: 0; }
}

/* Background Watermarks (moved back under nav) */
.watermark { position: absolute; font-size: 15rem; color: var(--accent-mint); opacity: 0.07; z-index: 1; pointer-events: none; }
.wm-left { left: -50px; top: 10%; transform: rotate(-15deg); }
.wm-right { right: -50px; bottom: 10%; transform: rotate(15deg); }

/* --- Candid Moments Photo Grid --- */
.candid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.candid-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.candid-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- Split Layout --- */
.split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.split-text { flex: 1; min-width: 300px; }
.split-image { flex: 1; min-width: 300px; text-align: center; }
.split-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: rotate(2deg);
}

/* --- Polaroids --- */
.polaroid-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; margin-top: 2rem; }
.polaroid { background: #fff; padding: 15px 15px 45px 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 2px; text-align: center; width: 260px; position: relative; transition: all 0.4s ease; }
.polaroid::before { content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); width: 100px; height: 30px; background: rgba(255,255,255,0.6); box-shadow: 0 1px 3px rgba(0,0,0,0.1); backdrop-filter: blur(4px); border-radius: 2px; z-index: 5; }
.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid:nth-child(odd) { transform: rotate(-3deg); }
.polaroid:hover { transform: scale(1.08) rotate(0deg) translateY(-10px); z-index: 10; }
.polaroid img, .polaroid video { width: 100%; height: 220px; object-fit: cover; border-radius: 2px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-coral) 0%, #FF6A88 100%); /* Typo fixed here! */
  color: #ffffff !important;
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin-top: 20px;
  box-shadow: 0 10px 20px rgba(255, 140, 115, 0.3);
  transition: all 0.3s ease;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Adds readability to the white text */
}

.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 15px 25px rgba(255, 140, 115, 0.5); 
}

/* --- Home Page Specific Feature: Trust Badges --- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: -2.5rem; /* Overlap effect */
  position: relative;
  z-index: 20;
  padding: 0 1rem 3rem 1rem;
}
.badge { background: var(--bg-white); padding: 0.8rem 1.8rem; border-radius: 50px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--text-color); border: 2px solid var(--bg-cream); transition: transform 0.3s ease; }
.badge:hover { transform: translateY(-3px); border-color: var(--accent-mint); }

/* --- Scrolling Marquee --- */
.marquee-container { background: var(--accent-coral); color: white; padding: 12px 0; overflow: hidden; white-space: nowrap; font-family: 'Nunito', sans-serif; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.marquee-content { display: inline-block; animation: marquee 25s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* --- Footer --- */
footer { text-align: center; padding: 3rem; background: var(--bg-cream); font-size: 0.9rem; color: var(--text-light); }

/* --- SVG Wave Divider --- */
.custom-shape-divider { width: 100%; overflow: hidden; line-height: 0; background: var(--bg-mint); }
.custom-shape-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.custom-shape-divider .shape-fill { fill: var(--bg-cream); }

/* --- Premium Feature Additions: Stat Cards & Icon Grids --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.stat-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  text-align: center;
  border-bottom: 4px solid var(--accent-mint);
  transition: transform 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.stat-card h4 {
  font-size: 2.2rem;
  color: var(--accent-coral);
  margin: 0;
  font-family: 'Nunito', sans-serif;
}
.stat-card p {
  font-size: 0.85rem;
  margin: 5px 0 0 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.icon-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  text-align: left;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}
.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(163, 196, 188, 0.2);
}
.icon-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mint);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(163, 196, 188, 0.4);
}
.icon-card h3 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.split-reverse {
  flex-direction: row-reverse;
}
@media (max-width: 768px) {
  .split-reverse {
    flex-direction: column;
  }
}

/* --- Mobile Spacing & Layout Fixes --- */
@media (max-width: 768px) {
  /* Shrink the massive gaps between sections */
  section { padding: 2.5rem 0 !important; }
  
  .hero-carousel { gap: 1.5rem; padding-bottom: 1rem; }
  .carousel-container { height: 350px; }
  .split-layout { gap: 2rem; }
  .trust-badges { margin-top: -1.5rem; padding-bottom: 1.5rem; }

  /* NEW: Make the navigation a sleek, swipeable scrolling bar */
  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 15px; /* Looks better on mobile than a massive pill */
    -webkit-overflow-scrolling: touch; /* Makes scrolling buttery smooth on iPhones */
  }
  
  /* Hide the ugly scrollbar on the nav but keep the swipe function */
  nav::-webkit-scrollbar { display: none; }
  nav { -ms-overflow-style: none; scrollbar-width: none; }

  nav a {
    white-space: nowrap; /* Stops link names from breaking onto two lines */
    font-size: 0.95rem; /* Slightly smaller for mobile */
  }

  /* NEW: Shrink massive headlines so they fit the screen */
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  .hero-text p { font-size: 1rem !important; }

  /* NEW: Make buttons full-width for easy thumb tapping */
  .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* --- Social Media Footer Button --- */
.social-cta {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #EAE5D9;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1877F2; /* Official Facebook Blue */
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    transition: all 0.3s ease;
}

.fb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}