/* ==========================================================================
   CIANA Nail Spa — Hand Service Menu  ·  v1.0.0
   Target: 11-inch iPad landscape (1180×820), then portrait, then phone.

   BRAND TOKENS — swap these for the pedicure site's exact token values
   (styles.css on os.ciananails.com) so both menus are one experience.
   Every color/size below reads from these; nothing is hardcoded later.
   ========================================================================== */
:root {
  --bg: #F8F4EE;              /* page */
  --bg-sidebar: #EFE8DF;      /* sidebar panel */
  --surface: #FBF8F3;
  --surface-head: #EEE6DC;    /* table header band */
  --text: #2A1F19;
  --text-2: #5C4E44;
  --text-muted: #8A7B70;
  --line: #E2D8CC;            /* thin dividers */
  --line-strong: #CFC2B3;     /* outlined buttons */
  --active-bg: #3A2A21;       /* active category pill */
  --active-text: #F6EFE6;
  --accent: #B8944F;          /* gold — sparing, premium details only */
  --review: #B4532A;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;

  --sidebar-w: 290px;
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-light: 0 1px 2px rgba(42, 31, 25, .06), 0 6px 18px rgba(42, 31, 25, .05);

  --t-fast: 150ms;
  --t-ui: 250ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11100F; --bg-sidebar: #181513; --surface: #1A1714; --surface-head: #201C19;
    --text: #F5F1EB; --text-2: #CFC5B8; --text-muted: #9C9186;
    --line: #2E2925; --line-strong: #4A423B;
    --active-bg: #D8B36A; --active-text: #11100F; --accent: #D8B36A; --review: #E8916A;
  }
}
:root[data-theme="dark"] {
  --bg: #11100F; --bg-sidebar: #181513; --surface: #1A1714; --surface-head: #201C19;
  --text: #F5F1EB; --text-2: #CFC5B8; --text-muted: #9C9186;
  --line: #2E2925; --line-strong: #4A423B;
  --active-bg: #D8B36A; --active-text: #11100F; --accent: #D8B36A; --review: #E8916A;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg-sidebar);
  padding: 56px 22px 28px;
}
.logo { text-align: center; text-decoration: none; margin-bottom: 52px; display: block; }
.logo__word {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 58px; line-height: .95; letter-spacing: .04em;
}
.logo__sub {
  display: block; margin-top: 10px; font-size: 13px; letter-spacing: .42em;
  padding-left: .42em; color: var(--text-2);
}

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav__item {
  display: flex; align-items: center; min-height: 54px;
  padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  background: transparent; text-align: left; text-decoration: none;
  font-size: 21px; color: var(--text); cursor: pointer;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease);
}
.nav__item:hover { background: color-mix(in srgb, var(--active-bg) 7%, transparent); }
.nav__item:active { transform: scale(.98); }
.nav__item[aria-current="page"] { background: var(--active-bg); color: var(--active-text); }
.nav__item--link { color: var(--text-2); }

.sidebar__foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 60px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: transparent; text-decoration: none; font-size: 19px; cursor: pointer;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-outline:hover { border-color: var(--text-2); }
.btn-outline:active { transform: scale(.98); }
.btn-outline[aria-current="page"] { background: var(--active-bg); color: var(--active-text); border-color: var(--active-bg); }
.btn-outline svg { width: 24px; height: 24px; flex: none; }

/* ---------- main ---------- */
.main { position: relative; padding: 52px 48px 36px 44px; display: flex; flex-direction: column; min-width: 0; }
.back {
  position: absolute; top: 34px; right: 22px; width: auto; min-height: 52px; font-size: 18px;
}

.panel { flex: 1; display: flex; flex-direction: column; max-width: 1040px; width: 100%; }
.panel.is-entering { animation: panelIn var(--t-ui) var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0; font-size: 13px; letter-spacing: .38em; text-transform: uppercase; color: var(--text-muted); }
.title {
  margin: 6px 0 0; font-family: var(--font-display); font-weight: 500;
  font-size: 64px; line-height: 1; letter-spacing: -.01em;
}
.subtitle { margin: 6px 0 0; font-size: 24px; color: var(--text-2); }
.head { margin-bottom: 26px; padding-right: 230px; }

/* section heading */
.sec { margin-top: 18px; }
.sec + .sec { margin-top: 28px; }
.sec__title {
  margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: .01em;
}

