:root {
  --ink: #282724;
  --muted: #6f6a61;
  --paper: #fbfaf6;
  --linen: #f0ebe1;
  --sage: #6f826d;
  --moss: #43543f;
  --rose: #c98787;
  --clay: #a86f4f;
  --line: #ded6c8;
  --shadow: 0 18px 60px rgba(40, 39, 36, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,250,246,.95)),
    radial-gradient(circle at 20% 0%, #fff 0, var(--paper) 34%, var(--linen) 100%);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 214, 200, 0.7);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--moss); color: white; border-radius: 50%; font-size: 12px; }
.nav { display: flex; gap: 18px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--moss); }
.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: clamp(40px, 8vw, 100px);
  background:
    linear-gradient(90deg, rgba(24,29,25,.78), rgba(40,39,36,.18)),
    url("/static/img/ntwv-premium-treatment-room-hero.webp") center/cover;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(251,250,246,0), var(--paper));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; animation: rise-in .7s ease-out both; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--rose); font-weight: 800; }
.hero .eyebrow { color: #f5d0c8; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { font-family: Georgia, serif; font-size: clamp(42px, 7vw, 86px); font-weight: 500; }
h2 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 50px); font-weight: 500; }
h3 { font-size: 21px; }
.lead { max-width: 680px; font-size: clamp(18px, 2.2vw, 24px); color: rgba(255,255,255,.88); }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--moss);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.button.primary { background: var(--moss); color: #fff; }
.button.secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(40,39,36,.14); }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button.full { width: 100%; }
.band, .treatment-list, .booking-shell, .admin-shell, .portal-shell { padding: clamp(30px, 6vw, 72px) clamp(18px, 4vw, 54px); }
.section-heading { margin-bottom: 24px; }
.section-heading.compact { margin-bottom: 16px; }
.category-grid, .treatment-grid, .metric-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.category-card, .treatment-card, .booking-panel, .metric-row div {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.category-card, .treatment-card, .booking-panel, .metric-row div, .calendar-day, .client-row {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover, .treatment-card:hover, .booking-panel:hover, .calendar-day:hover, .client-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(40, 39, 36, 0.15);
  border-color: rgba(111,130,109,.42);
}
.category-card { display: grid; gap: 10px; padding: 22px; text-decoration: none; }
.swatch { width: 34px; height: 6px; border-radius: 99px; }
.category-card span:last-child, .meta, .muted { color: var(--muted); }
.page-head { padding: clamp(40px, 8vw, 88px) clamp(18px, 4vw, 54px) 30px; max-width: 900px; }
.portal-head { max-width: 980px; }
.page-head p { font-size: 18px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 clamp(18px, 4vw, 54px) 24px; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; text-decoration: none; background: #fff; }
.filters a.active { background: var(--moss); color: #fff; border-color: var(--moss); }
.category-section { margin-bottom: 34px; }
.category-section h2 { margin-bottom: 16px; }
.treatment-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 22px; }
.booking-shell { display: grid; justify-items: center; }
.booking-panel { width: min(840px, 100%); padding: clamp(22px, 4vw, 40px); }
.booking-form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 7px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(111,130,109,.22);
  border-color: var(--sage);
}
.two-col { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 600; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; min-height: 45px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.slot.selected { background: var(--moss); color: #fff; border-color: var(--moss); }
.success h1 { color: var(--moss); }
.warning h1 { color: var(--clay); }
.notice { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; margin-bottom: 16px; }
.metric-row div { padding: 20px; display: grid; gap: 6px; }
.metric-row strong { font-size: 36px; font-family: Georgia, serif; }
.admin-list { display: grid; gap: 10px; }
.admin-list article { display: grid; grid-template-columns: 190px 1fr auto; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.admin-actions { margin-top: 18px; }
.admin-inline-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-inline-actions form { margin: 0; }
.availability-form { display: grid; gap: 18px; }
.availability-grid { display: grid; gap: 12px; }
.availability-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(130px, .7fr) minmax(130px, .7fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.compact-check { margin-top: 8px; }
.availability-actions { margin-top: 2px; }
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.portal-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.portal-note { margin-top: 14px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.calendar-day, .client-row {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.calendar-day { padding: 18px; display: grid; gap: 14px; align-content: start; }
.calendar-booking {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(240,235,225,.55);
  border: 1px solid rgba(222,214,200,.75);
}
.calendar-booking small, .client-row small { color: var(--muted); }
.calendar-day.empty { min-height: 160px; place-content: center; }
.client-list { display: grid; gap: 12px; }
.client-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(160px, .8fr) minmax(220px, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: center;
}
.client-row > div { display: grid; gap: 5px; }
.footer { display: flex; justify-content: space-between; padding: 24px clamp(18px, 4vw, 54px); border-top: 1px solid var(--line); color: var(--muted); }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .site-header, .footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .hero { min-height: 72vh; padding: 30px 18px; }
  .two-col, .admin-list article, .portal-grid, .dashboard-grid, .client-row, .availability-row { grid-template-columns: 1fr; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .admin-inline-actions { justify-content: flex-start; }
}
