/* ===========================================================
   Two Sisters Sugar Co. — brand stylesheet
   Aesthetic: warm boutique, sugar-cream, editorial beauty brand.
   Swap the CSS-drawn jars for real product photos when ready
   (each .jar can become an <img> inside .product__art).
   =========================================================== */

:root {
  /* Core palette */
  --cream:      #FBF6EE;   /* page background, sugar white */
  --cream-2:    #F4EADD;   /* panels */
  --ink:        #2E2320;   /* warm near-black text */
  --ink-soft:   #6C5A53;   /* secondary text */
  --line:       #E7D9C8;   /* hairline borders */

  /* Accents */
  --berry:      #E1567C;   /* primary CTA, sparingly */
  --berry-deep: #C43C63;
  --caramel:    #C98A5E;   /* warm sugar accent */
  --sage:       #8FB79B;   /* soft secondary */
  --plum:       #5B3A52;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape + motion */
  --radius: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(70, 45, 35, 0.06);
  --shadow:    0 14px 40px rgba(90, 55, 40, 0.12);
  --shadow-lg: 0 30px 70px rgba(90, 55, 40, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(60% 45% at 82% 8%, rgba(225, 86, 124, 0.10), transparent 60%),
    radial-gradient(55% 40% at 8% 22%, rgba(143, 183, 155, 0.14), transparent 60%),
    radial-gradient(45% 40% at 50% 100%, rgba(201, 138, 94, 0.10), transparent 65%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle sugar-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--caramel);
  margin: 0 0 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 54ch; }
.script { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 800; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  line-height: 1; white-space: nowrap;
}
.btn--primary { background: var(--berry); color: #fff; box-shadow: 0 8px 22px rgba(225, 86, 124, 0.32); }
.btn--primary:hover { background: var(--berry-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(225, 86, 124, 0.42); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--caramel); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 246, 238, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand small { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--caramel); font-weight: 800; margin-top: 2px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__cart { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--berry); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(225,86,124,0.4);
}
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--berry); font-style: italic; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__meta { display: flex; gap: 1.8rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__meta div { }
.hero__meta strong { font-family: var(--display); font-size: 1.7rem; display: block; }
.hero__meta span { font-size: 0.82rem; color: var(--ink-soft); }

.hero__art { position: relative; height: 100%; min-height: 380px; display: grid; place-items: center; }
.hero__art .jar { transform: scale(1.35); }
.hero__blob {
  position: absolute; inset: 8% 4%; z-index: 0;
  background: linear-gradient(150deg, #F7C1CE, #F3D98B 55%, #CDEBE4);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px); opacity: 0.65;
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%     { border-radius: 58% 42% 44% 56% / 44% 58% 42% 56%; }
}

/* ---------- Sections ---------- */
section { position: relative; z-index: 2; padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.panel { background: rgba(255,255,255,0.6); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* value props */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.prop:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--cream-2); }
.prop h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.prop p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Product / scent grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-products.featured { grid-template-columns: repeat(3, 1fr); }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__art {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  overflow: hidden;
}
.product__art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 120%, rgba(255,255,255,0.5), transparent 60%);
}
.product__body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product__name { font-family: var(--display); font-size: 1.35rem; margin: 0 0 0.15rem; }
.product__notes { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1rem; }
.sizes { display: flex; gap: 0.5rem; margin-top: auto; }
.size-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0.6rem 0.3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  cursor: pointer; transition: all 0.2s var(--ease); font-family: var(--sans);
}
.size-btn:hover { border-color: var(--berry); background: #fff; transform: translateY(-2px); }
.size-btn b { font-size: 0.8rem; font-weight: 800; }
.size-btn span { font-size: 0.98rem; font-weight: 900; color: var(--berry); font-family: var(--display); }
.size-btn small { font-size: 0.66rem; color: var(--ink-soft); }

/* CSS jar illustration (swap for photos later) */
.jar { position: relative; width: 116px; z-index: 1; filter: drop-shadow(0 12px 18px rgba(80,50,35,0.22)); }
.jar__lid {
  height: 26px; margin: 0 12px; border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #fff6, #0000001a), var(--ink);
  border: 1px solid rgba(0,0,0,0.12);
}
.jar__body {
  position: relative; height: 104px; margin-top: -4px; border-radius: 10px 10px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 -18px 26px rgba(0,0,0,0.10), inset 0 8px 14px rgba(255,255,255,0.5);
  display: grid; place-items: center; overflow: hidden;
}
.jar__body::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 14px;
  border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1));
}
.jar__label {
  font-family: var(--display); font-size: 0.66rem; line-height: 1.1; text-align: center;
  background: rgba(255,255,255,0.82); color: var(--ink); padding: 0.4em 0.5em; border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06); max-width: 82%; font-weight: 600;
}