/* list rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows--two { column-count: 2; column-gap: 56px; }
.row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  min-height: 58px; padding: 14px 4px; border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.row--compact { min-height: 52px; padding: 11px 4px; }
.row__name { font-size: 22px; }
.row__detail, .row__unit { color: var(--text-muted); font-size: 17px; }
.row__unit { margin-left: 8px; font-style: italic; }
.row__detail { display: block; margin-top: 2px; }
.price { font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price--none { color: var(--text-muted); font-weight: 400; }

/* table (Full Set / Fill) */
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--surface-head); text-align: left; font-weight: 600;
  font-size: 20px; letter-spacing: .02em; padding: 15px 26px; height: 60px;
}
.table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.table th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.table th.num, .table td.num { text-align: center; width: 22%; }
.table td { padding: 14px 26px; height: 64px; border-bottom: 1px solid var(--line); font-size: 22px; }
.table td.num { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.table .dot { margin: 0 .35em; color: var(--text-muted); }
.dash { color: var(--text-muted); font-weight: 400; }

/* complete-your-look CTA */
.cta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-top: 30px; min-height: 96px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: transparent; width: 100%; padding: 0;
  cursor: pointer; text-align: center;
  transition: border-color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease);
}
.cta:hover { border-color: var(--text-2); }
.cta:active { transform: scale(.99); }
.cta__lead { font-family: var(--font-display); font-weight: 500; font-size: 34px; }
.cta__rule { width: 1px; height: 52px; background: var(--line-strong); }
.cta__link { font-size: 21px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.cta__link svg { width: 30px; height: 14px; }

/* gift cards */
.gift {
  margin-top: 8px; padding: 40px 36px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); text-align: center;
}
.gift__icon { width: 40px; height: 40px; color: var(--accent); }
.gift__lead { margin: 10px 0 26px; font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.amounts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.amount {
  display: flex; align-items: center; justify-content: center; min-height: 76px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums;
}
.amount--custom { font-size: 19px; font-weight: 400; }
.gift__note { margin: 22px 0 0; color: var(--text-muted); font-size: 18px; }

/* slogan footer */
.slogan {
  margin-top: auto; padding-top: 34px; text-align: center;
  font-size: 14px; letter-spacing: .3em; color: var(--text-muted);
}
.slogan::after { content: ""; display: block; width: 52px; height: 1px; margin: 12px auto 0; background: var(--line-strong); }

/* owner review mode (?review=1) — never visible to guests */
.review-banner {
  margin: 0 0 18px; padding: 12px 16px; border: 1px dashed var(--review);
  border-radius: var(--radius-sm); color: var(--review); font-size: 16px;
}
.is-review { background: color-mix(in srgb, var(--review) 8%, transparent); }
.flag { display: block; margin-top: 4px; font-size: 15px; color: var(--review); font-style: italic; }

/* ---------- iPad portrait & narrow landscape ---------- */
@media (max-width: 1100px) {
  :root { --sidebar-w: 240px; }
  .sidebar { padding: 44px 16px 24px; }
  .logo__word { font-size: 48px; }
  .nav__item { font-size: 19px; padding: 0 16px; }
  .main { padding: 44px 30px 30px; }
  .title { font-size: 54px; }
  .rows--two { column-count: 1; }
  .table th, .table td { padding-left: 16px; padding-right: 16px; }
}

/* ---------- phone & small portrait: sidebar becomes a top bar ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 10; height: auto;
    padding: 14px 0 10px; border-bottom: 1px solid var(--line);
  }
  .logo { margin: 0 0 10px; }
  .logo__word { font-size: 34px; }
  .logo__sub { font-size: 10px; margin-top: 4px; }
  .nav {
    flex-direction: row; gap: 8px; overflow-x: auto; padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav__item { flex: none; min-height: 44px; padding: 0 16px; font-size: 17px; border-radius: var(--radius-pill); white-space: nowrap; }
  .nav__item--link { display: none; }
  .sidebar__foot { display: none; }
  .main { padding: 24px 16px 28px; }
  .back { position: static; align-self: flex-start; min-height: 44px; font-size: 16px; margin-bottom: 18px; width: auto; }
  .head { padding-right: 0; }
  .title { font-size: 42px; }
  .subtitle { font-size: 19px; }
  .row__name, .price, .table td { font-size: 19px; }
  .table th { font-size: 16px; padding: 12px 10px; }
  .table td { padding: 12px 10px; height: 58px; }
  .table td:first-child, .table th:first-child { padding-left: 12px; }
  .table .detail-sep { display: none; }
  .table .detail { display: block; font-size: 15px; color: var(--text-muted); }
  .cta { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .cta__rule { display: none; }
  .cta__lead { font-size: 26px; }
  .gift { padding: 28px 16px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .amount--custom { grid-column: 1 / -1; }
  .slogan { font-size: 12px; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
.table td.svc { font-size: 22px; }

/* ---- v1.0.0 refinements ---- */
.cta, .cta * { text-decoration: none; color: var(--text); }
.shell { background: linear-gradient(to right, var(--bg-sidebar) var(--sidebar-w), var(--bg) var(--sidebar-w)); }
.main { padding-top: 44px; }
.head { margin-bottom: 22px; }
.table td { height: 60px; padding-top: 12px; padding-bottom: 12px; }
.cta { margin-top: 24px; min-height: 88px; }
.slogan { padding-top: 26px; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
.sec-grid > .sec { margin-top: 18px; }
.sec-grid > .sec--span { grid-column: 1 / -1; margin-top: 30px; }
@media (max-width: 1100px) { .sec-grid { grid-template-columns: 1fr; } .sec-grid > .sec--span .rows--two { column-count: 1; } }
@media (max-width: 860px) { .shell { background: var(--bg); } .sidebar { background: var(--bg-sidebar); } }
.title { font-size: 58px; }
.subtitle { font-size: 22px; }
.table td { height: 56px; }
.table th { height: 56px; }
@media (max-width: 860px) { .title { font-size: 42px; } .subtitle { font-size: 19px; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .main { min-width: 0; }
  html, body { overflow-x: hidden; }
}
.amount--custom { padding: 0 8px; text-align: center; line-height: 1.2; }
.review-banner { margin-right: 220px; }
@media (max-width: 860px) { .review-banner { margin-right: 0; } }
