/* ============================================================
   HAPPY YOU — Beauty, Haircare & Wellness
   Luxury editorial landing page · HTML/CSS/JS demo
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ivory:      #FAF7F1;
  --cream:      #F4EEE4;
  --beige:      #EAE0CF;
  --sand:       #DECFB4;
  --olive:      #70735A;
  --olive-deep: #4F5239;
  --olive-fade: rgba(112, 115, 90, 0.12);
  --ink:        #28251F;
  --ink-soft:   rgba(40, 37, 31, 0.72);
  --muted:      #7D766A;
  --gold:       #B3925F;
  --line:       rgba(40, 37, 31, 0.14);
  --line-soft:  rgba(40, 37, 31, 0.08);
  --white:      #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;
  --ui:    "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --header-h: 78px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.3s;
  --t-med: 0.45s;
  --t-slow: 0.6s;
  --shadow-soft: 0 24px 60px -28px rgba(40, 37, 31, 0.35);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

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

button {
  font-family: var(--ui);
  cursor: pointer;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; color: var(--ink); }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 128px) 0; }

section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(44px, 6vw, 76px); }

.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.02rem; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--olive-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(40, 37, 31, 0.55);
}

.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
.btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }

.btn-block { width: 100%; }

.btn-add {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 22px;
  font-size: 0.7rem;
}
.btn-add:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              height var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -24px rgba(40, 37, 31, 0.25);
  height: 66px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
  transition: color var(--t-fast) var(--ease);
  z-index: 2;
}

.site-header.is-scrolled .brand { color: var(--ink); }

/* nav */
.site-nav { display: flex; }

.nav-list { display: flex; gap: clamp(18px, 2.4vw, 34px); }

.nav-link {
  position: relative;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.site-header.is-scrolled .nav-link { color: var(--ink-soft); }
.site-header.is-scrolled .nav-link:hover, .site-header.is-scrolled .nav-link.is-active { color: var(--ink); }

.nav-extra { display: none; }
.nav-social { display: flex; gap: 18px; margin-top: 28px; }
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-social a:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.nav-social svg { width: 19px; height: 19px; }

/* header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  color: var(--white);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { transform: translateY(-2px); }
.site-header.is-scrolled .icon-btn { color: var(--ink); }

.btn-header {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  padding: 11px 24px;
  font-size: 0.7rem;
}
.btn-header:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.site-header.is-scrolled .btn-header { color: var(--ink); border-color: var(--line); }
.site-header.is-scrolled .btn-header:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* burger */
.burger { display: none; }
.burger span {
  display: block;
  width: 24px; height: 1.6px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 241, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
}
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-close {
  position: absolute;
  top: 26px; right: 26px;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.search-close svg { width: 20px; height: 20px; }
.search-close:hover { background: var(--ink); color: var(--ivory); transform: rotate(90deg); }

.search-form { width: min(640px, calc(100% - 64px)); text-align: center; }

.search-label {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  display: block;
  margin-bottom: 30px;
}

.search-row { display: flex; gap: 14px; }

.search-input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--olive-fade); }

