/* Purple Bubble — site styles */
@font-face { font-family: "Gluten"; src: url("../fonts/gluten.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --purple-900: #2a0f3d;
  --purple-800: #3f1659;
  --purple-700: #5b1f80;
  --purple-600: #7e22ce;
  --purple-500: #9333ea;
  --plum: #81447d;
  --pink-300: #f9a8f4;
  --pink-200: #fbcff8;
  --lilac-50: #faf5ff;
  --lilac-100: #f3e8ff;
  --ink: #1f1428;
  --muted: #5e5068;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(63, 22, 89, .35);
  --max: 1160px;
  --font-head: "Gluten", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--purple-900); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--purple-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--lilac-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple-800); font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; }
.brand img { height: 44px; width: auto; }
@media (max-width: 820px) { .brand img { height: 38px; } }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a:hover { background: var(--lilac-100); color: var(--purple-700); }
.nav-links a[aria-current="page"] { background: var(--lilac-100); color: var(--purple-700); }
.nav-links .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 10px; color: var(--purple-800); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 20px;
    border-bottom: 1px solid var(--lilac-100);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--purple-600), var(--plum)); color: #fff; box-shadow: var(--shadow); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--purple-600), var(--plum)); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { color: var(--purple-700); border-color: var(--purple-600); background: transparent; }
.btn-outline:hover { background: var(--lilac-100); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 15% 20%, #9d4edd 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, #c026d3 0%, transparent 40%),
              linear-gradient(135deg, var(--purple-900), var(--purple-700));
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 96px 0 110px; position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--pink-300); }
.hero .lead { font-size: 1.2rem; color: #ecdcf7; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--pink-300); margin-bottom: 14px; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute; bottom: -120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(249,168,244,.12) 45%, rgba(255,255,255,.04) 70%);
  border: 1px solid rgba(255,255,255,.3);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(40px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; display: none; } .btn:hover { transform: none; } }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { max-width: 300px; margin: 0 auto; }
}

/* Page banner (inner pages) */
.page-banner { background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-banner h1 { color: #fff; margin-bottom: .2em; }
.page-banner p { color: #ecdcf7; font-size: 1.15rem; max-width: 52ch; margin: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--lilac-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }

.card {
  background: #fff; border: 1px solid var(--lilac-100); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 2px 6px rgba(63,22,89,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 1.2em; margin: .6em 0 0; }
.icon-bubble {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, #f0abfc 0%, var(--purple-500) 45%, var(--purple-700) 100%);
  color: #fff; box-shadow: inset -6px -8px 14px rgba(63,22,89,.25);
}
.icon-bubble svg { width: 30px; height: 30px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--purple-700); background: var(--lilac-100); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--lilac-100); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--purple-600); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 1.2em 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lilac-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e22ce' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--purple-700), var(--plum));
  color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: #f1e4fa; max-width: 52ch; margin: 0 auto 24px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-bubble { width: 48px; height: 48px; margin: 0; flex: none; }
.contact-list .icon-bubble svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--purple-900); }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }

form .field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 16px;
  border: 1.5px solid #ddd0e8; border-radius: 14px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(147,51,234,.15); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .9rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.alert-ok { background: #e9fbe9; color: #1e6b2a; }
