/* === RESET & BASE === */
:root {
  /* Colors - PL-SAGE-ORGANIC */
  --bg:       #F5F2EB;    /* Warm cream */
  --bg2:      #EDE9E0;    /* Slightly darker cream */
  --surface:  #E8EDDF;    /* Sage surface */
  --card:     #FDFCF9;    /* Almost white card */
  
  --border:   rgba(58, 74, 44, 0.12);   /* Thin green */
  --border2:  rgba(58, 74, 44, 0.22);   /* Thicker green */
  
  --fg:       #1A2412;    /* Dark green-black text */
  --muted:    #6B7A5E;    /* Muted green text */
  
  --accent:   #3A4A2C;    /* Deep forest green */
  --accent-d: #2D3A22;    /* Darker forest green (hover) */
  --accent-light: #C5D4A8; /* Light sage */
  
  --glow:     rgba(58, 74, 44, 0.10);

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   64px;
  --space-xl:   96px;
  --space-2xl:  128px;
  
  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  margin-bottom: var(--space-md);
}

.text-muted {
  color: var(--muted);
}

.label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.bg-sage { background-color: var(--surface); }
.bg-cream { background-color: var(--bg2); }
.bg-dark { 
  background-color: var(--accent); 
  color: var(--bg);
}
.bg-dark h2, .bg-dark p {
  color: var(--bg);
}

/* Grid Layouts */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.grid-half {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-asymmetric {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-xl);
  }
  .grid-asymmetric.reverse {
    grid-template-columns: 7fr 5fr;
  }
  .grid-half {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* === COMPONENTS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--accent-d);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border2);
  color: var(--fg);
  background: transparent;
}

.btn-secondary:hover {
  background-color: var(--border);
}

/* Card */
.card {
  background-color: var(--card);
  border-radius: 16px;
  padding: var(--space-md);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
}

.card-sage {
  background-color: var(--surface);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

/* Navigation */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-header.scrolled {
  background-color: var(--bg);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bg);
  transition: color 0.4s ease;
  z-index: 1001;
  position: relative;
}

.nav-header.scrolled .nav-logo {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100dvh;
  background-color: var(--card);
  padding: 120px var(--space-lg) var(--space-lg);
  gap: var(--space-md);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.nav-links.active {
  right: 0;
}

@media (min-width: 1024px) {
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    height: auto;
    width: auto;
    max-width: none;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--fg); /* Always dark in mobile menu */
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

@media (min-width: 1024px) {
  .nav-link {
    color: var(--bg); /* Light initially on desktop */
  }
  
  .nav-header:not(.scrolled) .nav-link:hover {
    color: #fff;
    opacity: 0.8;
  }

  .nav-header.scrolled .nav-link {
    color: var(--fg);
  }
  
  .nav-header.scrolled .nav-link:hover {
    color: var(--accent);
  }
  
  /* Button overrides for transparent header */
  .nav-header .btn-primary {
    background-color: var(--bg);
    color: var(--accent);
  }
  
  .nav-header .btn-primary:hover {
    background-color: #fff;
    color: var(--accent-d);
  }
  
  .nav-header.scrolled .btn-primary {
    background-color: var(--accent);
    color: var(--bg);
  }
  
  .nav-header.scrolled .btn-primary:hover {
    background-color: var(--accent-d);
  }
}

.burger-menu {
  display: block;
  font-size: 1.5rem;
  color: var(--bg);
  z-index: 1001;
  position: relative;
  transition: color 0.4s ease;
}

.nav-header.scrolled .burger-menu {
  color: var(--accent);
}

.burger-menu svg {
  transition: transform 0.3s ease;
}

.burger-menu.active svg {
  transform: rotate(90deg);
}

@media (min-width: 1024px) {
  .burger-menu {
    display: none;
  }
}

/* Force dark text when mobile menu is open */
.nav-header.menu-open .nav-logo,
.nav-header.menu-open .burger-menu {
  color: var(--accent) !important;
}

/* === SECTIONS === */
/* Hero */
.hero {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  color: #fff;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 0;
  max-height: none;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 36, 18, 0.4);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
  margin: 0 auto;
  background: rgba(20, 30, 15, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
  display: block;
  margin-bottom: var(--space-sm);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
}

.hero .btn-hero-secondary {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

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

/* Trust Bar */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-icon {
  color: var(--accent);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    align-items: stretch;
  }
}

/* Bestseller */
.bestseller-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
}

.bestseller-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-text, .bestseller-text {
  max-width: 480px;
  margin: 0 auto;
}

.philosophy-image-wrapper {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
}

.philosophy-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* Ingredients */
.ingredients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .ingredients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ritual */
.ritual-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

@media (min-width: 768px) {
  .ritual-steps {
    flex-direction: row;
    gap: var(--space-md);
  }
}

.ritual-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
  align-items: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.ritual-step h3 {
  margin-bottom: var(--space-xs);
}

.ritual-step p {
  flex-grow: 1;
  margin-bottom: var(--space-md);
  max-width: 90%;
}

.ritual-image {
  border-radius: 16px;
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-top: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

/* Persona blocks (P-VIS-06 — initials avatars instead of stock photos) */
.persona-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.persona-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.persona-avatar--1 { background: #6B7A5E; }
.persona-avatar--2 { background: #3A4A2C; }
.persona-avatar--3 { background: #8B7260; }

.stars {
  color: #D9A05B;
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  gap: 4px;
}

/* Offer */
.offer-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .offer-form {
    flex-direction: row;
  }
}

.offer-input {
  flex: 1;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg);
  font-family: var(--font-body);
}

.offer-input::placeholder {
  color: rgba(245, 242, 235, 0.6);
}

.offer-input:focus {
  outline: none;
  border-color: var(--bg);
}

.btn-offer {
  background: var(--bg);
  color: var(--accent);
}

.btn-offer:hover {
  background: var(--surface);
}

/* Footer */
.footer {
  background-color: var(--accent-d);
  color: rgba(245, 242, 235, 0.8);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link:hover {
  color: var(--bg);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}
.footer-disclaimer {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stagger > * {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.55s; }

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