/* SmashBox Cakery
   Palette taken straight from the logo: chocolate, gold, cream. */

:root {
  --choc: #3b1e19;        /* logo brown: header, hero, footer, body text */
  --choc-soft: #5a3a32;   /* secondary text on cream */
  --gold: #caa66c;        /* logo gold: buttons, box dividers */
  --gold-soft: #e6d3b0;
  --cream: #f6ede4;       /* logo cream: page background, text on brown */
  --cream-light: #fbf7f2;
  --white: #ffffff;

  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --radius-box: 1.75rem;
  --radius-cell: 1rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: inherit; }
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--choc);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--gold); }
.btn-ghost:hover { background: var(--cream); color: var(--choc); border-color: var(--cream); }
.btn-ghost-dark { background: transparent; border-color: var(--choc); }
.btn-ghost-dark:hover { background: var(--choc); color: var(--cream); border-color: var(--choc); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions-center { justify-content: center; margin-top: 2.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem var(--gutter);
  background: var(--choc);
  color: var(--cream);
  border-bottom: 1px solid rgb(202 166 108 / 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--cream);
}
.brand img { width: 36px; height: auto; }
.site-header ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--gold); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--cream);
}
.cart-link:hover { color: var(--gold); }
.cart-link[aria-current="page"] { color: var(--gold); }
.cart-count {
  min-width: 1.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--choc);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 720px) {
  .site-header nav { display: none; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  /* Photo of a rasmalai tray under a chocolate tint: darker on the text side */
  background:
    linear-gradient(90deg, rgb(59 30 25 / 0.94) 0%, rgb(59 30 25 / 0.84) 45%, rgb(59 30 25 / 0.72) 100%),
    var(--choc) url(images/rasmalai-cups.jpg) center / cover no-repeat;
  color: var(--cream);
}
.hero-copy { max-width: 34rem; justify-self: end; }
.hero h1 {
  font-size: clamp(3.25rem, 7.5vw, 6rem);
  color: var(--cream);
  line-height: 0.98;
  margin-bottom: 1.5rem;
}
.lede { font-size: 1.2rem; max-width: 32rem; margin-bottom: 2rem; color: var(--gold-soft); }
.hero-note { margin-top: 1.75rem; font-size: 0.95rem; color: var(--gold); }

/* Featured cake photo in a gold frame */
.hero-cake {
  justify-self: start;
  width: min(100%, 36rem);
  margin: 0;
  padding: 0.6rem;
  background: var(--gold);
  border-radius: var(--radius-box);
  box-shadow:
    0 0 0 0.5rem var(--choc),
    0 0 0 0.6rem var(--gold-soft);
}
.hero-cake img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-cell);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    background:
      linear-gradient(rgb(59 30 25 / 0.9), rgb(59 30 25 / 0.82)),
      var(--choc) url(images/rasmalai-cups.jpg) center / cover no-repeat;
  }
  .hero-copy, .hero-cake { justify-self: center; }
  .hero-cake { margin-top: 1rem; }
}

/* ---------- Shared section layout ---------- */
.flavours,
.cakes,
.order,
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
}
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--choc-soft); }

/* ---------- Flavours: compartments of a box ---------- */
.flavour-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  background: var(--gold);
  border-radius: var(--radius-box);
}
.flavour-list li {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream-light);
  border-radius: var(--radius-cell);
}
.flavour-list h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.6rem;
}
.flavour-more { margin-top: 2.5rem; }
.flavour-list p { max-width: 30rem; color: var(--choc-soft); }

@media (max-width: 640px) {
  .flavour-list { grid-template-columns: 1fr; }
}

/* ---------- Occasions ---------- */
.cakes { padding-top: 0; }
.occasions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.occasion-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-cell);
  background: var(--img) center / cover no-repeat, var(--tint);
  margin-bottom: 1.25rem;
}
.occasion h3 { margin-bottom: 0.4rem; }
.occasion p { color: var(--choc-soft); }
.more-link { margin-top: 2.5rem; font-weight: 700; }
.more-link a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 800px) {
  .occasions { grid-template-columns: 1fr; max-width: 28rem; }
  .occasion-photo { aspect-ratio: 3 / 2; }
}