.alert-err { background: #fdecec; color: #8a1f1f; }

/* Footer */
.site-footer { background: var(--purple-900); color: #d9c7e6; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #f3dcff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand img { height: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Visual effects ---- */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(63, 22, 89, .45); }

/* Slowly shifting hero colours */
.hero { background-size: 160% 160%; animation: heroShift 18s ease-in-out infinite alternate; }
@keyframes heroShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* Let clicks reach the bubbles behind the empty parts of the hero */
.hero-inner { pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.bubble { pointer-events: auto; cursor: pointer; transition: transform .25s ease, opacity .25s ease; }
.bubble.popped { animation: none; transform: scale(1.6); opacity: 0; }
.droplet {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: rgba(249, 168, 244, .9); pointer-events: none;
  animation: droplet .6s ease-out forwards;
}
@keyframes droplet { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.trail {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), rgba(249,168,244,.25) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,.4);
  animation: trail .9s ease-out forwards;
}
@keyframes trail { to { transform: translate(-50%, -220%) scale(.4); opacity: 0; } }

/* Hero photo floats gently */
.hero-art img { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Card glow that follows the cursor */
.card, .step { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; will-change: transform; }
.card::after, .step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(192, 38, 211, .12), transparent 60%);
}
.card:hover::after, .step:hover::after { opacity: 1; }
.card:hover .icon-bubble { animation: wobble .7s ease; }
@keyframes wobble { 30% { transform: scale(1.12, .9); } 55% { transform: scale(.94, 1.08); } 80% { transform: scale(1.03, .98); } }

/* Shine sweep across primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 120%; }

/* WhatsApp button pulses softly to draw the eye */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
.wa-float { position: fixed; isolation: isolate; transition: transform .2s ease; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero, .hero-art img, .wa-float::before, .card:hover .icon-bubble { animation: none; }
  .btn-primary::after { display: none; }
}
/* Bubbles float over the hero content so they can be popped anywhere (they're see-through) */
.hero .bubbles, .page-banner .bubbles, .cta .bubbles { z-index: 3; }

/* ---- Soap builder ---- */
.builder-section { background: var(--lilac-50); position: relative; overflow: hidden; }
.builder {
  max-width: 980px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch;
  box-shadow: var(--shadow); border: 1px solid var(--lilac-100);
}
.builder-stage {
  position: relative; min-height: 300px; display: grid; place-items: center; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, var(--lilac-100) 55%, var(--pink-200) 140%);
}
.builder-stage svg.soap { width: 100%; height: auto; max-height: 100%; }
.soap-shape { transition: fill .3s ease; filter: drop-shadow(0 10px 14px rgba(63, 22, 89, .18)); }
.soap-label { font-family: var(--font-head); font-weight: 600; }
.builder h2 { font-size: 1.7rem; margin-bottom: .3em; }
.builder fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.builder legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--purple-800); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #ddd0e8; font-size: .95rem; font-weight: 600; background: #fff; transition: all .15s ease; }
.chip:hover span { border-color: var(--purple-500); transform: translateY(-1px); }
.chip input:checked + span { border-color: transparent; background: linear-gradient(135deg, var(--purple-600), var(--plum)); color: #fff; box-shadow: 0 6px 14px -6px rgba(126, 34, 206, .6); }
.chip input:focus-visible + span { outline: 3px solid var(--purple-500); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.builder .btn { width: 100%; margin-top: 6px; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: #1fb457; }
.builder-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.rise {
  position: absolute; border-radius: 50%; cursor: pointer; pointer-events: auto;
  border: 1.5px solid rgba(147, 51, 234, .45);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 18%, rgba(249,168,244,.25) 45%, transparent 70%);
  animation: riseUp 2.6s ease-out forwards;
}
@keyframes riseUp { from { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--drift), -260px) scale(1); opacity: 0; } }
.rise.pop { animation: popOut .22s ease-out forwards; }
@keyframes popOut { to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 720px) {
  .builder { grid-template-columns: 1fr; padding: 20px; }
  .builder-stage { min-height: 0; aspect-ratio: 1; max-width: 280px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .rise { display: none; } .soap-shape { transition: none; } }

/* Custom colour picker chip: a rainbow ring around the native colour picker */
.chip-custom input[type="color"] {
  -webkit-appearance: none; appearance: none;
  position: relative; inset: auto; opacity: 1; margin: 0; z-index: 2; flex: none; width: 24px; height: 24px; padding: 2px; border: 0; border-radius: 50%; cursor: pointer;
  background: conic-gradient(#ff5f6d, #ffc371, #f6f740, #47e891, #3fa9f5, #a259ff, #ff5f6d);
}
.chip-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.chip-custom input[type="color"]::-webkit-color-swatch { border: 2px solid #fff; border-radius: 50%; }
.chip-custom input[type="color"]::-moz-color-swatch { border: 2px solid #fff; border-radius: 50%; }
.chip-custom span { padding-left: 7px; }
