:root {
  color-scheme: light;
  --ink: #171615;
  --muted: #6c6861;
  --line: #ded8cf;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --coal: #252321;
  --teal: #0f766e;
  --teal-dark: #0b5c55;
  --clay: #a64b35;
  --gold: #c7963f;
  --green: #2f7d4c;
  --shadow: 0 18px 48px rgba(31, 28, 24, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #efede8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--coal);
}

.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1180px, 100%);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.account-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.login-button,
.signup-button {
  min-height: 42px;
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  color: #fffaf1;
  background: rgba(20, 18, 15, 0.54);
  font-weight: 850;
}

.signup-button {
  min-height: 34px;
  color: var(--coal);
  background: rgba(255, 250, 241, 0.88);
  font-size: 0.82rem;
}

.hold-spot-button {
  width: fit-content;
  min-height: 56px;
  border: 1px solid rgba(255, 250, 241, 0.36);
  border-radius: 8px;
  margin-top: 34px;
  padding: 4px 20px;
  color: #1c1711;
  background: linear-gradient(135deg, #f8efe2, #c7963f);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.menu-toggle {
  display: inline-grid;
  position: relative;
  width: 48px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.34);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fffaf1;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  position: absolute;
  z-index: 5;
  top: 68px;
  left: max(18px, calc((100% - 1180px) / 2 + 24px));
  display: grid;
  width: min(310px, calc(100% - 36px));
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 8px;
  padding: 8px;
  background: rgba(24, 23, 21, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-menu a {
  border-radius: 8px;
  padding: 12px;
  color: #fffaf1;
  font-weight: 800;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus {
  background: rgba(255, 250, 241, 0.12);
}

.hero-brand {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 108px 24px 78px;
  color: #fffaf1;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-brand h1 {
  max-width: 720px;
  margin: 0;
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 10vw, 8rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.92;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
}

.hero-brand h1 span {
  color: #e7c47a;
}

.client-proof {
  width: fit-content;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 8px;
  padding: 8px 11px;
  color: #f8efe2;
  background: rgba(18, 17, 15, 0.34);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 820;
}

.hero-tagline {
  max-width: 560px;
  margin: 18px 0 0;
  color: #f8efe2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.52);
}

.license-line {
  width: fit-content;
  margin: 14px 0 0;
  color: rgba(255, 250, 241, 0.84);
  font-size: 0.92rem;
  font-weight: 780;
}

.login-panel {
  position: absolute;
  z-index: 6;
  top: 72px;
  right: max(18px, calc((100% - 1180px) / 2 + 24px));
  display: none;
  width: min(350px, calc(100% - 36px));
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.login-panel.is-open {
  display: grid;
  gap: 12px;
}

.auth-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.login-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-heading button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #f0eee9;
  font-size: 1.2rem;
}

.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e9f5f1;
  font-weight: 850;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.login-options button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 820;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.88), rgba(18, 17, 15, 0.52) 42%, rgba(18, 17, 15, 0.18)),
    linear-gradient(0deg, rgba(10, 9, 8, 0.58), rgba(10, 9, 8, 0.08) 42%);
}

.page-shell {
  display: none;
  max-width: 980px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 24px 34px;
  position: relative;
  z-index: 2;
}

body.page-open .page-shell {
  display: block;
  margin-top: 0;
  padding-top: 28px;
}

body.page-open .hero {
  display: none;
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: block;
}

.content-panel,
.booking-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content-panel h1 {
  margin: 6px 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.service-list,
.hours-list {
  display: grid;
  gap: 10px;
}

.service-list div,
.hours-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--paper);
}

.service-list span,
.hours-list span {
  color: var(--muted);
  font-weight: 760;
  text-align: right;
}

