:root {
  --ink: #161515;
  --muted: #69625e;
  --paper: #fffdf9;
  --ivory: #f8f2eb;
  --blush: #e9b7aa;
  --rose: #b76e6c;
  --sage: #6f8173;
  --gold: #c9a45d;
  --charcoal: #24211f;
  --line: rgba(22, 21, 21, 0.12);
  --shadow: 0 22px 60px rgba(36, 33, 31, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.locked {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 34px rgba(22, 21, 21, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.hero-actions,
.hero-metrics,
.dashboard-actions,
.board-toolbar,
.footer-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}

.main-nav {
  gap: 24px;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.82;
}

.main-nav a:hover {
  opacity: 1;
}

.header-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/lash-studio-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 12, 11, 0.76) 0%, rgba(14, 12, 11, 0.46) 42%, rgba(14, 12, 11, 0.08) 76%),
    linear-gradient(0deg, rgba(14, 12, 11, 0.54), rgba(14, 12, 11, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.9;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.icon-button:hover,
.time-slot:not(:disabled):hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 34px rgba(183, 110, 108, 0.32);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
}

.button-secondary {
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
}

.hero-metrics div {
  min-width: 135px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  font-size: 27px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  padding: 38px 0;
  background: var(--charcoal);
  color: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: grid;
  min-height: 255px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(22, 21, 21, 0.06);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 18px;
}

.service-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink);
  font-weight: 800;
}

.booking-section {
  background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.booking-copy {
  position: sticky;
  top: 110px;
}

.booking-copy p:not(.section-kicker) {
  max-width: 530px;
  color: var(--muted);
  font-size: 17px;
}

.availability-note {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.availability-note span {
  color: var(--rose);
  font-size: 28px;
  line-height: 0.6;
}

.reward-callout {
  margin-top: 14px;
  border: 1px solid rgba(183, 110, 108, 0.24);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--charcoal);
  background: #fff7f4;
  font-weight: 800;
}

.booking-panel,
.dashboard-shell,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: clamp(18px, 3vw, 30px);
}

.form-row {
  margin-bottom: 18px;
}

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

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(183, 110, 108, 0.14);
}

textarea {
  resize: vertical;
}

.time-fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

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

.time-slot {
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.time-slot.selected {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.time-slot:disabled {
  color: rgba(22, 21, 21, 0.34);
  background: #efebe6;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.booking-footer p {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.booking-footer span {
  display: block;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--sage);
  font-weight: 800;
}

.dashboard-section {
  background: #f4f7f2;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dashboard-actions {
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

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

.stat {
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.management-grid {
  display: grid;
  gap: 16px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  color: #fff;
  background: var(--charcoal);
}

.dash-logo {
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.dash-link {
  border-radius: var(--radius);
  padding: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.dash-link.active,
.dash-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.appointment-board {
  min-width: 0;
  padding: 22px;
}

.board-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.board-toolbar strong {
  display: block;
}

.board-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

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

.appointment-card {
  display: grid;
  grid-template-columns: minmax(135px, 0.72fr) minmax(190px, 1fr) minmax(160px, 0.8fr) minmax(92px, 0.45fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
}

.appointment-card strong,
.appointment-card span {
  display: block;
}

.appointment-card span {
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.status.pending {
  color: #8a5b0b;
  background: #fff1cf;
}

.status.confirmed {
  color: #315c41;
  background: #dcebdd;
}

.status.completed {
  color: #4e5360;
  background: #e5e8ee;
}

.status.cancelled {
  color: #8f3f3f;
  background: #f4d9d9;
}

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

.mini-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mini-action.danger {
  color: #8f3f3f;
}

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-panel {
  padding: clamp(18px, 3vw, 24px);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.panel-heading input {
  max-width: 280px;
}

.customer-list,
.service-admin-list,
.reward-summary {
  display: grid;
  gap: 10px;
}

.customer-card,
.service-admin-card,
.reward-row {
  display: grid;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
}

.customer-card {
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 0.8fr) minmax(120px, 0.5fr) minmax(150px, 0.7fr);
}

.service-admin-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.service-admin-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.customer-card strong,
.customer-card span,
.service-admin-card strong,
.service-admin-card span,
.reward-row strong,
.reward-row span {
  display: block;
}

.customer-card span,
.service-admin-card span,
.reward-row span {
  color: var(--muted);
  font-size: 13px;
}

.reward-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #8a5b0b;
  background: #fff1cf;
  font-weight: 900;
}

.reward-pill.ready {
  color: #315c41;
  background: #dcebdd;
}

.reward-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe4dc;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

.service-form {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 18px;
}

.service-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--charcoal);
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .intro-grid,
  .booking-layout,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .booking-copy {
    position: static;
  }

  .service-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-sidebar {
    display: none;
  }

  .appointment-card {
    grid-template-columns: 1fr 1fr;
  }

  .customer-card,
  .reward-row {
    grid-template-columns: 1fr 1fr;
  }

  .row-actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-media {
    background-position: 61% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(14, 12, 11, 0.82), rgba(14, 12, 11, 0.34));
  }

  .hero-content {
    width: min(100% - 28px, 560px);
    margin-left: 14px;
  }

  .hero h1 {
    font-size: clamp(46px, 18vw, 72px);
  }

  .section {
    padding: 64px 0;
  }

  .service-grid,
  .stats-grid,
  .form-row.split,
  .appointment-card,
  .customer-card,
  .service-admin-card,
  .reward-row {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-footer,
  .dashboard-heading,
  .board-toolbar,
  .panel-heading,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-heading input {
    max-width: none;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions select {
    flex: 1;
  }
}
