/* =============================================
   PurrePure — Cat Litter B2B Website
   Warm, professional, trustworthy aesthetic
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --cream:       #FDF8F2;
  --warm-white:  #FFFCF8;
  --sand:        #F0E6D6;
  --tan:         #D4B896;
  --caramel:     #B8894A;
  --brown:       #7A5230;
  --dark:        #2C1F14;
  --slate:       #4A4035;

  --accent:      #E07B3A;   /* warm orange — CTA */
  --accent-dark: #C05F20;
  --accent-light:#FFF0E6;

  --green:       #5A8A5A;
  --green-light: #EAF4EA;
  --blue:        #4A7AA0;
  --blue-light:  #EAF2FA;
  --pine-color:  #4A7055;
  --pine-light:  #EAF5EC;
  --orange-light:#FFF4E6;

  --text-main:   #2C1F14;
  --text-muted:  #7A6A5A;
  --border:      #E8DDD0;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 12px rgba(44,31,20,0.08);
  --shadow-md:   0 8px 32px rgba(44,31,20,0.12);
  --shadow-lg:   0 20px 60px rgba(44,31,20,0.15);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --header-h:    70px;
  --max-w:       1200px;
  --section-pad: 80px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === UTILITIES === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: var(--section-pad) 0; }

.bg-warm { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,123,58,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.center-btn {
  text-align: center;
  margin-top: 48px;
}

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

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,252,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}
.logo-icon { font-size: 26px; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-icon { filter: brightness(10); }

/* Nav */
.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* CTA button in nav */
.btn-cta {
  background: var(--accent);
  color: #fff !important;
  border-radius: 100px;
  padding: 9px 22px;
}
.btn-cta:hover {
  background: var(--accent-dark) !important;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  z-index: 100;
  padding: 8px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--slate);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.arrow { font-size: 11px; margin-left: 2px; }

/* Translation placeholder */
#translation-placeholder {
  min-width: 1px;
  min-height: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: var(--header-h);
}

.slides-wrapper {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  flex: 0 0 33.333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

/* Slide backgrounds — warm gradient placeholders */
.slide-1 {
  background-image: url('../images/private-label-tofu-cat-litter-hero.webp');
  background-size: cover;
  background-position: center;
/*background: linear-gradient(135deg, #C8956A 0%, #8B5E3C 50%, #4A3020 100%);*/
}
.slide-2 {
  background-image: url('../images/private-label-bentonite-cat-litter-hero.webp');
  background-size: cover;
  background-position: center;
/*background: linear-gradient(135deg, #7A9E7E 0%, #4A7055 50%, #2D4433 100%);*/
}
.slide-3 {
  background-image: url('../images/private-label-paper-cat-litter-hero.webp');
  background-size: cover;
  background-position: center;
/*background: linear-gradient(135deg, #7A9EC4 0%, #4A6E8E 50%, #2D4460 100%);*/
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 60%,
    transparent 100%
  );
}

.slide-content {
  position: relative;
  z-index: 1;
  padding: 0 8% 0 8%;
  max-width: 680px;
  color: #fff;
}

.slide-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.slide-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.slide-content h1 em {
  font-style: italic;
  color: #FFD4A8;
}

.slide-content p {
  font-size: clamp(15px, 2vw, 20px);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.slider-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.05);
}
.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* =============================================
   FACTORY SECTION
   ============================================= */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--sand), var(--tan));
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder.green { background: linear-gradient(135deg, #c8e8c8, #88b888); }
.img-placeholder.blue  { background: linear-gradient(135deg, #c8dff0, #88aec8); }
.img-placeholder.orange{ background: linear-gradient(135deg, #ffe0c0, #d4a070); }
.img-placeholder.pine  { background: linear-gradient(135deg, #c8e8d0, #789878); }

.img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}
.img-icon  { font-size: 48px; }
.img-label { font-size: 14px; color: var(--brown); font-weight: 500; }

.factory-image { position: relative; }

.factory-stats {
  display: flex;
  gap: 0;
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat {
  flex: 1;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.stat span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.factory-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.factory-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.factory-highlights {
  margin: 24px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.factory-highlights li {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  background: var(--sand);
  padding: 8px 14px;
  border-radius: 8px;
}

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img .img-placeholder {
  aspect-ratio: 1;
  border-radius: 0;
  font-size: 40px;
}

.product-info {
  padding: 18px 16px 20px;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tan);
}

.why-icon {
  font-size: 36px;
  margin-bottom: 18px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #F5A623;
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 22px);
  font-style: italic;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tan), var(--caramel));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.t-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--slate);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.t-dots {
  display: flex;
  gap: 8px;
}

.t-dots .dot {
  width: 8px;
  height: 8px;
  background: var(--tan);
}
.t-dots .dot.active {
  background: var(--accent);
}

/* =============================================
   CLIENT LOGOS
   ============================================= */
.logos-track-wrap {
  overflow: hidden;
  mask: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
  display: flex;
  gap: 24px;
  animation: scroll-logos 28s linear infinite;
  width: max-content;
}

.logos-track:hover { animation-play-state: paused; }

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
}

.logo-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate);
  white-space: nowrap;
  min-width: 140px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.logo-box small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.logo-box:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-sm);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--brown) 0%, var(--dark) 100%);
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
  color: #fff;
}
.social-links a:hover { background: var(--accent); }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col li a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col li a:hover {
  opacity: 1;
  color: var(--tan);
}

.contact-list li {
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a:hover { opacity: 1; }

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 64px; }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .factory-grid {
    gap: 40px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
    --header-h: 64px;
  }

  /* Mobile nav */
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .main-nav.open { transform: none; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link { padding: 12px 16px; }

  .has-dropdown .arrow { display: none; }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--cream);
    border-radius: var(--radius);
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 8px;
    display: none;
    margin-top: 4px;
  }

  .has-dropdown.open .dropdown { display: block; }

  /* Hero */
  .hero-slider {
    height: 80vh;
    min-height: 480px;
    margin-top: var(--header-h);
  }

  .slide-content { padding: 0 6%; }
  .slider-btn { width: 40px; height: 40px; font-size: 14px; }
  .slider-btn.prev { left: 12px; }
  .slider-btn.next { right: 12px; }

  /* Factory */
  .factory-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .factory-highlights {
    grid-template-columns: 1fr;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Testimonial */
  .testimonial-card {
    padding: 32px 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-btns { flex-direction: column; align-items: center; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section-header h2 { font-size: 26px; }

  .slide-content h1 { font-size: 32px; }

  .stat strong { font-size: 22px; }
}
