/* ============================================================
   Woah! — whipped body balm made from tallow
   Tallow & Twilly LLC
   Brand colors:  Raspberry #F05F92 · Mandarine #F89829 · Lime #B9D64E
   Type:          Poppins (workhorse) · Fraunces (display, ~Gimlet Display)
   ============================================================ */

:root {
  --rasp:  #F05F92;
  --mand:  #F89829;
  --lime:  #B9D64E;

  --rasp-soft: #fbd3e0;
  --mand-soft: #fde0bf;
  --lime-soft: #e7f0c0;

  --cream: #FFFCF6;
  --cream-2: #FBF4E8;
  --ink:   #2A2422;
  --ink-soft: #6b625c;

  --maxw: 1120px;
  --radius: 28px;
  --radius-lg: 44px;

  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

img { max-width: 100%; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Keep anchored jumps clear of the sticky nav */
#top, .balm, .ingredients, .story, .contact { scroll-margin-top: 76px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) so it doesn't create a scroll container that breaks position: sticky */
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
}

h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }

a { color: inherit; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--rasp);
  margin-bottom: 1rem;
}
.eyebrow--center { display: block; text-align: center; }
.eyebrow--light { color: #fff; opacity: 0.95; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--rasp);
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 8px 22px -10px rgba(240, 95, 146, 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(240, 95, 146, 0.75); }
.btn--small { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(42, 36, 34, 0.18);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px rgba(42, 36, 34, 0.4); }
.btn--orange { background: var(--mand); box-shadow: 0 8px 22px -10px rgba(248, 152, 41, 0.8); }
.btn--orange:hover { box-shadow: 0 14px 30px -10px rgba(248, 152, 41, 0.85); }
.btn--big { font-size: 1.1rem; padding: 1.15rem 2.6rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(255, 252, 246, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 36, 34, 0.06);
}
.nav__brand img { height: 44px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav__links a { text-decoration: none; color: var(--ink-soft); transition: color 0.15s; }
.nav__links a:hover { color: var(--rasp); }
.nav .btn--small { margin-left: 0.4rem; }

/* ---------- Blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.blob--rasp { width: 420px; height: 420px; background: var(--rasp); }
.blob--mand { width: 360px; height: 360px; background: var(--mand); }
.blob--lime { width: 320px; height: 320px; background: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 1.5rem clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cream-2), var(--cream) 60%);
}
.hero .blob--rasp { top: -120px; left: -90px; opacity: 0.32; }
.hero .blob--mand { bottom: -160px; right: -80px; opacity: 0.3; }
.hero .blob--lime { top: 30%; right: 12%; width: 200px; height: 200px; opacity: 0.28; }

.hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero__kicker {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 60;
}
.hero__logo {
  width: min(620px, 84%);
  height: auto;
  margin: 0 auto 1.4rem;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(240, 95, 146, 0.18));
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero__note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- The Balm ---------- */
.balm { padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.balm__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.balm__art { display: flex; justify-content: center; }
.balm__copy h2 { margin-bottom: 1.2rem; }
.balm__copy p { margin-bottom: 1rem; color: var(--ink-soft); }
.balm__copy p:first-of-type { color: var(--ink); }

.ticks { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
}

/* Stylized jar */
.jar { position: relative; width: 260px; }
.jar__lid {
  height: 46px;
  background: linear-gradient(180deg, var(--mand), #ef8a1f);
  border-radius: 26px 26px 14px 14px;
  margin: 0 14px;
  box-shadow: inset 0 -6px 10px rgba(0,0,0,0.08);
}
.jar__body {
  position: relative;
  background: linear-gradient(180deg, #ffffff, var(--cream-2));
  border-radius: 24px;
  padding: 3.4rem 1.5rem 2.4rem;
  text-align: center;
  box-shadow: 0 30px 60px -28px rgba(42, 36, 34, 0.35), inset 0 0 0 1px rgba(42,36,34,0.05);
  margin-top: -8px;
}
.jar__body img { width: 78%; height: auto; }
.jar__desc {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.jar__whip {
  position: absolute;
  top: 30px; left: 24px; right: 24px;
  height: 30px;
  background: var(--rasp-soft);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

/* ---------- Why tallow ---------- */
.why {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 3rem) clamp(4rem, 9vw, 7rem);
  text-align: center;
  background: var(--cream-2);
}
.why__head { margin: 0 auto 3rem; max-width: 18ch; }
.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  text-align: left;
  padding: 2.2rem 1.9rem 2rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 48px -30px rgba(42, 36, 34, 0.4);
  position: relative;
  overflow: hidden;
}
.card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  color: #fff;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  right: -50px; bottom: -50px;
  opacity: 0.16;
}
.card--rasp { box-shadow: 0 24px 48px -30px var(--rasp); }
.card--rasp .card__num { background: var(--rasp); }
.card--rasp::after { background: var(--rasp); }
.card--mand .card__num { background: var(--mand); }
.card--mand::after { background: var(--mand); }
.card--lime .card__num { background: #8aa52f; }
.card--lime::after { background: var(--lime); }

/* ---------- Ingredients ---------- */
.ingredients { padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.ingredients__inner { max-width: var(--maxw); margin: 0 auto; }
.ingredients__intro { max-width: 620px; margin-bottom: 2.8rem; }
.ingredients__intro h2 { margin-bottom: 1rem; }
.ingredients__intro p { color: var(--ink-soft); }
.inglist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.inglist li {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--cream-2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.inglist li:hover { transform: translateY(-3px); background: var(--rasp-soft); }
.inglist strong { display: block; font-weight: 600; font-size: 0.98rem; }
.inglist span {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Story ---------- */
.story {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  text-align: center;
  background: var(--cream-2);
  overflow: hidden;
}
.story .blob--story { top: -100px; left: 50%; transform: translateX(-50%); opacity: 0.22; width: 500px; height: 360px; }
.story__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.story__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  margin-bottom: 1.6rem;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
}
.story__body { color: var(--ink-soft); font-size: 1.05rem; }
.story__body strong { color: var(--rasp); }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(4.5rem, 10vw, 8rem) 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--rasp), #e64f83);
  color: #fff;
}
.contact__inner { max-width: 620px; margin: 0 auto; }
.contact h2 { color: #fff; margin-bottom: 1.2rem; }
.contact__lead { font-size: 1.08rem; opacity: 0.95; margin-bottom: 2.4rem; }

/* ---- Order form ---- */
.order-form {
  background: #fff;
  color: var(--ink);
  text-align: left;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 40px 80px -40px rgba(42, 36, 34, 0.55);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field label .optional { font-weight: 400; color: var(--ink-soft); }
.order-form input,
.order-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* 16px keeps iOS from auto-zooming on focus */
  color: var(--ink);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.order-form input::placeholder,
.order-form textarea::placeholder { color: #b4aaa3; }
.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--rasp);
  background: #fff;
}
.order-form textarea { resize: vertical; min-height: 70px; }

/* Estimator */
.estimator {
  background: var(--cream-2);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  margin: 0.4rem 0 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem 1rem;
}
.estimator__label { font-weight: 600; }
.estimator__label small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}
.stepper__btn {
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--rasp);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.stepper__btn:hover { transform: scale(1.08); }
.stepper__btn:active { transform: scale(0.96); }
.stepper__input {
  width: 54px !important;
  text-align: center;
  font-weight: 600;
  padding: 0.5rem 0.2rem !important;
  -moz-appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.estimator__total {
  grid-column: 1 / -1;
  border-top: 1px dashed rgba(42, 36, 34, 0.18);
  padding-top: 0.8rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.estimator__total span { font-weight: 600; }
.estimator__total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--rasp);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 80;
}

.order-form__submit { width: 100%; margin-top: 0.3rem; }
.order-form__status {
  margin-top: 1rem;
  font-size: 0.92rem;
  text-align: center;
  min-height: 1.2em;
}
.order-form__status.is-ok { color: #5a8a1e; font-weight: 600; }
.order-form__status.is-err { color: var(--rasp); font-weight: 600; }
.order-form__status a { color: inherit; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem 2.5rem;
}
.footer__logo { width: 200px; height: auto; margin: 0 auto 1rem; display: block; }
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 2rem;
}
.footer__meta { font-size: 0.92rem; opacity: 0.7; display: grid; gap: 0.2rem; margin-bottom: 1.6rem; }
.footer__meta a { color: var(--mand); text-decoration: none; }
.footer__fine { font-size: 0.78rem; opacity: 0.4; letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__brand { margin-right: auto; }
  .balm__grid { grid-template-columns: 1fr; }
  .balm__art { order: -1; }
  .cards { grid-template-columns: 1fr; max-width: 460px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Phones */
@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .nav__brand img { height: 38px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .ticks li { padding-left: 1.8rem; }
  .inglist { grid-template-columns: 1fr; }
  /* Bigger, thumb-friendly stepper controls */
  .stepper__btn { width: 44px; height: 44px; }
  .stepper__input { width: 60px !important; }
  .order-form__submit { padding: 1.1rem 1.5rem; }
}

/* Respect notch / safe areas on modern phones */
@supports (padding: max(0px)) {
  .nav { padding-left: max(1.2rem, env(safe-area-inset-left)); padding-right: max(1.2rem, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .inglist li { transition: none; }
}
