/* Happy Dots Design Co. — palette pulled straight from the logo sticker */
:root {
  --ink: #000000;          /* the badge */
  --pink: #fd0b81;         /* "Dots" */
  --pink-deep: #c9005f;    /* pink text on white (contrast) */
  --frosting: #ffd6ea;     /* the pale pink cookie */
  --paper: #ffffff;
  --cookie: #e9b872;       /* baked cookie edge */
  --grey: #5c5c5c;
  --line: #ececec;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 { font: 400 clamp(2rem, 4.5vw, 2.9rem)/1.05 var(--display); letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: #e00070; color: #fff; }
.btn--ghost { color: #fff; border-color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #333; color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: var(--ink); color: #fff;
}
.topbar__brand img { height: 52px; width: auto; }
.topbar__nav { display: flex; gap: 24px; margin-left: auto; }
.topbar__nav a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__nav a:hover { color: var(--pink); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px 0 18px; border-radius: 999px;
  border: 0; background: var(--pink); color: #fff; font: 700 .95rem/1 var(--body); cursor: pointer;
}
.cart-btn__count {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; background: #fff; color: var(--ink); font-size: .85rem;
}
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
@media (max-width: 760px) {
  .topbar__nav { display: none; }
  .cart-btn { margin-left: auto; }
  .topbar__brand img { height: 44px; }
}

/* ---------- hero: the badge, polka dots and all ---------- */
.hero {
  position: relative;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle, #fff 0 4px, transparent 4.5px),
    radial-gradient(circle, #fff 0 2.5px, transparent 3px);
  background-size: 56px 56px, 56px 56px;
  background-position: 0 0, 28px 28px;
  color: #fff;
  padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 112px);
}
/* scalloped pink edge, like the sticker outline */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 34px;
  background:
    radial-gradient(circle at 20px 0, var(--ink) 0 15px, var(--pink) 15.5px 20px, transparent 20.5px) 0 0 / 40px 34px repeat-x;
  z-index: 1;
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero__copy { background: var(--ink); padding: 8px 8px 8px 0; border-radius: 0 24px 24px 0; }
.hero h1 {
  font: 400 clamp(2.6rem, 6.2vw, 4.6rem)/0.98 var(--display);
  color: var(--pink); letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__lede { margin-top: 20px; font-size: 1.15rem; max-width: 34em; color: #f2f2f2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__stickers { position: relative; aspect-ratio: 1 / 0.92; }
.sticker { position: absolute; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.sticker--logo { width: 88%; left: 6%; top: 18%; z-index: 2; transform: rotate(-4deg); }
.sticker--a, .sticker--b { border: 7px solid #fff; border-radius: 14px; width: 46%; }
.sticker--a { top: 0; right: 0; transform: rotate(7deg); }
.sticker--b { bottom: 0; left: 0; transform: rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: stick .7s cubic-bezier(.2,1.4,.4,1) both; }
  .sticker--a { animation-delay: .12s; }
  .sticker--b { animation-delay: .24s; }
  @keyframes stick { from { opacity: 0; scale: .7; } }
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stickers { max-width: 440px; width: 100%; margin: 8px auto 0; }
}

/* ---------- sections ---------- */
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--grey); font-size: 1.1rem; }
.menu { padding: clamp(72px, 9vw, 120px) 0 40px; }

/* menu categories */
.cat { padding: 40px 0; border-top: 2px dashed var(--line); }
.cat:first-child { border-top: 0; padding-top: 0; }
.cat__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.cat__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.cat__photos img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.cat__photos img:first-child:nth-last-child(2) { grid-column: auto; aspect-ratio: 1; }
.cat h3.cat__title { font: 400 1.9rem/1 var(--display); }
.cat__blurb { margin-top: 6px; color: var(--grey); }
.items { list-style: none; margin: 20px 0 0; padding: 0; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: end;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.item__name { font-weight: 700; font-size: 1.1rem; }
.item__price { color: var(--pink-deep); font-weight: 700; white-space: nowrap; }
.item__desc { color: var(--grey); font-size: .98rem; margin-top: 2px; max-width: 36em; }
.item__controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.item__controls select {
  min-height: 44px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 34px 0 14px;
  font: 600 .95rem var(--body); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; color: var(--ink); max-width: 210px;
}
.add-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: 700 .95rem var(--body); cursor: pointer; white-space: nowrap;
}
.add-btn:hover { background: var(--pink); border-color: var(--pink); }
.add-btn.added { background: var(--pink); border-color: var(--pink); }
@media (max-width: 820px) {
  .cat__grid { grid-template-columns: 1fr; }
  .cat__photos { grid-template-columns: repeat(3, 1fr); }
  .cat__photos img:first-child { grid-column: auto; aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .item { grid-template-columns: 1fr; }
  .item__controls { justify-content: flex-start; }
}

/* how it works — a real sequence, so it gets numbers */
.how { background: var(--frosting); padding: clamp(64px, 8vw, 104px) 0; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ink); color: var(--pink);
  font: 400 1.6rem/1 var(--display);
}
.steps p { margin-top: 8px; color: #333; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* gallery */
.gallery { padding: clamp(64px, 8vw, 104px) 0; }
.gallery__grid { columns: 4 220px; column-gap: 12px; }
.gallery__grid img { width: 100%; margin-bottom: 12px; border-radius: 14px; break-inside: avoid; }

/* testimonial */
.quote { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.quote__inner { display: grid; grid-template-columns: 1fr 280px; gap: clamp(24px, 5vw, 64px); align-items: center; }
.quote figure { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 400 clamp(1.4rem, 2.8vw, 2rem)/1.25 var(--display); color: var(--pink); }
.quote__en { margin-top: 16px; color: #d9d9d9; max-width: 40em; }
.quote figcaption { margin-top: 16px; font-weight: 700; }
.quote img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--pink); }
@media (max-width: 760px) { .quote__inner { grid-template-columns: 1fr; } .quote img { width: 180px; } }

/* about */
.about { padding: clamp(64px, 8vw, 104px) 0; }
.about__inner { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about__inner img { border-radius: 24px; transform: rotate(-3deg); border: 8px solid var(--frosting); }
.about p { margin-top: 16px; max-width: 34em; font-size: 1.1rem; }
@media (max-width: 760px) { .about__inner { grid-template-columns: 1fr; } .about__inner img { max-width: 280px; } }

/* contact */
.contact { padding: 0 0 clamp(64px, 8vw, 104px); }
.contact__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(28px, 4vw, 44px); border-radius: 28px; border: 3px solid var(--ink);
  background-image: radial-gradient(circle, var(--frosting) 0 3px, transparent 3.5px); background-size: 28px 28px;
}
.contact__inner > div { background: #fff; padding: 4px 8px 4px 0; }
.contact p { margin-top: 10px; font-size: 1.1rem; }
.contact__links { list-style: none; margin: 0; padding: 16px 20px; background: #fff; border-radius: 16px; display: grid; gap: 8px; font-weight: 600; }
.contact__links span { color: var(--grey); font-weight: 500; }
@media (max-width: 760px) { .contact__inner { grid-template-columns: 1fr; } }

.footer { background: var(--ink); color: #fff; text-align: center; padding: 32px var(--gutter); font-size: .95rem; }
.footer__note { color: #aaa; margin-top: 4px; font-size: .88rem; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: #fff; display: flex; flex-direction: column; outline: none;
  box-shadow: -12px 0 40px rgba(0,0,0,.25);
}
@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) .drawer__panel { animation: slidein .25s ease-out; }
  @keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--ink); color: #fff; }
.drawer__head h2 { font-size: 1.6rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.15); }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer__done { padding: 40px 24px; }
.drawer__done h3 { font: 400 2rem/1 var(--display); color: var(--pink-deep); }
.drawer__done p { margin: 14px 0 24px; }

.notice { background: var(--frosting); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.empty { padding: 24px 0 8px; color: var(--grey); }
.empty a { font-weight: 700; }

.line { padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.line__name { font-weight: 700; }
.line__meta { color: var(--grey); font-size: .9rem; }
.line__controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; font: 700 1.1rem var(--body); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--frosting); }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.line__unit { font-size: .9rem; color: var(--grey); }
.remove { margin-left: auto; background: none; border: 0; color: var(--pink-deep); font: 600 .9rem var(--body); cursor: pointer; text-decoration: underline; padding: 8px 0; }
.line textarea { margin-top: 10px; }
.estimate { display: flex; justify-content: space-between; padding: 16px 0 4px; font-weight: 700; }
.estimate small { display: block; font-weight: 400; color: var(--grey); }

.request-form { margin-top: 24px; }
.request-form h3 { font: 400 1.5rem/1 var(--display); margin-bottom: 14px; }
.field { display: grid; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--grey); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid #cfcfcf; border-radius: 12px;
  font: 400 1rem var(--body); color: var(--ink); background: #fff;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--frosting); }
[aria-invalid="true"] { border-color: var(--pink-deep); }
.radio { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 36px; }
.radio input { width: 20px; min-height: 0; height: 20px; accent-color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fff0f6; border: 2px solid var(--pink-deep); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.fine { margin-top: 10px; font-size: .85rem; color: var(--grey); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600;
  transition: transform .25s ease, visibility .25s; max-width: calc(100% - 32px); text-align: center;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
body.locked { overflow: hidden; }
