:root {
  --red: #b3202a;
  --red-dark: #8c1820;
  --green: #1f5a3d;
  --gold: #d4a63a;
  --cream: #fbf6ec;
  --cream-dark: #f3ead8;
  --ink: #2b2320;
  --muted: #6b5f58;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(43, 35, 32, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green);
}

img { max-width: 100%; display: block; }

a { color: var(--red); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-small { padding: 0.45em 1.1em; font-size: 0.95rem; }
.btn-block { display: block; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 236, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--green);
  text-decoration: none;
  margin: 0;
}
.logo span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:not(.btn):hover { color: var(--red); }
.nav .btn { color: #fff; }

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(circle at 85% 20%, #f6e4c0 0, transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; padding: 0; margin: 0; }
.stats strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.8rem; color: var(--red); }
.stats span { color: var(--muted); font-size: 0.95rem; }

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  background: repeating-linear-gradient(135deg, var(--cream-dark) 0 18px, #efe2c8 18px 36px);
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.hero-photo { aspect-ratio: 1 / 1; }
.photo-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 3px); }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--cream-dark); }
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.6rem); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 40px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--gold); color: #fff;
  font-weight: 800; font-size: 1.1rem;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

/* Packages */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 2px solid transparent;
}
.card-featured { border-color: var(--red); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 0.25em 0.9em; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.card h3 { font-size: 1.5rem; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 2.2rem; font-weight: 800; color: var(--red); margin: 0; }
.duration { color: var(--muted); margin: 0 0 16px; }
.features { padding-left: 1.2em; margin: 0 0 24px; flex: 1; }
.features li { margin-bottom: 6px; }
.features li::marker { color: var(--green); }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about .section-title { text-align: left; }
.about-photo { aspect-ratio: 1 / 1; }
.signature { font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; color: var(--red); }
.signature span { font-size: 1rem; color: var(--muted); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.review blockquote { margin: 0 0 16px; font-style: italic; }
.review figcaption { font-weight: 800; color: var(--green); }

/* Booking */
.booking-app { max-width: 820px; margin: 0 auto; }
.bk-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.bk-step > h3 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; }
.bk-step .step-num { margin: 0; width: 34px; height: 34px; font-size: 1rem; flex: none; }
.bk-hint { color: var(--muted); }
.bk-empty { color: var(--muted); font-style: italic; }
.bk-error { color: var(--red-dark); background: #fbe7e8; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.bk-notice { max-width: 820px; margin: 0 auto 20px; background: #e6f0ea; color: var(--green); border-radius: 10px; padding: 12px 16px; font-weight: 700; }
.bk-error[hidden] { display: none; }

.bk-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bk-package { position: relative; cursor: pointer; }
.bk-package input { position: absolute; opacity: 0; }
.bk-package-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--cream-dark); border-radius: 12px; transition: border-color 0.15s, background 0.15s; }
.bk-package input:checked + .bk-package-body { border-color: var(--red); background: #fdf1f1; }
.bk-package input:focus-visible + .bk-package-body { outline: 3px solid var(--gold); outline-offset: 2px; }
.bk-package-meta { color: var(--red); font-weight: 800; }
.bk-package-blurb { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

.bk-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.bk-picker > p { grid-column: 1 / -1; margin: 0; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bk-nav { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cream-dark); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.bk-nav:disabled { opacity: 0.35; cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.bk-dow { font-size: 0.8rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.bk-day { aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; color: #b5aaa3; font: inherit; }
.bk-day.is-open { background: #e6f0ea; color: var(--green); font-weight: 800; cursor: pointer; }
.bk-day.is-open:hover { background: #cfe3d6; }
.bk-day.is-selected { background: var(--green); color: #fff; }
.bk-times-title { font-weight: 800; margin-top: 0; }
.bk-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.bk-time { padding: 10px 6px; border: 2px solid var(--cream-dark); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.bk-time:hover { border-color: var(--green); }
.bk-time.is-selected { border-color: var(--red); background: var(--red); color: #fff; }

.bk-form { display: grid; gap: 14px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-field { display: grid; gap: 4px; font-weight: 700; }
.bk-field small { font-weight: 400; color: var(--muted); }
.bk-children, .bk-kids { display: grid; gap: 14px; }
.bk-need { color: var(--muted); }
.bk-extra-days { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--cream-dark); }
.bk-extra-days[hidden] { display: none; }
.bk-extra-title { margin: 0; }
.bk-extra-title small { display: block; color: var(--muted); }
.bk-extra-day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bk-extra-day input { font: inherit; padding: 8px 10px; border: 2px solid var(--cream-dark); border-radius: 10px; background: #fff; }
.bk-extra-len { display: inline-flex; align-items: center; gap: 6px; }
.bk-extra-len input { width: 4.5em; }
.bk-extra-days .btn { cursor: pointer; font: inherit; font-weight: 800; justify-self: start; }
.bk-length { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.bk-field .bk-length input { width: 5.5em; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bk-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.ad-no-photos { color: var(--red); font-weight: 800; }
.bk-need:empty { display: none; }
.bk-children[hidden] { display: none; }
.bk-row.bk-kid { grid-template-columns: 3fr 1fr; }
.bk-field input, .bk-field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--cream-dark); border-radius: 10px; background: #fff; color: var(--ink); }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--green); }
.bk-summary { margin: 0; padding: 12px 14px; background: var(--cream); border-radius: 10px; font-weight: 800; color: var(--green); }
.bk-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 800; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Manage booking + admin */
.mg-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.mg-badge { display: inline-block; margin: 0 0 8px; padding: 0.2em 0.8em; border-radius: 999px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--cream-dark); color: var(--muted); }
.mg-confirmed { background: #e6f0ea; color: var(--green); }
.mg-pending { background: #fbf0d6; color: #8a6413; }
.mg-cancelled, .mg-expired { background: #fbe7e8; color: var(--red-dark); }
.mg-details { margin: 16px 0; }
.mg-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--cream-dark); }
.mg-row dt { font-weight: 800; }
.mg-row dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-actions .btn, .mg-panel .btn { cursor: pointer; font: inherit; font-weight: 800; }
.mg-panel:not(:empty) { margin-top: 20px; padding-top: 20px; border-top: 2px dashed var(--cream-dark); display: grid; gap: 14px; }
.mg-panel > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.mg-panel .btn { justify-self: start; }

.ad-section { margin-bottom: 48px; }
.ad-login { max-width: 360px; margin: 0 auto; }
.ad-booking h3 { margin-bottom: 4px; }
.ad-booking p { margin: 4px 0; overflow-wrap: anywhere; white-space: pre-line; }
.ad-cancelled { opacity: 0.6; }
.ad-days { border: 2px solid var(--cream-dark); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 14px; }
.ad-days legend { font-weight: 700; padding: 0 6px; }
.ad-windows { list-style: none; padding: 0; margin: 20px 0 0; }
.ad-windows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cream-dark); }
.ad-windows .btn { cursor: pointer; font: inherit; font-size: 0.9rem; }
.ad-window-btns { display: flex; gap: 8px; flex-shrink: 0; }
.ad-window-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.ad-window-times { display: flex; align-items: center; gap: 6px; }
.ad-window-times input { font: inherit; padding: 6px 8px; border: 2px solid var(--cream-dark); border-radius: 8px; }
.ad-window-edit .bk-error { flex-basis: 100%; margin: 0; }

/* FAQ */
details { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 800; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green); color: #e8efe9; padding: 48px 0 24px; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact a { color: #fff; }
.copyright { text-align: center; margin: 32px 0 0; font-size: 0.9rem; opacity: 0.75; }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards, .reviews { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .card-featured { margin-top: 8px; }
}

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-inner, .about { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .about .section-title { text-align: center; }
  .section { padding: 56px 0; }
  .stats { gap: 24px; }
}

@media (max-width: 700px) {
  .bk-packages, .bk-row { grid-template-columns: 1fr; }
  .bk-picker, .mg-panel > div { grid-template-columns: minmax(0, 1fr); }
  .bk-step, .mg-card { padding: 18px 16px; }
  .mg-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .logo { font-size: 1.2rem; }
  /* Phones: keep the green label on one line and make the hero buttons full width. */
  .eyebrow-place { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
.nav .btn { white-space: nowrap; flex-shrink: 0; }

/* Pay-by-invoice choice */
.bk-pay { border: 2px solid var(--cream-dark); border-radius: 10px; padding: 12px 16px; display: grid; gap: 8px; margin: 0; }
.bk-pay[hidden], .bk-field[hidden] { display: none; }
.bk-pay legend { font-weight: 800; padding: 0 6px; }
.bk-pay label { cursor: pointer; font-weight: 700; }
.bk-pay small { font-weight: 400; color: var(--muted); }
.ad-pay { margin: 0 0 0 8px; font-size: 0.75rem; vertical-align: middle; }

/* Visit length + address (house visits) */
.bk-visit { display: grid; grid-template-columns: 1fr 2fr auto; gap: 14px; align-items: end; margin-bottom: 20px; }
.bk-visit[hidden] { display: none; }
.bk-visit .btn { cursor: pointer; font: inherit; font-weight: 800; }
.bk-field select { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--cream-dark); border-radius: 10px; background: #fff; color: var(--ink); }
@media (max-width: 700px) { .bk-visit { grid-template-columns: 1fr; } .bk-visit .btn { justify-self: start; } }

.price small { font-size: 1rem; font-weight: 700; color: var(--muted); }

.bk-event { display: grid; gap: 14px; padding: 16px; border: 2px dashed var(--cream-dark); border-radius: 12px; }
.bk-event[hidden] { display: none; }

.ad-price { width: 120px; font: inherit; padding: 6px 10px; border: 2px solid var(--cream-dark); border-radius: 10px; }

/* Printing the booking page: just the logo and the booking details. */
@media print {
  body { background: #fff; }
  .site-header { position: static; box-shadow: none; border: 0; }
  .nav, .mg-actions, .mg-panel, .bk-notice, #manage-app > .bk-hint { display: none !important; }
  .section { padding: 16px 0; }
  .mg-card { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
}

/* Admin "Print schedule" bar. */
.ad-print-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.ad-print-bar select { font: inherit; padding: 8px 10px; border: 2px solid var(--cream-dark); border-radius: 10px; background: #fff; }
/* /schedule.html: Santa's printable schedule. */
body.schedule-page { background: #fff; }
.ps-view { max-width: 820px; margin: 0 auto; padding: 16px; }
.ps-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.ps-hint { color: var(--muted); flex-basis: 100%; margin: 0; }
.print-sheet { color: #000; font-size: 11.5pt; line-height: 1.35; }
.print-sheet h1 { font-size: 20pt; margin: 0 0 2pt; color: #000; }
.print-sheet .ps-printed { margin: 0 0 10pt; color: #444; font-size: 9pt; }
.print-sheet h2 { font-size: 14pt; margin: 14pt 0 6pt; padding-bottom: 3pt; border-bottom: 2px solid #000; color: #000; break-after: avoid; }
.print-sheet .ps-visit { border: 1px solid #999; border-radius: 6px; padding: 7pt 10pt; margin: 0 0 8pt; break-inside: avoid; page-break-inside: avoid; }
.print-sheet h3 { font-size: 12.5pt; margin: 0 0 4pt; color: #000; }
.print-sheet h3 span { font-weight: 400; }
.print-sheet p { margin: 2pt 0; white-space: pre-line; overflow-wrap: anywhere; }
.print-sheet .ps-no-photos { font-weight: 800; text-decoration: underline; }
@media print {
  .ps-toolbar { display: none !important; }
  .ps-view { padding: 0; max-width: none; }
}
