/* =========================================================
   MARWA NUTRACEUTICALS — AWWWARDS LEVEL DESIGN SYSTEM
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,800;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #070707;
  --bg-panel: #121212;
  --text-light: #F4F0EB;
  --text-dim: #9E9C98;
  --accent-gold: #CBA365;
  --accent-green: #3D5A46;
  --accent-mint: #86A893;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base Reset & Cursor */
* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a, button { text-decoration: none; color: inherit; outline: none; border: none; background: transparent; }

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s var(--ease);
  mix-blend-mode: difference;
}
.custom-cursor.hover {
  width: 60px; height: 60px;
  background-color: var(--text-light);
}

/* Animations (Reveal on Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0; width: 100%;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}
.site-header.scrolled {
  padding: 15px 5%;
  background: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-logo span { color: var(--accent-gold); }
.nav-links {
  display: flex; gap: 40px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
}
.nav-links a { position: relative; overflow: hidden; }
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; width: 100%; height: 1px;
  background: var(--accent-gold);
  transform: translateX(-100%); transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after { transform: translateX(0); }

/* ================= HERO (CINEMATIC) ================= */
.hero {
  height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 120%;
  background: url('../images/nature.jpg') center/cover;
  opacity: 0.3; z-index: 0;
  transform: translateY(0); /* Parallax controlled by JS */
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent-gold); margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 400; line-height: 0.9;
  margin-bottom: 30px;
  text-transform: uppercase;
}
.hero-title i { font-style: italic; color: var(--accent-mint); }
.hero-desc {
  font-size: 16px; color: var(--text-dim);
  max-width: 500px; margin: 0 auto 50px;
  font-weight: 300; line-height: 1.8;
}
.btn-primary {
  display: inline-block;
  padding: 20px 50px;
  border: 1px solid var(--accent-gold);
  border-radius: 100px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-gold);
  position: relative; overflow: hidden;
  transition: color 0.4s var(--ease);
}
.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent-gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s var(--ease); z-index: -1;
}
.btn-primary:hover { color: var(--bg-dark); }
.btn-primary:hover::before { transform: scaleY(1); }

/* ================= INFINITE MARQUEE ================= */
.marquee-wrapper {
  background: var(--accent-green);
  padding: 20px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee {
  white-space: nowrap;
  display: flex; width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee span {
  font-size: 14px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; margin-right: 50px; color: var(--bg-dark);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= BENTO GRID (WHY MARWA) ================= */
.section { padding: 150px 5%; }
.bento-header { margin-bottom: 80px; }
.bento-header h2 {
  font-family: var(--font-serif); font-size: clamp(40px, 5vw, 80px); font-weight: 400;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 350px;
  gap: 20px;
}
.bento-item {
  background: var(--bg-panel); border-radius: 20px;
  padding: 40px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-item:hover .bento-bg { transform: scale(1.05); }
.bento-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease); opacity: 0.5; z-index: 0;
}
.bento-content { position: relative; z-index: 1; }
.bento-content h3 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 10px; }
.bento-content p { color: var(--text-dim); font-size: 14px; }

/* Grid specific sizing */
.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; }
.bento-3 { grid-column: span 1; }
.bento-4 { grid-column: span 1; }

/* ================= EDITORIAL PRODUCTS ================= */
.product-showcase {
  display: flex; flex-direction: column; gap: 150px;
  max-width: 1400px; margin: 0 auto; padding: 0 5%;
}
.product-row {
  display: flex; align-items: center; justify-content: space-between; gap: 80px;
}
.product-row:nth-child(even) { flex-direction: row-reverse; }
.product-image-container {
  flex: 1; position: relative;
  border-radius: 20px; overflow: hidden;
}
.product-image-container img {
  width: 100%; height: auto; display: block; border-radius: 20px;
  transform: scale(1.05); transition: transform 0.8s var(--ease);
}
.product-row:hover .product-image-container img { transform: scale(1); }
.product-info {
  flex: 1;
}
.product-info h3 {
  font-family: var(--font-serif); font-size: 50px; font-weight: 400; margin-bottom: 20px;
}
.product-price { font-size: 24px; color: var(--accent-gold); margin-bottom: 30px; font-family: var(--font-serif); }
.product-desc { color: var(--text-dim); font-size: 16px; margin-bottom: 40px; line-height: 1.8; }
.store-actions { display: flex; gap: 15px; }

/* ================= FOOTER ================= */
.footer {
  padding: 100px 5% 50px; background: #000;
  text-align: center; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-massive {
  font-family: var(--font-serif); font-size: clamp(50px, 12vw, 200px);
  color: var(--bg-panel); margin-bottom: 50px; letter-spacing: -5px; line-height: 0.8;
}
.footer-links {
  display: flex; gap: 30px; justify-content: center; margin-bottom: 40px;
}
.footer-links a {
  font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--text-light); }
.social-icons {
  display: flex; gap: 20px; justify-content: center; margin-bottom: 40px;
}
.social-icons a {
  width: 45px; height: 45px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all 0.3s var(--ease);
}
.social-icons a:hover {
  background: var(--text-light); color: var(--bg-dark); transform: translateY(-3px);
}
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background-color: #25D366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; z-index: 1000;
  box-shadow: 0 15px 30px rgba(37,211,102,0.3);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* Legal Page Base */
.legal-wrapper {
  max-width: 800px; margin: 150px auto 100px; padding: 0 5%;
}
.legal-wrapper h1 { font-family: var(--font-serif); font-size: 50px; margin-bottom: 30px; font-weight: 400; }
.legal-wrapper h2 { font-family: var(--font-serif); font-size: 30px; margin: 40px 0 20px; font-weight: 400; }
.legal-wrapper p { color: var(--text-dim); line-height: 1.8; margin-bottom: 20px; font-size: 15px; }

@media(max-width: 900px) {
  .bento-header { text-align: center; margin-bottom: 40px; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 400px; }
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 1; }
  .product-row { flex-direction: column !important; gap: 20px !important; }
  .product-info { display: contents; }
  .product-info > a:first-child, .product-info > h2:first-child { order: -2; text-align: center; display: block; margin-bottom: 0px; }
  .product-info h3 { margin-bottom: 0; }
  .product-row .product-image-container { order: -1; width: 100%; height: auto; margin-bottom: 0px; }
  .product-price { order: 1; text-align: center; margin-bottom: 0px; }
  .product-desc { order: 2; text-align: center; margin-bottom: 20px; }
  .product-info > .store-actions { order: 3; align-self: center; flex-wrap: wrap; justify-content: center; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .nav-links.active a {
    padding: 10px 0;
  }
  .mobile-menu-btn { display: flex !important; }
}

.mobile-menu-btn { display: none; cursor: pointer; margin-left: 15px; align-items: center; justify-content: center; }