.contact-phone {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  font-size: 1.1rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-status {
  margin: 14px 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  color: var(--teal-dark);
  background: #e9f5f1;
  font-weight: 760;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.admin-stats span {
  display: block;
  font-size: 1.6rem;
  font-weight: 850;
}

.admin-stats small {
  color: var(--muted);
  font-weight: 760;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.admin-grid h2 {
  margin-bottom: 12px;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.admin-list span,
.admin-list small {
  color: var(--muted);
}

.site-footer {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 320px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 58px;
  color: #fffaf1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-topline a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fffaf1;
  background: rgba(20, 18, 15, 0.44);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.info-band article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.info-band h2 {
  margin: 4px 0 8px;
  font-size: 1rem;
}

.info-band p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  max-width: 510px;
}

.hero-metrics div {
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: rgba(20, 18, 15, 0.44);
  backdrop-filter: blur(8px);
}

.hero-metrics span {
  display: block;
  font-size: 1.35rem;
  font-weight: 850;
}

.hero-metrics small {
  color: rgba(255, 250, 241, 0.76);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 24px 36px;
  position: relative;
  z-index: 2;
}

.booking-panel,
.main-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: 20px;
  align-self: start;
}

.main-panel {
  padding: 20px;
  min-width: 0;
}

.panel-heading,
.toolbar,
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.price-policy {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: #e9f5f1;
}

.price-policy strong {
  color: var(--teal-dark);
}

.price-policy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 12px;
  background: #f4f0e8;
  color: var(--muted);
}

.service-preview strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.primary-button,
.toolbar-actions button,
.appointment-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 820;
}

.primary-button {
  color: #fff;
  background: var(--teal);
}

.primary-button:hover {
  background: var(--teal-dark);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-actions input,
.list-heading select {
  width: auto;
}

.toolbar-actions button {
  color: var(--teal-dark);
  background: #dcefe9;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin: 20px 0 24px;
}

.slot {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.slot strong,
.slot span {
  display: block;
}

.slot strong {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.slot span {
  color: var(--muted);
  font-size: 0.82rem;
}

.slot.booked {
  border-color: rgba(166, 75, 53, 0.4);
  background: #fff3ee;
}

.slot.open {
  border-color: rgba(47, 125, 76, 0.26);
}

.closed-day {
  grid-column: 1 / -1;
  min-height: 126px;
  border: 1px solid rgba(166, 75, 53, 0.26);
  border-radius: 8px;
  padding: 18px;
  background: #fff3ee;
}

.closed-day strong,
.closed-day span {
  display: block;
}

.closed-day strong {
  margin-bottom: 8px;
  color: #8d2d1c;
  font-size: 1.1rem;
}

.closed-day span {
  color: var(--muted);
}

.appointment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.appointment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.appointment-main {
  min-width: 0;
}

.appointment-main h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0;
}

.appointment-meta,
.appointment-notes {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.appointment-notes {
  margin-top: 6px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  margin-top: 9px;
  color: #fff;
  background: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pill.confirmed {
  background: var(--teal);
}

.status-pill.done {
  background: var(--green);
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.appointment-actions button {
  color: var(--ink);
  background: #f0eee9;
}

.appointment-actions .danger {
  color: #8d2d1c;
  background: #fae7e0;
}

.empty-state,
.form-message {
  margin: 0;
  color: var(--muted);
}

.form-message {
  min-height: 20px;
  font-size: 0.88rem;
  font-weight: 720;
}

@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
    margin-top: -26px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    min-height: 300px;
    padding: 86px 16px 46px;
  }

  .site-header {
    padding: 16px;
    gap: 8px;
  }

  .menu-toggle {
    width: 46px;
    min-width: 46px;
  }

  .hold-spot-button {
    min-height: 48px;
    margin-top: 30px;
    padding: 4px 10px;
    font-size: 0.82rem;
  }

  .login-button,
  .signup-button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .hero-brand {
    padding: 112px 16px 64px;
  }

  .hero-brand h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .client-proof {
    font-size: 0.82rem;
  }

  .hero-tagline {
    max-width: 320px;
  }

  .login-panel {
    right: 14px;
    top: 70px;
    width: calc(100% - 28px);
  }

  .page-shell {
    margin-top: 0;
    padding: 0 14px 28px;
  }

  body.page-open .page-shell {
    padding-top: 18px;
  }

  .hero-metrics,
  .two-col,
  .appointment-card,
  .login-options,
  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 0 14px 28px;
  }

  .panel-heading,
  .toolbar,
  .list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions input,
  .toolbar-actions button,
  .list-heading select {
    width: 100%;
  }

  .appointment-actions {
    justify-content: flex-start;
  }

  .service-list div,
  .hours-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-list span,
  .hours-list span {
    text-align: left;
  }
}
