/* =========================================================
   Essence Soaps & Candles — stylesheet
   Palette: Amethyst #7E6BA6 · Deep Plum #4A3B63 · Soft Heather #B9A8D0
            Warm Gray #8A8A8F · Light Stone #EDECEF · Charcoal #2C2C30 · Cream #FAF8FB
   ========================================================= */

:root {
  --amethyst:    #7E6BA6;
  --plum:        #4A3B63;
  --heather:     #B9A8D0;
  --warm-gray:   #8A8A8F;
  --stone:       #EDECEF;
  --charcoal:    #2C2C30;
  --cream:       #FAF8FB;
  --white:       #FFFFFF;

  --shadow-sm: 0 2px 10px rgba(74, 59, 99, 0.06);
  --shadow-md: 0 10px 30px rgba(74, 59, 99, 0.10);
  --shadow-lg: 0 24px 60px rgba(74, 59, 99, 0.14);

  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--plum); font-weight: 600; line-height: 1.1; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

/* ----------------------------- Bilingual visibility ----------------------------- */
/* JS swaps text via dictionary; these helpers support inline .lang-en/.lang-es spans too */
html[data-lang="en"] .lang-es { display: none; }
html[data-lang="es"] .lang-en { display: none; }

/* ----------------------------- Layout helpers ----------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px;
}
.section-alt { background: var(--stone); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amethyst);
  margin: 0 0 14px;
}
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-title { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: 0.01em; }
.section-lede { color: var(--warm-gray); font-size: 1.06rem; margin: 16px auto 0; max-width: 560px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amethyst), var(--plum));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--heather);
}
.btn-ghost:hover { background: var(--white); border-color: var(--amethyst); color: var(--amethyst); transform: translateY(-2px); }
.btn-whatsapp {
  background: linear-gradient(135deg, var(--amethyst), var(--heather));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 251, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(185, 168, 208, 0.35);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(74, 59, 99, 0.25);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--plum);
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 3px;
  font-weight: 500;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amethyst);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--amethyst); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--heather);
  border-radius: var(--radius-pill);
  padding: 4px 6px;
  box-shadow: var(--shadow-sm);
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--warm-gray);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-btn[aria-pressed="true"] { background: linear-gradient(135deg, var(--amethyst), var(--plum)); color: var(--white); }
.lang-divider { color: var(--heather); font-size: 0.8rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--white);
  border: 1px solid var(--heather);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--plum); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(185,168,208,0.35), transparent 55%),
    radial-gradient(110% 80% at 0% 100%, rgba(126,107,166,0.18), transparent 50%),
    linear-gradient(180deg, var(--cream), var(--stone));
}
.hero-glow {
  position: absolute;
  top: -160px; right: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(126,107,166,0.30), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 104px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 600;
  margin: 8px 0 0;
  letter-spacing: 0.005em;
}
.hero-lede {
  color: var(--warm-gray);
  font-size: 1.16rem;
  max-width: 480px;
  margin: 22px 0 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-emblem { display: flex; justify-content: center; }
.emblem-ring {
  width: min(360px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 16px;
  background: conic-gradient(from 220deg, var(--heather), var(--amethyst), var(--plum), var(--heather));
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.emblem-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--cream);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================ TRUST STRIP ============================ */
.trust { background: var(--plum); color: var(--cream); }
.trust-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
}
.trust-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; }
.trust-ico { font-size: 1.1rem; }

/* ============================ PRODUCT CARDS ============================ */
.product-group { margin-top: 28px; }
.product-group + .product-group { margin-top: 72px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--stone); }
.group-title { font-size: 2rem; }
.group-meta { color: var(--warm-gray); font-size: 0.92rem; font-weight: 500; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(185,168,208,0.28);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* The per-scent swatch (gradient + inline SVG motif) */
.card-swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-swatch::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 20% 12%, rgba(255,255,255,0.30), transparent 45%);
  pointer-events: none;
}
.card-swatch svg { width: 46%; height: 46%; opacity: 0.92; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12)); position: relative; z-index: 1; }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.82);
  color: var(--plum);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; color: var(--plum); line-height: 1.15; overflow-wrap: anywhere; }
