/* Meadow Hall Venues — warm & vibey, light theme. Shared tokens for both surfaces. */
:root {
  --coral: #E0703F; --coral-deep: #C4562A; --plum: #6D3B8E; --plum-deep: #4E2868; --gold: #F2B84B; --teal: #2F9E8F; --rose: #D64F7A;
  --cream: #FFF8F1; --sand: #FCEBDD; --ink: #2A1F2D; --ink-soft: #5B4E5F; --line: #EBD9CC; --white: #FFFFFF;
  --ok: #2F8F5B; --warn: #B7791F; --bad: #B4322F;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 10px 30px rgba(109, 59, 142, .10); --shadow-lg: 0 24px 60px rgba(42, 31, 45, .16);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-soft); }
.price, .money { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Icons — SVG sprite, sized to the text they sit beside */
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.meta .icon { margin-right: .25rem; color: var(--plum); }
.detail-hero .meta .icon { color: var(--gold); }

/* Top navigation */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 241, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a, .nav button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; border: 0; background: transparent; font: inherit; cursor: pointer; }
.nav a:hover, .nav a.active, .nav button:hover { background: var(--sand); }
.nav a:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--cream); padding: .75rem 1.25rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a, .nav button { justify-content: flex-start; min-height: 48px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff; box-shadow: 0 8px 22px rgba(224, 112, 63, .35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(224, 112, 63, .45); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-deep); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--plum); }
.btn-danger { background: #FBE6E5; color: var(--bad); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--plum-deep) url('/assets/hero-generated.webp') center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(78, 40, 104, .92) 0%, rgba(109, 59, 142, .78) 40%, rgba(224, 112, 63, .55) 100%); }
.hero .wrap { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); display: grid; gap: 1.25rem; max-width: 760px; margin-inline: auto; }
.hero .eyebrow { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }
.hero h1 { font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .92); max-width: 56ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head p { margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-venues { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Cards */
.card { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.card-venue { padding: 0; overflow: hidden; }
.card-venue .art { height: 140px; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; color: #fff; }
.art-hall { background: linear-gradient(135deg, var(--coral), var(--rose)); }
.art-meeting_room { background: linear-gradient(135deg, var(--plum), var(--teal)); }
.art-marquee { background: linear-gradient(135deg, var(--teal), var(--gold)); }
.art-other { background: linear-gradient(135deg, var(--plum), var(--coral)); }
.card-venue .body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-venue .title-row { display: flex; flex-direction: column; gap: .2rem; }
.card-venue .kind { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); font-weight: 700; }
.card-venue .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-top: .5rem; border-top: 1px dashed var(--line); margin-top: auto; }
.card-venue .price { font-size: 1.45rem; color: var(--coral-deep); }
.card-venue .price small { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .92rem; color: var(--ink-soft); }
.meta span { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--sand); font-size: .85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Steps / how it works */
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.step .n { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--plum), var(--coral)); }

/* Forms */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
input, select, textarea { font: inherit; padding: .8rem 1rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); min-height: 48px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; }

