/* ============================================
   Frutamazonia — Shared Styles
   ============================================ */

:root {
  --ink:        #14071F;
  --berry-900:  #2A1248;
  --berry-800:  #3D1A5F;
  --berry-700:  #501E7A;
  --berry-600:  #6B2BA8;
  --berry-500:  #8B4FC5;
  --berry-300:  #C4A3E0;
  --berry-100:  #EDE3F7;

  --gold:       #C9A24A;
  --gold-light: #E8C97A;
  --gold-deep:  #A07F2C;

  --leaf-900:   #2E441A;
  --leaf-700:   #4A6B26;
  --leaf-500:   #7BA847;
  --leaf-400:   #9BC85E;
  --leaf-300:   #B5D689;
  --leaf-100:   #E8F2D6;

  --sun:        #F2B544;       /* bright tropical yellow */
  --sun-light:  #FCD876;
  --coral:      #E86B47;       /* tropical accent */
  --sky:        #7CC4D9;       /* sky/water accent */

  --cream:      #F5EFD8;
  --bone:       #FAF6EA;
  --paper:      #FFFCF2;
  --line:       rgba(20,7,31,0.10);
}

/* Font stack */
html { font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; background: var(--paper); }
.font-display { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-variation-settings: "wdth" 100; letter-spacing: -0.02em; }
.font-serif   { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; letter-spacing: -0.01em; }
.font-body    { font-family: 'Manrope', system-ui, sans-serif; }

/* Type rhythm */
.h-hero    { font-size: clamp(48px, 9vw, 160px); line-height: 0.88; font-weight: 700; letter-spacing: -0.035em; }
.h-display { font-size: clamp(40px, 6.5vw, 96px); line-height: 0.92; font-weight: 700; letter-spacing: -0.03em; }
.h-section { font-size: clamp(32px, 4.5vw, 68px); line-height: 0.96; font-weight: 700; letter-spacing: -0.025em; }
.h-card    { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.eyebrow   { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }

/* Brand utilities */
.text-berry { color: var(--berry-700); }
.text-gold  { color: var(--gold); }
.text-leaf  { color: var(--leaf-700); }
.text-cream { color: var(--cream); }
.text-ink   { color: var(--ink); }

.bg-berry-900 { background: var(--berry-900); }
.bg-berry-800 { background: var(--berry-800); }
.bg-berry-700 { background: var(--berry-700); }
.bg-cream { background: var(--cream); }
.bg-bone  { background: var(--bone); }
.bg-paper { background: var(--paper); }
.bg-leaf-900 { background: var(--leaf-900); }
.bg-ink { background: var(--ink); }

/* Container */
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); }
.wrap-narrow { max-width: 1100px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); }

/* Nav — editorial bar, scroll-aware */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(255, 252, 242, 0.88);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: rgba(20, 7, 31, 0.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: 1440px; margin: 0 auto;
  transition: padding .3s ease;
}
.nav--solid .nav__inner { padding-block: 14px; }

.nav__logo  { display: flex; align-items: center; text-decoration: none; }
.nav__logo .logo-light { display: block; }
.nav__logo .logo-dark  { display: none; }
.nav--solid .nav__logo .logo-light { display: none; }
.nav--solid .nav__logo .logo-dark  { display: block; }
.nav__logo img { height: 30px; width: auto; display: block; }
@media (min-width: 768px) { .nav__logo img { height: 36px; } }

.nav__links { display: none; align-items: center; gap: 4px; }
@media (min-width: 980px) { .nav__links { display: inline-flex; } }
.nav__link {
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 8px 14px;
  position: relative;
  transition: color .25s;
}
.nav--solid .nav__link { color: rgba(20, 7, 31, 0.65); }
.nav__link:hover { color: white; }
.nav--solid .nav__link:hover { color: var(--berry-700); }
.nav__link.is-active { color: white; }
.nav--solid .nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
}

