/* Colours & fonts are injected from config.js (see theme.js).
   The values below are only fallbacks. */
:root {
  --primary: #E8879C;
  --primary-dark: #C9637A;
  --accent: #E2475B;
  --blush: #F9DDE3;
  --blush-light: #FDF0F3;
  --cream: #FFF8EE;
  --white: #FFFFFF;
  --text: #4A3238;
  --text-muted: #8C7378;
  --border: #F1D5DB;
  --success: #5BAE85;
  --wa: #25D366;
  --font-script: cursive;
  --font-heading: Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(74, 50, 56, 0.08);
  --shadow-lg: 0 16px 48px rgba(74, 50, 56, 0.16);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- Banner ---------- */
.banner {
  position: relative;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13.5px; font-weight: 500;
  padding: 9px 40px;
}
.banner-close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; color: #fff;
  font-size: 20px; cursor: pointer; opacity: .85;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blush); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--font-script); font-size: 25px; color: var(--primary-dark); white-space: nowrap; }
.brand-by { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 24px;
  padding: 28px 16px 40px;
  background:
    radial-gradient(circle at 85% 10%, var(--blush) 0, transparent 45%),
    radial-gradient(circle at 0% 90%, var(--blush-light) 0, transparent 40%);
}
.hero-kicker { margin: 0 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.hero-title { display: flex; flex-direction: column; }
.hero-title .script { font-size: clamp(46px, 13vw, 84px); color: var(--primary-dark); line-height: 1.05; }
.hero-by { font-family: var(--font-heading); font-size: 18px; font-style: italic; color: var(--text-muted); margin-top: 2px; padding-left: 4px; }
.hero-tagline { font-family: var(--font-heading); font-size: clamp(20px, 5.4vw, 28px); margin: 14px 0 6px; line-height: 1.3; }
.hero-intro { margin: 0 0 20px; color: var(--text-muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.hero-media { order: -1; }
.hero-media img {
  width: 100%; height: auto; max-width: 260px; margin: 0 auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  box-shadow: var(--shadow-lg);
  background: var(--blush);
}

/* ---------- Sections ---------- */
.section { padding: 48px 16px; max-width: 1180px; margin: 0 auto; }
.section-tint { max-width: none; background: linear-gradient(var(--blush-light), var(--cream)); }
.section-tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 6.5vw, 38px); }
.eyebrow { font-family: var(--font-script); color: var(--primary-dark); font-size: 26px; margin: 0; line-height: 1.2; }
.section-sub { color: var(--text-muted); margin: 8px auto 0; max-width: 520px; }

/* ---------- Menu ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none;
  position: sticky; top: var(--header-h); z-index: 10;
  background: var(--cream);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text);
  font: 500 14px var(--font-body); cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-group { margin-top: 20px; }
.menu-group h3 { font-size: 21px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.menu-group h3::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.item-media { position: relative; aspect-ratio: 1; background: var(--blush-light); }
.item-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.item-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}
.item-body { padding: 12px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.item-name { margin: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.25; }
.item-desc { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.45; flex: 1; }
.item-price { font-size: 13px; margin: 6px 0 8px; }
.item-price strong { color: var(--primary-dark); font-size: 15px; }
.item-card .btn { min-height: 40px; font-size: 14px; padding: 0 12px; }

/* ---------- Order form ---------- */
.order-layout { display: grid; gap: 20px; align-items: start; }
.order-form { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.step { margin: 0; padding: 20px 16px 6px; min-width: 0; }
.step legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px;
  font-family: var(--font-heading); font-size: 19px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.step legend + * { clear: both; }
.step-no {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--primary-dark);
  display: inline-grid; place-items: center; font: 600 14px var(--font-body);
}
.field { margin-bottom: 16px; }
.field > label, .field-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--accent); }
.opt { color: var(--text-muted); font-weight: 400; font-size: 13px; }
input[type="text"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
  font: 16px var(--font-body); /* 16px stops iOS zoom */
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 80px; }
select {
  background-image: 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='%238C7378' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.invalid input, .invalid select, .invalid textarea, .invalid .pills, .invalid .phone { border-color: var(--accent) !important; }
.error { color: var(--accent); font-size: 13px; margin: 5px 0 0; min-height: 0; }
.error:empty { display: none; }
.hint { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; }
.hint.notice { color: var(--primary-dark); font-weight: 500; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; border-radius: var(--radius-sm); border: 1.5px solid transparent; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text);
  font: 500 14.5px var(--font-body); cursor: pointer;
}
.pill[aria-checked="true"] { background: var(--blush); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--blush-light); border: 1.5px solid var(--border); border-radius: 999px; padding: 4px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label {
  margin: 0; text-align: center; padding: 10px 8px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s;
}
.toggle input:checked + label { background: var(--white); color: var(--primary-dark); box-shadow: 0 2px 8px rgba(74,50,56,.1); font-weight: 600; }
.toggle input:focus-visible + label { outline: 2px solid var(--primary); }

