:root {
  --ink: #10233f;
  --muted: #4d6484;
  --cream: #f3f7ff;
  --paper: #ffffff;
  --line: #d7e4fb;
  --terra: #2563eb;
  --terra-dark: #1d4ed8;
  --coffee: #0ea5e9;
  --sage: #7c3aed;
  --gold: #38bdf8;
  --shadow: 0 16px 40px rgba(37, 99, 235, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Outfit, Nunito, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); }
h1, h2, h3 { font-family: Outfit, "Segoe UI", sans-serif; line-height: 1.12; font-weight: 750; letter-spacing: -.03em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); margin: .2rem 0 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .8rem; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 6vw;
  background: rgba(255,255,255,.92);
  border-bottom: 3px solid #2563eb;
}
.book-tease, .book-tease p, .book-tease h2, .book-tease .lede { color: #10233f !important; }
.book-tease a:not(.btn) { color: #1d4ed8 !important; }
.book-tease .btn { background: #1d4ed8 !important; color: #fff !important; }
.book-tease .btn.light { background: #fff !important; color: #1d4ed8 !important; border: 2px solid #1d4ed8 !important; }
.brand img { width: 220px; height: auto; max-height: none; object-fit: contain; background: transparent; border-radius: 0; }
.book-tease a { color: #1d4ed8; }
.book-tease .btn { background: #2563eb; color: #fff !important; }
.book-tease .btn.light { background: #fff; color: #1d4ed8 !important; border: 1px solid #2563eb; }
.theme { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .8rem; font: inherit; font-weight: 700; cursor: pointer; }
html.dark { color-scheme: dark; --ink: #f6f1e8; --muted: #cbbba8; --cream: #0c0c0c; --paper: #171717; --line: #33302c; --terra: #c6a15a; --terra-dark: #e0c27a; --coffee: #f6f1e8; --sage: #c6a15a; --shadow: 0 18px 50px rgba(0,0,0,.35); }
html.dark body { background: #0c0c0c; color: #f6f1e8; }
html.dark .top { background: rgba(12,12,12,.94); border-bottom-color: #242424; }
html.dark .phone, html.dark .btn.dark { background: #c6a15a; color: #111 !important; }
html.dark .theme { color: #f6f1e8; border-color: #c6a15a; }
html.dark .panel, html.dark .split article, html.dark .offer, html.dark .panel.soft { background: #161616; color: #f6f1e8; }
html.dark .book-tease { background: #000; }
html.dark .book-tease a, html.dark a { color: #e0c27a; }
html.dark .btn { background: #c6a15a; color: #111; }
html.dark .btn.ghost, html.dark .btn.light { background: transparent; color: #f6f1e8; border: 1.5px solid #c6a15a; }
html.dark input, html.dark textarea, html.dark select { background: #111; color: #f6f1e8; border-color: #3a342c; }
html.dark .day, html.dark .slot span { background: #1b1b1b; color: #f6f1e8; border-color: #3a342c; }
html.dark .day.on, html.dark .slot input:checked + span { background: #c6a15a; color: #111; border-color: #c6a15a; }
html.dark table { background: #161616; color: #f6f1e8; }
html.dark .admin-main { color: #f6f1e8; }
nav { display: flex; gap: .4rem 1rem; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-weight: 700; }
.hero, .panel, .split, .book-tease, .offer, .book-page, footer { width: min(1080px, calc(100% - 8vw)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 3rem 0 1.5rem; }
.hero img { width: 100%; height: 420px; object-fit: cover; }
.lede { font-size: 1.2rem; color: var(--muted); }
.hero-actions, .book-form button { margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-actions .btn { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem auto; }
.panel.soft { background: #eef5ff; }
.book-tease { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.5rem; align-items: center; background: #fff; color: #10233f; }
.book-tease a { color: #1d4ed8; }
.book-tease .btn, .book-tease .btn.light { background: #1d4ed8; color: #fff; }
.phone { background: var(--ink); color: #fff !important; padding: .55rem .9rem; border-radius: 12px; }
.hero figure { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--terra-dark); margin: 0 0 .4rem; }
.btn, button.btn {
  display: inline-block; background: var(--terra); color: #fff; text-decoration: none;
  border: 0; border-radius: 12px; padding: .8rem 1.15rem; font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover, button.btn:hover { background: var(--terra-dark); }
.btn.dark { background: var(--coffee); }
.btn.light { background: #fff; color: var(--coffee); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.panel, .offer, .book-tease { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; margin: 1rem auto; box-shadow: none; }
.split article { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: none; }
.callout { background: #eef5ff; color: #10233f; border-radius: 18px; padding: 1rem; }
.map { margin-top: 1rem; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: 18px; }
html.dark .map iframe { filter: invert(0.9) hue-rotate(180deg); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; color: var(--muted); }
footer a { display: block; }
body { padding-bottom: 5.5rem; }
.dock {
  position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-around; gap: .4rem;
  padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  width: 100%; margin: 0;
}
.dock a, .dock .theme {
  flex: 1; text-align: center; text-decoration: none; color: var(--ink);
  background: #eef5ff; border: 0; border-radius: 12px; padding: .7rem .3rem;
  font: inherit; font-weight: 700; font-size: .92rem;
}
.dock .phone { background: #2563eb; color: #fff !important; }
html.dark .dock { background: #111; border-color: #333; }
html.dark .dock a, html.dark .dock .theme { background: #1b1b1b; color: #f6f1e8; }
.date-nav { display: flex; gap: .6rem; margin: .8rem 0 0; }
.day, .slot span, .admin-nav a {
  border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: .7rem .85rem; text-decoration: none; color: var(--ink);
}
.day { display: flex; flex-direction: column; min-width: 108px; font-weight: 800; }
.day small { font-weight: 600; color: var(--muted); }
.day.on, .slot input:checked + span { background: var(--coffee); color: #fff; border-color: var(--coffee); }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-block; cursor: pointer; font-weight: 800; }
fieldset { border: 0; padding: 0; margin: 1.2rem 0; }
legend { font-weight: 800; margin-bottom: .6rem; }
label { display: block; font-weight: 800; margin: .8rem 0; }
input, textarea, select {
  width: 100%; margin-top: .3rem; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line);
  font: inherit; background: #fff; color: var(--ink);
}
.fine, .muted { color: var(--muted); font-size: .98rem; }
.alert { background: #fde8e2; border-radius: 14px; padding: .8rem 1rem; }
.success { border: 2px solid var(--sage); }
.hp { position: absolute; left: -9999px; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: #10233f; color: #fff; padding: 1.2rem; }
.admin-nav a { display: block; color: #fff; background: transparent; border-color: rgba(255,255,255,.15); margin: .35rem 0; }
.admin-nav .theme { color: #fff; border-color: #fff; margin: .6rem 0; }
html.dark .admin-shell { background: #0c0c0c; }
html.dark .admin-nav { background: #000; color: #f6f1e8; }
html.dark .admin-nav a { color: #f6f1e8; background: transparent; border-color: #3a342c; }
html.dark .admin-nav .theme { color: #f6f1e8; border-color: #c6a15a; }
html.dark .admin-main { background: #0c0c0c; color: #f6f1e8; }
html.dark .admin-main table, html.dark .admin-main th, html.dark .admin-main td { background: #161616; color: #f6f1e8; border-color: #333; }
html.dark .alert { background: #3a2420; color: #f6f1e8; }
html.dark .success { background: #161616; color: #f6f1e8; border-color: #c6a15a; }
.admin-main { padding: 1.4rem; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: end; }
.row-actions select, .row-actions input { width: auto; margin: 0; }
.row-actions button, .row-actions a { font-size: .95rem; }
.checklist li { margin: .4rem 0; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  min-height: 140px; background: #2563eb; color: #fff; text-decoration: none;
  border: 3px solid #2563eb; border-radius: 22px; padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow); font-weight: 800;
}
.choice strong { font-family: Outfit, "Segoe UI", sans-serif; font-size: 1.5rem; font-weight: 750; color: inherit; }
.choice span, .choice .choice-kicker { color: #fff6f1; font-weight: 700; }
.choice-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.choice:nth-child(2) { background: #0ea5e9; border-color: #0ea5e9; }
.choice.on { background: #fff; color: #2c211c; border-color: #c6a15a; }
.choice.on span, .choice.on .choice-kicker, .choice.on strong { color: #2c211c; }
html.dark .choice, html.dark .choice:nth-child(2) { background: #1b1b1b; color: #f6f1e8; border-color: #c6a15a; }
html.dark .choice span, html.dark .choice .choice-kicker, html.dark .choice strong { color: #f6f1e8; }
html.dark .choice.on { background: #c6a15a; color: #111; border-color: #c6a15a; }
html.dark .choice.on span, html.dark .choice.on .choice-kicker, html.dark .choice.on strong { color: #111; }
.day { display: flex; flex-direction: column; align-items: flex-start; min-width: 118px; min-height: 64px; font-weight: 800; }
.slot span { min-width: 108px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
@media (max-width: 800px) {
  body { font-size: 1.05rem; }
  .top { flex-direction: column; align-items: stretch; gap: .7rem; padding: .7rem 4vw; }
  .brand img { width: 200px; height: auto; }
  nav { gap: .45rem; }
  nav a, .theme, .phone { padding: .6rem .75rem; }
  .hero, .panel, .split, .book-tease, .offer, .book-page, footer { width: min(100% - 8vw, 1080px); }
  .hero, .split, .book-tease, .admin-shell, .types { grid-template-columns: 1fr; }
  .hero { padding: 1.4rem 0 1rem; gap: 1.2rem; }
  .hero img { height: 220px; }
  h1 { font-size: 2.2rem; }
  .hero-actions .btn, .book-tease .btn, .book-form .btn { display: block; text-align: center; margin: .5rem 0 0; }
  .choice { min-height: 0; }
  .days, .slots { display: grid; grid-template-columns: 1fr 1fr; }
  .day, .slot span { min-width: 0; width: 100%; }
  .date-nav { flex-direction: column; }
  .date-nav .btn { text-align: center; }
  footer { flex-direction: column; }
  .map iframe { height: 240px; }
  .admin-shell { display: block; }
  .admin-nav { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem; }
  .admin-nav a, .admin-nav .theme { margin: 0; white-space: nowrap; }
  .admin-main { padding: .9rem; }
  table { display: block; overflow-x: auto; }
}