/* Venue detail */
.detail { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail-hero { border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); color: #fff; display: grid; gap: .75rem; }
.detail-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.detail-hero .price { font-size: 1.6rem; }
.book-panel { position: sticky; top: 84px; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.hour { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.hour.free:hover { border-color: var(--coral); }
.hour.taken { background: #F3EAF7; color: #9C8AA6; text-decoration: line-through; cursor: not-allowed; }
.hour.past { background: #F6F1EC; color: #B4A8AE; cursor: not-allowed; }
.hour.selected { background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff; border-color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .3rem; vertical-align: -1px; border: 1px solid var(--line); }
.summary { background: var(--sand); border-radius: var(--r-md); padding: 1rem 1.1rem; display: grid; gap: .35rem; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; }
.summary .total { font-size: 1.4rem; border-top: 1px solid rgba(0, 0, 0, .08); padding-top: .5rem; margin-top: .25rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.stepper button { min-width: 48px; min-height: 48px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; font-family: inherit; }
.stepper output { min-width: 4.5rem; text-align: center; font-weight: 700; }

/* Lists */
.list { display: grid; gap: 1rem; }
.booking-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; }
@media (max-width: 640px) { .booking-row { grid-template-columns: 72px 1fr; } .booking-row .actions { grid-column: 1 / -1; } }
.date-tile { background: var(--sand); border-radius: 16px; text-align: center; padding: .6rem .25rem; line-height: 1.1; }
.date-tile b { display: block; font-size: 1.6rem; font-family: var(--font-display); }
.date-tile span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-confirmed, .badge-approved { background: #DFF5E8; color: var(--ok); }
.badge-pending, .badge-open { background: #FFF1D6; color: var(--warn); }
.badge-cancelled, .badge-rejected, .badge-declined { background: #FBE6E5; color: var(--bad); }
.badge-unknown { background: var(--sand); color: var(--ink-soft); }
.cr { border-left: 4px solid var(--gold); padding: .6rem .9rem; background: #FFFBF3; border-radius: 0 12px 12px 0; font-size: .95rem; }
.cr.approved { border-color: var(--ok); } .cr.declined { border-color: var(--bad); }

/* Notices, toasts, misc */
.notice { padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--sand); }
.notice-error { background: #FBE6E5; color: var(--bad); }
.notice-ok { background: #DFF5E8; color: var(--ok); }
.notice-info { background: #EAF4FF; color: #1F4E8C; }
.toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 100; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: .85rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-lg); animation: rise .25s ease; }
.toast-error { background: var(--bad); } .toast-ok { background: var(--ok); }
.toast.out { opacity: 0; transition: opacity .35s; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.loading { color: var(--ink-soft); padding: 1.5rem 0; }
.loading .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 3px; animation: blink 1s infinite alternate; }
.loading .dot:nth-child(2) { animation-delay: .2s; } .loading .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { to { opacity: .25; } }
.empty { text-align: center; padding: 2.5rem 1rem; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--r-md); }
.modal-back { position: fixed; inset: 0; background: rgba(42, 31, 45, .55); display: grid; place-items: end center; z-index: 90; padding: 0; }
.modal { background: var(--cream); width: min(640px, 100%); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1.5rem; max-height: 92vh; overflow: auto; display: grid; gap: 1rem; }
@media (min-width: 720px) { .modal-back { place-items: center; padding: 1rem; } .modal { border-radius: var(--r-lg); } }

/* Native <dialog> confirmations (showModal) — replaces confirm()/prompt() */
dialog.dlg { border: 0; border-radius: var(--r-lg); padding: 1.5rem; width: min(480px, calc(100vw - 2rem)); max-width: 100%; background: var(--cream); color: var(--ink); box-shadow: var(--shadow-lg); font-family: var(--font-body); }
dialog.dlg::backdrop { background: rgba(42, 31, 45, .55); }
dialog.dlg h2 { font-size: 1.5rem; margin: 0; }
.dlg-form { display: grid; gap: 1rem; }

.confirm-card { text-align: center; padding: clamp(1.5rem, 5vw, 3rem); }
.confirm-card .tick { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, var(--teal), var(--ok)); }
.confirm-card .tick .icon { width: 1.2em; height: 1.2em; stroke-width: 2.5; vertical-align: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; text-align: left; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; font-weight: 600; }
.ai-box { background: linear-gradient(135deg, #FFF3E6, #F3EAF7); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; }
.status-dots { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; }
.status-dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #BFB3B8; margin-right: .35rem; }
.status-dots .up i { background: var(--ok); }

/* Footer */
footer.site { margin-top: 3rem; background: var(--ink); color: #EFE4E9; border-radius: var(--r-lg) var(--r-lg) 0 0; }
footer.site .wrap { padding: 3rem 0 2rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
footer.site a { color: var(--gold); text-decoration: none; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
footer.site .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; font-size: .85rem; color: #BFB3B8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
