/* =============================
   PurrFresh Cat Litter - Styles
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream: #FDF6EC;
  --sand: #E8D5B0;
  --terra: #C4793A;
  --terra-dark: #9E5A25;
  --bark: #3D2B1F;
  --bark-light: #6B4C3B;
  --sage: #7A9E7E;
  --sage-light: #B5CEB8;
  --white: #FFFFFF;
  --text: #2C1A0E;
  --text-light: #7A6050;
  --shadow: rgba(60, 30, 10, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(253,246,236,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px var(--shadow); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--terra);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--bark); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--bark-light);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terra); }

.nav-cta {
  background: var(--terra);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--terra-dark) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--bark); border-radius: 2px; transition: 0.3s; }

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, #F0E2C8 0%, var(--cream) 60%);
}
.hero-paw-bg {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px;
  background: var(--sand);
  border-radius: 50%;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  max-width: 560px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-light);
  color: var(--bark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '🐾'; font-size: 14px; }

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--bark);
  margin-bottom: 22px;
}
.hero-content h1 em { color: var(--terra); font-style: normal; }

.hero-content p {
  font-size: 1.08rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(196,121,58,0.35);
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(196,121,58,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--bark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 10px;
  transition: color 0.2s, gap 0.2s;
}
.btn-secondary:hover { color: var(--terra); gap: 12px; }
.btn-secondary::after { content: '→'; }

.hero-image-wrap {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%);
  width: 480px;
  animation: fadeIn 1s ease 0.3s both;
}
.hero-image-wrap img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(60,30,10,0.2);
  object-fit: cover;
  height: 520px;
}
.hero-float-card {
  position: absolute;
  bottom: -20px; left: -40px;
  background: var(--white);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 40px var(--shadow);
  display: flex; align-items: center; gap: 12px;
  animation: floatCard 3s ease-in-out infinite;
}
.hero-float-card .icon { font-size: 2rem; }
.hero-float-card strong { display: block; font-size: 0.95rem; color: var(--bark); }
.hero-float-card span { font-size: 0.78rem; color: var(--text-light); }

/* ---- FEATURES ---- */
#features {
  padding: 100px 60px;
  background: var(--white);
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--bark);
  line-height: 1.2;
}
.section-header p {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 1rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid var(--sand);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--sage));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px var(--shadow); }

.feature-icon {
  width: 60px; height: 60px;
  background: var(--terra);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-light); font-size: 0.93rem; line-height: 1.65; }

/* ---- PRODUCTS ---- */
#products {
  padding: 100px 60px;
  background: var(--cream);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--sand);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px var(--shadow); }

.product-img {
  width: 100%; height: 220px;
  object-fit: cover;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }

.product-body { padding: 28px 26px 26px; }
.product-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--bark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.product-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 8px;
}
.product-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--terra);
}
.product-price span { font-size: 0.85rem; color: var(--text-light); font-family: 'DM Sans', sans-serif; font-weight: 400; }
.btn-add {
  background: var(--bark);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-add:hover { background: var(--terra); transform: scale(1.03); }

/* ---- HOW IT WORKS ---- */
#how-it-works {
  padding: 100px 60px;
  background: var(--bark);
  color: var(--white);
}
#how-it-works .section-header h2 { color: var(--cream); }
#how-it-works .section-tag { color: var(--sand); }
#how-it-works .section-header p { color: var(--sand); opacity: 0.8; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--terra), var(--sage));
  opacity: 0.4;
}
.step { text-align: center; padding: 0 24px; position: relative; }
.step-num {
  width: 64px; height: 64px;
  background: var(--terra);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  border: 4px solid var(--bark);
  transition: transform 0.3s;
}
.step:hover .step-num { transform: scale(1.1); }
.step h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 10px; color: var(--cream); }
.step p { color: var(--sand); font-size: 0.88rem; line-height: 1.6; opacity: 0.85; }

/* ---- TESTIMONIALS ---- */
#testimonials {
  padding: 100px 60px;
  background: var(--white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 34px 30px;
  border: 1px solid var(--sand);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 18px; left: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--terra);
  opacity: 0.2;
  line-height: 1;
}
.stars { color: #F4A017; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--terra);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Playfair Display', serif;
}
.reviewer strong { display: block; font-size: 0.92rem; color: var(--bark); }
.reviewer span { font-size: 0.8rem; color: var(--text-light); }

/* ---- CTA BANNER ---- */
#cta {
  padding: 80px 60px;
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '🐾';
  position: absolute;
  font-size: 180px;
  top: -30px; right: 60px;
  opacity: 0.08;
  transform: rotate(20deg);
}
#cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
#cta p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 520px; margin-inline: auto; line-height: 1.65; }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--terra);
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.25); }

/* ---- FOOTER ---- */
footer {
  background: var(--bark);
  color: var(--sand);
  padding: 64px 60px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 14px;
}
.footer-brand .logo span { color: var(--terra); }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; opacity: 0.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--sand); text-decoration: none; font-size: 0.88rem; opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--terra); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  font-size: 0.82rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.social-links a:hover { opacity: 1; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  nav { padding: 16px 30px; }
  #hero { padding: 120px 30px 80px; flex-direction: column; text-align: center; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 460px; margin: 40px auto 0; }
  #features, #products, #how-it-works, #testimonials, #cta { padding: 70px 30px; }
  footer { padding: 50px 30px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
