/* ═══════════════════════════════════════════════════════════
   Luxus Look-Book · premium dark theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #0e0e13;
  --bg-soft:   #16161d;
  --card:      #1a1a22;
  --card-hi:   #21212b;
  --line:      rgba(203, 169, 106, .22);
  --line-soft: rgba(255, 255, 255, .07);
  --gold:      #cba96a;
  --gold-hi:   #e8cf9a;
  --gold-dim:  #9a7f4e;
  --ink:       #ece7dc;
  --ink-dim:   #a49e91;
  --ink-faint: #6f6a60;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --pad: clamp(16px, 4vw, 32px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(203, 169, 106, .09), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(203, 169, 106, .05), transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.icon-s { width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; }

/* ── Top bar (views 2 & 3) ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: rgba(14, 14, 19, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-title { flex: 1; min-width: 0; text-align: center; }
.topbar-eyebrow {
  display: block;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1px;
}
.topbar h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(19px, 4.6vw, 26px); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.iconbtn {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-dim);
  transition: color .2s, background-color .2s;
}
.iconbtn:hover, .iconbtn:active { color: var(--gold-hi); background: rgba(203, 169, 106, .08); }

/* ── Views / transitions ───────────────────────────────── */
.view { animation: view-in .38s cubic-bezier(.22,.7,.3,1) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── View 1 · Welcome ──────────────────────────────────── */
.view-home { display: grid; min-height: 100dvh; }
.home-inner {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 7vh, 72px) var(--pad) 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.home-logo {
  width: clamp(170px, 42vw, 250px);
  filter: drop-shadow(0 0 34px rgba(203, 169, 106, .18));
}
.home-est {
  margin-top: 22px;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold);
}
.rule {
  width: min(280px, 60%); height: 1px; margin: 22px 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  position: relative;
}
.rule-gem {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold); border-radius: 1px;
  box-shadow: 0 0 12px rgba(203, 169, 106, .6);
}
.home-intro {
  font-family: var(--serif);
  font-size: clamp(18px, 4.4vw, 22px);
  line-height: 1.65; color: var(--ink-dim);
  max-width: 56ch;
}
.home-intro em { color: var(--ink); font-style: normal; }
.home-tags {
  margin-top: 18px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-dim);
}
.home-choose {
  margin: clamp(34px, 6vh, 56px) 0 18px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--ink);
}

/* gender cards */
.gender-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2.5vw, 18px);
  width: 100%;
}
.gender-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: clamp(18px, 4vw, 30px) 8px;
  background: linear-gradient(160deg, var(--card-hi), var(--card) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  -webkit-tap-highlight-color: transparent;
}
.gender-card .icon { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.25; }
.gender-card:hover, .gender-card:active {
  transform: translateY(-3px);
  border-color: rgba(203, 169, 106, .55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(203, 169, 106, .12) inset;
}
.gc-label {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(17px, 4vw, 21px); letter-spacing: .06em;
}
.gc-sub { font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }

/* search bar trigger */
.searchbar {
  margin-top: clamp(20px, 4vh, 30px);
  width: 100%; max-width: 460px;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  color: var(--ink-faint);
  font-size: 15px; letter-spacing: .04em;
  transition: border-color .2s, color .2s;
}
.searchbar .icon { width: 19px; height: 19px; color: var(--gold-dim); }
.searchbar:hover, .searchbar:active { border-color: var(--line); color: var(--ink-dim); }

.home-footer {
  margin-top: clamp(40px, 8vh, 70px);
  padding-top: 22px; width: 100%;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-faint); line-height: 2.1;
}
.home-footer a:hover { color: var(--gold); }

/* ── View 2 · Category grid ────────────────────────────── */
.view-cats, .view-svcs {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px var(--pad) 60px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: clamp(10px, 2.4vw, 16px);
}
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
.cat-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 24px 12px 20px;
  background: linear-gradient(165deg, var(--card-hi), var(--card) 70%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  -webkit-tap-highlight-color: transparent;
}
.cat-card:hover, .cat-card:active {
  transform: translateY(-3px);
  border-color: rgba(203, 169, 106, .5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}
.cat-ico {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(203, 169, 106, .22), rgba(203, 169, 106, .06));
  border: 1px solid var(--line);
  color: var(--gold);
}
.cat-ico .icon { width: 26px; height: 26px; stroke-width: 1.25; }
.cat-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin: -12px 0 2px;
}
.cat-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(16px, 4vw, 19px); line-height: 1.25;
}
.cat-count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* ── View 3 · Service list ─────────────────────────────── */
.svc-filter {
  position: sticky; top: calc(var(--topbar-h, 62px) + 8px); z-index: 15;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 4px 18px;
  margin: 4px 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(22, 22, 29, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s;
}
.svc-filter:focus-within { border-color: var(--line); }
.svc-filter > .icon { width: 18px; height: 18px; color: var(--gold-dim); }
#svc-filter-input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  padding: 11px 0;
  font: 300 15px var(--sans); letter-spacing: .03em;
  color: var(--ink);
}
#svc-filter-input::placeholder { color: var(--ink-faint); }
#svc-filter-input::-webkit-search-cancel-button { display: none; }
.iconbtn-s { width: 38px; height: 38px; }
.iconbtn-s .icon { width: 18px; height: 18px; }
.svc-empty {
  padding: 48px 16px; text-align: center;
  font-family: var(--serif); font-size: 18px; line-height: 1.7;
  color: var(--ink-faint);
}
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-soft);
  animation: view-in .4s cubic-bezier(.22,.7,.3,1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
.svc-main { min-width: 0; }
.svc-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(17px, 4.4vw, 20px); line-height: 1.3;
}
.svc-meta {
  margin-top: 3px;
  font-size: 12px; letter-spacing: .06em; color: var(--ink-faint);
  display: flex; align-items: center; gap: 6px;
}
.svc-meta .icon { width: 13px; height: 13px; }
.svc-dots {
  flex: 1; min-width: 24px;
  border-bottom: 1px dotted rgba(203, 169, 106, .35);
  transform: translateY(-4px);
}
.svc-price {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(17px, 4.4vw, 20px);
  color: var(--gold-hi); white-space: nowrap;
}
.badge {
  display: inline-block;
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px; margin-left: 8px;
  vertical-align: 2px;
}

/* ── Search overlay ────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 10, 14, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  animation: view-in .25s ease both;
}
.search-head {
  display: flex; align-items: center; gap: 12px;
  width: min(760px, 100%); margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  border-bottom: 1px solid var(--line);
}
.search-head > .icon { color: var(--gold); width: 20px; height: 20px; }
#search-input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  font-family: var(--serif); font-size: clamp(19px, 5vw, 24px);
  color: var(--ink); letter-spacing: .02em;
}
#search-input::placeholder { color: var(--ink-faint); }
#search-input::-webkit-search-cancel-button { display: none; }
.search-results {
  flex: 1; overflow-y: auto;
  width: min(760px, 100%); margin: 0 auto;
  padding: 8px var(--pad) 60px;
}
.sr-cat {
  margin: 26px 0 4px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.sr-cat::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.search-hint {
  margin-top: 12vh; text-align: center;
  color: var(--ink-faint);
  font-family: var(--serif); font-size: 19px; line-height: 1.7;
}
mark { background: none; color: var(--gold-hi); }

/* ── Misc ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
::selection { background: rgba(203, 169, 106, .3); }
