/* ==========================================================
   Moona — natural & clean
   Base palette from the product photos (cream walls, pine
   wood, cocoa soap, dried herbs), with small accents of
   cobalt, poppy, mustard and rose from the branding board.
   ========================================================== */

:root {
  --cream: #f6f1e9;
  --linen: #efe6d8;
  --sand: #e3d4bd;
  --wood: #d9bf98;
  --clay: #a8693f;
  --cocoa: #7a5443;
  --ink: #3b2f27;
  --muted: #7b6d61;
  --sage: #7d8a5a;
  --sage-dark: #56623c;
  --calendula: #e0892c;
  --white: #fffdf9;

  /* Accents inspired by the branding board, softened to sit on cream */
  --cobalt: #3150a8;
  --navy: #1f2a52;
  --poppy: #d6503a;
  --mustard: #e3ad3f;
  --rose: #e48fa9;
  --olive: #6b7440;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -25px rgba(59, 47, 39, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em { font-style: italic; color: var(--poppy); }

p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 32rem; }
.section-sub { color: var(--muted); max-width: 36rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 0.95rem var(--sans);
  letter-spacing: 0.03em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--cobalt); transform: translateY(-2px); }
.btn-link { padding-inline: 0.5rem; color: var(--ink); }
.btn-link:hover { color: var(--poppy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 233, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--sand); }

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

.logo { display: inline-flex; align-items: center; gap: 0.55rem; font: 500 1.75rem var(--serif); letter-spacing: 0.04em; }
.logo-mark { width: 26px; height: 26px; }
.logo-mark circle { fill: var(--cobalt); }
.logo-mark .cut { fill: var(--cream); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; font-size: 0.95rem; }
.nav-links a { position: relative; padding-block: 0.3rem; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid var(--ink); border-radius: 999px; padding: 0.45rem 1.2rem !important; transition: background 0.3s, color 0.3s; }
.nav-cta:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; align-items: center; }

