/* The Bright Hour — brand tokens (identity-board palette) */
:root {
  --ivory: #F8F4ED;      /* Porcelain Ivory — page */
  --paper: #FCFAF6;      /* cards */
  --panel: #F1EBE1;      /* soft panels (summary, feature cards) */
  --ink: #1F1D1A;        /* Ink Black — text, primary buttons */
  --sage: #A8B5A3;       /* Cool Sage — accent */
  --sage-soft: #E3E8DF;  /* sage tint */
  --sage-strong: #6B7C66;/* sage for filled states with light text (AA) */
  --sage-deep: #56664F;  /* sage for small accent text */
  --sand: #DCCFBE;       /* Pale Sand */
  --gold: #C9B28D;       /* Soft Gold Beige */
  --gold-deep: #8A7550;
  --taupe: #B7A596;
  --muted: #615B53;
  --line: rgba(31, 29, 26, 0.13);
  --danger: #9A3B2F;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --serif: "EB Garamond", Georgia, serif;
  --caps: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --pill: 999px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(31, 29, 26, 0.05), 0 14px 34px -20px rgba(31, 29, 26, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0 0 0.45em; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.9rem, 9vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 500 0.7rem/1.3 var(--caps); letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 52px; padding: 0 1.8rem; border-radius: var(--pill); border: 1px solid var(--ink);
  background: var(--ink); color: var(--ivory); font: 500 1.08rem var(--serif); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: #3a3631; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-sage { background: var(--sage-strong); border-color: var(--sage-strong); }
.btn-sage:hover { background: var(--sage-deep); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.98rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Logo (stacked wordmark with sunburst) */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.logo svg { width: 64px; height: 33px; margin-bottom: 3px; }
.logo svg path, .logo svg .arc { stroke: var(--gold); fill: none; stroke-width: 1.3; stroke-linecap: round; }
.logo-word { font: 500 1.2rem/1 var(--display); letter-spacing: 0.2em; white-space: nowrap; padding-left: 0.2em; }
.logo-sub {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.45rem;
  font: 500 0.47rem/1 var(--caps); letter-spacing: 0.3em; color: var(--muted); white-space: nowrap;
}
.logo-sub::before, .logo-sub::after { content: ""; width: 18px; height: 1px; background: var(--taupe); }
@media (min-width: 860px) {
  .logo svg { width: 80px; height: 41px; }
  .logo-word { font-size: 1.5rem; }
  .logo-sub { font-size: 0.52rem; }
  .logo-sub::before, .logo-sub::after { width: 28px; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(248, 244, 237, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.nav-centered { justify-content: center; }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-links a { text-decoration: none; font-size: 1.08rem; padding: 0.3rem 0; }
.nav-links a.active { border-bottom: 1px solid var(--ink); }
.nav-links a:not(.btn):hover { color: var(--sage-deep); }
.nav-right { display: flex; align-items: center; gap: 0.4rem; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: 0.25s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; padding: 0.5rem 20px 1.5rem; border-bottom: 1px solid var(--line); }
.menu-open .mobile-menu { display: grid; gap: 0.1rem; }
.mobile-menu a { padding: 0.7rem 0; text-decoration: none; font-family: var(--display); font-size: 1.7rem; }
@media (min-width: 860px) {
  .nav { min-height: 96px; }
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu, .menu-open .mobile-menu, .nav-right .btn { display: none; }
}

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-sage { background: var(--sage-soft); }
.title-rule { display: flex; align-items: center; gap: 1.4rem; text-align: center; margin: 0 0 2.4rem; }
.title-rule::before, .title-rule::after { content: ""; flex: 1; height: 1px; background: var(--taupe); opacity: 0.7; }
.title-rule h2 { margin: 0; max-width: 34rem; }

/* Hero (drop a photo at /assets/img/hero.jpg; the sunburst gradient shows until then) */
.hero {
  position: relative; padding: 0; overflow: hidden; min-height: 640px; display: flex; align-items: flex-start;
  background:
    url("/assets/img/hero.jpg") 70% center / cover no-repeat,
    url("/assets/hero-fallback.svg") right -120px bottom -60px / 560px no-repeat,
    linear-gradient(160deg, #EFE6D9 0%, #E6DACA 55%, #D9CBB8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248, 244, 237, 0.94) 0%, rgba(248, 244, 237, 0.75) 42%, rgba(248, 244, 237, 0) 70%);
}
.hero-inner { position: relative; padding-top: 44px; padding-bottom: 56px; }
.hero h1 { max-width: 9.5em; margin-bottom: 0.3em; }
.hero .tagline { font: italic 400 clamp(1.3rem, 3.6vw, 1.75rem)/1.3 var(--display); margin: 0 0 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-strong); box-shadow: 0 0 0 4px var(--sage-soft); flex: none; }
@media (min-width: 860px) {
  .hero { min-height: min(86vh, 760px); align-items: center; background-position: 75% center, right -80px bottom -120px, 0 0; background-size: cover, 720px, auto; }
  .hero::before { background: linear-gradient(90deg, rgba(248, 244, 237, 0.92) 0%, rgba(248, 244, 237, 0.7) 38%, rgba(248, 244, 237, 0) 62%); }
  .hero-inner { padding-top: 40px; padding-bottom: 80px; }
}

/* Feature cards (Choose / Pick / We come to you) */
.features { display: grid; gap: 1rem; }
.feature {
  background: var(--panel); border-radius: var(--radius); padding: 2rem 1.4rem 1.8rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.feature .icon { width: 44px; height: 44px; stroke-width: 1.1; color: var(--muted); margin-bottom: 1rem; }
.feature h3 { font-size: 1.65rem; margin-bottom: 0.4rem; }
.feature p { font: 500 0.66rem/1.8 var(--caps); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0; max-width: 18rem; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Services */
.services { display: grid; gap: 1.4rem; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.service-meta { font: 500 0.68rem var(--caps); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.service ul { padding: 0; margin: 0.4rem 0 1.8rem; list-style: none; }
.service li { padding: 0.55rem 0; border-top: 1px solid var(--line); display: flex; gap: 0.7rem; }
.service li::before { content: ""; width: 5px; height: 5px; margin-top: 0.68em; border-radius: 50%; background: var(--gold); flex: none; }
.service .price { font-family: var(--display); font-size: 1.5rem; margin-top: auto; margin-bottom: 1.2rem; }
.service .price small { font-family: var(--serif); font-size: 0.9rem; color: var(--muted); display: block; }
.services-foot { margin-top: 2rem; color: var(--muted); }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps { display: grid; counter-reset: s; }
.step { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.5rem 1rem; }
.step::before { counter-increment: s; content: "0" counter(s); font: italic 400 1.9rem/1 var(--display); color: var(--gold-deep); }
.step h3 { font-size: 1.45rem; margin: 0 0 0.3rem; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } .step { grid-template-columns: 1fr; } }
.hours { display: grid; gap: 1rem; margin-top: 2rem; }
.hours div { background: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.5rem; border: 1px solid var(--line); }
.hours strong { display: block; font: 500 1.45rem var(--display); }
.hours span { color: var(--muted); }
@media (min-width: 760px) { .hours { grid-template-columns: repeat(3, 1fr); } }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
.about-card { background: var(--sand); border-radius: var(--radius); padding: 2.4rem 2rem; }
.about-card blockquote { margin: 0; font: italic 400 1.8rem/1.25 var(--display); }
.about-card svg { width: 96px; height: 50px; margin-bottom: 1.4rem; }
.about-card svg path, .about-card svg .arc { stroke: var(--gold-deep); fill: none; stroke-width: 1.3; stroke-linecap: round; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip { border: 1px solid var(--line); border-radius: var(--pill); padding: 0.35rem 0.95rem; font-size: 0.95rem; background: var(--paper); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.4rem 1.3rem 0; position: relative; font: 500 1.45rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* Contact */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 2rem; }
.cta .btn-row { justify-content: center; }
.contact-list { display: grid; gap: 1rem; margin-top: 3rem; text-align: left; }
.contact-list a, .contact-list div { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; text-decoration: none; }
.contact-list small { display: block; font: 500 0.66rem var(--caps); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.3rem; }
@media (min-width: 760px) { .contact-list { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; justify-items: start; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.footer-grid nav a { text-decoration: none; }
.footer-fine { margin-top: 2.2rem; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-fine em { font-family: var(--display); font-size: 1.05rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }

/* Prose (policies) */
.prose { max-width: 46rem; padding: 56px 0 96px; }
.prose h2 { font-size: 2rem; margin-top: 2.4rem; }
.prose p { color: #3d3934; }

.preview-banner { background: var(--ink); color: var(--ivory); font: 400 0.78rem/1.4 var(--caps); text-align: center; padding: 0.5rem 1rem; letter-spacing: 0.03em; }

/* ---------- Forms (shared) ---------- */
.field label, .label { display: block; font: 500 1.08rem var(--serif); margin-bottom: 0.45rem; }
.field label span { color: var(--muted); font-weight: 400; font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"],
input[type="time"], input[type="number"], textarea, select {
  width: 100%; min-height: 50px; padding: 0.7rem 1rem; border-radius: 10px; border: 1px solid rgba(31, 29, 26, 0.2);
  background-color: var(--paper); font: 400 17px var(--serif); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%231F1D1A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 18px;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sage-strong); box-shadow: 0 0 0 3px var(--sage-soft); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 2.8rem; }
.form-grid { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field-row-2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sage-strong); flex: none; }
.hp { position: absolute; left: -9999px; }
.note { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.98rem; background: var(--sage-soft); color: #33402f; margin: 0; }
.note.warn { background: #F3EBDD; color: #5d4a2a; }
.error { color: var(--danger); min-height: 1.4em; margin: 0.6rem 0 0; }
.link-btn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 0.4rem 0; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.empty { background: var(--paper); border: 1px dashed var(--taupe); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }
.loading { color: var(--muted); padding: 2rem 0; }

/* Toggle switch */
.switch { position: relative; display: inline-flex; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #D8D2C8; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 0.2s; }
.switch input:checked + span { background: var(--sage-strong); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--sage-strong); outline-offset: 2px; }

/* ---------- Booking ---------- */
.book-page { padding: 28px 0 96px; }
.book-shell { max-width: 580px; margin: 0 auto; }
.book-shell > h1 { font-size: clamp(2.3rem, 8vw, 3rem); text-align: center; margin-bottom: 1.4rem; }
.stepper { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0 0 2.2rem; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 1px; background: var(--taupe); }
.stepper li:first-child::before { display: none; }
.stepper b {
  width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  border: 1px solid var(--muted); background: var(--ivory); font: 500 0.95rem var(--serif);
}
.stepper small { font: 500 0.6rem var(--caps); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stepper li.is-on b { background: var(--sage-strong); border-color: var(--sage-strong); color: #fff; }
.stepper li.is-on small { color: var(--ink); }
.stepper li.is-done b { background: var(--sage-soft); border-color: var(--sage); }
.book-section { margin-bottom: 1.8rem; }
.book-section > .label { margin-bottom: 0.6rem; }

.svc {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; width: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem; font: inherit; color: inherit;
}
button.svc { cursor: pointer; transition: border-color 0.2s; }
button.svc:hover { border-color: var(--sage); }
.svc + .svc { margin-top: 0.8rem; }
.svc-thumb {
  width: 76px; height: 68px; border-radius: 8px; background: linear-gradient(150deg, var(--sage-soft), var(--sage) 120%);
  display: grid; place-items: center; overflow: hidden;
}
.svc-thumb svg { width: 50px; height: 26px; }
.svc-thumb svg path, .svc-thumb svg .arc { stroke: var(--paper); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.svc strong { display: block; font: 500 1.45rem/1.15 var(--display); }
.svc .svc-meta { color: var(--muted); font-size: 0.98rem; }
.svc .svc-desc { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.svc .tag { font-size: 0.95rem; background: var(--sage-soft); border-radius: 8px; padding: 0.35rem 0.8rem; border: 0; font-family: var(--serif); color: var(--ink); cursor: pointer; }
.svc .tag:hover { background: var(--sage); }

.datebar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; background: var(--paper); border: 1px solid rgba(31,29,26,.2); border-radius: 10px; min-height: 52px; }
.datebar button { height: 50px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.datebar button[disabled] { opacity: 0.25; cursor: default; }
.datebar .when { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 1.08rem; }
.datebar .when .icon { color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.time {
  min-height: 48px; border-radius: 8px; border: 1px solid rgba(31,29,26,.18); background: var(--paper);
  font: 400 1.05rem var(--serif); color: inherit; cursor: pointer;
}
.time:hover { border-color: var(--sage-strong); }
.time[aria-pressed="true"] { background: var(--sage-strong); color: #fff; border-color: var(--sage-strong); }
.summary-card { background: var(--panel); border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem; margin-bottom: 1.4rem; }
.summary-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.summary-card h3 { font-size: 1.5rem; margin: 0; }
.summary-card .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.summary-card .row span:last-child { text-align: right; }
.summary-card .row.total { border-top: 1px solid var(--taupe); margin-top: 0.5rem; padding-top: 0.75rem; font-weight: 500; }
.summary-card .fine { font-size: 0.92rem; color: var(--muted); margin: 0.6rem 0 0; }
.done { text-align: center; padding-top: 0.5rem; }
.done .logo { margin-bottom: 1.6rem; }
.ref { display: inline-block; font: 500 0.95rem var(--caps); letter-spacing: 0.16em; border: 1px solid var(--gold); border-radius: var(--pill); padding: 0.5rem 1.2rem; margin: 0.4rem 0 1.6rem; }
.panel { animation: rise 0.3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Admin ---------- */
.admin-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr); }
.admin-side { border-bottom: 1px solid var(--line); background: var(--ivory); position: sticky; top: 0; z-index: 10; }
.admin-side > .logo { margin: 16px auto 10px; display: flex; width: max-content; }
.side-nav { display: flex; gap: 0.25rem; overflow-x: auto; padding: 0 12px 10px; }
.side-nav button {
  display: flex; align-items: center; gap: 0.65rem; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 400 1.02rem var(--serif); color: var(--ink); padding: 0.6rem 0.9rem; border-radius: 10px;
}
.side-nav button:hover { background: var(--panel); }
.side-nav button[aria-current="page"] { background: var(--sage-soft); font-weight: 500; }
.side-nav .count { min-width: 1.5em; padding: 0 0.4em; border-radius: 99px; background: var(--sage-strong); color: #fff; font: 500 0.75rem/1.5 var(--caps); text-align: center; }
.side-foot { display: none; }
.admin-main { padding: 28px 20px 80px; max-width: 920px; width: 100%; min-width: 0; }
.admin-head { margin-bottom: 1.8rem; }
.admin-head h1 { font-size: clamp(2.2rem, 6vw, 3.1rem); margin-bottom: 0.4rem; }
.admin-head p { font: 500 0.64rem/1.5 var(--caps); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .admin-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .admin-side { height: 100vh; border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 18px; }
  .admin-side > .logo { margin: 0 0 2.6rem; align-self: flex-start; }
  .side-nav { flex-direction: column; overflow: visible; padding: 0; }
  .side-foot { display: grid; justify-items: start; gap: 0.2rem; margin-top: auto; }
  .admin-main { padding: 48px 48px 96px; }
  .mobile-only { display: none !important; }
}
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 1rem; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.9rem; margin: 0; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 1.2rem; margin-bottom: 1.8rem; }
.hours-row { display: grid; grid-template-columns: 44px 1fr; gap: 0.6rem 0.9rem; align-items: center; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.hours-row:first-child { border-top: 0; }
.hours-row .day { font-weight: 500; }
.hours-row .times-sel { display: flex; align-items: center; gap: 0.5rem; grid-column: 1 / -1; flex-wrap: wrap; }
.hours-row .times-sel select { min-height: 44px; padding: 0.4rem 2rem 0.4rem 0.8rem; font-size: 16px; width: auto; flex: 1; min-width: 0; }
.hours-row .times-sel .max { flex: none; width: auto; }
.hours-row .closed { font-style: italic; color: var(--muted); grid-column: 1 / -1; }
@media (min-width: 640px) {
  .hours-row { grid-template-columns: 44px 3.4rem 1fr; }
  .hours-row .times-sel, .hours-row .closed { grid-column: 3; flex-wrap: nowrap; }
}
.dash { color: var(--muted); }
.settings-grid { display: grid; gap: 1rem 1.6rem; margin-bottom: 1.6rem; }
@media (min-width: 640px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 2rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat b { display: block; font: 500 2.1rem/1 var(--display); margin-bottom: 0.3rem; }
.stat span { font: 500 0.6rem/1.4 var(--caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.appt-list { display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.appt {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 1rem; width: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 1rem 0.7rem 0.7rem;
  font: inherit; color: inherit; cursor: pointer;
}
.appt:hover { border-color: var(--sage); }
.datetile { background: var(--panel); border-radius: 8px; text-align: center; padding: 0.45rem 0; }
.datetile small { display: block; font: 500 0.62rem var(--caps); letter-spacing: 0.16em; }
.datetile b { display: block; font: 500 1.9rem/1 var(--display); }
.appt strong { display: block; font: 500 1.3rem/1.2 var(--display); }
.appt .sub { color: var(--muted); font-size: 0.95rem; }
.pill { font: 400 0.9rem var(--serif); padding: 0.25rem 0.75rem; border-radius: 8px; white-space: nowrap; background: var(--panel); text-transform: capitalize; }
.pill-pending { background: #F3EBDD; }
.pill-confirmed { background: var(--sage-soft); }
.pill-declined, .pill-cancelled { background: #F1E4E1; }
.pill-completed { background: var(--sand); }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filters button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--pill); padding: 0.35rem 1rem; font: inherit; font-size: 0.98rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.cards { display: grid; gap: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.card-head h3 { font-size: 1.5rem; margin: 0; }
.card .when { margin: 0.1rem 0 0.8rem; }
.card dl { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.35rem 0.8rem; font-size: 0.98rem; margin: 0 0 1rem; }
.card dt { color: var(--muted); }
.card dd { margin: 0; overflow-wrap: anywhere; }
.badge-out { color: #5d4a2a; background: #F3EBDD; border-radius: 6px; padding: 0 0.4rem; font-size: 0.85rem; margin-left: 0.3rem; }
.day-nav { display: grid; grid-template-columns: 48px 1fr 48px; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
.day-nav button { height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.55rem; margin: 1rem 0 1.4rem; }
.slot { min-height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; cursor: pointer; line-height: 1.2; color: inherit; }
.slot small { display: block; font: 500 0.6rem var(--caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.slot.open { border-color: var(--sage); }
.slot.blocked { background: repeating-linear-gradient(135deg, #efe8de, #efe8de 6px, #f7f2ea 6px, #f7f2ea 12px); }
.slot.booked { background: var(--sage-soft); cursor: default; }
.slot.past, .slot.full { opacity: 0.55; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--ivory); padding: 0.75rem 1.3rem; border-radius: var(--pill); transition: 0.25s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.login { max-width: 400px; margin: 8vh auto; padding: 0 20px; }
.login > .logo { display: flex; width: max-content; margin: 0 auto 2.4rem; }

/* fixes */
.nav-links a.btn { padding: 0 1.4rem; color: var(--ivory); }
.nav-links a.btn:hover { color: var(--ivory); }
@media (min-width: 860px) { .hero h1 { max-width: 7.2em; font-size: clamp(4rem, 6.6vw, 6rem); } }
@media (min-width: 760px) { .title-rule h2 { max-width: none; flex: none; } }
.admin-side .logo-word { font-size: 1.12rem !important; }
.admin-side .logo svg { width: 64px !important; height: 33px !important; }
.admin-side .logo-sub { font-size: 0.45rem !important; }
.admin-side .logo-sub::before, .admin-side .logo-sub::after { width: 16px !important; }
[hidden] { display: none !important; }
.hours-row .times-sel select { padding: 0.4rem 1.6rem 0.4rem 0.6rem; background-position: right 0.4rem center; background-size: 14px; }
