/* ========================================
   Hazel Organics — styles.css
   Modern minimal wellness brand
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* — Tokens — */
:root {
  --bg: #ffffff;
  --fg: #111110;
  --fg-mid: #555550;
  --fg-muted: #99998f;
  --accent: #5B7F56;
  --accent-hover: #4A6B45;
  --surface: #F5F4F1;
  --border: #E8E7E3;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0, 0.15, 1);
  --ease-out: cubic-bezier(0, 0, 0.15, 1);
}

/* Light theme only */

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.8rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}

.nav.scrolled {
  background: var(--bg);
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.5s var(--ease);
}

.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: opacity 0.5s var(--ease);
}

.nav.scrolled .nav-logo {
  filter: invert(1);
}

.nav-brand-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.5s var(--ease);
}

.nav.scrolled .nav-brand-text { color: var(--fg); }

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

.nav-links a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease);
}

.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--fg-muted); }
.nav.scrolled .nav-links a:hover { color: var(--fg); }

.nav-cta {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  transition: all 0.4s var(--ease);
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}

.nav.scrolled .nav-cta {
  border-color: var(--border);
  color: var(--fg);
}

.nav.scrolled .nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled .nav-toggle span { background: var(--fg); }

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.4) 75%,
    rgba(0,0,0,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 8vh;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1rem 2.4rem;
  transition: all 0.4s var(--ease);
}

.hero-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}


/* ========================================
   Reveal animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.reveal-image {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-image.visible {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   Text blocks
   ======================================== */

.text-block {
  max-width: 560px;
  margin: 0 auto;
  padding: 10rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.text-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.text-block p {
  font-size: 0.85rem;
  color: var(--fg-mid);
  line-height: 1.85;
}

/* ========================================
   Featured product
   ======================================== */

.featured {
  background: #111110;
  color: #fff;
  padding: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.featured-img {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}

.featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2rem, 4vw, 4rem);
  gap: 0;
  overflow: hidden;
}

.featured-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.featured-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 2.5rem;
}

.ingredients {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}

.ingredient {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ingredient:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ingredient-name {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.ingredient-detail {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.featured-meta {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-meta .product-price {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
}

.featured-format {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.featured-btn {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111110;
  background: #fff;
  padding: 1rem 2.4rem;
  transition: opacity 0.4s var(--ease);
  margin-bottom: 1.5rem;
}

.featured-btn:hover {
  opacity: 0.85;
}

.featured-note {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

/* ========================================
   Detail strip (3-image gallery)
   ======================================== */

.detail-strip {
  padding: 0;
}

.detail-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.detail-strip-img {
  aspect-ratio: 1;
  overflow: hidden;
}

.detail-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.detail-strip-img:hover img {
  transform: scale(1.04);
}

/* ========================================
   Brand story split
   ======================================== */

.story {
  padding: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.story-img {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

.story-img-inner {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.story-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2.5rem, 5vw, 5rem);
  gap: 1.2rem;
}

.story-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.story-content p {
  font-size: 0.82rem;
  color: var(--fg-mid);
  line-height: 1.85;
  max-width: 400px;
}

/* (Benefits section removed) */

/* ========================================
   How it works
   ======================================== */

.how-it-works {
  padding: 7rem clamp(1.5rem, 4vw, 3rem);
}

.how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.how-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4rem;
}

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

.step-num {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.78rem;
  color: var(--fg-mid);
  line-height: 1.75;
}

/* ========================================
   Ingredients section
   ======================================== */

.ingredients-section {
  padding: 7rem clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
}

.ingredients-inner {
  max-width: 900px;
  margin: 0 auto;
}

.ingredients-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

.ingredients-sub {
  text-align: center;
  font-size: 0.82rem;
  color: var(--fg-mid);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 3.5rem;
}

.ingredients-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ingredient-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.ingredient-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.ingredient-card p {
  font-size: 0.75rem;
  color: var(--fg-mid);
  line-height: 1.8;
}

/* ========================================
   Nutrition facts
   ======================================== */

.nutrition {
  padding: 7rem clamp(1.5rem, 4vw, 3rem);
}

.nutrition-inner {
  max-width: 480px;
  margin: 0 auto;
}

.nutrition-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2.5rem;
}

.nutrition-grid {
  border: 1px solid var(--border);
}

.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}

.nutrition-row:last-child {
  border-bottom: none;
}

.nutrition-row span:first-child {
  color: var(--fg);
  font-weight: 400;
}

.nutrition-row span:last-child {
  color: var(--fg-mid);
  font-variant-numeric: tabular-nums;
}

.nutrition-header {
  background: var(--surface);
  font-weight: 500;
}

.nutrition-header span:first-child {
  font-weight: 500;
}

.nutrition-footer {
  background: var(--surface);
}

/* ========================================
   FAQ
   ======================================== */

.faq {
  padding: 7rem clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
}

.faq-inner {
  max-width: 640px;
  margin: 0 auto;
}

.faq-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.2rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--fg-muted);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 1.2rem;
  font-size: 0.78rem;
  color: var(--fg-mid);
  line-height: 1.8;
}

/* ========================================
   CTA + Newsletter combined
   ======================================== */

.cta-section {
  padding: 7rem clamp(1.5rem, 4vw, 3rem);
  background: #111110;
  color: #fff;
  text-align: center;
}

.cta-inner {
  max-width: 440px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111110;
  background: #fff;
  padding: 1.1rem 3rem;
  transition: opacity 0.4s var(--ease);
  margin-bottom: 3rem;
}

.cta-btn:hover {
  opacity: 0.85;
}

.cta-newsletter p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.cta-form-row {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.4s var(--ease);
}

.cta-form-row:focus-within {
  border-color: rgba(255,255,255,0.4);
}

.cta-form-row input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 300;
  outline: none;
}

.cta-form-row input::placeholder {
  color: rgba(255,255,255,0.3);
}

.cta-form-row button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease);
}

.cta-form-row button:hover {
  background: rgba(255,255,255,0.1);
}

.product-price {
  font-size: 0.95rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-top: 0.5rem;
}


/* (Values and Newsletter removed — merged into CTA section) */

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.5;
}

.footer-center {
  font-size: 0.6rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.footer-right a {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.footer-right a:hover { color: var(--fg); }

/* ========================================
   Mobile overlay menu
   ======================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

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

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: 0.04em;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out), color 0.3s;
}

.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu a:hover { color: var(--accent); }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

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

  .featured-img { min-height: 60vh; }

  .featured-info {
    padding: 3rem clamp(1.5rem, 4vw, 3rem) 4rem;
  }

  .detail-strip-grid {
    grid-template-columns: 1fr;
  }

  .detail-strip-img {
    aspect-ratio: 4/3;
  }

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

  .story-img { min-height: 55vh; }

  .story-content {
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ingredients-detail-grid {
    grid-template-columns: 1fr;
  }

  .cta-form-row {
    flex-direction: column;
    border: none;
  }

  .cta-form-row input {
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    padding: 0.9rem;
  }

  .cta-form-row button {
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-block: 0.9rem;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer-left { justify-content: center; }
  .footer-right { justify-content: center; }
}

@media (max-width: 520px) {
  .text-block { padding-block: 6rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-image { opacity: 1; transform: none; }
}
