/* ============================================
   PETVELLO DOG LONGEVITY — style.css
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg:         #FAF8F5;
  --fg:         #2C2A28;
  --primary:    #5C7A5A;
  --primary-dk: #4a6449;
  --secondary:  #E8E5DF;
  --muted:      #6B6560;
  --border:     #E4E0DA;
  --white:      #ffffff;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 50px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.07);
  --font-sans:  'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: 1.15; }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ---------- Scroll-Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Floating Paw Animation ---------- */
@keyframes floatPaw {
  0%   { transform: translateY(0)   rotate(0deg); }
  33%  { transform: translateY(-18px) rotate(10deg); }
  66%  { transform: translateY(-8px)  rotate(-8deg); }
  100% { transform: translateY(0)   rotate(0deg); }
}

.paw-float {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  color: var(--primary);
  animation: floatPaw 7s ease-in-out infinite;
}
.paw-float svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.paw-float.delay-a { animation-delay: 0s; }
.paw-float.delay-b { animation-delay: 1.8s; }
.paw-float.delay-c { animation-delay: 3.2s; }
.paw-float.delay-d { animation-delay: 4.5s; }

/* ---------- Navbar ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 224, 218, 0.6);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

@media (min-width: 640px) { .navbar-inner { height: 76px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo-icon {
  background: rgba(92, 122, 90, 0.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--fg);
}
@media (min-width: 640px) { .nav-logo-text { font-size: 1.4rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary-dk);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
}
.btn-white:hover {
  background: var(--bg);
  transform: scale(1.03);
  box-shadow: 0 24px 60px rgba(0,0,0,.14);
}

.btn-nav  { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn-hero { font-size: 1.1rem;   padding: 0.9rem 2.2rem; width: 100%; justify-content: center; }
.btn-cta  { font-size: 1.2rem;   padding: 1rem 3rem; }

@media (min-width: 480px) {
  .btn-hero { width: auto; }
}
@media (min-width: 640px) {
  .btn-nav { font-size: 1rem; padding: 0.6rem 1.4rem; }
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg) 0%, #f0ede6 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(92, 122, 90, 0.10);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.25rem;
  line-height: 1.08;
}
.hero-title .accent {
  color: var(--primary);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 480px) {
  .hero-cta-row { flex-direction: row; align-items: center; }
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--secondary);
  overflow: hidden;
  margin-left: -8px;
}
.avatar-stack .av:first-child { margin-left: 0; }
.avatar-stack .av img { width: 100%; height: 100%; object-fit: cover; }
.av-count {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: rgba(92, 122, 90, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}
.avatar-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Book Mockup */
.book-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.book-mockup {
  position: relative;
  border-radius: 4px 1rem 1rem 4px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 32px 80px rgba(0,0,0,.15);
  border-left: 10px solid var(--secondary);
  transform: perspective(800px) rotateY(10deg) rotateX(3deg);
  transition: transform 0.6s ease;
}
.book-mockup:hover {
  transform: perspective(800px) rotateY(2deg) rotateX(1deg);
}
.book-mockup img { width: 100%; display: block; }
.book-spine {
  position: absolute;
  inset-y: 0;
  left: 0;
  width: 30px;
  background: linear-gradient(to right, rgba(0,0,0,.18), rgba(255,255,255,.35) 50%, transparent);
  pointer-events: none;
}
.book-glow {
  position: absolute;
  inset: 0;
  transform: translate(-50%, -50%) scale(1.1);
  left: 50%; top: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(92, 122, 90, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

/* ---------- Trust Badges ---------- */
#trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding: 2rem 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-badge svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* ---------- Benefits ---------- */
#benefits { padding: 6rem 0; background: var(--bg); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.section-header p { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin: 0 auto; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(92, 122, 90, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}
.benefit-card:hover .benefit-icon { transform: scale(1.1); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--fg); }
.benefit-card p  { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* ---------- Emotional ---------- */
#emotional {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(232,229,223,.55) 0%, var(--bg) 100%);
  overflow: hidden;
}
.emotional-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .emotional-grid { grid-template-columns: 1fr 1fr; } }

.emotional-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
}
@media (min-width: 1024px) { .emotional-img { aspect-ratio: 1/1; } }
.emotional-img img { width: 100%; height: 100%; object-fit: cover; }

.emotional-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.emotional-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.emotional-text p.bold { font-weight: 600; color: var(--fg); }

/* ---------- What's Inside ---------- */
#inside {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.inside-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .inside-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .inside-grid { grid-template-columns: repeat(3, 1fr); } }

.inside-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
}
.inside-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(92, 122, 90, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.inside-check svg { width: 16px; height: 16px; }
.inside-item h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 0.2rem; }
.inside-item p  { font-size: 0.9rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
#testimonials { padding: 6rem 0; background: var(--bg); }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; margin-bottom: 1.25rem; }
.stars svg { width: 20px; height: 20px; fill: #FACC15; stroke: #FACC15; stroke-width: 0; }
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name  { font-weight: 700; font-size: 0.95rem; color: var(--fg); }
.author-label { font-size: 0.8rem;  color: var(--muted); }

/* ---------- FAQ ---------- */
#faq {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  transition: color 0.25s ease;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(92, 122, 90, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.4rem; }

/* ---------- Final CTA ---------- */
#cta-final {
  position: relative;
  padding: 6rem 0;
  background: var(--primary);
  overflow: hidden;
  text-align: center;
}
.cta-blur-1 {
  position: absolute; top: -2rem; left: -2rem;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cta-blur-2 {
  position: absolute; bottom: -3rem; right: -3rem;
  width: 420px; height: 420px;
  background: rgba(0,0,0,.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.cta-book-img {
  width: 160px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
  transform: rotate(3deg);
  margin-bottom: 2rem;
}
#cta-final h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
#cta-final p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-note {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  font-size: 0.85rem !important;
  color: rgba(255,255,255,.55) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.cta-note svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
footer {
  background: var(--fg);
  color: rgba(250,248,245,.6);
  padding: 2.75rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250,248,245,.9);
}
.footer-brand svg { width: 22px; height: 22px; color: var(--primary); }
.footer-brand span { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
footer p { font-size: 0.875rem; }
