/* =========================================================
   Em'z Salon — styles
   Palette pulled from the logo: hot pink, crimson, ruby, blush
   ========================================================= */

:root {
  --ruby: #a8123c;
  --crimson: #d5173f;
  --hot-pink: #ec3f7f;
  --rose: #ff7fae;
  --petal: #ffd3e2;
  --blush: #ffeaf1;
  --snow: #fff8fa;
  --ink: #3d0b1c;
  --muted: #8a5a69;
  --line: #f4c6d6;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Quicksand", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(168, 18, 60, .35);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

h1, h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  color: var(--ruby);
}

:focus-visible {
  outline: 3px solid var(--hot-pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ruby); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  font: 700 1rem/1 var(--font-body);
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--ruby));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(213, 23, 63, .7);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--hot-pink), var(--crimson)); }

.btn-light { background: #fff; color: var(--ruby); border-color: var(--line); }
.btn-light:hover { border-color: var(--hot-pink); background: var(--blush); }

.btn-danger { background: #fff; color: var(--crimson); border-color: var(--crimson); }
.btn-danger:hover { background: var(--crimson); color: #fff; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 1rem var(--font-body); color: var(--ruby); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--hot-pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 1.45rem; color: var(--ruby); white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: .4rem; }
.site-nav a {
  text-decoration: none; font-weight: 600; color: var(--muted);
  padding: .5rem .85rem; border-radius: 10px; position: relative;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--crimson); }
.site-nav a.active { color: var(--ruby); font-weight: 700; }
.site-nav a.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--hot-pink);
}
.nav-book { margin-left: .8rem; padding: .8rem 1.3rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ruby); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(700px 400px at 85% 20%, var(--petal), transparent 70%),
    linear-gradient(160deg, var(--blush) 0%, #ffd9e6 100%);
  overflow: hidden;
}
.hero-inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem;
  padding: 4.5rem 0 7rem;
}
.hero-kicker {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  color: var(--hot-pink); font-size: 1.25rem; margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); letter-spacing: -.01em; margin-bottom: 1.2rem; }
.hero-text { max-width: 34ch; font-size: 1.15rem; font-weight: 500; color: var(--ruby); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-disc {
  width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(168, 18, 60, .5), 0 0 0 10px rgba(255, 255, 255, .55);
  animation: bloom .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.spark {
  position: absolute; width: 26px; height: 26px; background: var(--crimson);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3.2s ease-in-out infinite;
}
.s1 { top: 4%; left: 8%; }
.s2 { bottom: 12%; right: 2%; width: 34px; height: 34px; background: var(--hot-pink); animation-delay: 1s; }
.s3 { top: 30%; right: -2%; width: 18px; height: 18px; background: var(--rose); animation-delay: 2s; }

.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; }

@keyframes bloom { from { opacity: 0; transform: scale(.88) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-tint { background: linear-gradient(180deg, var(--snow), var(--blush)); }

.section-head { margin-bottom: 2rem; max-width: 60ch; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head.row > div { max-width: 60ch; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.search {
  flex: 1 1 320px; display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 0 1.1rem;
  transition: border-color .15s, box-shadow .15s;
}
.search.wide { margin-bottom: 1.8rem; max-width: 560px; }
.search:focus-within { border-color: var(--hot-pink); box-shadow: 0 0 0 4px rgba(236, 63, 127, .15); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--hot-pink); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent; padding: 1rem 0;
  font: 500 1rem var(--font-body); color: var(--ink);
}

.chips { display: flex; gap: .5rem; }
.chip {
  font: 700 .95rem var(--font-body); padding: .7rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--ruby); cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--hot-pink); }
.chip.is-on { background: var(--ruby); border-color: var(--ruby); color: #fff; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.8rem; }

.card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #fff 0%, var(--blush) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -18px rgba(168, 18, 60, .45); }

.art {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9; display: grid; place-items: center;
}
.art svg { width: 54%; height: 78%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(120, 0, 40, .25)); }
.art.t1 { background: linear-gradient(135deg, #ff7fae, #d5173f); }
.art.t2 { background: linear-gradient(135deg, #ec3f7f, #a8123c); }
.art.t3 { background: linear-gradient(135deg, #ffa3c4, #ec3f7f); }
.art.t4 { background: linear-gradient(135deg, #d5173f, #7d0b2d); }
.art.t5 { background: linear-gradient(135deg, #ff9ec0, #e0285f); }
.art.t6 { background: linear-gradient(135deg, #ec3f7f, #c2185b); }
.art::before, .art::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.art::before { width: 120px; height: 120px; top: -40px; right: -30px; }
.art::after { width: 70px; height: 70px; bottom: -24px; left: 12px; }

.card h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; color: var(--ruby);
  margin: 1rem .3rem .3rem;
}
.card .meta { margin: 0 .3rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.card .price { margin: .6rem .3rem 1rem; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.card .actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.card .actions .btn { padding: .8rem 1rem; }

.empty { text-align: center; color: var(--muted); padding: 2rem 0; font-weight: 600; }

/* ---------- Bookings ---------- */
.booking-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.booking-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem;
}
.booking-card .art { aspect-ratio: 16 / 8; margin-bottom: .6rem; }
.booking-card h3 { font-family: var(--font-body); font-size: 1.2rem; color: var(--ruby); }
.booking-card p { margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.booking-card .price { color: var(--ink); font-size: 1.15rem; font-weight: 700; }
.booking-card .btn { margin-top: .8rem; padding: .75rem 1rem; }

.status-pill {
  display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; background: var(--petal); color: var(--ruby);
}
.status-pill.cancelled { background: #eee; color: #777; }
.booking-card.is-cancelled { opacity: .7; }
.booking-card.is-cancelled .art { filter: grayscale(1); }

.empty-box {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem;
  border: 2px dashed var(--rose); border-radius: var(--radius); background: rgba(255, 255, 255, .6);
}
.empty-box p { color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }

/* ---------- Reviews ---------- */
.review-list { display: grid; gap: 1.2rem; max-width: 880px; }
.review {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: center;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem 1rem 1rem;
}
.review .art { aspect-ratio: 1; border-radius: 16px; }
.review .art svg { width: 62%; height: 62%; }
.review-top { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.review h3 { font-family: var(--font-body); font-size: 1.15rem; color: var(--ink); }
.review .from { font-size: .85rem; color: var(--muted); font-weight: 600; }
.review .stars-static { color: var(--hot-pink); letter-spacing: 2px; font-size: 1rem; margin-left: auto; }
.review .stars-static .off { color: var(--petal); }
.review p { margin: .3rem 0 0; color: #6b3a4a; }

/* ---------- About / FAQ ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about-grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.lead { font-size: 1.25rem; font-weight: 600; color: var(--ruby); }
.about-icons img { border-radius: 50%; margin-top: 1rem; box-shadow: var(--shadow); }

.faq { display: grid; gap: .8rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 1.3rem;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--rose); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ruby); padding: 1.1rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--hot-pink); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ruby); color: #ffe3ec; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.footer-brand img { border-radius: 50%; background: #fff; margin-bottom: .8rem; }
.footer-brand p { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.15rem; }
.site-footer h3 { font-family: var(--font-body); font-size: 1.05rem; color: #fff; margin-bottom: .9rem; }
.site-footer a, .site-footer .link-btn {
  display: block; color: #ffe3ec; text-decoration: none; margin-bottom: .55rem; font-weight: 500; text-align: left;
}
.site-footer .link-btn { text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: .7rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0;
  background: rgba(255, 255, 255, .14); transition: background .15s, transform .15s;
}
.socials a:hover { background: var(--hot-pink); transform: translateY(-2px); text-decoration: none; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copyright { text-align: center; margin: 2.5rem 0 0; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; }

/* ---------- Dialogs ---------- */
.modal {
  border: 0; border-radius: 26px; padding: 2rem; width: min(94vw, 560px); max-height: 92vh;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(80, 0, 30, .55);
  overflow-y: auto;
}
.modal[open] { animation: pop .22s ease-out; }
.modal::backdrop { background: rgba(80, 8, 32, .5); backdrop-filter: blur(3px); }
.modal-wide { width: min(96vw, 1000px); }
.modal-small { width: min(94vw, 440px); }
.modal-center { text-align: center; }
.modal h2 { font-size: 2rem; margin-bottom: 1rem; padding-right: 2rem; }
.modal-center h2 { padding: 0; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--blush); color: var(--ruby); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--petal); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.btn-row { display: flex; gap: .8rem; margin-top: 1.6rem; }
.btn-row .btn { flex: 1; }
.btn-row.wrap { flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.muted { color: var(--muted); }

/* Detail dialog */
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.detail-art { border-radius: 18px; overflow: hidden; }
.detail-art .art { aspect-ratio: 16 / 10; border-radius: 18px; }
.detail-art.small .art { aspect-ratio: 16 / 7; }
.detail-main h2 { margin-top: 1.2rem; font-size: 2.4rem; }
.detail-desc { color: var(--ruby); font-size: 1.1rem; }
.detail-time { color: var(--muted); font-size: 1.3rem; font-weight: 500; margin-bottom: .2rem; }
.detail-price { font-size: 2rem; font-weight: 700; margin: 0; }

.detail-reviews {
  border-left: 3px solid var(--rose); padding-left: 1.6rem; display: flex; flex-direction: column; gap: 1rem;
}
.detail-reviews h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.9rem; color: var(--ruby); }
#detailReviews { display: grid; gap: .8rem; max-height: 340px; overflow-y: auto; padding-right: .3rem; }
.mini-review { background: var(--blush); border-radius: 14px; padding: .8rem 1rem; }
.mini-review strong { display: block; font-size: .98rem; }
.mini-review .from { font-size: .8rem; color: var(--muted); font-weight: 600; }
.mini-review .stars-static { color: var(--hot-pink); font-size: .9rem; letter-spacing: 2px; }
.mini-review .stars-static .off { color: var(--petal); }
.mini-review p { margin: .3rem 0 0; font-size: .92rem; }
.detail-reviews .link-btn { align-self: flex-start; }

/* Forms */
fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
legend { font-weight: 700; color: var(--ruby); font-size: 1.1rem; margin-bottom: .7rem; padding: 0; }

.pick-list { display: grid; gap: .6rem; }
.pick {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s;
}
.pick:hover { border-color: var(--rose); }
.pick:has(input:checked) { border-color: var(--hot-pink); background: var(--blush); }
.pick input { width: 20px; height: 20px; accent-color: var(--crimson); flex: none; }
.pick strong { display: block; color: var(--ruby); }
.pick small { color: var(--muted); font-weight: 600; }
.pick .p { margin-left: auto; font-weight: 700; }

.field { display: grid; gap: .4rem; margin-bottom: 1rem; font-weight: 700; color: var(--ruby); font-size: .98rem; }
.field input, .field select, .field textarea {
  font: 500 1rem var(--font-body); color: var(--ink); width: 100%;
  padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--hot-pink); box-shadow: 0 0 0 4px rgba(236, 63, 127, .15);
}
.field textarea { resize: vertical; }
.field-error { color: var(--crimson); font-size: .88rem; font-weight: 600; margin: .3rem 0 0; }
.field-error[hidden] { display: none; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--crimson); }

.totals { background: var(--blush); border-radius: 16px; padding: 1rem 1.2rem; display: grid; gap: .4rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.4rem; color: var(--ruby); border-top: 1px dashed var(--rose); padding-top: .5rem; margin-top: .2rem; }

/* Calendar */
.calendar { border: 2px solid var(--line); border-radius: 18px; padding: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head strong { color: var(--ruby); font-size: 1.1rem; }
.cal-head button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blush); color: var(--ruby);
  font-size: 1.2rem; cursor: pointer;
}
.cal-head button:hover:not(:disabled) { background: var(--petal); }
.cal-head button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .8rem; font-weight: 700; color: var(--muted); padding: .3rem 0; }
.cal-grid button {
  aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font: 600 .95rem var(--font-body);
  color: var(--ink); cursor: pointer; transition: background .12s;
}
.cal-grid button:hover:not(:disabled) { background: var(--petal); }
.cal-grid button:disabled { color: #d9b9c4; cursor: not-allowed; }
.cal-grid button.today { box-shadow: inset 0 0 0 2px var(--rose); }
.cal-grid button.sel { background: var(--crimson); color: #fff; }
.picked-date { margin: .7rem 0 0; font-weight: 700; color: var(--ruby); }

/* Rating */
.rating-field { margin-bottom: 1rem; }
.stars { display: flex; gap: .2rem; }
.stars button {
  background: none; border: 0; font-size: 2.2rem; line-height: 1; color: var(--petal); cursor: pointer; padding: 0 .1rem;
  transition: transform .12s, color .12s;
}
.stars button.on { color: var(--hot-pink); }
.stars button:hover { transform: scale(1.15); }

/* Success */
.success-badge {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--hot-pink), var(--crimson));
  box-shadow: 0 14px 30px -10px rgba(213, 23, 63, .7);
}
.success-badge svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-line { font-size: 1.3rem; color: var(--muted); margin-bottom: .4rem; }
.success-total { font-size: 1.8rem; font-weight: 700; color: var(--ruby); margin-bottom: .4rem; }

/* Manage dialog */
.facts { display: grid; gap: .6rem; margin: 1rem 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

.terms { padding-left: 1.2rem; display: grid; gap: .7rem; color: #6b3a4a; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ruby); color: #fff; padding: .9rem 1.4rem; border-radius: 14px; font-weight: 700;
  box-shadow: var(--shadow); z-index: 200; transition: opacity .25s, transform .25s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.4rem; gap: .2rem;
    display: none; box-shadow: 0 20px 30px -20px rgba(168, 18, 60, .4);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .6rem; }
  .site-nav a.active::after { left: .6rem; right: auto; width: 28px; }
  .nav-book { margin: .6rem 0 0; }

  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0 6rem; text-align: left; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-reviews { border-left: 0; border-top: 3px solid var(--rose); padding: 1.4rem 0 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .brand span { font-size: 1.2rem; }
  .review { grid-template-columns: 1fr; }
  .review .art { aspect-ratio: 16 / 7; }
  .review .stars-static { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 1.4rem; }
  .btn-row { flex-direction: column-reverse; }
}

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

/* ---------- Inner page banner ---------- */
.page-hero {
  background:
    radial-gradient(520px 260px at 90% 0%, var(--petal), transparent 70%),
    linear-gradient(160deg, var(--blush) 0%, #ffd9e6 100%);
  padding: 3.2rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .5rem; }
.page-hero p { margin: 0; max-width: 56ch; color: var(--ruby); font-weight: 500; font-size: 1.1rem; }

.center-row { display: flex; justify-content: center; margin-top: 2.6rem; }
.toolbar.end { justify-content: flex-end; }
.page-hero + .section { padding-top: 3rem; }

/* ========== Mockup alignment (landing + shared) ========== */
.site-header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 rgba(168,18,60,.06); }
.site-nav a { font-weight: 500; }
.site-nav a.active { font-weight: 600; }
.site-nav a.active::after { height: 2px; background: var(--crimson); }
.nav-book { text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; padding: .8rem 1.5rem; border-radius: 8px; box-shadow: none; }

.hero { background: linear-gradient(160deg, #ffe7ef 0%, #ffdae6 100%); }
.hero-inner { padding: 3.5rem 0 3.5rem; }
.hero h1 { font-weight: 900; }
.hero-text { color: var(--ruby); font-weight: 500; }
.hero-disc { background: #fff; padding: 0; box-shadow: 0 0 0 28px rgba(255,255,255,.55); animation: none; width: min(100%, 360px); }
.hero .btn { border-radius: 12px; font-weight: 600; box-shadow: none; }
.hero .btn-light { border-color: var(--line); }

.section-head h2, .plain-h { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.25rem); color: var(--ruby); }
#services .container { width: min(100% - 2.5rem, 1070px); }
.card { background: linear-gradient(160deg, #ffdde8 0%, #ffd0e0 100%); border: 0; box-shadow: none; border-radius: 22px; padding: .9rem; }
.card:hover { transform: none; box-shadow: none; }
.art, .card .art { background: rgba(255,255,255,.72); border-radius: 8px; aspect-ratio: 2 / 1; }
.art::before, .art::after { display: none; }
.art svg { stroke: var(--ruby); stroke-width: 2; width: 12%; height: auto; filter: none; }
.card h3 { font-weight: 600; font-size: 1.25rem; margin: 1.1rem .3rem 1rem; }
.card .meta { font-weight: 400; font-size: .8rem; }
.card .price { font-size: 1rem; margin: .7rem .3rem .8rem; }
.card .actions .btn { border: 0; border-radius: 8px; font-size: .8rem; font-weight: 500; padding: .6rem .8rem; box-shadow: none; }

.btn-pill { background: #fff; color: var(--ruby); border: 1.5px solid var(--crimson); border-radius: 999px; padding: .6rem 1.4rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.btn-pill:hover { background: var(--blush); }
.btn-pill-sm { text-transform: none; border-color: var(--line); border-radius: 10px; font-size: .78rem; gap: .5rem; padding: .6rem 1rem; }
.btn-pill svg { width: 15px; height: 15px; fill: none; stroke: var(--ruby); stroke-width: 2; }

.how { background: linear-gradient(160deg, #ffe7ef, #ffdae6); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0 1.6rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem 1.3rem; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--ruby); color: #fff; display: grid; place-items: center; font: 700 .8rem var(--font-display); margin-bottom: .9rem; }
.step h3 { font-family: var(--font-body); font-size: 1rem; color: var(--ruby); margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.home-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home-review { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem 1.3rem; }
.home-review p { margin: 0; font-size: 1rem; }
.hr-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.hr-top strong { color: var(--ruby); font-size: .95rem; }
.hr-top .stars-static { margin-left: auto; color: var(--ruby); font-size: .95rem; letter-spacing: 1px; }
.hr-top .stars-static .off { color: var(--petal); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--petal); color: var(--ruby); display: grid; place-items: center; font-size: .7rem; font-weight: 600; flex: none; }
.hr-meta { color: var(--muted); font-size: .85rem !important; margin-bottom: .5rem !important; }

@media (max-width: 860px) { .steps, .home-reviews { grid-template-columns: 1fr; } .hero-disc { box-shadow: 0 0 0 14px rgba(255,255,255,.55); } }

/* ========== Inner pages (Search / Services / Bookings / About / Reviews) ========== */
body:not(:has(.hero)) { background: linear-gradient(160deg, #ffe7ef 0%, #ffdae6 100%) fixed; }
body:not(:has(.hero)) .section-head h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; }
body:not(:has(.hero)) .section-head p { font-size: .95rem; }
body:not(:has(.hero)) .section { padding: 3rem 0 4rem; }
body:not(:has(.hero)) .container { width: min(100% - 2.5rem, 1070px); }
.search, .search.wide { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; }
.chip { border: 0; background: #fff; font-weight: 500; font-size: .8rem; padding: .45rem 1rem; }
.chip.is-on { background: var(--ruby); }
.booking-card, .review, .faq details { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: none; }
.review { grid-template-columns: 1fr; }
.review .art { display: none; }
.status-pill { background: #fff0c9; color: #7a5200; }
.btn-primary { border-radius: 8px; box-shadow: none; }
.btn-light { border-radius: 8px; }

/* ===== Page layouts from mockup ===== */
.page-hero { padding: 2.5rem 0 0; }
.page-hero h1 { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--ruby); }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: .95rem; margin: .3rem 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem !important; font-weight: 600; color: var(--muted) !important; margin: 0 0 .4rem !important; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.plain-h.sm { font-size: 1.5rem; }
.about-intro { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; margin: 0 0 1.4rem; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.info-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.info-card h3 { font-family: var(--font-body); color: var(--ruby); font-size: 1rem; margin: .7rem 0 .4rem; }
.info-card p { color: var(--muted); font-size: .85rem; margin: 0 0 .8rem; }
.ico { width: 34px; height: 34px; border-radius: 8px; background: var(--petal); display: grid; place-items: center; }
.ico svg { width: 17px; height: 17px; fill: none; stroke: var(--ruby); stroke-width: 2; }
.mini-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.mini-row .btn { padding: .4rem .8rem; font-size: .75rem; border-radius: 6px; }
.about-grid { grid-template-columns: 1fr; gap: 2rem; }
.rev-summary { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; align-items: center; }
.rs-score strong { display: block; font: 900 italic 2.8rem var(--font-display); color: var(--ruby); }
.rs-score .stars-static { color: var(--ruby); font-size: .8rem; }
.rs-score small { display: block; color: var(--muted); margin-top: .3rem; }
.rs-bars div { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: .6rem; font-size: .75rem; color: var(--muted); }
.rs-bars i { height: 6px; background: var(--petal); border-radius: 4px; overflow: hidden; }
.rs-bars b { display: block; height: 100%; background: var(--ruby); }
.review-list { max-width: none; grid-template-columns: repeat(3, 1fr); }
.booking-list { grid-template-columns: 1fr; }
@media (max-width: 860px) { .info-cards, .review-list, .rev-summary { grid-template-columns: 1fr; } }

/* ===== Bookings lookup + dialogs (mockup) ===== */
.bk-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.lookup-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.3rem; }
.lookup-card h2 { font: 700 1rem var(--font-body); font-style: normal; color: var(--ruby); margin-bottom: .5rem; }
.lookup-card p { font-size: .75rem; color: var(--muted); }
.lookup-card .btn { width: 100%; gap: .4rem; font-size: .85rem; }
.lookup-card .btn svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; }
.req { color: var(--crimson); }
.bk-tools { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.bk-tools .search { flex: 1; padding: 0 .9rem; border-radius: 8px; }
.bk-tools .search input { padding: .6rem 0; font-size: .85rem; }
.booking-card.row { flex-direction: row; align-items: center; gap: 1rem; padding: .9rem 1.1rem; }
.date-badge { width: 44px; height: 44px; border-radius: 8px; background: var(--ruby); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.date-badge small { font-size: .7rem; }
.bk-main { flex: 1; } .bk-main h3 { font-size: .95rem; margin: 0; } .bk-main p { font-size: .75rem; }
.booking-card.row .btn { margin: 0; padding: .4rem 1rem; font-size: .75rem; }
.modal { border-radius: 16px; background: #fff; box-shadow: 0 20px 60px -20px rgba(168,18,60,.35); }
.modal::backdrop { background: rgba(255, 220, 232, .85); backdrop-filter: none; }
.modal h2 { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 1.6rem; color: var(--ruby); }
.success-badge { width: 56px; height: 56px; background: #dff5e6; margin-inline: auto; }
.success-badge svg { stroke: #1d6b3a; }
.btn-danger { background: #a8123c; color: #fff; border-color: #a8123c; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; font-size: .85rem; padding: .25rem 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .bk-layout { grid-template-columns: 1fr; } }

/* ===== Booking flow pages + search ===== */
body:has(.flow) { background: linear-gradient(160deg, #ffe7ef 0%, #ffd3e2 100%) fixed; }
.flow { padding: 1.5rem 0 4rem; }
.container.narrow { width: min(100% - 2.5rem, 1070px); }
.btn-sm { padding: .35rem .8rem; font-size: .72rem; border-radius: 6px; }
.back { margin-bottom: 1rem; }
.flow-h { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ruby); margin-bottom: 1rem; }
.flow-h.sm { font-size: 1.6rem; }
.sub { color: var(--muted); font-size: .8rem; margin: 0 0 .8rem; }
.flow-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; align-items: start; }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.3rem; margin-bottom: 1.1rem; }
.panel h2 { font: 700 1.05rem var(--font-body); font-style: normal; color: var(--ruby); display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.n { width: 22px; height: 22px; border-radius: 50%; background: var(--ruby); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.grp { text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; color: var(--muted); margin: 1rem 0 .4rem; }
.pick { display: grid; grid-template-columns: 22px 1fr auto; gap: .7rem; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin-bottom: .45rem; cursor: pointer; }
.pick.on { border-color: var(--ruby); background: var(--blush); }
.pick input { position: absolute; opacity: 0; } .pick small { display: block; color: var(--muted); font-size: .7rem; } .pick strong { font-size: .85rem; } .pick .p { font-weight: 700; color: var(--ruby); font-size: .85rem; }
.box { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); } .pick.on .box { background: var(--ruby); border-color: var(--ruby); box-shadow: inset 0 0 0 3px #fff; }
.calendar { max-width: 340px; } .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; } .cal-head button { border: 0; background: var(--blush); border-radius: 8px; width: 30px; height: 30px; color: var(--ruby); cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; } .dow { font-size: .65rem; color: var(--muted); }
.cal-grid button { aspect-ratio: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; color: var(--ink); cursor: pointer; } .cal-grid button:disabled { color: #d9b9c4; border-color: transparent; background: transparent; cursor: not-allowed; } .cal-grid button.sel { background: var(--ruby); color: #fff; border-color: var(--ruby); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .hint { color: var(--muted); font-size: .68rem; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: .65rem .8rem; font: 500 .9rem var(--font-body); }
.notice { background: var(--blush); border: 1.5px solid var(--petal); border-radius: 8px; padding: .7rem .9rem; font-size: .8rem; color: var(--ruby); }
.summary { position: sticky; top: 90px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.summary h3 { font: 700 1rem var(--font-body); color: var(--ruby); margin-bottom: .6rem; } .summary small { display: block; text-align: center; color: var(--muted); font-size: .68rem; margin-top: .6rem; }
.sum-list { font-size: .8rem; color: var(--muted); } .sum-row { display: flex; justify-content: space-between; font-size: .8rem; padding: .15rem 0; }
.sum-date { background: var(--blush); border: 1px solid var(--petal); border-radius: 6px; padding: .45rem .7rem; font-size: .75rem; color: var(--muted); margin: .6rem 0; }
.sum-total { display: flex; justify-content: space-between; border-top: 2px solid var(--line); margin: .5rem 0 .9rem; padding-top: .5rem; color: var(--ruby); font-weight: 700; } .summary .btn { width: 100%; }
.card-sm { max-width: 520px; margin-inline: auto; } .code { display: inline-block; background: var(--petal); color: var(--ruby); border-radius: 999px; padding: .15rem .8rem; font-size: .72rem; font-weight: 700; margin-bottom: .8rem; }
.card-sm .btn-row .btn { font-size: .8rem; padding: .6rem 1rem; } .card-sm .btn-row { flex-wrap: wrap; }
.results { display: grid; gap: .6rem; margin-top: 1.4rem; } .res { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem 1rem; text-decoration: none; color: var(--ink); } .res small { display: block; color: var(--muted); } .res b { color: var(--ruby); }
@media (max-width: 860px) { .flow-grid, .two { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---- Booking page: match mockup ---- */
.calendar { border: 0; padding: 0; max-width: 100%; margin-top: .8rem; }
.cal-grid { grid-template-columns: repeat(7, 46px); gap: 8px; justify-content: start; }
.cal-grid .dow { font-size: .65rem; padding: .2rem 0; }
.cal-grid button { width: 46px; height: 46px; aspect-ratio: auto; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-size: .8rem; padding: 0; }
.cal-grid button small { font-size: .5rem; font-weight: 700; letter-spacing: .04em; }
.cal-grid button:disabled { border: 1.5px dashed var(--line); background: transparent; color: #cdb3bb; }
.cal-grid button.sel { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.cal-grid i { width: 46px; height: 46px; }
.box { border-radius: 6px !important; }
.pick.on .box { box-shadow: none; background: var(--ruby) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/80% no-repeat; }
.pick .p { margin-left: 0; }
.sum-date { display: flex; align-items: center; gap: .5rem; }
.sum-date svg, .notice svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.sum-total strong { font: italic 900 1.25rem "Playfair Display", serif; }
.sum-row { color: var(--muted); }
.sum-list .sum-row { color: var(--ink); }
.notice { display: flex; gap: .6rem; align-items: flex-start; }
.card-sm { margin-inline: 0; }
.success-badge { margin-inline: 0; }
.facts div { grid-template-columns: 130px 1fr; font-size: .95rem; }
.facts dd { text-align: left; }
#vForm ~ section .btn-light, #editBk { border-color: var(--ruby); color: var(--ruby); }
#cancelBk { border-color: var(--line); color: var(--ink); }
.code { border: 1.5px dashed var(--ruby); font-family: ui-monospace, Menlo, monospace; }
@media (max-width: 600px) { .cal-grid { grid-template-columns: repeat(7, 1fr); } .cal-grid button, .cal-grid i { width: auto; height: auto; aspect-ratio: 1; } }

/* ===== Alignment pass: match mockups ===== */
/* Header: logo + nav on the left, Book now on the far right, wider gutters */
.header-inner { width: min(100% - 4rem, 1280px); min-height: 56px; gap: 2rem; }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 1.1rem; }
.site-nav { flex: 1; gap: .2rem; }
.site-nav a { font-size: .85rem; padding: .4rem .7rem; }
.site-nav a.active::after { left: .7rem; right: .7rem; bottom: 0; }
.nav-book { margin-left: auto; font-size: .72rem; padding: .65rem 1.3rem; }
.site-header { backdrop-filter: none; }

/* One consistent content width on every page */
.container, body:not(:has(.hero)) .container, #services .container, .container.narrow { width: min(100% - 2.5rem, 1070px); }
.hero-inner { width: min(100% - 4rem, 1280px); }

/* Inner pages: one continuous pink background, no banner band */
body:not(:has(.hero)), body:has(.flow) { background: linear-gradient(160deg, #ffe7ef 0%, #ffd3e2 100%); background-attachment: scroll; min-height: 100vh; }
.page-hero { background: none; border-bottom: 0; padding: 2.2rem 0 0; }
.page-hero h1 { margin-bottom: .2rem; }
.page-hero + .section { padding-top: 1.2rem; }

/* Buttons flat like the mockups */
.btn-primary, .btn-primary:hover { background: var(--ruby); }
.btn-primary:hover { background: var(--crimson); }
.hero .btn-primary { background: linear-gradient(135deg, var(--crimson), var(--ruby)); }

/* Toolbar: search + chips on one line */
.toolbar { gap: .6rem; margin-bottom: 1.2rem; }
.toolbar .search { flex: 1 1 260px; max-width: none; }
.chips { flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); }
.chip.is-on { border-color: var(--ruby); }

/* Footer breathing room and alignment */
.site-footer { margin-top: 0; }
.footer-grid { align-items: start; }
.footer-brand p { font-size: 1rem; }
.chip .cnt { display:inline-block; min-width:1.3em; margin-left:.3rem; padding:0 .35em; border-radius:999px; background:var(--petal); color:var(--ruby); font-size:.68rem; font-weight:700; }
.chip.is-on .cnt { background:rgba(255,255,255,.25); color:#fff; }
.head-row .btn { padding: .65rem 1.2rem; font-size: .8rem; }

/* Inner-page sections must not repaint a lighter band over the page gradient */
body:not(:has(.hero)) .section-tint { background: none; }
.lookup-card .field { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .8rem; }
.lookup-card .field input { display: block; margin-top: .35rem; }
.lookup-card h2 { font-size: 1.1rem; }
.empty-box { background: rgba(255,255,255,.55); border-color: var(--rose); }
.empty-box p { font-size: 1rem; }
.bk-layout { grid-template-columns: 280px 1fr; }

/* Form labels: text + required star on one line, input underneath */
.panel .field, .modal .field { display: block; font-size: .78rem; font-weight: 600; }
.panel .field input, .panel .field select, .modal .field input, .modal .field select, .modal .field textarea { display: block; margin-top: .35rem; }
.panel .field .hint, .panel .field .field-error { display: block; margin-top: .4rem; }
.pick strong { color: var(--ink); font-weight: 600; }
.pick small { font-weight: 400; }
.notice:empty { display: none; }
.flow-grid { grid-template-columns: 1fr 290px; }

/* About page: section headings and intro width */
body:not(:has(.hero)) .plain-h, body:not(:has(.hero)) .section-head.row h2, .about-grid h2 { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 1.35rem; color: var(--ruby); }
body:not(:has(.hero)) .section-head.row { align-items: center; margin-bottom: 1rem; }
.about-intro { max-width: 700px; font-size: .9rem; }
.info-card { min-height: 150px; }
.mini-row .btn { font-weight: 500; }
.faq summary { font-size: .95rem; }

/* ---------- Team links in the public header (shown only when admin/staff is signed in) ---------- */
.site-nav .team-link {
  font: inherit; font-weight: 600; color: var(--crimson); background: none; border: 0; cursor: pointer;
  text-decoration: none; padding: .4rem .7rem; border-radius: 10px; font-size: .85rem;
}
.site-nav .team-link:hover { background: var(--petal); }
.site-nav .team-logout { color: var(--muted); }
.site-nav .team-logout:hover { color: var(--crimson); }
@media (max-width: 900px) {
  .site-nav .team-link { text-align: left; padding: .8rem .6rem; font-size: 1rem; }
}

/* ---------- Keep the footer at the bottom of the screen on short pages (e.g. Search) ---------- */
body:has(.site-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(.site-footer) > main { flex: 1 0 auto; }
body:has(.site-footer) > .site-footer { flex-shrink: 0; }

/* Track Order */
.trk-ref { font-family: ui-monospace, Menlo, monospace; font-size: .8rem !important; color: var(--ruby) !important; }
.track-wrap { max-width: 560px; margin-inline: auto; }
.track-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.track-form input { flex: 1 1 200px; text-transform: uppercase; letter-spacing: .05em; }
.track-result { margin-top: 1.5rem; }
.track-steps { display: flex; gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; }
.track-steps li { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: .4rem; }
.track-steps li.on { color: var(--ruby); border-color: var(--ruby); }
.track-steps.bad li.on { color: #777; border-color: #999; }
#successRef { margin: .3rem auto; }

.track-line { margin: .3rem 0 .8rem; font-weight: 700; color: var(--ruby); font-size: 1.05rem; }
.track-line strong { font-family: ui-monospace, Menlo, monospace; color: var(--ink); }

/* Time slots */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.time-slot { padding: .7rem .5rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer; }
.time-slot:hover { border-color: var(--ruby); }
.time-slot.sel { background: var(--ruby); border-color: var(--ruby); color: #fff; }

.chg-box { margin-top: 1.2rem; padding-top: 1rem; border-top: 1.5px dashed var(--line); }
.chg-box h3 { color: var(--ruby); margin: 0 0 .6rem; }
.chg-box .time-grid, .chg-box .calendar { margin: .8rem 0; }

/* Contact / concerns */
.msgs { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0; }
.msg { max-width: 88%; padding: .65rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.msg small { display: block; font-size: .7rem; color: var(--muted); margin-bottom: .2rem; }
.msg p { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--blush); border-color: var(--petal); }
.msg.admin { align-self: flex-start; }
.lookup-card .field textarea { display: block; margin-top: .35rem; }
.panel .field textarea { display: block; margin-top: .35rem; }
.status-pill.done { background: #dff5e6; color: #1d6b3a; }


/* =====================================================================
   Mobile + navigation overhaul (kept last so it wins over earlier rules)
   ===================================================================== */

/* Bigger, easier tap targets everywhere */
.btn { min-height: 46px; }
.chip, .time-slot { min-height: 44px; }
.link-btn { padding: .35rem 0; }

/* Footer: every main page is one tap away */
.footer-grid nav a, .footer-grid nav .link-btn { display: block; padding: .3rem 0; }

/* Bottom tab bar (injected by js/script.js, phones/tablets only) */
.m-tabs { display: none; }

@media (max-width: 900px) {
  /* Header + dropdown menu */
  .header-inner { min-height: 64px; width: min(100% - 2rem, var(--maxw)); }
  .brand img { width: 42px; height: 42px; }
  .nav-toggle { width: 48px; height: 48px; }
  .site-nav {
    max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
    padding: .6rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); gap: 0;
  }
  .site-nav a, .site-nav .team-link {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 54px; padding: .5rem .4rem; font-size: 1.08rem; color: var(--ink);
    border-bottom: 1px solid var(--blush); border-radius: 0;
  }
  .site-nav a::before { display: none; }
  .site-nav a:not(.team-link)::after { content: "\203A"; font-size: 1.5rem; color: var(--rose); position: static; background: none; height: auto; width: auto; }
  .site-nav a.active { color: var(--ruby); background: var(--blush); border-radius: 10px; border-bottom-color: transparent; padding-inline: .8rem; }
  .site-nav a.active::after { content: "\203A"; position: static; background: none; width: auto; height: auto; }
  .site-nav .team-logout { min-height: 54px; text-align: left; font-size: 1.08rem; }
  .nav-book { margin: 1rem 0 0; width: 100%; min-height: 54px; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
  .menu-scrim { position: fixed; inset: 64px 0 0 0; background: rgba(80, 8, 32, .35); z-index: 40; }

  /* Bottom tab bar */
  .m-tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(168, 18, 60, .45);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .m-tabs a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 54px; text-decoration: none; color: var(--muted); font: 700 .68rem/1.1 var(--font-body);
    border-radius: 12px; -webkit-tap-highlight-color: transparent;
  }
  .m-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .m-tabs a[aria-current="page"] { color: var(--ruby); }
  .m-tabs a[aria-current="page"] svg { stroke-width: 2.4; }
  .m-tabs .m-book { color: #fff; }
  .m-tabs .m-book span.pill {
    display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson), var(--ruby)); box-shadow: 0 10px 20px -8px rgba(213, 23, 63, .8); border: 4px solid #fff;
  }
  .m-tabs .m-book { color: var(--ruby); }
  .m-tabs .m-book svg { stroke: #fff; }
  body:not(.admin) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* Layouts that stayed two-column on phones */
  .bk-layout, .flow-grid, .two, .detail-grid { grid-template-columns: 1fr !important; }
  .summary { position: static !important; }
  .bk-tools { flex-direction: column; align-items: stretch; }
  .bk-tools .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; -webkit-overflow-scrolling: touch; }
  .bk-tools .chip { flex: none; }
  .booking-card.row { flex-wrap: wrap; }
  .booking-card.row .btn { min-height: 44px; padding: .6rem 1.1rem; font-size: .85rem; }
  .facts div { grid-template-columns: 96px 1fr; }

  /* 16px inputs stop iPhones from zooming in when you tap a field */
  .field input, .field select, .field textarea, .search input, .track-form input, input, select, textarea { font-size: 16px !important; }
  .field input, .field select { min-height: 48px; }

  /* Header rows that overflow */
  .head-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .page-hero { padding: 2.2rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--maxw)); }
  .hero-inner { padding: 2rem 0 5rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-actions, .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Dialogs become bottom sheets */
  .modal, .modal-wide, .modal-small {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0;
    padding: 1.4rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
  }
  .modal.modal-center { margin: auto 0 0; }
  .modal[open] { animation: sheet .25s ease-out; }
  .modal h2 { font-size: 1.35rem; }
  .modal-close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .btn-row { flex-direction: column-reverse; }
  .btn-row .btn { width: 100%; }
  .card-sm .btn-row .btn { font-size: .95rem; padding: .8rem 1rem; }
  .pick { padding: .8rem; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Small phones */
@media (max-width: 360px) {
  .brand span { font-size: 1.05rem; }
  .m-tabs a { font-size: .62rem; }
}

/* service photo uploaded by the admin */
.art.has-img { background: #fff; display: block; }
.art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .art.has-img { aspect-ratio: 4 / 3; }
.art.has-img::before, .art.has-img::after { display: none; }
.svc-photo { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.svc-photo .art { width: 120px; aspect-ratio: 4 / 3; flex: none; }


/* Late-arrival notice + privacy page */
.notice-warn { background: #fff4d6; border-color: #f1cf7a; color: #6b4a00; margin-top: .8rem; }
.notice-warn strong { color: #5a3d00; }
.legal { padding: 1.6rem; }
.legal h2 { font: 700 1.1rem var(--font-body); font-style: normal; color: var(--ruby); margin: 1.6rem 0 .5rem; display: block; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin: .4rem 0; }
.legal a { color: var(--ruby); text-decoration: underline; }

/* ===== Final polish ===== */
/* Footer: the "Terms and conditions" button now matches the text links around it */
.site-footer .link-btn {
  background: none; border: 0; padding: 0; width: 100%;
  font: inherit; font-weight: 500; line-height: inherit; cursor: pointer;
}
.site-footer nav a, .site-footer nav .link-btn { margin-bottom: .55rem; }

/* Phones & tablets: bring the headline and buttons up so they show without scrolling */
@media (max-width: 900px) {
  .hero-art { max-width: 190px; }
  .hero-disc { box-shadow: 0 0 0 10px rgba(255,255,255,.55); }
  .hero-inner { padding: 1.75rem 0 3.5rem; gap: 1.4rem; }
  .hero-kicker { margin-bottom: .4rem; }
  .hero h1 { margin-bottom: .8rem; }
  .hero-text { margin-bottom: 1.4rem; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}
