/* =========================================================
   Gerdoo Bakery: stylesheet
   Colors and fonts are set once here in :root.
   ========================================================= */

:root {
  /* Palette */
  --rosewater: #F6EDE4;   /* page background: warm walnut-milk cream with a hint of rose */
  --ink: #301C10;         /* main text, walnut brown (from the logo calligraphy) */
  --mauve: #6A5246;       /* secondary text, walnut taupe */
  --enamel: #186F6A;      /* buttons and links, Persian enamel turquoise */
  --enamel-dark: #125955;
  --enamel-tint: #DCEDEA;  /* pale turquoise for the Telegram callout */
  --honey: #B08A4F;       /* decorative lines only, the logo's gold */
  --honey-deep: #94591B;  /* honey colored text */
  --cream: #FFF8EE;       /* cream filling between layers */
  --card: #FFFBF6;
  --line: #E7D6C8;
  --warn: #9B2C3A;        /* gentle berry red for warnings */
  --ok-tint: #EAF4F2;

  /* Type */
  --display: "Yeseva One", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  /* Spacing */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6.5rem;
  --gutter: clamp(1rem, 4.5vw, 2.75rem);

  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16' preserveAspectRatio='none'%3E%3Cpath fill='%23FFF8EE' d='M0 5Q10 0 20 5T40 5V11Q30 16 20 11T0 11Z'/%3E%3C/svg%3E");
  --frosting: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16' preserveAspectRatio='none'%3E%3Cpath fill='%23FFF8EE' d='M0 0H40V10Q30 16 20 10T0 10Z'/%3E%3C/svg%3E");
  --crumbs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12'%3E%3Ccircle cx='51.8' cy='3.3' r='1.9' fill='%23B9772A'/%3E%3Ccircle cx='131.4' cy='2.8' r='1.8' fill='%23C98A3C'/%3E%3Ccircle cx='34.4' cy='2.7' r='1.6' fill='%239E6220'/%3E%3Ccircle cx='14.5' cy='5.6' r='2.2' fill='%23B9772A'/%3E%3Ccircle cx='151.6' cy='7.4' r='1.8' fill='%23B9772A'/%3E%3Ccircle cx='92.3' cy='5.4' r='2.5' fill='%23B9772A'/%3E%3Ccircle cx='89.1' cy='3.1' r='1.6' fill='%23C98A3C'/%3E%3Ccircle cx='18.8' cy='4.6' r='2.2' fill='%239E6220'/%3E%3Ccircle cx='16.5' cy='6.9' r='1.2' fill='%23B9772A'/%3E%3Ccircle cx='87.6' cy='2.5' r='1.0' fill='%239E6220'/%3E%3Ccircle cx='79.4' cy='6.5' r='2.1' fill='%238A531B'/%3E%3Ccircle cx='93.7' cy='5.9' r='1.4' fill='%239E6220'/%3E%3Ccircle cx='111.8' cy='4.1' r='1.8' fill='%23C98A3C'/%3E%3Ccircle cx='79.2' cy='4.9' r='1.6' fill='%23C98A3C'/%3E%3Ccircle cx='156.8' cy='3.0' r='1.6' fill='%23D39A4E'/%3E%3Ccircle cx='24.3' cy='6.2' r='1.0' fill='%23B9772A'/%3E%3Ccircle cx='122.3' cy='6.9' r='2.3' fill='%23D39A4E'/%3E%3Ccircle cx='54.4' cy='5.0' r='1.7' fill='%238A531B'/%3E%3Ccircle cx='11.0' cy='2.8' r='1.3' fill='%23B9772A'/%3E%3Ccircle cx='9.7' cy='8.0' r='1.9' fill='%238A531B'/%3E%3Ccircle cx='45.5' cy='5.3' r='2.0' fill='%23B9772A'/%3E%3Ccircle cx='150.5' cy='5.0' r='1.9' fill='%238A531B'/%3E%3Ccircle cx='9.4' cy='8.5' r='1.1' fill='%239E6220'/%3E%3Ccircle cx='63.7' cy='9.8' r='1.7' fill='%239E6220'/%3E%3Ccircle cx='71.9' cy='6.7' r='2.3' fill='%238A531B'/%3E%3Ccircle cx='138.2' cy='4.4' r='1.6' fill='%23D39A4E'/%3E%3Ccircle cx='109.2' cy='5.2' r='1.3' fill='%23B9772A'/%3E%3Ccircle cx='28.2' cy='4.0' r='1.3' fill='%238A531B'/%3E%3Ccircle cx='133.0' cy='3.5' r='1.4' fill='%239E6220'/%3E%3Ccircle cx='67.0' cy='5.1' r='1.8' fill='%239E6220'/%3E%3Ccircle cx='110.5' cy='6.4' r='1.9' fill='%23B9772A'/%3E%3Ccircle cx='73.1' cy='9.4' r='2.4' fill='%23C98A3C'/%3E%3Ccircle cx='62.8' cy='5.4' r='1.1' fill='%238A531B'/%3E%3Ccircle cx='10.0' cy='2.6' r='1.2' fill='%239E6220'/%3E%3Ccircle cx='17.6' cy='7.1' r='1.1' fill='%23C98A3C'/%3E%3Ccircle cx='24.2' cy='2.9' r='1.5' fill='%23B9772A'/%3E%3Ccircle cx='11.3' cy='3.8' r='1.5' fill='%23D39A4E'/%3E%3Ccircle cx='152.9' cy='7.1' r='1.7' fill='%23B9772A'/%3E%3Ccircle cx='135.8' cy='10.4' r='1.6' fill='%238A531B'/%3E%3Ccircle cx='49.9' cy='3.2' r='2.1' fill='%23D39A4E'/%3E%3Ccircle cx='76.6' cy='7.9' r='1.7' fill='%239E6220'/%3E%3Ccircle cx='152.2' cy='6.5' r='1.1' fill='%23C98A3C'/%3E%3Ccircle cx='146.3' cy='8.4' r='1.4' fill='%23B9772A'/%3E%3Ccircle cx='111.4' cy='4.2' r='1.5' fill='%239E6220'/%3E%3Ccircle cx='56.9' cy='3.9' r='1.8' fill='%23C98A3C'/%3E%3Ccircle cx='52.7' cy='3.9' r='2.2' fill='%239E6220'/%3E%3C/svg%3E");
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V46C0 22 24 7 50 0c26 7 50 22 50 46v79z'/%3E%3C/svg%3E");

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rosewater);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--enamel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--enamel-dark); }
:focus-visible { outline: 3px solid var(--enamel); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.no-js [data-js-only] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 50;
  background: var(--ink); color: var(--rosewater); padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1 var(--body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--enamel); color: #fff; }
.btn--primary:hover { background: var(--enamel-dark); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--quiet:hover { background: var(--ink); color: var(--rosewater); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding-block: 1.25rem;
}
.wordmark {
  font-family: var(--display); font-size: 1.5rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: auto; height: 46px; }
.brand .wordmark { font-size: 1.45rem; }
@media (min-width: 760px) {
  .brand__logo { height: 56px; }
  .brand .wordmark { font-size: 1.65rem; }
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding-block: .4rem; border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: var(--s4);
  padding-block: var(--s3) var(--s5);
}
.hero__figure { margin: 0; order: -1; justify-self: center; width: min(74vw, 340px); }
.hero h1 { font-size: clamp(2.75rem, 1.7rem + 4.4vw, 5.25rem); max-width: 11ch; }
.hero__lede { margin-top: var(--s3); max-width: 44ch; color: var(--mauve); font-size: 1.1em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s4); }

.arch { position: relative; aspect-ratio: 4 / 5; }
.arch__img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
          mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.arch__line {
  position: absolute; inset: -14px -14px 0 -14px;
  width: calc(100% + 28px); height: calc(100% + 14px);
  fill: none; stroke: var(--honey); stroke-width: 1.25;
  overflow: visible; pointer-events: none;
}
.hero__figure figcaption {
  margin-top: var(--s2); text-align: center;
  font-size: .9375rem; color: var(--mauve);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center; gap: var(--s5);
    padding-block: var(--s4) var(--s6);
    min-height: min(88vh, 860px);
  }
  .hero__figure { order: 0; width: min(100%, 420px); justify-self: end; }
}

