/* Waxing Nostalgic - boutique earwax candles */

:root {
  --ivory: #f8f3ea;
  --ivory-deep: #efe7d8;
  --ink: #33291f;
  --espresso: #2b211a;
  --honey: #b07d2f;
  --gold: #c9a24b;
  --plum: #5c3a4e;
  --muted: #7d7263;
  --card: #fdfaf3;
  --border: #ddd2bd;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

img.zoom { cursor: zoom-in; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }

a { color: var(--honey); }

.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 243, 234, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); }

.brand strong { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 1rem;
}

.site-nav a:hover { background: var(--ivory-deep); }

.cart-btn {
  background: var(--espresso);
  color: var(--ivory);
  border: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.cart-btn:hover { background: #45372b; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fdf9ef;
  background: var(--espresso);
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero .wrap {
  position: relative;
  max-width: 780px;
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  margin: 10px 0 14px;
  font-weight: 600;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65);
}

.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

.hero p.tag {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-style: italic;
  margin: 0 0 30px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

.btn {
  display: inline-block;
  background: var(--honey);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  border: 1px solid #fdf9ef;
  margin-left: 10px;
}

.btn.dark { background: var(--espresso); }

.btn.small { padding: 9px 18px; font-size: 0.72rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }

section.alt { background: var(--ivory-deep); }

section.dark { background: var(--espresso); color: #e9dfcc; }

section.dark h2 { color: #f6efdd; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 10px; }

.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

section.dark .section-head p { color: #c3b69d; }

/* ---------- Product cards ---------- */
.candle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 24px;
}

.candle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.candle-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.candle-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.candle-card h3 { margin: 0; font-size: 1.3rem; font-weight: 600; }

.candle-card .notes { margin: 0; color: var(--muted); font-size: 0.95rem; font-style: italic; flex: 1; }

.candle-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.candle-card .price { font-weight: 700; font-size: 1.1rem; }

.badge {
  display: inline-block;
  background: var(--plum);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.badge.gold { background: var(--gold); color: var(--espresso); }

.badge.honey { background: var(--honey); }

/* ---------- Estimator widget ---------- */
.estimator {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 34px 30px;
  text-align: center;
}

.estimator input[type="range"] {
  width: 100%;
  margin: 22px 0 8px;
  accent-color: var(--honey);
}

.estimator .grams { font-size: 2.1rem; font-weight: 600; color: var(--honey); }

.estimator .grams span { font-size: 1rem; color: var(--muted); font-weight: 400; }

.estimator .tier-name { font-size: 1.35rem; font-weight: 600; margin-top: 14px; color: var(--plum); }

.estimator .tier-desc { color: var(--muted); font-style: italic; min-height: 3.2em; }

.estimator .credit { font-family: Arial, Helvetica, sans-serif; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink); margin-top: 8px; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }

.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 26px 24px;
  font-style: italic;
  font-size: 1.05rem;
}

.quote footer { margin-top: 12px; font-style: normal; color: var(--muted); font-size: 0.9rem; }

section.dark .quote { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); border-left-color: var(--gold); }

section.dark .quote footer { color: #b3a68c; }

/* ---------- Story / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img { border-radius: 4px; }

.split h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 8px 0 12px; }

.split p { color: var(--muted); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.price-card.featured { border: 2px solid var(--gold); }

.price-card h3 { margin: 0; font-size: 1.35rem; }

.price-card .amount { font-size: 2.1rem; font-weight: 600; color: var(--honey); }

.price-card .amount span { font-size: 0.95rem; color: var(--muted); font-weight: 400; }

.price-card ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }

.price-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); }

.price-card ul li:last-child { border-bottom: none; }

.price-card .btn { margin-top: 8px; }

/* ---------- Forms ---------- */
.form-box {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 30px;
}

.form-box form { display: grid; gap: 14px; margin-top: 18px; }

.form-box label { font-size: 0.95rem; }

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--ink);
}

/* ---------- Cart drawer ---------- */
.drawer-veil { position: fixed; inset: 0; background: rgba(30, 23, 16, 0.55); z-index: 90; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: var(--ivory);
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.cart-drawer h2 { margin: 0 0 6px; }

.cart-drawer .fine { color: var(--muted); font-size: 0.9rem; font-style: italic; margin: 0 0 14px; }

.cart-items { flex: 1; }

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.98rem;
}

.cart-row .qty { display: flex; align-items: center; gap: 8px; }

.cart-row .qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; padding: 14px 0; }

.cart-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

/* ---------- Modals ---------- */
.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 12, 0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.modal-veil img {
  max-width: min(92vw, 960px);
  max-height: 82vh;
  width: auto;
  border-radius: 4px;
  margin: 0 auto;
}

.modal-veil figcaption { color: #ddd2ba; text-align: center; padding-top: 12px; font-style: italic; }

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 18, 12, 0.7);
}

.order-modal .box {
  background: var(--ivory);
  border-radius: 4px;
  max-width: 470px;
  padding: 34px;
  text-align: center;
}

.order-modal h3 { margin-top: 0; font-size: 1.5rem; }

.order-modal p { color: var(--muted); }

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--espresso);
  color: var(--ivory);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 300;
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #c3b69d; padding: 44px 0; font-size: 0.95rem; }

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }

.site-footer a { color: var(--gold); }

.site-footer nav { display: flex; flex-direction: column; gap: 7px; }

/* ---------- Marketing page ---------- */
.poster-stack { display: grid; gap: 36px; max-width: 820px; margin: 0 auto; }

.poster-stack figure { margin: 0; text-align: center; }

.poster-stack img { border-radius: 4px; margin: 0 auto; }

.poster-stack figcaption { color: var(--muted); padding-top: 10px; font-style: italic; }

@media (max-width: 560px) {
  .site-header .wrap { justify-content: center; }
  .brand { margin-right: 0; }
  .hero .wrap { padding-top: 70px; padding-bottom: 70px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
  section { padding: 44px 0; }
}
