@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  /* Premium Brand Colors */
  --primary-red: #FF3B3B;
  --primary-green: #4CAF50;
  --primary-green-light: #8BC34A;
  --primary-yellow: #FFC107;
  --primary-orange: #FF9800;
  
  --text-dark: #2C3E50;
  --text-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-light: #FDFBF7;
  --bg-cream: #FFF9F2;
  
  /* Fluid Typography */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.38vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-md: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-lg: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-xl: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --fs-xxl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Fluid Spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-md: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --space-lg: clamp(3rem, 2.5rem + 3.5vw, 5rem);
  --space-xl: clamp(4rem, 3.5rem + 5vw, 8rem);
  
  /* Shadows & Radii */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-blob: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: var(--fs-base);
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Backgrounds & Colors */
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-cream { background-color: var(--bg-cream); }
.bg-red { background-color: var(--primary-red); color: white; }
.bg-green { background-color: var(--primary-green); color: white; }
.bg-yellow { background-color: var(--primary-yellow); color: var(--text-dark); }
.text-red { color: var(--primary-red); }
.text-green { color: var(--primary-green); }
.text-orange { color: var(--primary-orange); }

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section { padding: var(--space-xl) 0; position: relative; z-index: 1; }
.section-sm { padding: var(--space-lg) 0; }

.section-cta-custom {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(76, 175, 80, 0.1);
  border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.section-cta-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234caf50' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }

/* Image Backgrounds & Overlays */
.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.overlay-dark {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); z-index: -1;
}
.overlay-gradient {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); z-index: -1;
}

/* Organic Shapes & Waves */
.wave-bottom, .wave-top {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; transform: rotate(180deg); }
.wave-bottom svg, .wave-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.fill-white { fill: var(--bg-white); }
.fill-light { fill: var(--bg-light); }
.fill-cream { fill: var(--bg-cream); }

.blob-shape {
  border-radius: var(--radius-blob);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Header & Nav */
.header {
  padding: var(--space-sm) 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo-text img { height: 50px; }
.nav-links { display: flex; gap: var(--space-sm); align-items: center; font-weight: 600; }
.nav-link { transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-red); }
.nav-item { position: relative; }
.nav-dropdown { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 190px; background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(0.5rem); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 100; padding: 0.5rem 0; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: block; padding: 0.75rem 1rem; color: var(--text-dark); text-decoration: none; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.dropdown-link:hover { background: rgba(255,59,59,0.06); color: var(--primary-red); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--primary-red); color: white; box-shadow: 0 4px 15px rgba(255,59,59,0.3); }
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(255,59,59,0.4); }
.btn-secondary { background: var(--primary-green); color: white; box-shadow: 0 4px 15px rgba(76,175,80,0.3); }
.btn-secondary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(76,175,80,0.4); }
.btn-outline { border: 2px solid var(--primary-red); color: var(--primary-red); background: transparent; }
.btn-outline:hover { background: var(--primary-red); color: white; transform: translateY(-3px); }

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.card-img-top {
  width: calc(100% + var(--space-md) * 2);
  margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) var(--space-md);
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-top { transform: scale(1.05); }

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product-card .card-img-top {
  width: 100%;
  height: 240px;
  margin: 0;
  object-fit: contain;
  background: #faf9f6;
}
.product-card-content {
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
}
.product-card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}
.product-card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.product-card-content .btn {
  align-self: start;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
}

/* Product horizontal scroll - Marquee style */
.product-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: var(--space-sm) 0;
}

.product-scroll {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: scroll-left 40s linear infinite;
  padding: 10px 0;
}

.product-scroll:hover {
  animation-play-state: paused;
}

.product-scroll .product-card {
  flex: 0 0 300px;
  min-width: 300px;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - (var(--space-md) / 2))); }
}

/* Hide scrollbars just in case */
.product-scroll::-webkit-scrollbar {
  display: none;
}
.product-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Testimonials & Slider */
.slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.slider-container {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-md);
  scroll-behavior: smooth;
}
.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--primary-yellow);
  color: var(--text-dark);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0.95;
  z-index: 10;
}
.slider-button:hover {
  transform: translateY(-50%) scale(1.05);
  opacity: 1;
}
.slider-button.prev { left: 0.5rem; }
.slider-button.next { right: 0.5rem; }

.testimonial-card {
  flex: 0 0 320px;
  min-width: 320px;
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: var(--bg-light);
  position: absolute;
  top: -10px; left: 10px;
  z-index: -1;
  font-family: serif;
}
.avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-yellow);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-link { display: block; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; transition: color 0.3s ease; }
.footer-link:hover { color: var(--primary-yellow); padding-left: 5px; }

/* Animations */
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.scale-up {
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.scale-up.visible { opacity: 1; transform: scale(1); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Organic Features (Products Page) */
.organic-feature {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.organic-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.icon-blob {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: morph 6s ease-in-out infinite;
}
.icon-blob svg {
  width: 40px;
  height: 40px;
}

/* Editorial List (Products Page) */
.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.editorial-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: padding-left 0.3s ease;
}
.editorial-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.1);
}
.editorial-item:hover {
  padding-left: 1rem;
}
.editorial-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-yellow);
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.editorial-item:hover .editorial-number {
  opacity: 1;
  color: var(--primary-red);
}
.editorial-content {
  flex: 1;
  text-align: left;
}
.editorial-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.editorial-content p {
  color: #555;
  font-size: 1.1rem;
  margin: 0;
}
@media (max-width: 768px) {
  .editorial-item { flex-direction: column; gap: var(--space-sm); }
}