/* ---------- Menu intro ---------- */
.menu { padding-bottom: var(--s6); scroll-margin-top: var(--s2); }
.menu__intro {
  display: grid; gap: var(--s2);
  margin-bottom: calc(var(--s4) + 10px);
}
.menu__intro h2 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); }
.menu__intro p { color: var(--mauve); max-width: 40ch; }
@media (min-width: 900px) {
  .menu__intro { grid-template-columns: 1fr 1fr; align-items: end; }
  .menu__intro p { justify-self: end; text-align: right; }
}

/* =========================================================
   THE CAKE: the menu stacked as layers
   ========================================================= */
.cake { position: relative; max-width: 1080px; margin-inline: auto; padding-bottom: 54px; }

/* Frosting and honey crumbs on top of the cake */
.cake__top {
  position: relative; z-index: 3; height: 16px; margin-bottom: -8px;
  background: var(--frosting) 0 0 / 40px 16px repeat-x;
}
.cake__top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 12px;
  background: var(--crumbs) 0 0 / 160px 12px repeat-x;
}

.layer {
  --muted: color-mix(in srgb, var(--ink) 86%, var(--bg));
  position: relative;
  background: var(--bg);
  color: var(--ink);
  scroll-margin-top: var(--s2);
}
/* Cream filling between layers */
.layer + .layer::before {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: -8px; height: 16px;
  background: var(--wave) 0 0 / 40px 16px repeat-x;
  pointer-events: none;
}