.hero-image { position: relative; margin: 0; }
.hero-image img { position: relative; z-index: 1; }
.hero-image img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 85%;
  border-radius: 220px 220px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-badge {
  z-index: 3;
  position: absolute; left: -2rem; bottom: 2.5rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: 0.9rem;
  box-shadow: var(--shadow); max-width: 240px;
}
.badge-num { font: 500 2.2rem var(--serif); color: var(--poppy); line-height: 1; white-space: nowrap; }
.badge-text { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

/* ---------- Values ---------- */
.values { border-block: 1px solid var(--sand); background: var(--linen); }
.values-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 1.6rem; gap: 1rem; font-size: 0.95rem; text-align: center;
}
.values-list li { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.value-icon { width: 26px; height: 26px; flex: none; }
.value-icon.tall { width: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .section-sub { margin-inline: auto; }

/* ---------- Shop ---------- */
.filters { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 3rem; }
.filter {
  font: 400 0.92rem var(--sans); background: transparent; color: var(--ink);
  border: 1px solid var(--sand); padding: 0.55rem 1.4rem; border-radius: 999px; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

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

.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product.is-hidden { display: none; }

.product-visual {
  aspect-ratio: 5 / 4; display: grid; place-items: center;
  background: var(--linen); position: relative; overflow: hidden;
}
.product-visual::before { /* soft wooden tray */
  content: ""; position: absolute; width: 70%; height: 16%; bottom: 18%;
  background: var(--wood); border-radius: 999px; opacity: 0.55; filter: blur(1px);
}

/* Illustrated soap bars, colors sampled from the photos */
.bar {
  position: relative; width: 44%; aspect-ratio: 1 / 0.82; border-radius: 6px;
  background: var(--bar);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 3px, transparent 3px 11px);
  box-shadow: inset 0 10px 0 rgba(255,255,255,0.12), inset 0 -14px 20px rgba(0,0,0,0.12), 0 18px 25px -14px rgba(59,47,39,0.5);
  transform: rotate(-4deg); transition: transform 0.6s var(--ease);
}
.product:hover .bar { transform: rotate(0deg) scale(1.04); }
.soap-cocoa { --bar: #8a6252; background: #f6dfe4; }
.soap-oat { --bar: #e6dcc4; background: #e4e8f4; }
.soap-oat .bar::after { /* oat topping */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; border-radius: 6px 6px 0 0;
  background: radial-gradient(circle, #c9b48e 1.2px, transparent 1.6px) 0 0 / 7px 6px, #ddd0b2;
}
.soap-calendula { --bar: #e2742a; background: #f6e6c4; }
.soap-olive { --bar: #c9ae84; background: #e6e8d6; }

.jar {
  position: relative; width: 36%; aspect-ratio: 1 / 0.78; border-radius: 10px 10px 18px 18px;
  background: linear-gradient(180deg, #fbf6ec, #efe4cf);
  box-shadow: inset 0 -10px 16px rgba(0,0,0,0.06), 0 18px 25px -14px rgba(59,47,39,0.45);
  transition: transform 0.6s var(--ease);
}
.jar::before {
  content: ""; position: absolute; left: -4%; right: -4%; top: -24%; height: 30%;
  background: var(--wood); border-radius: 8px; box-shadow: inset 0 -4px 0 rgba(0,0,0,0.08);
}
.body-butter { background: #f8e1d6; }

.bottle {
  position: relative; width: 20%; aspect-ratio: 1 / 1.9; border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, rgba(209,140,140,0.55), rgba(176,96,102,0.85));
  box-shadow: inset 6px 0 10px rgba(255,255,255,0.35), 0 18px 25px -14px rgba(59,47,39,0.5);
  transition: transform 0.6s var(--ease);
}
.bottle::before {
  content: ""; position: absolute; left: 30%; right: 30%; top: -22%; height: 24%;
  background: var(--wood); border-radius: 4px 4px 2px 2px;
}
.body-oil { background: #dfe3f1; }
.product:hover .jar, .product:hover .bottle { transform: translateY(-6px); }

.product-info { padding: 1.5rem 1.6rem 1.7rem; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product-row h3 { margin-bottom: 0.3rem; }
.price { font-weight: 500; color: var(--poppy); white-space: nowrap; }
.product-info p { color: var(--muted); font-size: 0.95rem; min-height: 3.2em; }

.add-btn {
  width: 100%; margin-top: 0.4rem; padding: 0.8rem; border-radius: 999px;
  font: 400 0.92rem var(--sans); background: transparent; color: var(--ink);
  border: 1px solid var(--sand); cursor: pointer; transition: all 0.25s var(--ease);
}
.add-btn:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ---------- Ingredients ---------- */
.ingredients { background: var(--linen); }
.ingredients-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.ingredients-image { margin: 0; position: relative; }
.ingredients-image img { position: relative; z-index: 1; }
.ingredients-image img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 60% 60%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.herb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.8rem; margin-top: 2rem; }
.herb-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.herb-list strong { display: block; font-weight: 500; }
.herb-list small { color: var(--muted); font-size: 0.86rem; }
.dot { flex: none; width: 14px; height: 14px; margin-top: 0.4rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { padding: 2rem 1.6rem; border-top: 1px solid var(--sand); position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--sage);
  transition: width 0.6s var(--ease);
}
.step:hover::before { width: 100%; }
.step:nth-child(1)::before { background: var(--cobalt); }
.step:nth-child(2)::before { background: var(--poppy); }
.step:nth-child(3)::before { background: var(--olive); }
.step:nth-child(4)::before { background: var(--mustard); }
.step-num { font: italic 400 1.1rem var(--serif); color: var(--cobalt); display: block; margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- About ---------- */
.about { background: var(--navy); color: var(--cream); text-align: center; }
.about-inner { max-width: 820px; }
.about-moon { width: 44px; height: 44px; margin: 0 auto 2rem; }
.about-moon circle { fill: var(--mustard); }
.about-moon .cut { fill: var(--navy); }
.about blockquote {
  margin: 0; font: italic 400 clamp(1.7rem, 3.4vw, 2.6rem) / 1.3 var(--serif);
}
.about-sign { margin-top: 1.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; color: var(--rose); }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--sand);
}
.contact-card h2 { margin-bottom: 0.4rem; }
.newsletter { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.newsletter input {
  flex: 1 1 220px; font: 300 1rem var(--sans); color: var(--ink);
  padding: 0.95rem 1.4rem; border-radius: 999px; border: 1px solid var(--sand); background: var(--cream);
  outline: none; transition: border-color 0.25s;
}
.newsletter input:focus { border-color: var(--cobalt); }
.form-msg { flex-basis: 100%; margin: 0.3rem 0 0 1rem; font-size: 0.9rem; min-height: 1.4em; color: var(--sage-dark); }
.form-msg.error { color: #b04a3a; }

/* ---------- Footer ---------- */
.site-footer { padding: 4.5rem 0 2rem; border-top: 1px solid var(--sand); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-note { color: var(--muted); margin-top: 0.8rem; max-width: 18rem; }
.site-footer h4 { font: 500 0.78rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0.6rem 0 1rem; color: var(--cobalt); }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--poppy); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--sand);
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 150%);
  background: var(--ink); color: var(--cream); padding: 0.85rem 1.6rem; border-radius: 999px;
  font-size: 0.92rem; box-shadow: var(--shadow); z-index: 100;
  opacity: 0; visibility: hidden;
  transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand); padding: 0.5rem 1.5rem 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; }
  .nav-links a::after { display: none; }
  .nav-cta { display: inline-block !important; margin-top: 0.6rem; }

  .hero-grid, .ingredients-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-image { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 1rem; bottom: 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .product-grid, .steps, .herb-list { grid-template-columns: 1fr; }
  .values-list { font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}


/* ==========================================================
   Wild touches — hand-drawn flowers, organic shapes and
   wavy edges, inspired by the branding board.
   ========================================================== */

.flora { position: absolute; pointer-events: none; z-index: 2; }
@keyframes sway { 0%, 100% { transform: rotate(var(--r, 0deg)); } 50% { transform: rotate(calc(var(--r, 0deg) + 6deg)); } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 47% 58% 42% 53%; }
  50% { border-radius: 44% 56% 42% 58% / 58% 44% 56% 42%; }
}

/* Organic colour blobs behind photos */
.blob { position: absolute; z-index: 0; animation: morph 14s ease-in-out infinite; }
.blob-hero { inset: -5% -8% 16% 24%; background: #f1d28f; }
.blob-hero-2 { width: 34%; aspect-ratio: 1; left: -10%; bottom: -6%; background: #f4cbd5; animation-duration: 11s; }
.blob-herbs { inset: -6% 10% 8% -7%; background: #f4cbd5; }

/* Hero cluster */
.f-hero-poppy { width: 30%; left: -13%; bottom: 12%; --r: -10deg; animation: sway 7s ease-in-out infinite; }
.f-hero-rose { width: 17%; left: 10%; bottom: -2%; --petal: var(--rose); --heart: #a1566a; --r: 12deg; animation: sway 6s ease-in-out infinite reverse; }
.f-hero-leaf { width: 11%; left: -8%; bottom: 38%; transform: rotate(-32deg); }
.f-hero-lav { width: 7%; left: 22%; bottom: -4%; transform: rotate(14deg); }
.f-hero-cham { width: 19%; right: -8%; top: 9%; animation: drift 60s linear infinite; }

/* Product cards */
.card-flora { position: absolute; width: 24%; top: 7%; right: 6%; transform: rotate(-12deg); transition: transform 0.8s var(--ease); }
.card-flora.tall { width: 11%; transform: rotate(16deg); }
.card-flora.rosey { --petal: var(--rose); --heart: #a1566a; }
.product:hover .card-flora { transform: rotate(18deg) scale(1.08); }

/* Ingredients */
.f-herb-lav { width: 9%; right: 2%; top: -10%; transform: rotate(18deg); }
.f-herb-cal { width: 20%; right: -6%; bottom: -6%; animation: drift 70s linear infinite reverse; }
.herb-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.herb-icon svg { width: 100%; height: 100%; }
.herb-icon svg[viewBox="0 0 60 120"], .herb-icon svg[viewBox="0 0 40 120"] { width: 50%; }

/* Process */
.process { position: relative; overflow: hidden; }
.f-process { width: 160px; right: -40px; top: 30px; opacity: 0.55; animation: drift 90s linear infinite; }

/* About: wavy, hand-cut edges and a few flowers */
.about { position: relative; z-index: 1; padding-block: clamp(5.5rem, 10vw, 9rem); }
.wave { position: absolute; left: 0; width: 100%; height: 60px; fill: var(--navy); }
.wave-top { top: -59px; }
.wave-bottom { bottom: -59px; }
.f-about-l { width: 54px; left: 8%; bottom: 18%; transform: rotate(-24deg); --leaf: var(--olive); --vein: rgba(255,250,240,.35); }
.f-about-r { width: 90px; right: 8%; top: 20%; --r: 8deg; animation: sway 8s ease-in-out infinite; }
.f-about-r2 { width: 30px; right: 15%; top: 38%; transform: rotate(-10deg); --stem: var(--mustard); }

/* Contact */
.contact { padding-top: clamp(6rem, 11vw, 9rem); }
.contact-card { position: relative; }
.f-contact { width: 96px; right: -28px; top: -40px; --r: -6deg; animation: sway 7s ease-in-out infinite; }
.f-contact2 { width: 54px; right: 56px; top: -26px; }

@media (prefers-reduced-motion: reduce) {
  .flora, .blob { animation: none !important; }
}

@media (max-width: 800px) {
  .hero-image { margin-top: 1rem; }
  .f-about-l, .f-about-r2 { display: none; }
  .f-about-r { width: 56px; right: 5%; top: 8%; }
  .f-contact { width: 72px; right: -10px; top: -34px; }
  .f-contact2 { width: 42px; right: 52px; top: -20px; }
  .f-herb-cal { right: -2%; }
}

.hero-badge { left: auto; right: -2rem; }
@media (max-width: 800px) { .hero-badge { right: 1rem; } }