.card-note { color: var(--warm-gray); font-size: 0.86rem; margin: 6px 0 14px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price { font-weight: 700; color: var(--amethyst); font-size: 0.98rem; }
.card-add {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--plum);
  background: var(--stone);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.card-add:hover { background: var(--amethyst); color: var(--white); }

/* ============================ SCENT CHIPS ============================ */
.scent-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin: 0 auto; }
.scent-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.45);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.scent-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amethyst); }
.chip-dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }

/* ============================ BENEFITS ============================ */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(185,168,208,0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--amethyst), var(--heather));
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit-ico {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(126,107,166,0.14), rgba(185,168,208,0.28));
}
.benefit-name { font-size: 1.4rem; margin-bottom: 6px; }
.benefit-members { color: var(--warm-gray); font-size: 0.88rem; margin-top: 10px; }
.benefit-members strong { color: var(--amethyst); font-weight: 600; }

/* ============================ CUSTOM / FEATURE ============================ */
.section-feature {
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(185,168,208,0.28), transparent 55%),
    linear-gradient(135deg, var(--plum), var(--amethyst));
  color: var(--cream);
  max-width: none;
  padding: 0;
}
.feature-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.section-feature .eyebrow { color: var(--heather); }
.section-feature .section-title { color: var(--white); text-align: left; }
.section-feature .section-lede { color: rgba(250,248,251,0.86); margin: 16px 0 0; max-width: none; }
.feature-steps { margin: 28px 0 22px; display: grid; gap: 14px; }
.feature-steps li { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.step-n {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.feature-note { font-style: italic; color: var(--heather); margin: 0 0 24px; font-size: 0.95rem; }

.feature-art { display: flex; justify-content: center; }
.market-tags { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 340px; }
.market-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.market-tag:hover { transform: translateY(-3px); background: rgba(255,255,255,0.22); }

/* ============================ PROMISE ============================ */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.promise-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(185,168,208,0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.promise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.promise-ico { font-size: 2rem; display: block; margin-bottom: 14px; }
.promise-card h3 { font-size: 1.32rem; margin-bottom: 8px; }
.promise-card p { color: var(--warm-gray); font-size: 0.9rem; margin: 0; }

/* ============================ ABOUT ============================ */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-emblem { display: flex; justify-content: center; }
.about-img {
  width: min(340px, 80vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
}
.about-copy .section-title { text-align: left; }
.about-copy p { color: var(--charcoal); margin: 18px 0 0; }
.about-copy p.about-edit-note { color: var(--warm-gray); font-style: italic; font-size: 0.88rem; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--charcoal); color: var(--stone); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 44px;
}
.footer-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.4); margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin: 0; }
.footer-loc { color: var(--warm-gray); font-size: 0.88rem; margin: 6px 0 0; letter-spacing: 0.04em; }
.footer-order h3, .footer-nav h3 { color: var(--white); font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 14px; }
.footer-order p { color: var(--warm-gray); font-size: 0.92rem; margin: 0 0 18px; max-width: 320px; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta .btn-ghost { color: var(--stone); border-color: rgba(185,168,208,0.5); }
.footer-cta .btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--white); border-color: var(--heather); }
.cta-ico { font-size: 1rem; }
.footer-fineprint { font-size: 0.76rem !important; color: var(--warm-gray); margin-top: 16px !important; font-style: italic; }
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a { color: var(--stone); font-size: 0.92rem; padding: 5px 0; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--heather); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 22px 24px;
  font-size: 0.82rem;
  color: var(--warm-gray);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid, .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-copy { order: 2; }
  .hero-emblem { order: 1; }
  .hero-cta { justify-content: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .feature-inner, .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .section-feature .section-title, .about-copy .section-title { text-align: center; }
  .section-feature .section-lede { text-align: center; }
  .feature-steps { max-width: 360px; margin-left: auto; margin-right: auto; }
  .about-copy { text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 71px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--heather);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 71px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 26px; font-size: 1rem; border-bottom: 1px solid var(--stone); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 60px 20px; }
  .hero-inner { padding: 80px 22px 90px; }
  .hero-lede { font-size: 1.06rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-name { font-size: 1.18rem; }
  .benefit-grid, .promise-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .trust-list { gap: 12px 24px; }
  .trust-list li { font-size: 0.84rem; }
  .brand-sub { display: none; }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ----------------------------- Motion preference ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ----------------------------- Reveal on scroll ----------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Real product photography fills the swatch (gradient stays as fallback bg) ── */
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.card-swatch::after { z-index: 1; }
.card-badge { z-index: 2; }