.layer__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--s2);
  padding: 1.15rem var(--gutter);
  cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.layer__head::-webkit-details-marker { display: none; }
.layer__head::marker { content: ""; }
.layer__head:focus-visible { outline: 3px solid var(--ink); outline-offset: -8px; border-radius: 10px; }

.layer__arch { width: 48px; aspect-ratio: 4 / 5; flex: none; }
.layer__arch img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
          mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.layer__titles { display: grid; gap: .2rem; min-width: 0; }
.layer__name { font-size: clamp(1.5rem, 1.05rem + 2.1vw, 3rem); line-height: 1.05; }
.layer__note { font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.layer__price { margin-top: .2rem; display: flex; align-items: baseline; gap: .4rem; }
.layer__amount { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.layer__unit { font-size: .875rem; color: var(--muted); }

.layer__toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor; flex: none;
  transition: background-color .25s, color .25s;
}
/* Downward arrow: "show details". Flips to point up when the layer is open. */
.layer__toggle::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -7.5px 0 0 -5px;
  border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease-out), margin .35s var(--ease-out);
}
.layer.is-open .layer__toggle::before { transform: rotate(-135deg); margin-top: -2.5px; }
@media (hover: hover) {
  .layer__head:hover .layer__toggle { background: var(--ink); color: var(--bg); }
}

@media (min-width: 760px) {
  .layer__head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--s3); padding-block: 1.25rem;
  }
  .layer__arch { width: 60px; }
  .layer__titles { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); row-gap: .3rem; }
  .layer__name, .layer__note { grid-column: 1; }
  .layer__note { font-size: 1rem; }
  .layer__price {
    grid-column: 2; grid-row: 1 / span 2; align-self: center;
    margin: 0; flex-direction: column; align-items: flex-end; gap: .15rem; text-align: right;
  }
  .layer__amount { font-size: clamp(1.5rem, 1.1rem + .9vw, 2rem); }
}

/* Opened layer */
.layer__body { overflow: clip; }
.layer__inner {
  display: grid; gap: var(--s3);
  padding: .25rem var(--gutter) var(--s4);
}
.layer.is-open .layer__inner { animation: rise .5s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.layer__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 10%, var(--bg));
}
.layer__thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.thumb {
  padding: 0; border: 0; background: none; cursor: pointer;
  width: 52px; border-radius: 5px; overflow: hidden;
  opacity: .62; outline-offset: 2px;
  transition: opacity .2s;
}
.thumb img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.thumb:hover { opacity: 1; }
.thumb:focus-visible { outline-color: var(--ink); }

.layer__info { display: grid; gap: var(--s2); align-content: start; }
.layer__info > p { max-width: 46ch; }
.layer__info > p + p { color: var(--muted); }

