/* ============================================
   DogFeeder — Funky, Mobile-First Stylesheet
   ============================================ */

/* ---------- TOKENS ---------- */
:root {
  --yellow:    #FFD60A;
  --orange:    #FF6B35;
  --navy:      #0D0F2B;
  --purple:    #6C2BD9;
  --pink:      #FF3CAC;
  --white:     #FFFFFF;
  --off-white: #FFF9F0;
  --text:      #1A1A2E;
  --muted:     #6B6B8A;

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --shadow-sm: 0 2px 12px rgba(13,15,43,.08);
  --shadow-md: 0 8px 32px rgba(13,15,43,.14);
  --shadow-lg: 0 20px 60px rgba(13,15,43,.20);

  --container: 1200px;
  --space-xs:  .5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- UTILS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { color: var(--muted); }

.highlight {
  color: var(--orange);
  display: inline-block;
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: .35em;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  padding: .3rem .9rem;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.badge-alt {
  background: var(--yellow);
  color: var(--navy);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,107,53,.4);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(255,107,53,.5); }
.btn-outline {
  border: 2.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-nav {
  background: var(--yellow);
  color: var(--navy);
  padding: .55rem 1.25rem;
  font-size: .875rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(13,15,43,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 4px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid rgba(13,15,43,.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .65rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(13,15,43,.05);
  }
  .nav-links .btn-nav { margin-top: .5rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
  padding: var(--space-lg) 0 var(--space-xl);
}
.hero-blob {
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--yellow) 0%, var(--orange) 60%, transparent 75%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 55%;
  opacity: .18;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
.hero-text { display: flex; flex-direction: column; gap: 1.25rem; }
.hero-text h1 { color: var(--navy); }
.hero-sub { font-size: 1.05rem; max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero-card {
  position: relative;
  width: 220px; height: 220px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.hero-dog  { font-size: 5rem; line-height: 1; }
.hero-bowl { font-size: 2.5rem; line-height: 1; }

/* pulse ring animation */
.pulse-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  animation: pulse 2s ease-out infinite;
  opacity: 0;
}
@keyframes pulse {
  0%  { transform: scale(.85); opacity: .8; }
  100%{ transform: scale(1.15); opacity: 0; }
}

/* floating stat chips */
.hero-stat {
  position: absolute;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: .6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
}
.hero-stat strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--yellow); }
.hero-stat span   { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.stat-1 { top: 10px;  right: 10px; }
.stat-2 { bottom: 10px; left: 10px; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-md);
}
.section-head h2 { color: var(--navy); margin-bottom: .5rem; }
.section-head p  { font-size: 1.05rem; }

/* ============================================
   FEATURES
   ============================================ */
.features {
  position: relative;
  background: var(--navy);
  padding: var(--space-xl) 0;
}
.features-slant {
  position: absolute;
  top: -48px; left: 0; right: 0;
  height: 96px;
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.features-slant--bottom {
  top: auto;
  bottom: -48px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.features .section-head h2 { color: var(--white); }
.features .section-head p  { color: rgba(255,255,255,.6); }
.features .badge-alt { background: var(--yellow); color: var(--navy); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.feature-card--accent {
  background: rgba(255,214,10,.1);
  border-color: rgba(255,214,10,.35);
}
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-card h3 { color: var(--white); margin-bottom: .4rem; }
.feature-card p  { color: rgba(255,255,255,.55); font-size: .9rem; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: var(--yellow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(255,214,10,.4);
}
.step-content h3 { color: var(--navy); margin-bottom: .3rem; }
.step-content p  { font-size: .95rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--space-xl) 0;
  background: var(--off-white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial:hover { border-color: var(--yellow); transform: translateY(-3px); }
.testimonial--featured {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(255,107,53,.15);
}
.testimonial p {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
}
.testimonial footer {
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '🐶';
  position: absolute;
  font-size: 16rem;
  top: -3rem; right: -3rem;
  opacity: .06;
  pointer-events: none;
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}
@media (min-width: 700px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-text h2 { color: var(--white); margin-bottom: .4rem; }
.cta-text p  { color: rgba(255,255,255,.75); max-width: 420px; }
.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  flex-shrink: 0;
}
.cta-form input[type="email"] {
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  min-width: 220px;
  outline: none;
  transition: box-shadow .15s;
}
.cta-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px var(--yellow);
}
.cta-band .btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(255,214,10,.4);
}

/* ============================================
   PAGE HERO (About)
   ============================================ */
.page-hero {
  position: relative;
  background: var(--off-white);
  padding: var(--space-lg) 0 var(--space-xl);
  overflow: hidden;
}
.hero-blob--about {
  top: -80px; left: -80px;
  background: radial-gradient(circle, var(--purple) 0%, var(--pink) 60%, transparent 75%);
}
.page-hero-inner {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.page-hero-inner h1 { color: var(--navy); }
.page-hero-inner p  { font-size: 1.1rem; }

/* ============================================
   MISSION
   ============================================ */
.mission {
  padding: var(--space-xl) 0;
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 768px) {
  .mission-inner { grid-template-columns: 1fr 1.2fr; }
}
.mission-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.mission-emoji { font-size: 6rem; line-height: 1; }
.mission-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--yellow);
  line-height: 1.35;
}
.mission-text { display: flex; flex-direction: column; gap: 1rem; }
.mission-text h2 { color: var(--navy); }
.mission-text p  { font-size: 1rem; }

/* ============================================
   VALUES
   ============================================ */
.values {
  position: relative;
  background: var(--off-white);
  padding: var(--space-xl) 0;
}
.values-slant {
  position: absolute;
  top: -48px; left: 0; right: 0;
  height: 96px;
  background: var(--off-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.values-slant--bottom {
  top: auto;
  bottom: -48px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1.5px solid rgba(13,15,43,.07);
  transition: transform .2s, border-color .2s;
}
.value-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.value-card--accent { background: var(--navy); border-color: transparent; }
.value-card--accent h3 { color: var(--white); }
.value-card--accent p  { color: rgba(255,255,255,.55); }
.value-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.value-card h3 { color: var(--navy); margin-bottom: .4rem; }
.value-card p  { font-size: .9rem; }

/* ============================================
   TEAM
   ============================================ */
.team {
  padding: var(--space-xl) 0;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform .2s, border-color .2s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.team-card--featured {
  background: var(--navy);
  border-color: var(--yellow);
}
.team-card--featured h3  { color: var(--white); }
.team-card--featured p   { color: rgba(255,255,255,.55); }
.team-card--featured .team-role { color: var(--yellow); }
.team-avatar { font-size: 3.5rem; margin-bottom: .75rem; }
.team-card h3 { color: var(--navy); margin-bottom: .2rem; }
.team-role {
  display: block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}
.team-card p { font-size: .875rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-md) 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--yellow);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: center;
}
.footer-nav a {
  font-weight: 700;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ============================================
   SCROLL FADE-IN ANIMATION
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