/* ---------- Gallery ---------- */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 6.5rem);
}
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-cell);
  background: var(--gold-soft);
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Order steps ---------- */
.order {
  max-width: none;
  background: var(--gold-soft);
}
.order > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.order .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--choc);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
}
.steps h3 { margin-bottom: 0.4rem; }

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

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-box);
  background: var(--img) center / cover no-repeat, var(--tint);
}
.about-copy h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.about-copy p { max-width: 36rem; color: var(--choc-soft); }
.about-copy p + p { margin-top: 1rem; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 3 / 2; }
}

/* ---------- Order page ---------- */
.page-intro {
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  background:
    linear-gradient(rgb(59 30 25 / 0.88), rgb(59 30 25 / 0.88)),
    var(--choc) url(images/rasmalai-cups.jpg) center / cover no-repeat;
  color: var(--cream);
  text-align: center;
}
.page-intro h1 { font-size: clamp(3rem, 7vw, 4.75rem); margin-bottom: 0.75rem; }
.page-intro p { max-width: 36rem; margin: 0 auto; color: var(--gold-soft); font-size: 1.15rem; }

.order-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.order-form {
  background: var(--cream-light);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-box);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.order-form fieldset { border: 0; margin: 0 0 2.25rem; padding: 0; min-width: 0; }
.order-form legend {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  margin-bottom: 1rem;
  padding: 0;
}
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field label,
.field .label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--choc-soft); }

.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="tel"],
.order-form input[type="number"],
.order-form input[type="date"],
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--choc);
  background: var(--white);
  border: 1.5px solid #d9c6a6;
  border-radius: 0.65rem;
}
.order-form textarea { resize: vertical; }
.order-form input:focus-visible,
.order-form select:focus-visible,
.order-form textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--choc);
}
.order-form input[type="file"] { font: inherit; font-size: 0.95rem; }
.order-form input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--choc);
  background: var(--gold-soft);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.hint { margin-top: 0.4rem; font-size: 0.9rem; color: var(--choc-soft); }
.hint-lead { margin: -0.4rem 0 1rem; }

/* Checkbox and radio options as tappable chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1.5px solid #d9c6a6;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s;
}
.field .chip { font-weight: 500; margin: 0; display: inline-flex; }
.chip input { accent-color: var(--choc); width: 1.05rem; height: 1.05rem; margin: 0; }
.chip:has(input:checked) { background: var(--gold-soft); border-color: var(--choc); }
.chip:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-submit { font-size: 1.05rem; padding: 1rem 2rem; cursor: pointer; font-family: inherit; }

/* Honeypot field for spam bots: hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.order-aside { position: sticky; top: 6rem; }
.order-aside h2 { font-size: 2rem; margin-bottom: 1rem; }
.next-steps { margin: 0 0 2rem; padding-left: 1.25rem; color: var(--choc-soft); }
.next-steps li + li { margin-top: 0.5rem; }
.next-steps li::marker { font-family: var(--display); font-weight: 600; color: var(--choc); }
.aside-contact {
  padding: 1.5rem;
  background: var(--gold-soft);
  border-radius: var(--radius-cell);
}
.aside-contact h3 { margin-bottom: 0.4rem; }
.aside-contact a { font-weight: 700; text-decoration-color: var(--choc); text-underline-offset: 3px; }

@media (max-width: 860px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-aside { position: static; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Menu ---------- */
.menu-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}
.jump-link { color: var(--cream); text-decoration: none; font-weight: 500; padding: 0.4rem 0.2rem; }
.jump-link:hover { color: var(--gold-soft); }
.jump-link + .jump-link::before { content: "·"; color: var(--gold); font-weight: 700; padding: 0 0.75rem; display: inline-block; }
.jump-order {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.2rem;
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.jump-order:hover { color: var(--gold-soft); }
.chip-link { text-decoration: none; color: var(--choc); font-weight: 700; font-size: 0.95rem; }
.chip-link:hover { background: var(--gold-soft); }
.chip-link-strong { background: var(--gold); border-color: var(--gold); }

.menu {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.menu-section { padding-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 4rem; }
.menu-noscript { padding: 3rem 0; text-align: center; }

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream-light);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-cell);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--gold-soft);
}
.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
}
.product-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}
.product-summary { color: var(--choc-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.card-photo { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.card-photo img { display: block; transition: opacity 0.15s; }
.card-photo:hover img { opacity: 0.92; }
.card-photo:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.price-text { font-size: 0.85rem; color: var(--choc-soft); margin: 0 0 0.9rem; }
.product-card .btn-order { margin-top: auto; align-self: flex-start; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .product-card-body { padding: 0.9rem; }
  .product-card h3 { font-size: 1.3rem; }
  .product-summary { display: none; }
  .product-card .btn-order { align-self: stretch; text-align: center; }
}

/* Product detail dialog */
.product-dialog {
  width: min(56rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-box);
  background: var(--cream-light);
  color: var(--choc);
  overflow: auto;
}
.product-dialog::backdrop { background: rgb(59 30 25 / 0.6); }
.product-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pd-media { padding: 1rem; }
.pd-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-cell);
  background: var(--gold-soft);
}
.pd-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.pd-thumb {
  width: 4rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.pd-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-thumb[aria-current="true"] { border-color: var(--choc); }
.pd-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
}
.pd-body h2 { font-size: clamp(2.25rem, 4vw, 3rem); padding-right: 2rem; }
.pd-body #pd-description { color: var(--choc-soft); }
.pd-body .btn { cursor: pointer; font-family: inherit; margin-top: 0.5rem; }
.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--choc);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 700px) {
  .product-dialog[open] { grid-template-columns: 1fr; }
  .pd-media > img { aspect-ratio: 1; }
  .pd-body { padding-top: 0.5rem; }
}

