:root {
  --orange: #f67438;
  --orange-dark: #d95a20;
  --cream: #f4eae6;
  --grey: #d9d9d9;
  --ink: #000000;
  --text: #1d1d1d;
  --muted: #6b6560;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #ebe3df;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --err: #c53030;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hidden { display: none !important; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.05s, background 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--cream); }
.btn-small { padding: 7px 14px; font-size: 0.875rem; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--orange-dark); font: inherit; cursor: pointer; text-decoration: underline; }

label { display: block; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey); border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246, 116, 56, 0.15); }
textarea { min-height: 110px; resize: vertical; }
.price-input { display: flex; align-items: center; gap: 6px; }
.price-input input { width: 110px; padding: 8px 10px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--grey); border-radius: 999px; transition: 0.15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::before { transform: translateX(20px); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
.flash-info { background: var(--cream); }
.flash-ok { background: #e6f4ea; color: #145c33; }
.flash-error { background: #fdecea; color: #8a1f1f; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: var(--cream); color: var(--ink); white-space: nowrap; }
.badge-draft { background: #eee; }
.badge-review { background: #fff4d6; color: #7a5300; }
.badge-changes { background: #fdecea; color: #8a1f1f; }
.badge-live { background: #e6f4ea; color: #145c33; }
.badge-paused { background: #eee; color: #555; }
.badge-new { background: #fff4d6; color: #7a5300; }
.badge-confirmed { background: #e3efff; color: #1d4f91; }
.badge-delivered { background: #e6f4ea; color: #145c33; }
.badge-declined, .badge-cancelled { background: #fdecea; color: #8a1f1f; }
.tag-have { background: #e6f4ea; color: #145c33; }
.tag-add { background: #fde6da; color: #8a3a12; }

table.list { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-weight: 500; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table-scroll { overflow-x: auto; }

.logo { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--orange); }

/* App shell (host + admin) */
.topbar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.topnav a.active, .topnav a:hover { background: var(--cream); }
main.app { padding: 28px 0 64px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 4px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 0.92rem; }

/* Onboarding steps */
.steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; overflow-x: auto; }
.steps li { flex: 1; min-width: 110px; }
.steps a, .steps span { display: block; padding: 10px 12px; border-radius: 10px; background: #f6f2f0; color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.steps .done a { color: var(--ink); }
.steps .done a::before { content: '✓ '; color: var(--ok); }
.steps .current a { background: var(--ink); color: #fff; }

.apt-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.apt-thumb { width: 96px; height: 96px; border-radius: 12px; background: var(--cream) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* Guide editor */
.section-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; margin-bottom: 14px; }
.section-editor .tools { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--cream); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo { position: relative; width: 88px; height: 88px; border-radius: 10px; background: var(--cream) center/cover no-repeat; }
.photo button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 0.8rem; }
.photo-add { width: 88px; height: 88px; border-radius: 10px; border: 1.5px dashed var(--grey); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 0.8rem; text-align: center; }
.photo-add input { display: none; }
.sticky-save { position: sticky; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 24px; }

/* Catalogue picker */
.cat-block { margin-bottom: 28px; }
.cat-block h2 { font-size: 1.5rem; display: flex; gap: 10px; align-items: center; }
.group-name { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 16px 0 8px; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #fff; }
.pick.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.pick-head { display: flex; gap: 12px; align-items: flex-start; }
.pick-head .name { font-weight: 500; }
.pick-body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.info { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); background: #fff; font: italic 700 0.8rem Georgia, serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 6px; flex: none; }
.tip { background: #fff7f2; border-left: 3px solid var(--orange); padding: 10px 12px; border-radius: 0 8px 8px 0; margin-top: 10px; font-size: 0.92rem; }

/* Landing */
.landing header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.landing header .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.hero { background: var(--cream); padding: 120px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.2rem; max-width: 540px; }
.phone { width: 280px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 36px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.phone .ph-top { background: var(--orange); color: #fff; padding: 20px 16px 16px; }
.phone .ph-top b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; display: block; }
.phone .ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.phone .ph-tile { background: var(--cream); border-radius: 12px; padding: 12px 10px; font-size: 0.8rem; }
.phone .ph-tile i { font-style: normal; font-size: 1.4rem; display: block; margin-bottom: 4px; }
.section { padding: 72px 0; }
.section-alt { background: #faf6f4; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--orange-dark); font-weight: 700; margin-bottom: 8px; }
.two-ways .card h3 { font-size: 1.6rem; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cat-tile .ic { font-size: 1.8rem; }
.cat-tile ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.88rem; color: var(--muted); }
.big-number { font-family: var(--serif); font-size: clamp(3rem, 10vw, 5.5rem); color: var(--orange); line-height: 1; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-band { background: var(--ink); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
footer.site { padding: 32px 0; font-size: 0.9rem; color: var(--muted); }
.price-card { border: 2px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.price-card.featured { border-color: var(--orange); }
.price-card .amount { font-family: var(--serif); font-size: 2.4rem; }

@media (max-width: 800px) {
  .hero { padding-top: 96px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}

/* Guest page */
.guest { background: #faf7f5; min-height: 100vh; }
.g-hero { background: var(--ink) center/cover no-repeat; color: #fff; padding: 0; position: relative; }
.g-hero .shade { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65)); padding: 80px 16px 24px; }
.g-hero h1 { color: #fff; font-size: 2rem; margin: 0; }
.g-hero p { margin: 4px 0 0; opacity: 0.9; }
.g-tabs { display: flex; background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.g-tabs button { flex: 1; padding: 14px; border: 0; background: none; font: 500 1rem var(--sans); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.g-tabs button.active { color: var(--ink); border-bottom-color: var(--orange); }
.g-body { max-width: 640px; margin: 0 auto; padding: 16px 16px 96px; }
.g-section { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); }
.g-section h2 { font-size: 1.35rem; }
.g-section .text { white-space: pre-line; }
.g-photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; }
.g-photos img { height: 140px; width: auto; border-radius: 10px; }
.g-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.g-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.g-tile .ic { font-size: 2rem; }
.g-tile b { font-weight: 500; }
.g-list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 8px; cursor: pointer; width: 100%; text-align: left; font: inherit; color: var(--text); }
.g-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.g-radio.selected { border-color: var(--orange); background: #fff7f2; }
.g-radio input { margin-top: 4px; accent-color: var(--orange); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--grey); background: #fff; font-size: 1.1rem; cursor: pointer; }
.stepper span { min-width: 24px; text-align: center; font-weight: 500; }
.g-bottom { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; z-index: 20; }
.g-bottom .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.g-total { font-weight: 700; font-size: 1.1rem; }
.delivered-by { font-size: 0.82rem; color: var(--muted); }
.g-footer { text-align: center; font-size: 0.85rem; color: var(--muted); padding: 24px 0; }

/* QR print card */
.qr-card { width: 340px; border: 2px solid var(--ink); border-radius: 20px; padding: 24px; text-align: center; margin: 0 auto; background: #fff; }
.qr-card svg { width: 220px; height: 220px; margin: 12px auto; }
@media print { .no-print { display: none !important; } body { background: #fff; } }