/* ---------- Bundles ---------- */
.bundles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.bundle {
  position: relative; background: linear-gradient(165deg, #fff, var(--cream-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bundle:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bundle.is-feature { border-color: var(--berry); box-shadow: 0 14px 34px rgba(225,86,124,0.16); }
.bundle__tag { position: absolute; top: -11px; left: 1.4rem; background: var(--berry); color: #fff; font-size: 0.66rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.3em 0.8em; border-radius: 999px; }
.bundle h3 { margin-bottom: 0.2rem; }
.bundle__desc { color: var(--ink-soft); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }
.bundle__price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
.bundle__price b { font-family: var(--display); font-size: 2rem; }
.bundle__price s { color: var(--ink-soft); font-size: 1rem; }
.bundle__save { font-size: 0.78rem; font-weight: 800; color: var(--sage); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { text-align: left; }
.step__n { font-family: var(--display); font-size: 2.4rem; color: var(--berry); line-height: 1; display: block; margin-bottom: 0.4rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Story teaser / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.story-art {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #F7C1CE, #D6C7EC 60%, #CDEBE4);
  display: grid; place-items: center;
}
.story-art .jar { transform: scale(1.2) rotate(-6deg); }
.story-art .jar:nth-child(2) { transform: scale(0.95) rotate(8deg) translate(58px, 30px); }

/* ---------- Ribbon / CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(251,246,238,0.8); margin-inline: auto; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 340px; height: 340px; background: radial-gradient(circle, rgba(225,86,124,0.5), transparent 70%); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
details.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 1.4rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); }
details.qa summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.2rem; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-size: 1.6rem; color: var(--berry); transition: transform 0.25s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { color: var(--ink-soft); padding-bottom: 1rem; margin: 0; }

/* ---------- Order page ---------- */
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.order-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.order-line { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line__swatch { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(160deg, var(--c1,#eee), var(--c2,#ddd)); border: 1px solid rgba(0,0,0,0.05); }
.order-line__name b { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.order-line__name small { display: block; color: var(--ink-soft); font-size: 0.82rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--cream); cursor: pointer; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.order-line__price { font-family: var(--display); font-weight: 600; min-width: 56px; text-align: right; }
.order-line__rm { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: 0.8rem; text-decoration: underline; }

.order-empty { padding: 3rem 1.4rem; text-align: center; color: var(--ink-soft); }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.summary h3 { margin-bottom: 1rem; }
.summary__row { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--ink-soft); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 0.9rem; }
.summary__total b { font-family: var(--display); font-size: 1.8rem; }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 0.95rem; background: var(--cream); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(225,86,124,0.35); border-color: var(--berry); }
.pill-row { display: flex; gap: 0.5rem; }
.pill-row label { flex: 1; }
.pill-row input { position: absolute; opacity: 0; }
.pill-row span { display: block; text-align: center; padding: 0.6rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 0.9rem; font-weight: 700; background: var(--cream); transition: all 0.2s; }
.pill-row input:checked + span { border-color: var(--berry); background: #fff; color: var(--berry); }
.fine { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 100;
  background: var(--ink); color: var(--cream); padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(251,246,238,0.72); padding: 3rem 0 2rem; margin-top: 3rem; position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--caramel); margin: 0 0 1rem; }
.footer a { display: block; color: rgba(251,246,238,0.72); padding: 0.25rem 0; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer .brand { color: var(--cream); }
.footer__bottom { padding-top: 1.4rem; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal 0.7s var(--ease) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; } .d5 { animation-delay: 0.45s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .order-grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 320px; order: -1; }
  .props, .grid-products, .grid-products.featured { grid-template-columns: 1fr 1fr; }
  .bundles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--cream); padding: 1rem 6vw 1.6rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav__toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .props, .grid-products, .grid-products.featured, .bundles, .steps { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr; }
}