.layer__facts {
  margin: var(--s1) 0 0; padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  max-width: 30rem;
}
.layer__facts div {
  display: grid; grid-template-columns: 9rem 1fr; gap: var(--s2);
  padding-block: .6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
}
.layer__facts dt { color: var(--muted); font-size: .9375rem; }
.layer__facts dd { margin: 0; font-weight: 500; }

.add {
  justify-self: start; margin-top: var(--s2);
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font: 500 1rem/1 var(--body); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.add[aria-pressed="true"] { background: transparent; color: var(--ink); }
.add[aria-pressed="true"]::before {
  content: ""; width: 14px; height: 8px; margin-top: -4px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.add:focus-visible { outline-color: var(--ink); }

@media (min-width: 760px) {
  .layer__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--s5); align-items: start;
    padding-top: .5rem; padding-bottom: var(--s5);
  }
  .layer__info { padding-top: var(--s1); }
  .layer__info > p:first-child { font-size: 1.2rem; line-height: 1.55; }
}

/* The wooden cake stand from the photos */
.cake__stand {
  position: relative; height: 18px; margin-inline: -14px;
  background: linear-gradient(180deg, #9A5C37 0%, #7A4123 60%, #63341C 100%);
  border-radius: 3px 3px 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.cake__stand::before, .cake__stand::after {
  content: ""; position: absolute; top: 12px; width: 11px; height: 40px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #7E7A76 0%, #E7E3DE 40%, #B7B2AC 70%, #8C8782 100%);
  z-index: -1;
}
.cake__stand::before { left: 10%; }
.cake__stand::after { right: 10%; }
.cake__stand span {
  position: absolute; left: 6%; right: 6%; top: 46px; height: 14px;
  background: radial-gradient(closest-side, rgba(48,28,16,.18), transparent);
  z-index: -2;
}

/* Building the cake: layers settle onto the stand, bottom first (runs once) */
.cake.is-waiting .layer,
.cake.is-waiting .cake__top { opacity: 0; transform: translateY(-36px); }
.cake.is-building .layer,
.cake.is-building .cake__top {
  transition: transform .6s cubic-bezier(.25, .9, .3, 1.15), opacity .4s ease-out;
  transition-delay: calc(var(--i, 8) * 55ms);
}
.cake__top { --i: 8; }

/* ---------- Order ---------- */
.order {
  display: grid; gap: var(--s5);
  padding-block: var(--s5) var(--s6);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--s2);
}
.order h2 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); }
.order__callout {
  display: flex; align-items: flex-start; gap: .9rem;
  margin-top: var(--s3); max-width: 34rem;
  padding: 1.1rem 1.35rem;
  background: var(--enamel-tint); color: var(--ink);
  border-radius: 14px;
  font-size: 1.0625rem; line-height: 1.5;
}
.order__callout-icon { flex: none; width: 26px; height: 26px; margin-top: .05rem; fill: var(--enamel); }
.order__callout a {
  color: var(--enamel-dark); font-weight: 500; white-space: nowrap;
  text-decoration-thickness: 1.5px;
}
.order__callout a:hover { color: var(--ink); }

.steps { list-style: none; margin: var(--s4) 0 0; padding: 0; counter-reset: step; display: grid; gap: var(--s4); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--s2);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--display); font-size: 2.6rem; line-height: .9;
  color: var(--honey-deep);
}
.steps h3 { font-size: 1.375rem; margin-bottom: .35rem; }
.steps p { color: var(--mauve); max-width: 44ch; }

.note {
  align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid; gap: var(--s2);
}
.note h3 { font-size: 1.75rem; }
.note__items { list-style: none; margin: 0; padding: 0; display: grid; }
.note__items li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem .9rem;
  padding-block: .6rem; border-bottom: 1px solid var(--line);
}
.note__name { line-height: 1.35; }
.note__items li:first-child { border-top: 1px solid var(--line); }
.note__remove {
  border: 0; background: none; padding: .4rem 0; cursor: pointer;
  font: 400 .9375rem var(--body); color: var(--mauve);
  text-decoration: underline; text-underline-offset: .2em;
}
.note__remove:hover { color: var(--ink); }
.note__empty { color: var(--mauve); font-size: .9375rem; }
.note textarea {
  width: 100%; resize: vertical; min-height: 6rem;
  font: 400 1rem/1.5 var(--body); color: var(--ink);
  background: #fff; border: 1px solid #D9C3B2; border-radius: 10px;
  padding: .75rem .9rem;
}
.note textarea::placeholder { color: #8C786B; }
.note textarea:focus-visible { outline-offset: 1px; }
.note__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s1); }
.note__status { min-height: 1.4em; margin-top: -.4rem; font-size: .9375rem; color: var(--enamel); font-weight: 500; }
.note__status--warn { color: var(--warn); }
.note__hint { font-size: .875rem; color: var(--mauve); line-height: 1.5; }