.fixed-flavour {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--blush-light); border: 1.5px solid var(--border);
}
.fixed-check { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.fixed-flavour strong { display: block; font-size: 16px; color: var(--primary-dark); }
.fixed-flavour small { display: block; font-size: 12.5px; color: var(--text-muted); }
/* Item blocks in step 1 */
.line { border-radius: var(--radius-sm); margin: 0 -8px; padding: 0 8px; }
.line + .line { border-top: 1.5px dashed var(--border); padding-top: 16px; margin-top: 4px; }
.line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.line-title { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--primary-dark); }
.two-toggle { margin: -6px 0 16px; }
.add-line {
  width: 100%; min-height: 48px; margin: 4px 0 18px;
  border: 1.5px dashed var(--primary); border-radius: var(--radius-sm);
  background: var(--blush-light); color: var(--primary-dark);
  font: 600 15px var(--font-body); cursor: pointer;
}
.add-line:hover { background: var(--blush); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.phone { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.phone:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.phone-cc { display: grid; place-items: center; padding: 0 12px; background: var(--blush-light); color: var(--text-muted); font-weight: 500; border-right: 1.5px solid var(--border); }
.phone input { border: 0 !important; box-shadow: none !important; border-radius: 0; }

  display: block; border: 1.5px dashed var(--primary); border-radius: var(--radius-sm);
  background: var(--blush-light); padding: 16px; cursor: pointer; text-align: center; color: var(--primary-dark); font-weight: 500;
}

/* ---------- Summary ---------- */
.summary-aside { display: none; }
.summary-card { padding: 20px; }
.summary-card h3 { font-size: 20px; margin-bottom: 12px; }
.summary { margin: 0; display: grid; gap: 0; }
.summary-row { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--text-muted); }
.summary-row dd { margin: 0; font-weight: 500; word-break: break-word; }
.summary-row dd.empty { color: #c9b5b9; font-weight: 400; font-style: italic; }
.summary-foot { font-size: 12.5px; color: var(--text-muted); margin: 12px 0 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(74, 50, 56, .45); animation: fade .2s; }
.modal-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--white); border-radius: 24px 24px 0 0;
  padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
  animation: up .25s ease-out;
}
.modal-panel h3 { font-size: 24px; }
.modal-panel .section-sub { margin: 6px 0 12px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blush-light); font-size: 22px; cursor: pointer; color: var(--text); }
.modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; position: sticky; bottom: 0; background: var(--white); padding-top: 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Thank you ---------- */
.thanks {
  position: fixed; inset: 0; z-index: 120; overflow: auto;
  background: radial-gradient(circle at 50% 20%, var(--blush), var(--cream) 70%);
  display: grid; place-items: center; padding: 24px 16px; animation: fade .3s;
}
.thanks-inner { max-width: 420px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.thanks-icon { font-size: 64px; animation: pop .5s ease-out; }
.thanks h2 { font-size: 60px; color: var(--primary-dark); }
.thanks-msg { font-family: var(--font-heading); font-size: 20px; margin: 0; }
.thanks-id { margin: 0; color: var(--text-muted); }
.thanks .btn { width: 100%; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--blush); padding: 36px 16px 20px; margin-top: 24px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 20px; text-align: center; }
.footer-name { font-size: 42px; color: var(--primary-dark); display: block; line-height: 1.1; }
.footer-by { font-family: var(--font-heading); font-style: italic; color: var(--text-muted); }
.footer-tag { margin: 8px 0 0; font-size: 14px; }
.footer-links { display: grid; gap: 10px; justify-items: center; }
.footer-links .btn { width: 100%; max-width: 300px; }
.footer-loc { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px; }
.footer-small { text-align: center; font-size: 12px; color: var(--text-muted); margin: 24px 0 0; }
.footer-credit { text-align: center; font-size: 12.5px; margin: 6px 0 0; color: var(--text-muted); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.footer-credit a { color: var(--primary-dark); font-weight: 500; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .item-body { padding: 16px; }
  .item-name { font-size: 18px; }
  .item-desc { font-size: 13.5px; }
  .step { padding: 24px 24px 10px; }
  .modal { align-items: center; }
  .modal-panel { border-radius: 24px; padding: 28px; }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .site-header { padding: 0 32px; }
  .nav { display: flex; }
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 56px max(32px, calc((100% - 1180px) / 2)) 72px; gap: 48px; }
  .hero-media { order: 0; }
  .hero-media img { max-width: 460px; }
  .section { padding: 72px 32px; }
  .chips { justify-content: center; margin: 0 0 8px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .summary-aside { display: block; position: sticky; top: calc(var(--header-h) + 16px); }
  .footer-inner { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
  .footer-links { justify-items: end; }
}

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