/* ==========================================================================
   LUUV — base site styles
   Palette: white #FFFFFF · sage #71965F · warm cream #F9F8F1 · ink #2B2A25
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --cream: #F9F8F1;
  --sage: #71965F;
  --sage-dark: #5C7C4C;
  --ink: #2B2A25;
  --muted: #6B695E;
  --muted-light: #8A8577;
  --border: #ECE7D9;
  --border-strong: #E1DAC7;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-dark) 100%);
  z-index: 999;
  pointer-events: none;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.wrap--narrow { max-width: 900px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  transition: background-color .18s ease;
}
.btn-primary:hover { background-color: var(--sage-dark); }

.btn-ghost {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  border-radius: 0;
  transition: color .18s ease, border-color .18s ease;
}
.btn-ghost:hover { color: var(--sage); border-color: var(--sage); }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .18s ease;
}
.nav-link:hover { color: var(--sage); }

.shop-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.shop-link:hover { color: var(--sage); border-color: var(--sage); }

.shop-link--soon {
  color: var(--muted-light);
  cursor: default;
}
.shop-link--soon:hover { color: var(--muted-light); border-color: transparent; }

.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
}
.icon-btn:hover { color: var(--sage); }

/* ---------- Language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  font-size: 13px;
}

.lang-btn {
  border: 2px solid transparent;
  background: none;
  padding: 2px;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  opacity: 0.45;
  transition: opacity .18s ease, border-color .18s ease;
}

.lang-btn svg { display: block; border-radius: 2px; }

.lang-btn.is-active {
  opacity: 1;
  border-color: var(--sage-dark);
}

.lang-btn:not(.is-active):hover { opacity: 0.8; }

.lang-switch--mobile {
  align-self: flex-start;
  margin: 0 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.mobile-menu-top .brand-logo {
  height: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-mobile-toggle { display: none; }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--white);
}

.mobile-menu-inner {
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav a {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Photo placeholders ---------- */

.photo-frame {
  position: relative;
  background: #EFE9DA;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: transform .35s ease;
}
.photo-frame:hover { transform: translateY(-2px); }

.photo-caption {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-style: italic;
}

.photo-frame--tall { aspect-ratio: 4/5; padding: 0; align-items: stretch; }
.photo-frame--square { aspect-ratio: 1/1; padding: 0; align-items: stretch; }
.photo-frame--product { aspect-ratio: 3/4; padding: 14px; margin-bottom: 18px; }
.photo-frame--product .photo-caption { font-size: 9px; }

.photo-frame--tall img,
.photo-frame--square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* A product illustration shown large (intro section) instead of a photo:
   contained with breathing room, like the product-grid cards. */
.photo-frame--product-hero {
  padding: 48px;
  align-items: center;
  justify-content: center;
  background: #EFE9DA;
}
.photo-frame--product-hero img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Product carousel: every image stacked in the same spot, cross-fading between them */
.photo-frame--product-hero .carousel-img {
  position: absolute;
  top: 48px; left: 48px; right: 48px; bottom: 48px;
  width: calc(100% - 96px);
  height: calc(100% - 96px);
  object-fit: contain;
  opacity: 0;
  transition: opacity .9s ease;
}
.photo-frame--product-hero .carousel-img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .photo-frame--product-hero .carousel-img { transition: none; }
}

/* "Coming soon" tile in place of a product photo we don't have yet */
.photo-frame--soon {
  align-items: center;
  justify-content: center;
}
.soon-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.hero-visual,
.intro-visual { position: relative; }

.hero-visual .photo-frame,
.intro-visual .photo-frame {
  box-shadow: 0 24px 48px -20px rgba(43, 42, 37, 0.22), 0 2px 10px rgba(43, 42, 37, 0.06);
}

/* ---------- Hero ---------- */

.hero { background: var(--cream); }

.hero-inner {
  padding: 100px 48px;
  display: flex;
  align-items: center;
  gap: 72px;
}

.hero-copy { flex: 1 1 0; min-width: 0; }
.hero-visual { flex: 1 1 0; min-width: 0; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sage-dark);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 56px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 40px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.status-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage-dark);
  background: #EAF0E4;
  border-radius: 20px;
  padding: 7px 16px;
  white-space: nowrap;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-top .section-heading { margin-bottom: 0; }

.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 360px;
}

/* ---------- Brand intro ---------- */

.intro { background: var(--white); }

.intro-inner {
  padding: 120px 48px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.intro-visual { flex: 1 1 0; min-width: 0; }
.intro-copy { flex: 1 1 0; min-width: 0; }

.intro-copy h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 24px;
}

.intro-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 440px;
}

/* ---------- Section heading (shared) ---------- */

.section-heading {
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 56px;
}

/* ---------- Products ---------- */

.products { background: var(--cream); padding: 120px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.product-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-card p.product-size {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price {
  font-size: 15px;
  font-weight: 600;
}

.price-refill {
  font-size: 12px;
  color: var(--sage-dark);
  font-weight: 600;
}

.photo-frame--product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* ---------- Sustainability ---------- */

.sustain { background: var(--white); padding: 120px 0; }

.sustain-top {
  display: flex;
  gap: 80px;
  margin-bottom: 72px;
}

.sustain-heading { flex: 1 1 0; min-width: 0; margin-bottom: 0; }

.sustain-copy {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.principle-num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 14px;
  font-weight: 600;
}

.principle h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.principle p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Story ---------- */

.story { background: var(--cream); }

.story-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 48px;
  text-align: center;
}

.story-inner .section-heading { margin-bottom: 28px; }

.story-copy {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 48px;
}

.story-mantra {
  font-size: 28px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--sage);
}

/* ---------- Subscribe & Refill ---------- */

.subscribe { background: var(--white); padding: 120px 0; }

