/* Shutter Bliss Photobooths: one stylesheet for the public site, the client
   portal, the staff area and admin. Mobile first. Colors are variables; the
   three brand colors can be changed in Admin > Settings > Brand (served by
   /brand-css.php, which overrides the first block below). */

:root {
    --plum: #3a2e46;
    --lavender: #c9a3dc;
    --gold: #d4ae5a;

    --plum-900: color-mix(in srgb, var(--plum) 70%, #000);
    --plum-700: var(--plum);
    --plum-500: color-mix(in srgb, var(--plum) 70%, var(--lavender));
    --lavender-100: color-mix(in srgb, var(--lavender) 18%, #fff);
    --lavender-200: color-mix(in srgb, var(--lavender) 35%, #fff);
    --gold-600: color-mix(in srgb, var(--gold) 82%, #000);
    --gold-100: color-mix(in srgb, var(--gold) 18%, #fff);

    --bg: #fbf8fc;
    --surface: #ffffff;
    --ink: #2a2230;
    --ink-soft: #5d5266;
    --line: #e7dfec;
    --ok: #2f7d4f;
    --ok-bg: #e7f4ec;
    --warn: #8a5a00;
    --warn-bg: #fff4dc;
    --bad: #a3263b;
    --bad-bg: #fbe8eb;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(42 34 48 / 6%), 0 8px 24px rgb(42 34 48 / 8%);
    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --max: 1160px;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-500); text-underline-offset: 2px; }
a:hover { color: var(--plum-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--plum-700); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); }
p, ul, ol, dl, table { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
main { display: block; min-height: 50vh; }
main.narrow, main.wide { padding: 2rem 0 4rem; }
main.narrow > * { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
main.wide > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
    .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .72rem 1.3rem; border-radius: 999px; border: 2px solid var(--gold);
    background: var(--gold); color: #2a2230; font: 700 1rem/1.2 var(--font-body);
    text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 0 var(--gold-600);
}
.btn:hover { background: color-mix(in srgb, var(--gold) 85%, #fff); color: #2a2230; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; transform: none; }
.btn-outline { background: transparent; color: var(--plum-700); border-color: var(--plum-500); box-shadow: none; }
.btn-outline:hover { background: var(--lavender-100); color: var(--plum-700); }
.btn-plum { background: var(--plum-700); border-color: var(--plum-700); color: #fff; box-shadow: none; }
.btn-plum:hover { background: var(--plum-500); color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: none; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 80%, #fff); color: #fff; }
.btn-link { background: none; border: 0; padding: 0; color: var(--plum-500); text-decoration: underline; cursor: pointer; font: inherit; box-shadow: none; }
.btn-small { padding: .4rem .85rem; font-size: .9rem; }
.btn-large { padding: .95rem 1.8rem; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
.on-dark .btn-outline { color: #fff; border-color: rgb(255 255 255 / 70%); }
.on-dark .btn-outline:hover { background: rgb(255 255 255 / 10%); }

/* ---------------------------------------------------------------- header */

.site-header { background: var(--plum-700); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgb(0 0 0 / 15%); }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 50px; height: 50px; }
.brand span { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.1; letter-spacing: .02em; }
.brand small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--lavender); }
.brand:hover { color: #fff; }
.nav-toggle { display: none; }
.js .nav-toggle {
    display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: #fff;
    border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px; padding: .45rem .8rem; font: 600 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; width: 100%; padding-bottom: .75rem; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: var(--plum-700); padding: 1rem; border-top: 1px solid rgb(255 255 255 / 12%); }
.site-header .container { flex-wrap: wrap; }
.js .site-header .container { flex-wrap: nowrap; position: relative; }
.site-nav a { color: #f1e8f6; text-decoration: none; font-weight: 600; padding: .35rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .btn { color: #2a2230; padding: .55rem 1.1rem; }
.site-nav .btn:hover { color: #2a2230; }
.nav-sep { flex: 0 0 1px; height: 1.2rem; background: rgb(255 255 255 / 25%); }
.site-nav.is-open .nav-sep { display: none; }
.header-phone { display: none; color: var(--lavender); text-decoration: none; font-weight: 700; white-space: nowrap; }
@media (min-width: 1000px) {
    .js .nav-toggle { display: none; }
    .js .site-nav, .site-nav { display: flex; flex-direction: row; width: auto; padding: 0; position: static; background: none; border: 0; }
    .header-phone { display: inline; }
}

/* Sticky "Book" bar on phones. */
.mobile-book {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .5rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgb(58 46 70 / 96%); backdrop-filter: blur(6px); border-top: 1px solid rgb(255 255 255 / 15%);
}
.mobile-book .btn { flex: 1; }
.mobile-book .btn-outline { color: #fff; border-color: rgb(255 255 255 / 60%); flex: 0 0 auto; }
body.has-mobile-book { padding-bottom: 72px; }
@media (min-width: 1000px) { .mobile-book { display: none; } body.has-mobile-book { padding-bottom: 0; } }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--plum-900); color: #e6dcec; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: #f1e8f6; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font: 700 .85rem var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--lavender); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.footer-logo { width: 220px; margin-bottom: .75rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; color: #bfb2c8; }
.social { display: flex; gap: .6rem; margin-top: .8rem; }
.social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: rgb(255 255 255 / 8%); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------------------------------------------- page sections */

.hero { position: relative; background: var(--plum-700); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgb(201 163 220 / 28%), transparent 55%), radial-gradient(ellipse at 90% 80%, rgb(212 174 90 / 18%), transparent 50%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3rem; align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.05fr 1fr; padding-top: 4rem; padding-bottom: 4.5rem; } }
.hero h1 { color: #fff; }
.hero p { color: #eadff0; font-size: 1.15rem; }
.hero-logo { width: min(320px, 70%); margin-bottom: 1rem; }
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / 35%); border: 4px solid rgb(255 255 255 / 10%); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero .row { margin-top: 1.5rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.5rem; padding: 0; list-style: none; color: #eadff0; font-weight: 600; font-size: .95rem; }
.trust li::before { content: "\2605"; color: var(--gold); margin-right: .4rem; }

.page-head { background: var(--plum-700); color: #fff; padding: 2.4rem 0 2.2rem; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgb(201 163 220 / 30%), transparent 55%); }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { color: #eadff0; margin: 0; font-size: 1.1rem; max-width: 46rem; }

.section { padding: 3.5rem 0; }
.section.alt { background: var(--lavender-100); }
.section.dark { background: var(--plum-700); color: #eadff0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }
.eyebrow { display: inline-block; font: 800 .78rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #806125; margin-bottom: .5rem; }
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card.flat { box-shadow: none; }
.card h2 { font-size: 1.35rem; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.card-title-row h2, .card-title-row h3 { margin: 0; }

/* Package cards */
.packages { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.package { display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.package-photo { position: relative; }
.package-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.package-price { position: absolute; left: 1rem; bottom: 1rem; background: var(--plum-700); color: #fff; border-radius: 999px; padding: .4rem 1rem; font-weight: 800; box-shadow: 0 4px 14px rgb(0 0 0 / 25%); }
.package-price small { font-weight: 600; color: var(--lavender); }
.package-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.package-body h3 { font-size: 1.45rem; }
.package-body .btn { margin-top: auto; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .4rem; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232a2230' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
@media (min-width: 560px) { .checks.cols { grid-template-columns: 1fr 1fr; } }

/* Steps, features */
.steps { counter-reset: step; display: grid; gap: 1.2rem; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 1.3rem; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-flex; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--plum-700); color: var(--gold); font: 800 1.05rem var(--font-body); align-items: center; justify-content: center; margin-bottom: .7rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .icon { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--lavender-200); display: flex; align-items: center; justify-content: center; color: var(--plum-700); }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .2rem; font-family: var(--font-body); }
.feature p { margin: 0; color: var(--ink-soft); }

.photo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--line); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { font-size: .85rem; padding: .4rem .6rem; background: var(--surface); }

.cta-band { background: linear-gradient(120deg, var(--plum-700), var(--plum-500)); color: #fff; border-radius: 22px; padding: 2.2rem 1.6rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eadff0; }

/* Reviews */
.review { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.3rem; box-shadow: var(--shadow); }
.stars { color: var(--gold-600); letter-spacing: .1em; font-size: 1.1rem; }
.review blockquote { margin: .5rem 0 .8rem; font-size: 1.02rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--plum-700); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.2rem 1rem; }
.faq details > p { margin: 0; padding: 0 1.2rem 1.2rem; }
.faq summary { align-items: center; }
.faq summary::after { flex-shrink: 0; }
.faq h2 { margin-top: 2rem; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }

/* ---------------------------------------------------------------- forms */

form { margin: 0; }
label, .label { display: block; font-weight: 700; margin-bottom: .3rem; }
.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; margin-top: .15rem; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"],
input[type="time"], input[type="url"], input[type="search"], input[type="datetime-local"], input[type="file"], select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #d6cbdc; border-radius: var(--radius-sm);
    padding: .65rem .8rem; min-height: 46px;
}
input[type="color"] { width: 64px; height: 42px; padding: 2px; border: 1.5px solid #d6cbdc; border-radius: var(--radius-sm); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum-500); outline: 3px solid var(--lavender-200); outline-offset: 0; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field-error { color: var(--bad); font-size: .9rem; margin-top: .25rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
/* Required fields (site.js marks them and holds the button until they are filled). */
.req-mark { color: var(--bad); font-weight: 800; margin-left: .2rem; text-decoration: none; cursor: help; }
.req-key { margin: 0 0 .6rem; }
.req-key .req-mark { margin: 0 .15rem 0 0; }
.is-missing input, .is-missing select, .is-missing textarea, input.is-missing { border-color: var(--bad); }
label.is-missing, .check.is-missing { color: var(--bad); }
.form-need { margin: .6rem 0 0; color: var(--ink-soft); flex-basis: 100%; }
.form-need a { color: var(--bad); font-weight: 700; }
.form-need.is-ready { color: var(--ok); font-weight: 700; }
.btn[disabled]:not([aria-busy="true"]) { cursor: not-allowed; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; margin-bottom: .7rem; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--plum-700); flex: 0 0 auto; }
.check span { font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem .4rem; margin: 0 0 1.4rem; background: var(--surface); }
legend { font: 700 1.1rem var(--font-head); color: var(--plum-700); padding: 0 .4rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.5rem; }
.honeypot { position: absolute; left: -9999px; }
.inline-form { display: inline; }

/* Choice cards (radio and checkbox tiles) */
.choices { display: grid; gap: .8rem; }
@media (min-width: 640px) { .choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--lavender); }
.choice input { margin-top: .25rem; width: 1.2rem; height: 1.2rem; accent-color: var(--plum-700); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--plum-500); background: var(--lavender-100); }
.choice strong { display: block; color: var(--plum-700); }
.choice .price { margin-left: auto; font-weight: 800; white-space: nowrap; color: var(--plum-700); }
.choice img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.choice.photo { flex-direction: column; padding: 0; overflow: hidden; }
.choice.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.choice.photo .choice-body { padding: .8rem 1rem 1rem; display: flex; gap: .6rem; }
.qty { width: 5rem !important; min-height: 40px !important; }

/* ---------------------------------------------------------------- notices */

.notice { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 0 0 1.2rem; border: 1px solid; }
.notice > :last-child { margin-bottom: 0; }
.notice-ok { background: var(--ok-bg); border-color: #b9dfc8; color: #1e5434; }
.notice-warn { background: var(--warn-bg); border-color: #f1d79c; color: #5e3e00; }
.notice-bad { background: var(--bad-bg); border-color: #efbcc5; color: #7d1a2c; }
.notice-info { background: var(--lavender-100); border-color: var(--lavender-200); color: var(--plum-700); }
.notice ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.draft-banner { background: var(--warn-bg); border: 2px dashed #e2b54d; color: #5e3e00; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }

.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-plum { background: var(--lavender-200); color: var(--plum-700); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }

/* ---------------------------------------------------------------- booking flow */

.progress { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1.6rem; counter-reset: p; overflow-x: auto; }
.progress li { counter-increment: p; flex: 1; min-width: 70px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.progress li::before { content: counter(p); display: flex; margin: 0 auto .3rem; width: 2rem; height: 2rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--line); color: var(--ink-soft); }
.progress li.done::before { content: "\2713"; background: var(--lavender-200); color: var(--plum-700); }
.progress li.current { color: var(--plum-700); }
.progress li.current::before { background: var(--plum-700); color: var(--gold); }
.progress a { color: inherit; text-decoration: none; }

.book-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .book-layout { grid-template-columns: minmax(0, 1fr) 340px; } .book-layout aside { position: sticky; top: 90px; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.summary h2 { font-size: 1.15rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .95rem; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lines td { padding: .35rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: .8rem; }
.lines tr.total td { border-bottom: 0; border-top: 2px solid var(--plum-700); font-weight: 800; font-size: 1.05rem; padding-top: .55rem; }
.lines tr.sub td { color: var(--ink-soft); border-bottom: 0; }

.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.cal-head h2, .cal-head h3 { margin: 0; font-size: 1.15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: .75rem; font-weight: 800; color: var(--ink-soft); padding: .2rem 0; }
.cal-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: .95rem; border: 2px solid transparent; }
.cal-day.open { background: var(--lavender-100); color: var(--plum-700); }
.cal-day.open:hover { border-color: var(--plum-500); }
.cal-day.full { background: #f3eef5; color: #b5a9bc; text-decoration: line-through; }
.cal-day.closed { color: #c8bfcd; }
.cal-day.selected { background: var(--plum-700); color: var(--gold); }
.cal-day.empty { visibility: hidden; }
.cal-day small { font-size: .62rem; font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--ink-soft); margin-top: .8rem; }
.cal-legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.cal-legend .l-open::before { background: var(--lavender-100); border: 1px solid var(--lavender); }
.cal-legend .l-full::before { background: #f3eef5; }
.cal-legend .l-closed::before { background: #fff; border: 1px solid var(--line); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: .65rem; }
.times .btn { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .85rem 1rem; border: 1px solid var(--plum-500); border-radius: var(--radius-sm); background: var(--surface); color: var(--plum-700); box-shadow: none; text-align: left; white-space: nowrap; line-height: 1.4; }
.times .btn:hover { background: var(--lavender-100); border-color: var(--plum-700); transform: none; }
.times .btn.is-chosen { background: var(--plum-700); color: #fff; border-color: var(--plum-700); }
.times .btn.is-chosen .muted { color: #eadff0; }
.times .btn:focus-visible { outline: 3px solid var(--plum-500); outline-offset: 3px; }
#times { scroll-margin-top: 6rem; }
.times .choice { padding: .6rem; justify-content: center; font-weight: 700; }
.times .choice input { position: absolute; opacity: 0; }

.agreement { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: #fff; font-size: .95rem; }
.agreement h2 { font-size: 1.25rem; }
.agreement h3 { font-size: 1.05rem; margin-top: 1.2rem; }
.agreement table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.agreement th, .agreement td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
.signature-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.5rem !important; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 0; }
table.data th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: #f8f4fa; padding: .65rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfafd; }
table.data .num { text-align: right; white-space: nowrap; }
table.data a { font-weight: 700; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- portal */

.status-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.4rem; }
.tabs a { padding: .55rem .9rem; text-decoration: none; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--plum-700); border-color: var(--gold); }
.todo { list-style: none; padding: 0; margin: 0; }
.todo li { display: flex; gap: .7rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo .dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; flex: 0 0 auto; border: 2px solid var(--lavender); }
.todo .done .dot { background: var(--ok); border-color: var(--ok); }
.todo .done span { color: var(--ink-soft); }

/* Gallery page */
.gallery-hero { text-align: center; padding: 3rem 1rem; }
.gallery-cover { max-width: 720px; margin: 0 auto 1.5rem; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.qr { width: 220px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 12px; }
.print-sheet { text-align: center; padding: 2rem; }
.print-sheet .qr { width: 320px; }
@media print {
    .site-header, .site-footer, .mobile-book, .admin-bar, .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---------------------------------------------------------------- admin */

.admin-shell { display: grid; gap: 0; min-height: calc(100vh - 68px); }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 236px minmax(0, 1fr); } }
.admin-nav { background: #fff; border-right: 1px solid var(--line); padding: 1rem .8rem; font-size: .93rem; }
.admin-nav h2 { font: 800 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin: 1.1rem .5rem .4rem; }
.admin-nav h2:first-child { margin-top: 0; }
.admin-nav a { display: block; padding: .38rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.admin-nav a:hover { background: var(--lavender-100); }
.admin-nav a[aria-current="page"] { background: var(--plum-700); color: #fff; }
.admin-nav .count { float: right; background: var(--gold); color: #2a2230; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; font-weight: 800; }
details.admin-menu > summary { display: none; }
@media (max-width: 999px) {
    .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: .6rem 1rem; }
    details.admin-menu > summary { display: block; cursor: pointer; font-weight: 800; padding: .3rem 0; }
    .admin-nav-cols { columns: 2; column-gap: 1rem; }
    .admin-nav-cols > div { break-inside: avoid; }
}
.admin-main { padding: 1.5rem 1rem 4rem; min-width: 0; }
@media (min-width: 1000px) { .admin-main { padding: 2rem 2rem 4rem; } }
.admin-main > h1 { font-size: 1.8rem; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.admin-head h1 { margin: 0; font-size: 1.8rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 800; margin: 0; }
.stat .value { font: 800 1.6rem var(--font-body); color: var(--plum-700); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; }
.filters input, .filters select { min-height: 40px; padding: .45rem .6rem; }
.bar { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 1rem; }
.bar div { flex: 1; background: var(--lavender); border-radius: 6px 6px 0 0; position: relative; min-height: 2px; }
.bar div span { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--ink-soft); white-space: nowrap; }
.bar-wrap { padding-bottom: 1.7rem; }
.two-col { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--ink-soft); font-size: .82rem; display: block; }
.mini-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mini-cal th { font-size: .75rem; color: var(--ink-soft); padding: .3rem; }
.mini-cal td { border: 1px solid var(--line); height: 108px; vertical-align: top; padding: .25rem; font-size: .78rem; background: #fff; }
.mini-cal td.other { background: #faf8fb; color: #bbb; }
.mini-cal td.today { outline: 2px solid var(--gold); outline-offset: -2px; }
.mini-cal .daynum { font-weight: 800; }
.mini-cal .ev { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 4px; background: var(--lavender-200); color: var(--plum-700); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-cal .ev.block { background: #eee; color: #666; }
.mini-cal .ev.appt { background: var(--gold-100); color: var(--gold-600); }
.mini-cal .ev.req { background: var(--warn-bg); color: var(--warn); }
.preview-frame { width: 100%; min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f5f0f7; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: #f6f2f8; padding: .1rem .35rem; border-radius: 4px; }
.token-list { columns: 2; font-size: .82rem; }
@media (min-width: 900px) { .token-list { columns: 3; } }

/* Utilities and plain buttons on the sign-in pages */
.mt{margin-top:1.5rem}
.mb{margin-bottom:1.5rem}
button:not([class]),input[type=submit]:not([class]){display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.7rem 1.3rem;border-radius:999px;border:0;background:var(--gold);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
button:not([class]):hover{filter:brightness(1.05)}
.narrow-text{max-width:760px}
img.rounded{border-radius:var(--radius,16px);box-shadow:0 10px 30px rgba(0,0,0,.12)}
.photo.placeholder{aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--lavender),var(--gold-100));color:var(--plum);font-weight:700;text-align:center;padding:1rem}
.photo-grid figcaption{font-size:.85rem;color:var(--muted,#6d6275);padding:.3rem .1rem}

/* Bar chart without inline styles (CSP): heights come from h-0 ... h-100 classes */
.bar-chart{display:flex;align-items:flex-end;gap:6px;height:180px;margin-top:1rem}
.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;height:100%}
.bar-stack{flex:1;width:100%;display:flex;flex-direction:column;justify-content:flex-end}
.bar-paid{background:var(--plum);display:block}
.bar-open{background:var(--lavender);display:block}
.bar-col small{font-size:.7rem;color:var(--ink-soft);margin-top:.25rem}
.legend-paid::before,.legend-open::before{content:'';display:inline-block;width:.8em;height:.8em;margin-right:.3em;border-radius:2px;vertical-align:middle}
.legend-paid::before{background:var(--plum)}.legend-open::before{background:var(--lavender)}
.h-0{height:0%}.h-5{height:5%}.h-10{height:10%}.h-15{height:15%}.h-20{height:20%}.h-25{height:25%}.h-30{height:30%}.h-35{height:35%}.h-40{height:40%}.h-45{height:45%}.h-50{height:50%}.h-55{height:55%}.h-60{height:60%}.h-65{height:65%}.h-70{height:70%}.h-75{height:75%}.h-80{height:80%}.h-85{height:85%}.h-90{height:90%}.h-95{height:95%}.h-100{height:100%}

/* Raw data blocks wrap on small screens. */
pre.code { white-space: pre-wrap; word-break: break-word; }

/* Readable text links and supporting copy on dark brand surfaces. */
:is(.on-dark, .section.dark, .cta-band) a:not(.btn) { color: #f0d7fc; text-decoration: underline; text-underline-offset: .2em; }
:is(.on-dark, .section.dark, .cta-band) a:not(.btn):hover { color: #fff; }
:is(.on-dark, .section.dark, .cta-band) :is(.lead, .muted, .hint) { color: #eadff0; }

/* Footer buttons need dark text on their gold fill. */
.site-footer .btn, .site-footer .btn:hover { color: #2a2230; }
/* Keep unavailable calendar dates legible without implying availability. */
.cal-day.closed { color: #756a7c; }
.cal-day.full { color: #756a7c; }

/* Booking controls and mobile navigation */
.book-layout > *, .field-row > *, fieldset { min-width: 0; }
.book-layout form.inline-form[data-autosubmit] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .65rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
.book-layout form.inline-form[data-autosubmit] label { grid-column: 1 / -1; margin: 0; }
.cal-head .btn { min-width: 44px; min-height: 44px; font-size: 1.5rem; line-height: 1; }
.cal-day { aspect-ratio: auto; min-height: 44px; }
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-legend { margin-bottom: 0; font-size: .875rem; }
.cal-day.full, .cal-legend .l-full::before { background-color: #e3dae8; }
.cal-day.full { color: #5d5266; }
.cal-legend .l-full::before { border: 1px solid #756a7c; }
.mobile-book .btn-outline:hover { background: var(--plum-500); color: white; }
.header-phone:hover { color: white; }
@media (max-width: 999px) {
    .js .nav-toggle, .mobile-book .btn { min-height: 44px; }
    .js .site-nav.is-open { max-height: calc(100dvh - 68px); overflow-y: auto; }
    .site-nav.is-open a { display: flex; align-items: center; min-height: 44px; }
    html:has(.has-mobile-book) { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
    .progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem .5rem; overflow: visible; }
    .progress li { min-width: 0; display: flex; align-items: center; gap: .3rem; text-align: left; line-height: 1.25; }
    .progress li::before { width: 1.35rem; height: 1.35rem; flex: none; margin: 0; }
    .progress li.current { font-weight: 800; }
    .progress a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; }
    .progress li { min-height: 36px; }
    .book-layout fieldset { padding-inline: .85rem; }
    .section { padding-block: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Allow wide tables to scroll inside their cards on narrow screens. */
.grid > *, .two-col > * { min-width: 0; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .kv { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem .75rem; }
    .choice.photo .choice-body { flex-direction: column; }
    .choice.photo .choice-body .price { margin-left: 0; }
}
.table-wrap { position: relative; }
.admin-main .code { overflow-wrap: anywhere; }
.bar-chart { overflow-x: auto; }
