:root {
  --ink: #3F3F3F;
  --muted: #6d6c67;
  --paper: #F8F5EF;
  --linen: #E9E5DF;
  --mist: #DDE7DF;
  --sage: #A8C3B0;
  --eucalyptus: #7FA28A;
  --moss: #4D6757;
  --gold: #C8A97E;
  --taupe: #B6A79B;
  --blush: #DDB9B0;
  --line: rgba(77, 103, 87, 0.18);
  --shadow: 0 18px 60px rgba(63, 63, 63, 0.10);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Montserrat", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,245,239,.96)),
    radial-gradient(circle at 14% 0%, rgba(168,195,176,.28) 0, transparent 32%),
    linear-gradient(135deg, var(--paper), #f2f0ec 54%, var(--mist));
}
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(248, 245, 239, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  max-width: 52px;
  height: 52px;
  max-height: 52px;
  background: #fff;
  border: 1px solid rgba(200,169,126,.48);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(77,103,87,.12);
}
.brand-mark img {
  display: block;
  width: 52px;
  max-width: 52px;
  height: 52px;
  max-height: 52px;
  object-fit: cover;
}
.brand-wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--moss); }
.nav { display: flex; gap: 18px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--moss); }
.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 8vw, 100px);
  background:
    linear-gradient(90deg, rgba(63,63,63,.70), rgba(77,103,87,.18)),
    url("/static/img/ntwv-studio-nail-desk-wide.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(248,245,239,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; }
.hero-brand-card {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(330px, 100%);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background: rgba(248,245,239,.92);
  color: var(--moss);
  box-shadow: 0 28px 80px rgba(38,48,42,.22);
  text-align: center;
  animation: rise-in .8s ease-out .1s both;
}
.hero-brand-card img { width: min(230px, 86%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; border: 1px solid rgba(200,169,126,.5); }
.hero-brand-card p { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--moss); font-weight: 800; }
.hero .eyebrow { color: #f4dfc0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(42px, 7vw, 86px); font-weight: 700; }
h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 4vw, 50px); font-weight: 700; }
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; }
.section-heading p:not(.eyebrow) { max-width: 720px; color: var(--muted); line-height: 1.65; }
.studio-intro {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 54px);
  background: rgba(255,253,247,.58);
}
.studio-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  grid-template-rows: repeat(2, minmax(180px, 260px));
  gap: 14px;
}
.studio-gallery img,
.studio-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(77,103,87,.16);
  box-shadow: 0 18px 54px rgba(40,39,36,.12);
}
.studio-gallery-main { grid-row: 1 / -1; }
.studio-strip {
  display: grid;
  grid-template-columns: .74fr 1fr 1.2fr;
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 54px) 30px;
}
.studio-strip img { aspect-ratio: 4 / 3; }
.studio-strip img:first-child { aspect-ratio: 3 / 4; }
.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;
  grid-template-columns: minmax(280px, 420px) minmax(0, 840px);
  justify-content: center;
  align-items: start;
  gap: 18px;
}
.booking-panel { width: min(840px, 100%); padding: clamp(22px, 4vw, 40px); }
.booking-studio-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}
.booking-studio-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.booking-studio-panel div { padding: 22px; }
.booking-studio-panel h2 { font-size: clamp(28px, 3vw, 38px); color: var(--moss); }
.booking-studio-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.62; }
.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: "Cormorant Garamond", 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(150px, .45fr) minmax(0, 1.55fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.availability-day-heading { display: grid; gap: 6px; }
.availability-periods { display: grid; gap: 10px; }
.availability-period {
  display: grid;
  grid-template-columns: minmax(96px, .8fr) repeat(2, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}
.compact-check { margin-top: 8px; }
.availability-actions { margin-top: 2px; }
.admin-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.admin-form, .compact-admin-form, .service-admin-list, .treatment-admin-list, .settings-form {
  display: grid;
  gap: 16px;
}
.service-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.category-edit-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 90px minmax(110px, .6fr) 90px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.treatment-edit-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248,245,239,.72);
}
.treatment-edit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wide-field { grid-column: 1 / -1; }
.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(221,231,223,.58);
  border: 1px solid var(--line);
}
.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; }
  .site-header { padding: 14px 18px; }
  .brand { max-width: 100%; }
  .brand-wordmark { font-size: 22px; line-height: 1.05; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .hero { min-height: 72vh; padding: 30px 18px; grid-template-columns: 1fr; }
  .hero-brand-card { justify-self: start; width: min(280px, 100%); }
  .studio-gallery, .studio-strip { grid-template-columns: 1fr; grid-template-rows: none; }
  .studio-gallery img, .studio-strip img, .studio-strip img:first-child { aspect-ratio: 4 / 3; }
  .studio-gallery-main { grid-row: auto; }
  .two-col, .admin-list article, .portal-grid, .dashboard-grid, .client-row, .availability-row, .service-admin-layout, .category-edit-row, .settings-grid, .booking-shell { grid-template-columns: 1fr; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .treatment-edit-head { align-items: flex-start; flex-direction: column; }
  .admin-inline-actions { justify-content: flex-start; }
}
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px;
  }
  .brand {
    max-width: 100%;
  }
  .brand-wordmark {
    font-size: 22px;
    line-height: 1.05;
  }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .nav a {
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255,255,255,.68);
    font-size: 13px;
  }
  .booking-shell {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }
  .booking-panel,
  .booking-studio-panel {
    width: 100%;
    max-width: 100%;
  }
  .booking-panel {
    padding: 22px;
  }
  .booking-panel h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1;
  }
  .booking-studio-panel img {
    max-height: 300px;
  }
  .booking-studio-panel div {
    padding: 18px;
  }
  .booking-studio-panel h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.02;
  }
  .slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slot {
    width: 100%;
  }
  input,
  select,
  textarea {
    min-width: 0;
  }
}