.subscribe-top { max-width: 640px; margin-bottom: 64px; }
.subscribe-top .section-heading { margin-bottom: 20px; }

.subscribe-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.subscribe-grid {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 96px;
}

.subscribe-visual { flex: 0 0 340px; }

.photo-frame--pouch {
  aspect-ratio: 4/5;
  padding: 28px;
  background: #EFEBDD;
  margin-bottom: 14px;
}
.photo-frame--pouch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-caption--static {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.subscribe-steps {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.subscribe-steps .step h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.subscribe-steps .step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Pricing tiers ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.pricing-card {
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  background: var(--white);
  border: 1.5px solid var(--sage);
  box-shadow: 0 24px 40px -28px rgba(43,42,37,0.28);
}

.pricing-card-top h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 10px 0 8px;
}

.pricing-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 12px;
}
.pricing-badge--sage {
  color: var(--white);
  background: var(--sage);
  border-color: var(--sage);
}

.pricing-photo {
  aspect-ratio: 16/10;
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 20px;
}
.pricing-card--featured .pricing-photo { background: #F3F6EF; }
.pricing-photo img { max-height: 100%; width: auto; object-fit: contain; }

.pricing-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--border-strong);
}
.pricing-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-strong);
}
.pricing-list li span:first-child { color: var(--muted); }
.pricing-list li span:last-child { font-weight: 600; }

.pricing-cta { margin-top: auto; text-align: center; }
.pricing-card .btn-primary.pricing-cta { padding: 14px 24px; }
.pricing-card .btn-ghost.pricing-cta { border: 1px solid var(--ink); padding: 13px 24px; }
.pricing-card .btn-ghost.pricing-cta:hover { background: var(--ink); color: var(--white); }

.pricing-cta--soon,
.pricing-cta--soon:hover {
  display: block;
  cursor: default;
  background: var(--border);
  color: var(--muted);
  border-color: var(--border);
}

/* ---------- Journal ---------- */

.journal { background: var(--cream); padding: 120px 0; }

.journal-list { display: flex; flex-direction: column; }

.journal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border-strong);
}

.journal-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}
.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.journal-row:hover .journal-thumb img { transform: scale(1.06); }

.journal-text { flex: 1 1 0; min-width: 0; }

.journal-tag {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 8px;
}

.journal-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  transition: color .18s ease;
}

.journal-row:hover .journal-title { color: var(--sage); }

.journal-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.journal-arrow {
  font-size: 20px;
  color: var(--sage);
  flex-shrink: 0;
}

/* ---------- Closing status section ---------- */

.newsletter { background: var(--sage); }

.newsletter-inner {
  max-width: 640px;
  padding: 96px 48px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-copy .status-pill { margin-bottom: 20px; }

.newsletter-copy h2 {
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
}

.newsletter-copy p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}

.status-pill--on-sage {
  background: rgba(255,255,255,0.16);
  color: var(--white);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--white); }

.site-footer .wrap { padding: 72px 48px 40px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 320px; }
.footer-brand .brand-logo--footer { display: block; height: 28px; margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a { font-size: 14px; font-weight: 500; transition: color .18s ease; }
.footer-col a:hover { color: var(--sage); }

.footer-copyright {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted-light);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-credit { color: var(--muted-light); }

/* ==========================================================================
   Responsive — recomposed, not just shrunk
   ========================================================================== */

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }

  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-inner,
  .intro-inner {
    flex-direction: column;
    padding: 56px 24px;
    gap: 40px;
  }
  .intro-inner { flex-direction: column-reverse; }

  .hero-copy h1 { font-size: 38px; }
  .section-heading,
  .intro-copy h2 { font-size: 26px; }

  .products, .sustain, .subscribe, .journal { padding: 56px 0; }
  .story-inner { padding: 64px 24px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .sustain-top { flex-direction: column; gap: 24px; margin-bottom: 40px; }
  .principles { grid-template-columns: 1fr; gap: 32px; }

  .subscribe-grid { flex-direction: column; gap: 40px; margin-bottom: 56px; }
  .subscribe-visual { flex: 0 0 auto; width: 100%; max-width: 280px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .pricing-card { padding: 24px; }

  .photo-frame--product-hero { padding: 28px; }
  .photo-frame--product-hero .carousel-img {
    top: 28px; left: 28px; right: 28px; bottom: 28px;
    width: calc(100% - 56px);
    height: calc(100% - 56px);
  }

  .section-top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }

  .journal-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .journal-thumb { width: 100%; height: 160px; }
  .journal-arrow { display: none; }

  .newsletter-inner { padding: 64px 24px; }

  .site-footer .wrap { padding: 56px 24px 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-copy h1 { font-size: 32px; }
  .journal-thumb { height: 140px; }
}

/* ==========================================================================
   Restrained motion — scroll reveal + hover tilt
   Both are inert until JS adds a supporting class, and both are
   skipped entirely for prefers-reduced-motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .tilt {
    transition: transform .25s ease, box-shadow .25s ease;
    transform-style: preserve-3d;
  }
  .tilt.is-tilting {
    transition: transform .08s linear;
    box-shadow: 0 18px 30px -14px rgba(43,42,37,0.22);
  }

  /* Gentle cascade when a row of cards enters together */
  .product-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .product-grid .reveal:nth-child(3) { transition-delay: .16s; }
  .product-grid .reveal:nth-child(4) { transition-delay: .24s; }

  .principles .reveal:nth-child(2) { transition-delay: .1s; }
  .principles .reveal:nth-child(3) { transition-delay: .2s; }

  .journal-list .reveal:nth-child(2) { transition-delay: .06s; }
  .journal-list .reveal:nth-child(3) { transition-delay: .12s; }
  .journal-list .reveal:nth-child(4) { transition-delay: .18s; }
}
