/* ═══════════════════════════════════════════════════════════
   AÇAÍ MOVEMENT — Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Custom fonts ───────────────────────────────────────────── */
@font-face {
  font-family: 'FredokaOne';
  src: url('../fonts/FredokaOne-Regular.woff2') format('woff2'),
       url('../fonts/FredokaOne-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter18pt';
  src: url('../fonts/Inter18pt-Regular.woff2') format('woff2'),
       url('../fonts/Inter18pt-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter18pt';
  src: url('../fonts/Inter18pt-Bold.woff2') format('woff2'),
       url('../fonts/Inter18pt-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter18pt';
  src: url('../fonts/Inter18pt-Light.woff2') format('woff2'),
       url('../fonts/Inter18pt-Light.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter18pt-Light';
  src: url('../fonts/Inter18pt-Light.woff2') format('woff2'),
       url('../fonts/Inter18pt-Light.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --dark:          #1c0a35;
  --dark-soft:     #2b1050;
  --purple:        #7b3fb5;
  --purple-light:  #e4d9f8;
  --purple-card:   #f5f1ff;
  --accent:        #B2D674;   /* green accent */
  --green:         #4caf50;   /* amazon badge / CTA */
  --green-dark:    #3a8a3e;
  --white:         #ffffff;
  --text-dark:     #1c0a35;
  --text-muted:    #6b5f80;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;
  --shadow:        0 4px 24px rgba(28,10,53,.12);
  --nav-h:         5rem;
  --transition:    .2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Inter18pt', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--dark);
  line-height: 1.6;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ── Typography helpers ─────────────────────────────────────── */
.section-heading {
  font-family: 'Inter18pt', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* ── Layout helper ──────────────────────────────────────────── */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 1.2rem;
  font-family: 'Inter18pt', sans-serif;
  font-size: .85rem;
  font-weight: 700;   /* Inter18pt-Bold */
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn--pill { border-radius: var(--radius-pill); }
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Yellow-green filled — "Order" hero CTA */
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}
.btn--accent:hover { background: #9ec05e; border-color: #9ec05e; color: #F7EDC4; transform: none; }

/* Outline accent — "Explore product" */
.btn--ghost {
  background: transparent;
  border-color: #B2D674;
  border-width: 1px;
  color: #B2D674;
}
.btn--ghost:hover { background: #B2D674; border-color: #B2D674; color: #553583; }

/* Green filled — product cards, place order */
.btn--green {
  background: transparent;
  border: 2px solid #B2D674;
  color: #B2D674;
  border-radius: var(--radius-pill);
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.btn--green:hover { background: #B2D674; color: #553583; border-color: #B2D674; }

.btn--green.btn--submitted {
  background: #B2D674;
  color: #553583;
  border-color: #B2D674;
}

.btn--sm  { padding: .4rem .95rem; font-size: .82rem; }
.btn--lg  { padding: .7rem 2rem; font-size: 1.3rem; height: auto; border-width: 1px; margin-top: 15px; }


/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(28,10,53,.9);
  backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;        /* all links sit on the right */
  width: min(1280px, 94vw);
  height: 100%;
  margin-inline: auto;
  position: relative;
}

/* Small logo: hidden on hero, fades in on scroll */
.nav__logo-small {
  position: absolute;
  left: calc(min(640px, 47vw) - 45vw + 20px);
  font-family: 'FredokaOne', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: .8;
  color: #F7EDC4;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav.scrolled .nav__logo-small {
  opacity: 1;
  pointer-events: auto;
  margin-left: 2px;
  font-size: 19px;
}

/* Centered pill links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 7rem;
}

.nav__link {
  color: #F7EDC4;
  font-size: 1.1rem;
  font-weight: 700;
  height: 27px;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid #F7EDC4;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.3s ease;
  white-space: nowrap;
}
.nav__link:hover {
  background: #F7EDC4;
  border-color: #F7EDC4;
  color: #F7EDC4; /* fallback */
}

/* Text shows the hero image through it, locked to viewport position */
.nav__link:hover span {
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* "Order" — filled accent pill */
.nav__link--cta {
  background: #B2D674;
  border-color: #B2D674;
  color: var(--dark);
}
.nav__link--cta:hover { background: #9ec05e; border-color: #9ec05e; }

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  position: absolute;
  right: 0;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: visible;
  background: var(--dark);
  z-index: 1;
  transform-origin: center center;
  will-change: transform, filter;
}

/* Photo — fills from top down to where the card begins */
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 77%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
}

/* Large brand logo — top-left, overlaid on photo */
.hero__logo {
  position: absolute;
  top: 1.75rem;
  left: calc(5vw + 20px);
  z-index: 10;
  font-family: 'FredokaOne', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: .80;
  color: #F7EDC4;          /* warm cream / pale yellow-green */
  letter-spacing: -.01em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Açaí berry — 1024×1024 source, bridges photo and story card */
.hero__berry {
  position: absolute;
  right: 6vw;
  bottom: -13%;
  width: min(700px, 100vw);           /* square: height follows automatically */
  height: auto;
  z-index: 35;
  pointer-events: none;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
  transform: translateY(var(--py, 0px)) scale(1);
}

/* Story card — anchored to bottom */
.hero__card {
  position: absolute;
  bottom: -20rem; left: 0; right: 0;
  height: calc(35% + 20rem);
  background: #553583;
  border-radius: 120px 120px 0 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 3vw 5vw 2rem;
}

/* Constrain text to left half so berry has room on the right */
.hero__card > * { max-width: 48%; }

.hero__heading {
  font-family: 'Inter18pt', sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 700;   /* Inter18pt-Bold */
  color: #F7EDC4;
  line-height: 1.05;
  margin-bottom: .75rem;
  padding-left: 20px;
}

.hero__sub {
  font-family: 'Inter18pt-Light', sans-serif;
  color: #F7EDC4;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  padding-left: 20px;
  padding-top: 5px;
}

.hero__buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-left: 20px;
}
.hero__buttons .btn {
  font-size: 1.1rem;
}

.hero__tagline {
  position: absolute;
  /* Right edge tracks the berry: equals ~38% at 1440px, shifts left as screen narrows */
  right: calc(6vw + min(700px, 100vw) * 0.80);
  width: 13rem;           /* fixed width — no left constraint so it can move freely */
  /* card starts at ~65% of hero; offset by card top padding + heading height */
  top: calc(65% + 3vw + clamp(2rem, 4vw, 5rem) * 1.1 + 0.75rem);
  color: #F7EDC4;
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: right;
  pointer-events: none;
  z-index: 20;
}


/* ═══════════════════════════════════════════════════════════
   CARD WRAPPERS
   ═══════════════════════════════════════════════════════════ */

/* Main card — continues seamlessly from the hero card */
.main-card {
  background: #553583;
  position: relative;
  z-index: 10;
  border-radius: 60px 60px 120px 120px;
  margin-top: -140px;
}

/* Products card — nested inside main card */
.products-card {
  background: #2A1A42;
  border-radius: 120px;
  position: relative;
  z-index: 20;
  margin: 0 0 0;
  padding-bottom: 18rem;
  overflow: visible;
}

/* Origin mini-card — nested inside products card, same color as main card */
.origin-scroll-anchor {
  height: 0;
  scroll-margin-top: calc(var(--nav-h) + 90px);
}

.origin-wrapper {
  position: relative;
  margin: 3rem auto 0;
  width: min(1440px, 98vw);
}

.origin-wrapper .origin-mini-card {
  margin: 0 auto;
}

.origin__leaves {
  position: absolute;
  left: calc((min(1440px, 98vw) - 100vw) / 2);
  top: 50%;
  transform: translateY(calc(-50% + var(--py, 0px)));
  width: 40%;
  object-fit: contain;
  z-index: 22;
  pointer-events: none;
}

.origin__leaves-phone {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(var(--py, 0px));
  top: -5rem;
  width: 130%;
  max-width: none;
  object-fit: contain;
  z-index: 22;
  pointer-events: none;
}

.origin__leaves-phone-bottom {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(var(--py, 0px));
  bottom: -5rem;
  width: 130%;
  max-width: none;
  object-fit: contain;
  z-index: 22;
  pointer-events: none;
}

.origin-mini-card {
  background: #553583;
  border-radius: 60px;
  position: relative;
  z-index: 30;
  width: min(1440px, 98vw);
  margin: 0 auto;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════════════════ */
.products {
  padding: 2.5vw 0 6rem;
}

/* "Products" heading — pinned left at same position as "Our Story" */
.products__heading {
  font-family: 'Inter18pt', sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 700;
  color: #F7EDC4;
  text-align: left;
  padding: 0 0 0 calc(5vw + 20px);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.products .container {
  width: min(1440px, 98vw);
}

/* ── Product card ───────────────────────────────────────────── */
.product-card {
  background: #E8DEFC;
  border-radius: 51px;
  padding: 3rem;
  position: relative;
  z-index: 23;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
  transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-3px); }

.product-card__img-wrap {
  position: relative;
  background: transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img-wrap img {
  width: 85%;
  object-fit: contain;
  padding-bottom: 3rem;
}


.product-card__size {
  position: absolute;
  bottom: .75rem;
  right: 2rem;
  background: #B2D674;
  color: #553583;
  font-size: .95rem;
  font-weight: 700;
  padding: .5rem 1rem;
  /* sharp top-left, rounded everywhere else */
  border-radius: 0 999px 999px 999px;
}

.product-card[data-id="1"] .product-card__size {
  right: 3.5rem;
}

.product-card[data-id="4"] .product-card__img-wrap img {
  width: 90%;
}

.product-card__name {
  font-family: 'Inter18pt', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #553583;
}

.product-card__desc {
  font-family: 'Inter18pt', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  color: #553583;
  line-height: 1.5;
  flex: 1;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .25rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 8px;
  border: 1px solid #553583;
  overflow: hidden;
  height: 36px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: #553583;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}
.qty-btn--minus { border-right: 1px solid #553583; }
.qty-btn--plus  { border-left:  1px solid #553583; }
.qty-btn:hover { background: rgba(85,53,131,.1); }

.qty-value {
  min-width: 35px;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  color: #553583;
}

.add-btn {
  margin-left: auto;
  background: #553583;
  color: #E8DEFC;
  border: none;
  border-radius: 8px;
  width: 140px;
  height: 38px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.add-btn:hover  { background: #3e2663; transform: scale(1.04); }
.add-btn:active { transform: scale(.98); }
.add-btn.added  { background: #B2D674; color: var(--dark); }


/* ═══════════════════════════════════════════════════════════
   ORIGIN
   ═══════════════════════════════════════════════════════════ */
.origin {
  padding: 6rem 0 6rem;
  position: relative;
  overflow: visible;
}

.origin__inner {
  display: grid;
  grid-template-areas: "top badges" "columns columns";
  grid-template-columns: auto 1fr;
  gap: 2rem;
}

.origin__top {
  grid-area: top;
  display: flex;
  align-items: center;
}

.origin__badges {
  grid-area: badges;
  align-self: end;
  margin-bottom: 1rem;
  justify-content: flex-end;
  padding-right: 1.6rem;
}

.origin__columns {
  grid-area: columns;
}

.origin__label {
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: 1.1rem;
  letter-spacing: normal;
  text-transform: none;
  color: #F7EDC4;
  margin-bottom: .5rem;
  line-height: 1.4;
}

.origin__heading {
  font-family: 'Inter18pt', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  color: #F7EDC4;
  line-height: 1;
  margin-bottom: 0;
  flex-shrink: 0;
}

.origin__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.origin__body {
  font-family: 'Inter18pt-Light', sans-serif;
  color: #F7EDC4;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Right column */
.origin__deco {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 10rem;
  justify-content: flex-start;
  overflow: visible;
}

.origin__coming-soon {
  position: absolute;
  bottom: -26.5rem;
  left: 68%;
  transform: translateX(-50%) translateY(var(--py, 0px));
  width: 43%;
  object-fit: contain;
  z-index: 36;
  pointer-events: none;
}

.origin__hand {
  position: absolute;
  bottom: -18rem;
  left: 50%;
  transform: translateX(-70%);
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  z-index: 15;
  pointer-events: none;
}

.origin__berry-img {
  position: absolute;
  top: -15rem;
  right: -4rem;
  width: 82%;
  max-width: 1020px;
  object-fit: contain;
  z-index: 35;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.35));
  pointer-events: none;
}

.origin__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.badge--invisible {
  border-color: transparent;
  pointer-events: none;
  visibility: hidden;
}

.badge {
  border: 1px solid #E8DEFC;
  color: #E8DEFC;
  padding: .35rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: 'Inter18pt', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  transition: background var(--transition);
}
.badge:hover { background: rgba(232,222,252,.15); }

.amazon-badge {
  background: var(--green);
  color: var(--dark);
  font-family: 'Inter18pt', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-pill);
  align-self: flex-end;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}


/* ═══════════════════════════════════════════════════════════
   ORDER SECTION  — sits on main card (#553583)
   ═══════════════════════════════════════════════════════════ */
.order-section {
  padding: 13rem 0 7rem;
  position: relative;
}

/* ── Product selector ───────────────────────────────────────── */
.product-selector {
  margin: 1.5rem 0 2rem;
}

.product-selector__row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.product-selector__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.product-selector__group--qty {
  flex: 0 0 100px;
}


.product-selector__select,
.product-selector__qty {
  background: #F7EDC4;
  border: none;
  border-radius: 12px;
  padding: .75rem 1rem;
  font-family: 'Inter18pt', sans-serif;
  font-size: .95rem;
  color: rgba(43, 16, 80, 0.55);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.product-selector__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232b1050' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.product-selector__select--chosen {
  color: #2b1050;
}

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

.product-selector__add {
  flex-shrink: 0;
  height: 44px;
  padding: 0 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
  align-self: flex-end;
  background: #B2D674;
  color: #553583;
  border-color: #B2D674;
}

.product-selector__add:hover {
  background: transparent;
  color: #B2D674;
  border-color: #B2D674;
}

.product-selector__add.added {
  background: #B2D674;
  border-color: #B2D674;
  color: #553583;
}

.order-section__heading {
  font-family: 'Inter18pt', sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 800;
  color: #F7EDC4;
  margin-bottom: 2rem;
  line-height: 1.15;
}

/* Order summary box */
.summary-box {
  background: #F7EDC4;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  color: #553583;
}

.summary-box__empty p {
  text-align: center;
  opacity: .7;
  font-style: italic;
  padding: .5rem 0;
}

.summary-box__items { display: flex; flex-direction: column; gap: .6rem; }

.summary-title {
  font-family: 'Inter18pt', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #553583;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
}

.summary-item__name { flex: 1; }

.summary-item__qty {
  color: #553583;
  font-weight: 600;
  margin: 0 1rem;
}

.summary-item__price { font-weight: 600; }

.summary-item__remove {
  background: none;
  border: none;
  color: rgba(85,53,131,.5);
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: .75rem;
  line-height: 1;
  transition: color var(--transition);
}
.summary-item__remove:hover { color: #553583; }

.summary-box__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #553583;
}

.summary-box__footer em { font-style: normal; opacity: .65; font-weight: 400; font-size: .85rem; }

#summaryTotal { font-size: 1.2rem; color: #553583; }

/* Order form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group--full { grid-column: 1 / -1; }

.form-group--submit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

label {
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #F7EDC4;
}

.req { color: var(--purple); }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; }

input, textarea {
  width: 100%;
  border: 1.5px solid rgba(123,63,181,.25);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-family: 'Inter18pt', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: #E8DEFC;
  transition: border-color var(--transition);
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: #553583;
  opacity: 0.4;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
}

input.invalid, textarea.invalid { border-color: #e53e3e; }

.form-error {
  color: #e53e3e;
  font-size: .85rem;
  font-weight: 500;
}

/* Order success state */
.order-success {
  background: #E8DEFC;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.order-success h3 {
  font-family: 'Inter18pt', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #553583;
}

.order-success p { color: #553583; }


/* ═══════════════════════════════════════════════════════════
   HEALTH BENEFITS
   ═══════════════════════════════════════════════════════════ */
.health-wrapper {
  background: #2A1A42; /* fallback while video loads */
  position: relative;
  z-index: 5;
  /* slide under main-card's rounded bottom */
  margin-top: -120px;
  padding: calc(5rem + 120px) 0 28rem;
  border-radius: 0 0 120px 120px;
  overflow: hidden;
}

/* Full-bleed video background for the health section */
.health-wrapper__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.health-card {
  background: #E8DEFC;
  border-radius: 120px;
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  /* no side or bottom padding — overlay card fills width exactly */
  padding: 3.5rem 0 0;
  overflow: visible;
}

.health-bowl {
  position: absolute;
  right: 7rem;
  bottom: 5rem;
  width: 50%;
  max-width: 580px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.35));
  z-index: 1;
}

.health-movement {
  position: absolute;
  left: calc((100% - min(1180px, 92vw)) / 2);
  bottom: 5rem;
  width: 44%;
  max-width: 500px;
  object-fit: contain;
  pointer-events: none;
  margin-left: calc(3rem + 30px + 1.25rem);
  z-index: 1;
}

/* Decorative spark image */
.health-spark {
  position: absolute;
  top: 0;
  transform: translateY(-59%);
  right: 7rem;
  width: 15rem;
  object-fit: contain;
  pointer-events: none;
  z-index: 5;
}

.health-card__title {
  font-family: 'Inter18pt', sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 800;
  color: #553583;
  margin-bottom: 2.5rem;
  text-align: left;
  padding: 0 3rem 0 calc(4.25rem + 30px);
}

/* Overlay purple card — same width as health-card, rounds only its own bottom */
.health-overlay-card {
  background: #553583;
  border-radius: 120px;
  padding: 3rem 3rem 3rem;
  position: relative;
  overflow: visible;
}

.health-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr;
  gap: 2rem;
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 20px;
}

.health-item {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  height: 100%;
}

.health-item__title {
  font-family: 'Inter18pt', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #E8DEFC;
  display: inline-block;
  background: #2A1A42;
  padding: 1rem 2rem;
  /* sharp top-left, rounded everywhere else */
  border-radius: 0 999px 999px 999px;
  position: relative;
  z-index: 3;
  margin-bottom: -2rem;
  margin-left: -2rem;
  width: 22rem;
}

/* Row: light purple text bubble overlapping green icon bubble */
.health-item__body {
  display: flex;
  align-items: stretch;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Light purple bubble — sits on top, overlaps left edge of green */
.health-item__desc {
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: .9rem;
  color: #553583;
  line-height: 1.4;
  background: #E8DEFC;
  padding: 2rem;
  padding-top: 2.4rem;
  flex: 1;
  align-self: stretch;
  height: 8rem;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}

/* Green bubble — sits behind, extends to the right */
.health-item__icon {
  background: #B2D674;
  width: 130px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #2A1A42;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  margin-left: -1.5rem;
}

.health-item__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-left: 1.5rem;
}

/* Certifications strip */
.health-certifications {
  padding: 2.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.health-certifications__title {
  font-family: 'Inter18pt', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #553583;
  text-align: center;
  letter-spacing: .04em;
}

.health-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.health-logo-pill {
  border: 1.5px solid #553583;
  color: #553583;
  padding: .45rem 1.2rem;
  border-radius: 999px;
  font-family: 'Inter18pt', sans-serif;
  font-size: .9rem;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: #553583;
  padding: 4rem 0 3rem;
  color: rgba(255,255,255,.75);
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding-top: calc(4rem + 120px);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.footer__logo {
  font-family: 'FredokaOne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #F7EDC4;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: #F7EDC4;
}

.footer__copy {
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #F7EDC4;
  opacity: .8;
  grid-column: 1 / 2;
  margin-top: -1rem;
}

.footer__nav ul,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer__nav a,
.footer__contact a,
.footer__contact span {
  font-family: 'Inter18pt-Light', sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #F7EDC4;
  transition: color var(--transition);
}

.footer__nav a:hover,
.footer__contact a:hover { color: var(--white); }


/* ═══════════════════════════════════════════════════════════
   PAGE LOAD ENTRANCE
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-90px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-160px) scale(0.82); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeUpDramatic {
  from { opacity: 0; transform: translateY(180px) scale(0.78); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav {
  animation: fadeDown 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__photo {
  animation: fadeIn 1.8s ease both;
}
.hero__logo {
  animation: fadeLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) .15s both;
}
.hero__berry {
  animation: fadeUpDramatic 1.3s cubic-bezier(0.16, 1, 0.3, 1) .25s both;
}
.hero__heading {
  animation: fadeUpDramatic 1.1s cubic-bezier(0.16, 1, 0.3, 1) .38s both;
}
.hero__sub {
  animation: fadeUpDramatic 1.1s cubic-bezier(0.16, 1, 0.3, 1) .52s both;
}
.hero__buttons {
  animation: fadeUpDramatic 1.1s cubic-bezier(0.16, 1, 0.3, 1) .66s both;
}
.hero__tagline {
  animation: fadeUpDramatic 1.1s cubic-bezier(0.16, 1, 0.3, 1) .52s both;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(140px) scale(0.93);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade--visible {
  opacity: 1;
}

.reveal-card {
  opacity: 0;
  transform: translateY(100px) scale(0.88);
  transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1),
              transform .9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-health {
  opacity: 0;
  transform: translateY(110px) scale(0.88);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-health--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FAB
   ═══════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  background: none;
  display: block;
  width: 56px;
  height: 56px;
  transition: transform var(--transition);
}
.whatsapp-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .origin__inner  { grid-template-columns: 1fr; }
  .origin__deco   { min-height: 320px; }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
  .footer__brand  { grid-column: 1 / -1; }
  .health-grid         { grid-template-columns: 1fr; }
  .health-card         { padding: 3rem 0 0; }
  .health-card__title  { padding: 0 2rem; }
  .health-overlay-card { padding: 2rem 1rem; }
}

@media (max-width: 700px) {
  .hero__photo { object-position: 45% center; }
  .health-spark { width: 9rem; right: 2rem; }
  .health-bowl { display: none; }
  .health-movement {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 2rem auto 0;
    width: calc(98vw - 3rem);
    max-width: none;
    display: block;
  }
  .health-wrapper { padding-bottom: 5rem; border-radius: 0 0 70px 70px; }
  .hero__sub br { display: none; }

  .origin__leaves { display: none; }
  .origin__leaves-phone { display: block; }
  .origin__leaves-phone-bottom { display: block; }

  .origin-mini-card {
    width: calc(98vw - 3rem);
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .origin__heading { font-size: clamp(3rem, 12vw, 5rem); }
  .origin__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .origin__columns { grid-template-columns: 1fr; gap: 1rem; }
  .origin__top    { grid-area: unset; }
  .origin__columns { grid-area: unset; }
  .origin__badges {
    grid-area: unset;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    padding: 0;
  }
  .origin__badges .badge { flex: 0 0 calc(50% - .75rem); text-align: center; justify-content: center; font-size: .85rem; padding: .45rem .6rem; white-space: nowrap; }
  .origin__badges .badge:nth-child(3),
  .origin__badges .badge:nth-child(4),
  .origin__badges .badge:nth-child(5) { flex: 0 0 calc(33% - .75rem); }
  .origin { padding: 3rem 0 2rem; overflow: hidden; }
  .origin__inner.container { width: 100%; margin-inline: 0; box-sizing: border-box; }
  .origin__coming-soon {
    position: relative;
    bottom: auto; left: auto; transform: none;
    width: 85%;
    margin: -0.5rem auto 2rem;
    display: block;
    order: 10;
  }
  .origin-mini-card .origin { order: 1; }

  .hero__card { border-radius: 70px 70px 0 0; }

  .products-card,
  .origin-mini-card { border-radius: 51px; }
  .health-card,
  .health-overlay-card { border-radius: 58px; width: calc(98vw - 3rem); }
  .main-card { border-radius: 0 0 58px 58px; }
  .order-section { padding-top: 3rem; padding-bottom: 3rem; }
  .summary-box { border-radius: 16px; margin-bottom: 2.5rem; }

  .products-card { overflow-x: clip; padding-bottom: 4rem; }

  .nav.menu-open {
    height: 100vh;
    background: rgba(28,10,53,.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.menu-open .nav__logo-small { display: none; }
  .nav.menu-open .nav__hamburger {
    position: absolute;
    top: calc(var(--nav-h) / 2);
    right: 3vw;
    transform: translateY(-50%);
  }
  .nav__links {
    position: absolute;
    inset: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    transform: translateX(-100%);
    transition: transform .3s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__hamburger { position: absolute; top: 50%; transform: translateY(-50%); right: calc(1vw + 1.5rem); z-index: 10; display: flex; }
  .nav__hamburger span { background: #F7EDC4; }

  .hero__logo { font-size: clamp(2.5rem, 14vw, 4.5rem); top: 1.8rem; left: 4.5rem; }
  .hero__berry { display: none; }
  .hero__tagline {
    display: block;
    position: absolute;
    left: 4.5rem;
    right: auto;
    top: 25%;
    text-align: left;
    font-size: 1rem;
    line-height: 1.4;
  }
  /* All text aligns with product card text: 1.5rem (grid) + 3rem (card) = 4.5rem from screen */
  .hero__card  { min-height: 65%; padding: 4.5rem 4.5rem 3rem 4.5rem; bottom: -11rem; padding-bottom: 20rem; }
  .hero__card > * { max-width: 100%; }
  .hero__heading, .hero__sub, .hero__buttons { padding-left: 0; }
  .hero__buttons { gap: 0.6rem; }
  .nav__logo-small { left: calc(4.5rem - 3vw); margin-left: 0; }

  .products__grid { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .products { padding: 3vw 0 0; }
  .products__heading { padding-left: 4.5rem; padding-top: 3.5rem; }
  .product-card__img-wrap img { padding-bottom: 3.5rem; }
  .product-card[data-id="1"] .product-card__size { right: 2rem; }

  /* Açaí card starts at 1.5rem → inner needs 3rem to reach 4.5rem */
  .origin__inner { padding: 0 3rem; }

  /* Your Order: container at 1.5rem → heading/content need 3rem more */
  .order-section .container { padding: 0 1.5rem; box-sizing: border-box; width: 100%; padding-top: 8rem; }
  .order-section__heading { padding-left: 3rem; }
  .summary-box { padding-left: calc(1.75rem + 1.25rem); padding-right: calc(1.75rem + 1.25rem); }

  .health-card__title { padding: 0 1.5rem 0 1.8rem; }
  .health-grid { margin-left: 0; margin-right: 0; gap: 0.5rem; }
  .health-item { padding: 1rem; }
  .health-overlay-card { display: flex; flex-direction: column; align-items: flex-start; padding-left: 1.8rem; padding-right: 1.8rem; }
  .health-item { width: 100%; box-sizing: border-box; }
  .health-item__title { margin-left: -1rem; }

  .health-item__desc { height: auto; min-height: 8rem; line-height: 1.2rem; font-size: .8rem; padding: 1.2rem; padding-top: 2rem; }

  .health-item__title {
    width: fit-content;
    max-width: calc(100% + 2rem);
    font-size: 1.3rem;
    padding: .85rem 1.5rem;
  }
  .health-item__icon { width: 100px; }

  .btn { padding: 0 .9rem; }
  .product-card__name { font-size: 25px; }
  .form-group--submit { align-items: center; }
  .form-group--submit .btn--green { width: 100%; justify-content: center; padding-top: .75rem; padding-bottom: .75rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__copy { margin-top: 1rem; text-align: center; }
  .footer__nav { display: none; }
  .footer__contact { align-items: center; }
}