.nav__cta {
  display: none; align-items: center; gap: 10px;
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
  background: var(--ink); color: white;
  font-weight: 600; font-size: 13px; text-decoration: none;
  transition: background .25s, transform .25s;
}
.nav--solid .nav__cta { background: var(--berry-800); }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
.nav__cta:hover { background: var(--berry-700); transform: translateY(-1px); }
.nav__cta__arrow {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}

.nav__burger {
  display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; padding: 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); cursor: pointer;
  border-radius: 999px; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.nav--solid .nav__burger {
  background: rgba(20, 7, 31, 0.06);
  border-color: rgba(20, 7, 31, 0.10);
}
.nav__burger:hover { background: rgba(255, 255, 255, 0.15); }
.nav--solid .nav__burger:hover { background: rgba(20, 7, 31, 0.10); }
@media (min-width: 980px) { .nav__burger { display: none; } }
.nav__burger span { height: 1.5px; width: 16px; background: white; display: block; transition: .3s; border-radius: 1px; }
.nav--solid .nav__burger span { background: var(--ink); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 89;
  background: var(--berry-900);
  display: flex; flex-direction: column; padding: 100px 32px 40px;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.7,0,.2,1);
}
.drawer.is-open { transform: translateX(0); }
.drawer a { color: white; text-decoration: none; font-family: 'Bricolage Grotesque', sans-serif; font-size: 36px; font-weight: 600; padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); letter-spacing: -0.02em; }
.drawer a em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--gold); font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: all .3s; cursor: pointer; border: 0; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(201,162,74,0.5); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: var(--berry-800); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.footer h4 { font-family: 'Bricolage Grotesque', sans-serif; color: white; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; padding-block: 6px; font-size: 14px; transition: color .25s; }
.footer a:hover { color: var(--gold-light); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.footer__bottom { padding-top: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer__brand { font-family: 'Bricolage Grotesque', sans-serif; font-size: 40px; line-height: 1; font-weight: 700; color: white; letter-spacing: -0.025em; }
.footer__brand em { font-style: normal; color: var(--leaf-500); }
.footer__tag { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; color: var(--gold-light); margin-top: 12px; }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 60px; animation: marquee 40s linear infinite; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(28px, 5vw, 64px); font-weight: 600; letter-spacing: -0.02em; }
.marquee__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }

/* Reveal animations — opt-in via .js-revealed-armed on <html>.
   Before JS runs, reveal elements stay fully visible (no FOUC, no stuck state). */
.reveal { transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
html.js-revealed-armed .reveal { opacity: 0; transform: translateY(28px); }
html.js-revealed-armed .reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Gold rule */
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); width: 100%; }

/* Leaf decoration (uses SVG mask in elements) */
.tag-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 600; }
.tag-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.tag-pill-dark { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--berry-800); font-weight: 600; }
.tag-pill-dark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Product hover rotator */
.rotator { position: relative; }
.rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s; }
.rotator img.is-active { opacity: 1; }

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-18px) rotate(2deg); }
}
.float-slow { animation: float 7s ease-in-out infinite; }
.float-med  { animation: float 5s ease-in-out infinite; animation-delay: -2s; }

/* Hero gradient glow */
.glow-purple {
  position: absolute; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,79,197,0.55), rgba(139,79,197,0));
  filter: blur(20px);
}
.glow-gold {
  position: absolute; pointer-events: none;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,162,74,0.35), rgba(201,162,74,0));
  filter: blur(20px);
}

/* Jungle ambience pattern (SVG palm leaves) */
.jungle-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(123,168,71,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(74,107,38,0.25), transparent 55%);
  z-index: 1;
}

/* Animated grain texture overlay */
.grain::after {
  content:''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Card stack */
.card { background: white; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; transition: transform .4s, box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(20,7,31,0.25); }

/* Inputs */
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-family: inherit; font-size: 15px;
  background: white; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0; border-color: var(--berry-600); box-shadow: 0 0 0 4px rgba(107,43,168,0.10);
}
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--berry-800); }

/* Page transition shutter */
.shutter {
  position: fixed; inset: 0; background: var(--berry-900); z-index: 200;
  transform-origin: top; transform: scaleY(0); pointer-events: none;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Selection */
::selection { background: var(--gold); color: var(--ink); }