/* Custom-order call to action at the bottom of the menu */
.request-cta {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  text-align: center;
}
.request-cta h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 0.5rem; }
.request-cta p { color: var(--choc-soft); margin-bottom: 1.5rem; }

/* ---------- Step-by-step request ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wizard-page { background: var(--cream); min-height: 100vh; }
.wizard-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--cream-light);
  border-bottom: 1px solid var(--gold-soft);
  text-align: center;
}
.wizard-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
}
.wizard-progress { height: 4px; background: var(--gold-soft); }
.wizard-progress span { display: block; height: 100%; width: 0; background: var(--choc); transition: width 0.3s ease; }

.wizard {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) 12rem;
}
.step h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  text-align: center;
  margin-bottom: 0.6rem;
}
.step h1:focus { outline: none; }
.step-sub { text-align: center; color: var(--choc-soft); margin-bottom: 2rem; }
.step h1 + :not(.step-sub) { margin-top: 2rem; }
.step-error { margin-top: 1rem; text-align: center; font-weight: 700; color: #a33a2a; }

.big-input,
.wizard textarea,
.wizard input[type="text"],
.wizard input[type="email"],
.wizard input[type="tel"],
.shop-form textarea,
.shop-form input[type="text"],
.shop-form input[type="email"],
.shop-form input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--choc);
  background: var(--white);
  border: 1.5px solid #d9c6a6;
  border-radius: 0.75rem;
}
.big-input { font-size: 1.3rem; text-align: center; }
.wizard input:focus-visible,
.wizard textarea:focus-visible,
.wizard button:focus-visible,
.wizard .choice:has(input:focus-visible),
.shop-form input:focus-visible,
.shop-form textarea:focus-visible,
.shop-form button:focus-visible,
.shop-form .choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.wizard .field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.upload { margin-top: 1.5rem; }
.wizard input[type="file"] { font: inherit; font-size: 0.95rem; }
.wizard input[type="file"]::file-selector-button {
  margin-right: 0.85rem; padding: 0.55rem 1rem; font: inherit; font-weight: 700;
  color: var(--choc); background: var(--gold-soft); border: 0; border-radius: 999px; cursor: pointer;
}

/* Answer choices: big tappable rows */
.choices { display: grid; gap: 0.6rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1.5px solid #d9c6a6;
  border-radius: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.choice input { accent-color: var(--choc); width: 1.15rem; height: 1.15rem; margin: 0; }
.choice:has(input:checked) { background: var(--gold-soft); border-color: var(--choc); }

/* Flavour question */
.flavour-group { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.flavour-group legend { font-family: var(--display); font-weight: 600; font-size: 1.6rem; padding: 0; margin-bottom: 0.5rem; }
.flavour-note { color: var(--choc-soft); font-size: 0.95rem; margin: -0.25rem 0 0.75rem; }
.flavour-menu-title { font-size: clamp(1.9rem, 5vw, 2.4rem); text-align: center; margin: 2rem 0 1rem; }
.flavour-choice { align-items: flex-start; }
.flavour-choice input { margin-top: 0.2rem; flex-shrink: 0; }
.flavour-choice.is-disabled { opacity: 0.45; cursor: not-allowed; }
.flavour-limit { font-weight: 600; margin-block: 0 1rem; }
.flavour-text { display: grid; gap: 0.15rem; }
.flavour-desc { font-weight: 400; font-size: 0.92rem; color: var(--choc-soft); }
.flavour-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--gold); vertical-align: 0.1em; }
.flavour-unsure { margin-top: 0.5rem; }

