/* =============================================
   DESHIFRUIT — Fresh Vibrant Healthy
   ============================================= */

:root {
  --teal: #1a9e8f;
  --teal-dark: #158578;
  --teal-light: #2cc4b3;
  --orange: #f5a623;
  --orange-dark: #e09015;
  --orange-light: #ffc85c;
  --kiwi: #a4c639;
  --kiwi-dark: #8aad2a;
  --brown: #9b8878;
  --cream: #fefcf9;
  --sand: #f7f4ef;
  --white: #ffffff;
  --dark: #2d2a26;
  --text: #3a3530;
  --text-light: #7a7268;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Grain --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s var(--ease-out-expo);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.5s var(--ease-out-expo);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header--scrolled .header-inner { height: 64px; }

.header-logo-img {
  height: 40px;
  width: auto;
  transition: all 0.4s var(--ease-out-expo);
}

.header--scrolled .header-logo-img { height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out-expo);
}

.nav a:hover { color: var(--teal); }
.nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-link {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
}

.mobile-link:hover { color: var(--teal); }

.mobile-link.cta {
  font-size: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  margin-top: 1rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1rem 10rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-logo {
  width: clamp(160px, 24vw, 220px);
  height: auto;
  background: var(--white);
  border-radius: 50%;
  padding: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  object-fit: contain;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
  font-style: normal;
  color: var(--teal-light);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--orange-light);
  opacity: 0.35;
  border-radius: 4px;
  z-index: -1;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--teal);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(26, 158, 143, 0.3);
}

.btn-hero:hover {
  background: var(--teal-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(26, 158, 143, 0.4);
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: clamp(60px, 8vw, 120px);
}

/* --- About --- */
.about {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.5rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.about-text h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.about-text h2 em {
  font-style: normal;
  color: var(--orange);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 480px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.badge-icon { font-size: 1.1rem; }

.about-visual {
  display: flex;
  justify-content: center;
}

.about-img-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* --- Products --- */
.products {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--sand);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header h2 em {
  font-style: normal;
  color: var(--teal);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.product-card-img {
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.product-card-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light);
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.75rem;
}

.size-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--sand);
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

.size-tag strong {
  color: var(--teal);
  font-weight: 800;
}

/* --- CTA --- */
.cta-section {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: linear-gradient(160deg, #e8f8f5, #fef9f0);
  text-align: center;
}

.cta-content {
  max-width: 600px;
}

.cta-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.06));
}

.cta-section h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}

.cta-section h2 em {
  font-style: normal;
  color: var(--teal);
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  background: var(--whatsapp);
  padding: 1.1rem 2.8rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  padding: 3.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Scroll Animations --- */
[data-animate-scroll] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-out-expo);
}

[data-animate-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(2) { transition-delay: 0.08s; }
.product-card:nth-child(3) { transition-delay: 0.16s; }
.product-card:nth-child(4) { transition-delay: 0.24s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual { order: -1; }
  .about-text p { max-width: 100%; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 7rem 1rem 8rem; }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .product-card-body { padding: 1rem; }
  .product-card-body h3 { font-size: 1.1rem; }
  .product-card-body p { font-size: 0.8rem; }
  .about-badges { flex-direction: column; }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