@media (min-width: 900px) {
  .order { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--s5); align-items: start; }
  .note { margin-top: .5rem; }
}

/* ---------- Order note: form parts ---------- */
.note { gap: var(--s3); }
.note fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.note__group { display: grid; gap: .65rem; }
.note__legend {
  padding: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; color: var(--ink);
}
fieldset.note__group > .note__legend { margin-bottom: .65rem; }
.note__msg { font-size: .9375rem; color: var(--mauve); min-height: 0; }
.note__msg:empty { display: none; }
.note__msg--warn { color: var(--warn); font-weight: 500; }
.note__remove:disabled, .stepper__btn:disabled { opacity: .4; cursor: not-allowed; }

.note__form { display: grid; gap: var(--s3); }
.note__form[hidden] { display: none; }

/* Text fields (address, name, contact) */
.field { display: grid; gap: .35rem; }
.field[hidden] { display: none; }
.field label { font-size: .9375rem; font-weight: 500; }
.field input {
  width: 100%; min-height: 46px; padding: 0 .9rem;
  font: 400 1rem var(--body); color: var(--ink);
  background: #fff; border: 1px solid #D9C3B2; border-radius: 10px;
}
.field input::placeholder { color: #8C786B; }
.field input[aria-invalid="true"], .zip input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.method-panel .field { margin-top: .25rem; }

/* Spam trap: kept off screen, never seen by people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { min-width: 12rem; }
.btn--submit:disabled { opacity: .75; cursor: progress; }

/* Order confirmation */
.confirm { display: grid; gap: var(--s2); }
.confirm[hidden] { display: none; }
.confirm:focus { outline: none; }
.confirm__kicker { color: var(--enamel-dark); font-weight: 500; }
.confirm__title { font-size: 1.75rem; }
.confirm__items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.confirm__items li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.confirm__facts { margin: var(--s1) 0 0; display: grid; gap: .5rem; }
.confirm__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s2); }
.confirm__facts dt { color: var(--mauve); }
.confirm__facts dd { margin: 0; }
.confirm__next { background: var(--ok-tint); border-radius: 12px; padding: 1rem 1.15rem; line-height: 1.5; }
.confirm .btn { justify-self: start; }