/* Flavour menu on the menu page */
.flavour-menu { padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 0; max-width: 72rem; margin: 0 auto; scroll-margin-top: 4rem; }
.flavour-menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.flavour-col h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.flavour-col h4 { font-family: var(--body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--choc-soft); margin: 1.5rem 0 0.5rem; }
.flavour-col ul { list-style: none; margin: 0; padding: 0; }
.flavour-col li { padding: 0.55rem 0; border-bottom: 1px solid var(--gold-soft); }
.flavour-col .flavour-name { font-weight: 700; }
.flavour-col .flavour-desc { display: block; }
@media (max-width: 760px) { .flavour-menu-cols { grid-template-columns: 1fr; } }

/* Cart */
.cart { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "img info stepper" "img remove stepper";
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-cell);
}
.cart-line > img, .cart-thumb-blank {
  grid-area: img; width: 64px; height: 64px; object-fit: cover; border-radius: 0.6rem; background: var(--gold-soft);
}
.cart-info { grid-area: info; }
.cart-name { font-weight: 700; }
.cart-price { font-size: 0.9rem; color: var(--choc-soft); }
.cart-remove {
  grid-area: remove; justify-self: start; padding: 0; border: 0; background: none;
  font: inherit; font-size: 0.85rem; color: var(--choc-soft); text-decoration: underline; cursor: pointer;
}
.stepper { grid-area: stepper; display: grid; grid-template-columns: auto 2rem auto; align-items: center; text-align: center; }
.stepper button {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid #d9c6a6;
  background: var(--cream-light); color: var(--choc); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.stepper output { font-weight: 700; }
.stepper-unit { grid-column: 1 / -1; font-size: 0.8rem; color: var(--choc-soft); }
.add-more {
  display: block; width: fit-content; margin: 1.5rem auto 0; padding: 0.6rem 1.2rem;
  border-radius: 999px; background: var(--gold-soft); font-weight: 700; text-decoration: none;
}
.cart-empty { text-align: center; color: var(--choc-soft); }

/* Calendar */
.calendar { max-width: 26rem; margin: 0 auto; background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--radius-box); padding: 1.25rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-title { font-weight: 700; }
.cal-arrow {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--cream);
  color: var(--choc); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.cal-arrow:disabled { opacity: 0.3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.cal-month-name { display: none; } /* the title above already names the month */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; }
.cal-dow { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--choc-soft); padding-bottom: 0.25rem; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: none;
  font: inherit; font-weight: 700; color: var(--choc); cursor: pointer;
}
.cal-day:hover:not(:disabled) { background: var(--gold-soft); }
.cal-day:disabled { color: #c9b9a8; font-weight: 400; cursor: default; }
.cal-day.cal-rush { color: var(--choc-soft); font-weight: 400; text-decoration: underline dotted var(--gold); text-underline-offset: 3px; }
.cal-day[aria-pressed="true"] { background: var(--choc); color: var(--cream); }
.picked { margin-top: 1rem; text-align: center; font-weight: 700; min-height: 1.6em; }

/* Review */
.review { margin: 0 0 2rem; background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--radius-cell); }
.review-row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.85rem 1.1rem; }
.review-row + .review-row { border-top: 1px solid var(--gold-soft); }
.review dt { font-weight: 700; }
.review dd { margin: 0; color: var(--choc-soft); overflow-wrap: anywhere; }
.review-edit {
  padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem;
  color: var(--choc); text-decoration: underline; cursor: pointer; margin-left: 0.35rem;
}
.wizard .btn-submit { display: block; width: 100%; }
.wizard .hint { text-align: center; }
@media (max-width: 520px) {
  .review-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Back / Next bar pinned to the bottom */
.wizard-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--cream-light);
  border-top: 1px solid var(--gold-soft);
  /* Extra room at the bottom keeps the buttons clear of Netlify's "Powered by Netlify" badge on the preview site */
  padding: 0.75rem var(--gutter) calc(4.25rem + env(safe-area-inset-bottom));
}
.wizard-nav-inner { max-width: 40rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wizard-nav .btn { cursor: pointer; font-family: inherit; min-width: 7rem; }
.step-count { font-size: 0.85rem; color: var(--choc-soft); text-align: center; }
[hidden] { display: none !important; }

/* Thank-you page */
.thanks {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  text-align: center;
}
.thanks img { margin: 0 auto 1.5rem; }
.thanks h1 { font-size: clamp(3rem, 7vw, 4.5rem); margin-bottom: 1rem; }
.thanks p { color: var(--choc-soft); margin-bottom: 1rem; }
.thanks .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.5rem var(--gutter) 3rem;
  background: var(--choc);
  color: var(--cream);
  text-align: center;
}
.footer-logo { width: 150px; height: auto; margin: 0 auto 2rem; }
.contact {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.contact a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.fine { font-size: 0.875rem; color: var(--gold); }
.flavour-choice { padding: 0.75rem 1rem; }

/* FAQ */
.faq { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.faq-item { border-bottom: 1px solid var(--gold-soft); }
.faq-item:first-of-type { border-top: 1px solid var(--gold-soft); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.6rem; color: var(--gold); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-item p { margin: 0 0 1.25rem; color: var(--choc-soft); max-width: 38rem; }
.faq-item a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.faq-cta { text-align: center; margin-top: 3rem; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

.order-note { background: var(--cream-light); border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0.6rem; padding: 0.9rem 1.1rem; margin: 0 0 1.75rem; font-size: 0.95rem; color: var(--choc-soft); }

/* Wholesale */
.page-intro-actions { margin-top: 2rem; }
.wholesale-lists { max-width: 60rem; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.wholesale-lists h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: 0.6rem 0 0.6rem 1.6rem; border-bottom: 1px solid var(--gold-soft); }
.tick-list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); }
.wholesale-form-wrap { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); scroll-margin-top: 5rem; }
.wholesale-form-wrap h2 { font-size: clamp(2.25rem, 5vw, 3rem); margin-bottom: 1.5rem; text-align: center; }
.wholesale-form fieldset.field { border: 0; padding: 0; margin: 0 0 1.25rem; }
.wholesale-form legend.label { font-family: var(--body); font-size: 1rem; padding: 0; }
.wholesale-form .btn-submit { width: 100%; }
.wholesale-form .c-invoice { display: inline-flex; margin-bottom: 1.5rem; }
.order-form input[type="file"] { font: inherit; font-size: 0.95rem; }
.field-error, .form-error { margin-top: 0.4rem; font-size: 0.92rem; font-weight: 700; color: #a33a2a; }
.form-error { margin: 0 0 1rem; text-align: center; }
.wholesale-form [aria-invalid="true"] { border-color: #a33a2a; }
@media (max-width: 760px) { .wholesale-lists { grid-template-columns: 1fr; } }

/* Menu: card without a photo yet, and reviews under a section */
.card-photo-blank { aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--gold-soft); color: var(--choc-soft); font-size: 0.9rem; font-weight: 500; }
.menu-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.menu-quote { margin: 0; padding: 1.5rem 1.75rem; background: var(--cream-light); border-left: 4px solid var(--gold); border-radius: 0.6rem; }
.menu-quote blockquote { margin: 0 0 0.75rem; }
.menu-quote blockquote p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.35; }
.menu-quote figcaption { font-size: 0.9rem; font-weight: 700; color: var(--choc-soft); }
.menu-quote figcaption::before { content: "\2014\00a0"; color: var(--gold); }
@media (max-width: 700px) { .menu-quotes { grid-template-columns: 1fr; } }

/* Homepage reviews */
.reviews { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 6.5rem) var(--gutter); }
.rating { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--choc); }
.stars { position: relative; display: inline-block; font-size: 1.35rem; letter-spacing: 0.1em; line-height: 1; color: var(--gold-soft); }
.stars-fill { position: absolute; inset: 0; width: calc(var(--rating) * 100%); overflow: hidden; white-space: nowrap; color: var(--gold); }
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review-cards .menu-quote { display: flex; flex-direction: column; justify-content: space-between; }
.reviews-more { margin-top: 1.75rem; }
.reviews-more a { font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (max-width: 860px) { .review-cards { grid-template-columns: 1fr; } }

/* Order form: corporate extras */
.corporate-fields { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gold-soft); }
/* Corporate page: steps without headings */
.wholesale-steps .steps li > p:only-child { font-size: 1.1rem; color: var(--choc); }
/* Homepage line above the footer */
.corporate-note { text-align: center; padding: 0 var(--gutter) clamp(3rem, 6vw, 4.5rem); color: var(--choc-soft); }
.corporate-note a { font-weight: 700; color: var(--choc); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* ---------- Product page (product.html) ---------- */
.pdp {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.pdp-back { display: inline-block; margin-bottom: 1rem; font-weight: 700; text-decoration: none; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pdp-media { padding: 0; position: sticky; top: 5rem; }
.pdp-blank { aspect-ratio: 4 / 5; border-radius: var(--radius-cell); }
.pdp-body { display: flex; flex-direction: column; gap: 0.25rem; }
.pdp-body h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.pdp-description { color: var(--choc-soft); margin-bottom: 1.5rem; }
.pdp-stepper { justify-content: start; grid-template-columns: auto 3rem auto; width: fit-content; }
.pdp-stepper .stepper-unit { text-align: left; }
.pdp-flavours { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.pdp-flavours > legend { font-weight: 700; padding: 0; margin-bottom: 0.4rem; }
.flavour-limit { font-weight: 600; margin-block: 0 1rem; }
.flavour-unsure { margin-bottom: 0.5rem; }
.pdp-body .btn-submit { width: 100%; cursor: pointer; font-family: inherit; }
.pdp-added { margin-top: 0.75rem; padding: 0.85rem 1rem; border-radius: 0.75rem; background: var(--gold-soft); font-weight: 600; text-align: center; }
@media (max-width: 760px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .pdp-media > img, .pdp-blank { aspect-ratio: 1; }
}

/* ---------- Cart page (cart.html) ---------- */
.page-intro-short { padding-block: clamp(2rem, 4vw, 3rem); }
.page-intro-short a { color: var(--cream); }
.cart-wrap { max-width: 40rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.cart-line-shop { grid-template-columns: auto 1fr auto; grid-template-areas: "img info actions"; align-items: start; }
.cart-detail { font-size: 0.9rem; color: var(--choc-soft); margin-top: 0.15rem; }
.cart-actions { grid-area: actions; display: grid; gap: 0.35rem; justify-items: end; }
.cart-edit { font-size: 0.85rem; font-weight: 700; color: var(--choc); }
.cart-actions .cart-remove { grid-area: auto; }
.checkout { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 1px solid var(--gold-soft); }
.checkout h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 2rem 0 0.75rem; }
.checkout .btn-submit { display: block; width: 100%; margin-top: 2rem; cursor: pointer; font-family: inherit; }
.checkout .hint { text-align: center; }
.form-aside { text-align: center; margin-top: 1.5rem; }
.cart-choice { margin-top: 1.5rem; }
.review dd span { white-space: pre-line; }
.order-dm { text-align: center; margin-top: 1.25rem; color: var(--choc-soft); }