.search-hint { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

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

.hero-bg {
  position: absolute;
  inset: -14% 0;
  z-index: -2;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center 30%;
  transform: translateY(0) scale(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(24, 22, 18, 0.42) 0%, rgba(24, 22, 18, 0.18) 42%, rgba(24, 22, 18, 0.55) 100%),
    radial-gradient(120% 90% at 50% 40%, rgba(24, 22, 18, 0.12) 0%, rgba(24, 22, 18, 0.34) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-kicker {
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: rise-in 1s var(--ease) 0.1s both;
}
.hero-kicker .hero-line {
  width: 34px; height: 1px;
  background: var(--gold);
}

.hero-title {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 12ch;
  margin-top: 26px;
  text-wrap: balance;
  animation: rise-in 1s var(--ease) 0.28s both;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: rgba(255, 255, 255, 0.94);
  margin-top: 22px;
  animation: rise-in 1s var(--ease) 0.46s both;
}

.hero-copy {
  max-width: 640px;
  margin-top: 16px;
  font-size: 0.98rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  animation: rise-in 1s var(--ease) 0.62s both;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  animation: rise-in 1s var(--ease) 0.78s both;
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
  animation: rise-in 1s var(--ease) 1s both;
}
.hero-scroll-label { line-height: 1; }
.hero-scroll-arrow {
  font-size: 1.1rem;
  line-height: 1;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  padding-top: clamp(90px, 12vw, 150px);
  background: var(--ivory);
}
.intro-inner {
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro .section-title { margin-top: 26px; }
.intro-text {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.85;
  font-weight: 300;
  max-width: 600px;
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { background: var(--ivory); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.category-card {
  display: block;
}

.category-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin: 0;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.7s var(--ease);
}
.category-card:hover .category-media img { transform: scale(1.05); }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 22, 18, 0) 45%, rgba(24, 22, 18, 0.42) 100%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.category-card:hover .category-overlay { opacity: 1; }

.category-explore {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ivory);
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  white-space: nowrap;
}
.category-card:hover .category-explore { opacity: 1; transform: translate(-50%, 0); }
.category-explore .arrow { transition: transform var(--t-fast) var(--ease); }
.category-card:hover .category-explore .arrow { transform: translateX(4px); }

.category-body { padding: 22px 6px 0; text-align: center; }
.category-title {
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  transition: color var(--t-fast) var(--ease);
}
.category-card:hover .category-title { color: var(--olive-deep); }
.category-text { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   SPLIT (Haircare / Skincare)
   ============================================================ */
.split {
  background:
    linear-gradient(var(--cream), var(--cream)) no-repeat 0 0 / 100% 42%,
    var(--ivory);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.split-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-caption {
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(24, 22, 18, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
}

.split-body .kicker { justify-content: flex-start; }
.split-body .section-title { margin-top: 18px; max-width: 18ch; }

.split-text {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

.split-body .btn { margin-top: 34px; }

.checklist {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.tick {
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
}

.split-reverse { background: var(--ivory); }
.split-reverse .split-grid { direction: rtl; }
.split-reverse .split-grid > * { direction: ltr; }

.skincare-mini {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}
.grain {
  display: block;
  width: 86px; height: 28px;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 50%, rgba(176, 146, 95, 0.55) 0%, rgba(234, 224, 207, 0.9) 70%);
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 6px 14px;
  border-radius: inherit;
  background: rgba(250, 247, 241, 0.55);
}
.grain-b { width: 118px; background: radial-gradient(ellipse at 50% 50%, rgba(112, 115, 90, 0.5) 0%, rgba(234, 224, 207, 0.9) 70%); }
.grain-c { width: 96px; background: radial-gradient(ellipse at 50% 50%, rgba(250, 247, 241, 0.9) 0%, rgba(222, 207, 180, 0.95) 70%); }

/* ============================================================
   WELLNESS
   ============================================================ */
.wellness {
  background:
    radial-gradient(110% 120% at 50% 0%, rgba(250, 247, 241, 0.7) 0%, rgba(244, 238, 228, 0.4) 60%),
    var(--beige);
}

.wellness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
}

.wellness-card {
  background: rgba(250, 247, 241, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.wellness-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

.wellness-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.wellness-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.wellness-card:hover .wellness-media img { transform: scale(1.05); }

.wellness-body { padding: 26px 28px 30px; }
.wellness-body h3 {
  font-size: 1.42rem;
  letter-spacing: 0.02em;
}
.wellness-body p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   LAB / SCIENCE
   ============================================================ */
.lab {
  background: var(--ivory);
  border-top: 1px solid var(--line-soft);
}

.lab-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(48px, 6vw, 90px);
}

.lab-body .kicker { justify-content: flex-start; }

.lab-text { margin-top: 24px; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

.lab-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tag {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--olive-deep);
  border: 1px solid var(--olive-fade);
  background: rgba(112, 115, 90, 0.07);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tag:hover { background: var(--olive-deep); color: var(--ivory); border-color: var(--olive-deep); }

.lab-points {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.lab-points h4 {
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.lab-points p { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

.lab-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "main main"
    "tile-a tile-b"
    "wide wide";
  gap: 16px;
}
.lab-collage figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.lab-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.lab-collage figure:hover img { transform: scale(1.05); }

.collage-main { grid-area: main; aspect-ratio: 16 / 8; }
.collage-tile { aspect-ratio: 1 / 1; }
.collage-tile:first-of-type { grid-area: tile-a; }
.collage-tile:nth-of-type(2) { grid-area: tile-b; }
.collage-wide { grid-area: wide; aspect-ratio: 16 / 6; }

/* ============================================================
   SHOP / PRODUCTS
   ============================================================ */
.shop { background: var(--ivory); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.product-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-soft); border-color: transparent; }

.product-media {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.05); }

.product-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

.product-category {
  font-family: var(--ui);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name { margin-top: 10px; font-size: 1.5rem; }

.product-desc { margin-top: 10px; font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

.product-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.product-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--olive-deep);
}

/* ============================================================
   JOURNAL
   ============================================================ */
.journal { background: var(--cream); }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.journal-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.journal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

.journal-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
}
.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.journal-card:hover .journal-media img { transform: scale(1.06); }

.journal-cat {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--ui);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(250, 247, 241, 0.92);
  padding: 8px 14px;
  border-radius: 999px;
}

.journal-body { padding: 26px 28px 30px; }
.journal-title {
  font-size: 1.55rem;
  line-height: 1.25;
  max-width: 18ch;
}
.journal-excerpt { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive-deep);
  transition: color var(--t-fast) var(--ease);
}
.text-link .arrow { transition: transform var(--t-fast) var(--ease); }
.text-link:hover { color: var(--ink); }
.text-link:hover .arrow { transform: translateX(5px); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.join {
  background:
    radial-gradient(120% 130% at 50% 12%, rgba(250, 247, 241, 0.9) 0%, rgba(244, 238, 228, 0.35) 55%),
    var(--beige);
}
.join-inner {
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.join-text { margin-top: 20px; color: var(--muted); font-size: 1.08rem; }

.join-form {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}
.join-input {
  flex: 1;
  min-width: 0;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.join-input::placeholder { color: var(--muted); }
.join-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--olive-fade); }

.join-note { margin-top: 20px; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.72);
  padding: clamp(64px, 8vw, 96px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.brand-footer { color: var(--ivory); font-size: 1.5rem; }

.footer-tagline {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250, 247, 241, 0.66);
}

.footer-contact {
  margin-top: 22px;
  font-size: 0.9rem;
  line-height: 1.9;
}
.footer-contact a:hover { color: var(--ivory); }

.footer-col h4 {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 22px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.95rem;
  color: rgba(250, 247, 241, 0.66);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--ivory); padding-left: 5px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  font-size: 0.82rem;
  color: rgba(250, 247, 241, 0.5);
}
.footer-demo { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  border-radius: 50%;
  box-shadow: 0 16px 36px -14px rgba(40, 37, 31, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease),
              visibility var(--t-med) var(--ease), background var(--t-fast) var(--ease);
}
.to-top svg { width: 19px; height: 19px; }
.to-top:hover { background: var(--olive-deep); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 24px 50px -20px rgba(40, 37, 31, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 146, 95, 0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(179, 146, 95, 0); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-media {
  opacity: 0;
  clip-path: inset(0 0 14% 0);
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), clip-path 1s var(--ease);
}
.reveal-media.is-visible { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-list { gap: 20px; }
  .nav-link { font-size: 0.66rem; letter-spacing: 0.16em; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-collage { max-width: 620px; }
  .category-grid { gap: 20px; }
  .split-grid { gap: 44px; }
}

@media (max-width: 900px) {
  /* burger + drawer nav */
  .burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; }

  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(400px, 88vw);
    z-index: 150;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    padding: 80px 44px 44px;
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease);
    box-shadow: -30px 0 80px -40px rgba(40, 37, 31, 0.4);
    overflow-y: auto;
  }
  body.menu-open .site-nav { transform: translateX(0); }

  .nav-list { flex-direction: column; gap: 6px; }
  .nav-link {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    color: var(--ink) !important;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link.is-active { color: var(--olive-deep) !important; }
  .nav-link.is-active::after { width: 34px; transform: scaleX(1); }

  .nav-extra { display: flex; flex-direction: column; margin-top: 40px; }
  .nav-social { margin-top: 20px; }

  .btn-header { display: none; }
  .icon-btn { color: var(--white); }
  .site-header.is-scrolled .icon-btn { color: var(--ink); }
}

@media (max-width: 768px) {
  .container { width: min(100% - 40px, 1200px); }
  .section { padding: 64px 0; }

  .category-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .category-media { aspect-ratio: 4 / 5; }

  .split-grid { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 4 / 4.4; }
  .split-body { text-align: left; }
  .split-reverse .split-body { order: 1; }
  .split-reverse .split-media { order: 2; }

  .wellness-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

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

  .journal-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .join-form { flex-direction: column; }
  .join-form .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }

  .hero-scroll { bottom: 24px; }
  .hero-copy { max-width: 560px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1200px); }

  .product-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }

  .checklist { grid-template-columns: 1fr; }
  .lab-points { grid-template-columns: 1fr; }
  .brand { letter-spacing: 0.1em; }

  .hero-title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero-actions { flex-direction: column; width: 100%; align-items: stretch; gap: 14px; }
  .hero-actions .btn { width: 100%; }

  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }

  .toast { width: calc(100% - 40px); justify-content: center; text-align: center; padding: 15px 20px; }
}

@media (hover: none) {
  .category-card:hover .category-media img,
  .wellness-card:hover .wellness-media img,
  .product-card:hover .product-media img,
  .journal-card:hover .journal-media img { transform: none; }
  .category-explore { opacity: 1; transform: translate(-50%, 0); }
  .category-overlay { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-media, .hero-title, .hero-kicker, .hero-sub, .hero-copy, .hero-actions, .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}