.note--noscript { margin: 0; color: var(--ink); }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid #D9C3B2; border-radius: 999px; background: #fff; }
.stepper__btn {
  width: 36px; height: 36px; border: 0; background: none; cursor: pointer; border-radius: 50%;
  font: 500 1.15rem/1 var(--body); color: var(--ink);
}
.stepper__btn:not(:disabled):hover { background: var(--rosewater); }
.stepper__qty { min-width: 1.6rem; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Weekend picker */
.weekends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.wk {
  position: relative; display: grid; gap: .15rem;
  padding: .7rem .75rem; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid #E2CFC0;
  transition: border-color .2s, background-color .2s;
}
.wk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wk__date { font-weight: 500; white-space: nowrap; }
.wk__left { font-size: .875rem; color: var(--mauve); }
.wk--low .wk__left { color: var(--honey-deep); font-weight: 500; }
.wk:hover { border-color: var(--mauve); }
.wk:has(input:checked) { border-color: var(--enamel); background: var(--ok-tint); box-shadow: inset 0 0 0 1px var(--enamel); }
.wk:has(input:focus-visible) { outline: 3px solid var(--enamel); outline-offset: 2px; }
.wk--full { cursor: not-allowed; background: transparent; border-style: dashed; }
.wk--full:hover { border-color: #E2CFC0; }
.wk--full .wk__date { color: var(--mauve); text-decoration: line-through; text-decoration-thickness: 1px; }
.wk--full input { cursor: not-allowed; }

/* Segmented choices (day, pickup or delivery) */
.seg { display: flex; gap: .45rem; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 .7rem;
  white-space: nowrap;
  border-radius: 999px; border: 1.5px solid #E2CFC0; background: #fff;
  font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.seg span:hover { border-color: var(--mauve); }
.seg input:checked + span { background: var(--enamel); border-color: var(--enamel); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--enamel); outline-offset: 2px; }
.seg input:disabled + span { opacity: .55; cursor: not-allowed; }
.seg--two label { flex: 1 1 0; }
.seg--two span { min-height: 46px; }

.method-panel {
  margin-top: .75rem; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--rosewater); font-size: .9375rem; line-height: 1.5;
  display: grid; gap: .75rem;
}
.method-panel__intro { color: var(--mauve); }
.method-panel__flat { display: grid; gap: .35rem; }
.method-panel__flat[hidden] { display: none; }
.zip__ok { font-weight: 500; color: var(--enamel-dark); }

/* ZIP estimator */
.zip { display: grid; grid-template-columns: auto minmax(0, 8rem) auto; align-items: center; gap: .6rem; }
.zip__label { font-weight: 500; }
.zip input {
  width: 100%; min-height: 44px; padding: 0 .8rem;
  font: 500 1rem var(--body); letter-spacing: .08em; color: var(--ink);
  background: #fff; border: 1px solid #D9C3B2; border-radius: 10px;
}
.btn--small { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.zip__result:empty { display: none; }
.zip__result { display: grid; gap: .2rem; }
.zip__result--warn { color: var(--warn); font-weight: 500; }
.zip__fee { font-size: 1.05rem; }
.zip__fee strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--enamel-dark); }
.zip__small { color: var(--mauve); font-size: .875rem; }

/* ---------- Good to know ---------- */
.know { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); max-width: 34rem; }
.know h3 { font-size: 1.375rem; margin-bottom: .75rem; }
.know dl { margin: 0; display: grid; gap: .55rem; }
.know dl div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s2); }
.know dt { font-weight: 500; }
.know dd { margin: 0; color: var(--mauve); }
.know__cta { display: block; margin-top: .3rem; color: var(--ink); font-weight: 500; }
.know__cta a { color: var(--enamel-dark); }

/* ---------- Hero: live spots countdown ---------- */
.avail {
  display: flex; align-items: center; gap: .9rem; width: fit-content; max-width: 30rem;
  margin-top: var(--s3); padding: .7rem 1.1rem .7rem .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.4;
  animation: rise .5s var(--ease-out) both;
}
.avail:hover { color: var(--ink); border-color: var(--mauve); }
.avail strong { font-weight: 500; }
.avail__text { display: grid; gap: .1rem; }
.avail__full { color: var(--mauve); font-size: .875rem; }
.avail--full { color: var(--warn); }
.avail__spots { display: inline-flex; gap: 5px; flex: none; }
.spot {
  width: 12px; height: 15px; background: var(--honey);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
          mask: var(--arch-mask) center / 100% 100% no-repeat;
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid; gap: .6rem;
  padding-block: var(--s4) var(--s5);
  border-top: 1px solid var(--line);
  color: var(--mauve);
}
.site-footer .wordmark { font-size: 1.75rem; margin-bottom: .25rem; color: var(--ink); }
.site-footer__brand { display: flex; align-items: center; gap: 1.25rem; margin-bottom: var(--s2); }
.site-footer__logo { width: auto; height: 120px; flex: none; }
.site-footer__meaning { color: var(--mauve); }
.site-footer__meaning [lang="fa"] { font-family: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif; font-size: 1.15em; color: var(--ink); }
@media (min-width: 760px) { .site-footer__logo { height: 160px; } }
.site-footer__small { font-size: .9375rem; }

/* ---------- Floating order note link ---------- */
.note-pill {
  position: fixed; z-index: 40; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; background: var(--ink); color: var(--rosewater);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(48, 28, 16, .55);
  animation: pill-in .35s var(--ease-out);
}
.note-pill:hover { color: #fff; }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Local preview reminder (only shown on your own computer) */
.dev-banner {
  background: #FFE9A8; color: #3B2A00; font: 500 .875rem/1.4 var(--body);
  padding: .5rem 1rem; text-align: center;
}

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