/* ============================================================
   VERDÉA — organic botanical skincare (demo concept)
   ============================================================ */

:root {
  --cream: #f6f2e7;
  --cream-2: #efe9da;
  --ink: #1e2f22;
  --ink-soft: rgba(30, 47, 34, 0.62);
  --ink-faint: rgba(30, 47, 34, 0.38);
  --moss: #43603a;
  --sage: #a9bc93;
  --clay: #c97c53;
  --light: #faf7ee;
  --border: rgba(30, 47, 34, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "Outfit", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection { background: var(--moss); color: var(--cream); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

em { font-style: italic; }

/* ---------- shared ---------- */

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.section-eyebrow--light { color: var(--sage); }

.section-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-title em { color: var(--moss); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--sage); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.2rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.5s var(--ease-out), background 0.35s var(--ease-out),
    color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--moss); }
.btn--ghost { border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 0.68rem 1.4rem; font-size: 0.82rem; }

[data-reveal] { will-change: transform, opacity; }

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.preloader__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--cream);
}
.preloader__count {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--sage);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background 0.5s var(--ease-out), padding 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(246, 242, 231, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.nav__leaf { width: 20px; height: 20px; color: var(--moss); }
.nav__links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav__cart {
  position: relative;
  background: none;
  border: none;
  color: var(--ink);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
}
.nav__cart svg { width: 22px; height: 22px; }
.nav__cart-count {
  position: absolute;
  top: 2px; right: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--light);
  font-size: 0.62rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3.5rem) 4rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  right: -12vw;
  top: 8vh;
  width: 60vw;
  height: 60vw;
  max-width: 850px;
  max-height: 850px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(169, 188, 147, 0.55), rgba(169, 188, 147, 0) 65%);
  z-index: 0;
  pointer-events: none;
}
.hero__products {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__product {
  position: absolute;
  display: none;
  width: auto;
  filter: drop-shadow(0 30px 45px rgba(30, 47, 34, 0.28));
  will-change: transform;
}
.hero__product.is-loaded { display: block; }
.hero__product--1 { right: 15%; top: 16%; height: 50vh; }
.hero__product--2 { right: 40%; bottom: 14%; height: 30vh; }
.hero__product--3 { right: 3%; top: 32%; height: 38vh; }

@media (max-width: 860px) {
  .hero__product--1 { right: 22%; top: 8%; height: 26vh; }
  .hero__product--2 { right: 58%; top: 13%; height: 16vh; }
  .hero__product--3 { right: 4%; top: 12%; height: 20vh; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(3.4rem, 9.5vw, 8.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__title .word { display: inline-block; }
.hero__title .line--accent em { color: var(--moss); }
.hero__sub {
  margin-top: 2.2rem;
  max-width: 40ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}
.hero__cta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: clamp(1.2rem, 4vw, 3.5rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__scroll-line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--ink-faint);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 350;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  color: var(--sage);
  font-size: 0.9rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- collection ---------- */

.collection {
  position: relative;
  background: var(--cream-2);
  overflow: hidden;
  transition: background-color 0.1s linear;
}
.collection__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 4vw, 3.5rem);
  width: max-content;
  min-height: 100svh;
}
.collection__lead {
  width: min(460px, 82vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}
.collection__lead-copy {
  margin-top: 1.6rem;
  color: var(--ink-soft);
  max-width: 34ch;
}
.collection__hint {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.collection__hint-arrow {
  font-size: 1.3rem;
  letter-spacing: 0;
  animation: nudge 1.8s var(--ease-in-out) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.product-card {
  width: min(380px, 80vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -30px rgba(30, 47, 34, 0.35);
}
.product-card__stage {
  padding: 2.4rem 2rem 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 90%, rgba(169, 188, 147, 0.28), transparent 70%);
}
.product-svg {
  width: min(200px, 46vw);
  height: auto;
  transition: transform 0.8s var(--ease-out);
}
.product-card:hover .product-svg {
  transform: translateY(-12px) rotate(-2.5deg);
}
.svg-label-sm {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  fill: #20301f;
}
.svg-label-no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  fill: #43603a;
}
.product-card__info { padding: 1.4rem 2rem 2.2rem; }
.product-card__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.95rem;
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.45rem;
  margin-top: 0.3rem;
  letter-spacing: -0.01em;
}
.product-card__notes {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.product-card__row {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.collection__end {
  display: flex;
  align-items: center;
  padding: 0 3rem;
  flex-shrink: 0;
}
.collection__all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 190px;
  height: 190px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.25;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.collection__all:hover { background: var(--ink); color: var(--cream); }
.collection__all-arrow { font-size: 1.4rem; }

/* mobile / no-pin fallback: native horizontal snap scroll */
@media (max-width: 1023px) {
  .collection__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  .collection__track::-webkit-scrollbar { display: none; }
  .product-card, .collection__lead { scroll-snap-align: center; }
}

/* ---------- ingredients ---------- */

.ingredients {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3.5rem);
  border-radius: 34px 34px 0 0;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
.ingredients__head { max-width: 900px; }
.ingredients__list {
  list-style: none;
  margin-top: 4.5rem;
}
.ingredient {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid rgba(246, 242, 231, 0.16);
  transition: padding-left 0.6s var(--ease-out);
}
.ingredient:last-child { border-bottom: 1px solid rgba(246, 242, 231, 0.16); }
.ingredient:hover { padding-left: 1.2rem; }
.ingredient__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 0.95rem;
}
.ingredient__name {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  letter-spacing: -0.015em;
}
.ingredient__role {
  color: rgba(246, 242, 231, 0.55);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.stats {
  margin-top: 5.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem 2rem;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 350;
  color: var(--sage);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(246, 242, 231, 0.6);
  max-width: 22ch;
}

/* ---------- ritual ---------- */

.ritual {
  position: relative;
  padding: clamp(7rem, 20vh, 12rem) clamp(1.2rem, 4vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  background: var(--cream);
}
.ritual__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.ritual__blob--1 {
  width: 420px; height: 420px;
  left: -120px; top: 10%;
  background: rgba(169, 188, 147, 0.5);
}
.ritual__blob--2 {
  width: 380px; height: 380px;
  right: -100px; bottom: 5%;
  background: rgba(201, 124, 83, 0.28);
}
.ritual__quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 1000px;
  margin: 0 auto;
}
.ritual__quote em { color: var(--moss); }
.ritual .btn { margin-top: 3rem; position: relative; z-index: 1; }

/* ---------- stories ---------- */

.stories {
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3.5rem);
  background: var(--cream-2);
  border-radius: 34px 34px 0 0;
}
.stories__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.story {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.story:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -28px rgba(30, 47, 34, 0.3);
}
.story__stars { color: var(--clay); letter-spacing: 0.25em; font-size: 0.85rem; }
.story blockquote {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.story figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- newsletter ---------- */

.newsletter {
  padding: clamp(6rem, 16vh, 10rem) clamp(1.2rem, 4vw, 3.5rem);
  text-align: center;
  background: var(--cream-2);
}
.newsletter__title {
  font-family: var(--font-display);
  font-weight: 370;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  letter-spacing: -0.025em;
  line-height: 1;
}
.newsletter__title em { color: var(--moss); }
.newsletter__copy {
  margin: 1.6rem auto 0;
  color: var(--ink-soft);
  max-width: 42ch;
}
.newsletter__form {
  margin: 2.6rem auto 0;
  display: flex;
  gap: 0.7rem;
  max-width: 480px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter__form input {
  flex: 1 1 260px;
  padding: 1.05rem 1.6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.4s var(--ease-out);
}
.newsletter__form input::placeholder { color: var(--ink-faint); }
.newsletter__form input:focus {
  outline: none;
  border-color: var(--moss);
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 10vh, 6rem) clamp(1.2rem, 4vw, 3.5rem) 2rem;
  border-radius: 34px 34px 0 0;
  overflow: hidden;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: var(--sage);
}
.footer__col a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.9rem;
  color: rgba(246, 242, 231, 0.65);
  transition: color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.footer__col a:hover { color: var(--cream); transform: translateX(4px); }
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(4rem, 16.5vw, 13.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: -0.14em;
  color: rgba(246, 242, 231, 0.14);
  user-select: none;
  white-space: nowrap;
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246, 242, 231, 0.14);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(246, 242, 231, 0.45);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav__links { display: none; }
  .ingredient { grid-template-columns: 2.4rem 1fr; }
  .ingredient__role { grid-column: 2; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .preloader { display: none; }
}
