/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #0a0e16;
  --bg-soft: #0f1420;
  --surface: #131a29;
  --surface-2: #1a2336;
  --border: #26314a;
  --accent: #3b82f6;
  --accent-light: #6ea8fe;
  --on-accent: #071022;
  --text: #eef1f8;
  --text-dim: #93a0bd;
  --red: #f0555a;
  --green: #34d399;
  --info: #38bdf8;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.55);
  --container: 1180px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-soft: #e9eef8;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --border: #d9e1ee;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --on-accent: #ffffff;
  --text: #101728;
  --text-dim: #56607a;
  --red: #dc2626;
  --green: #16a34a;
  --info: #0284c7;
  --shadow: 0 20px 50px -20px rgba(15,30,60,.18);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }

.eyebrow {
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.btn--outline { background: transparent; color: var(--accent-light); border-color: var(--accent); }
.btn--outline:hover { background: rgba(59,130,246,.1); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
.navbar.is-scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--on-accent); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.brand__mark-img { width: 100%; height: 100%; object-fit: cover; }
.brand__text em { color: var(--accent-light); font-style: normal; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--text-dim); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

.mobile-drop { display: contents; }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.guest-actions, .user-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; }
.user-chip__avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem;
  background-size: cover; background-position: center; flex-shrink: 0;
}
.user-chip__name { font-size: .85rem; font-weight: 600; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s ease; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 78px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 45%),
    radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--red) 14%, transparent), transparent 40%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 60%, var(--bg) 100%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, color-mix(in srgb, var(--text) 4%, transparent) 0 2px, transparent 2px 60px);
}
.hero__inner { padding-top: 40px; padding-bottom: 40px; }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 18px 0 20px; max-width: 780px; }
.hero__title span { color: var(--accent-light); font-style: italic; }
.hero__subtitle { max-width: 560px; color: var(--text-dim); font-size: 1.08rem; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: 2rem; color: var(--accent-light); font-weight: 800; }
.stat__label { color: var(--text-dim); font-size: .85rem; }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-soft); }
.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section__desc { color: var(--text-dim); }

/* ============ SERVICES ============ */
.grid { display: grid; gap: 26px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-card__img { width: 100%; height: 160px; border-radius: var(--radius-md); margin-bottom: 20px; object-fit: cover; background: var(--surface-2); }
.service-card__img--placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--accent-light);
  background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: .92rem; margin-bottom: 20px; min-height: 44px; }
.service-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.service-card__price { color: var(--accent-light); font-weight: 800; font-size: 1.15rem; }
.service-card__duration { color: var(--text-dim); font-size: .85rem; }

/* ============ EMPTY / ERROR STATES ============ */
.state-box {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--text-dim);
  border: 1px dashed var(--border); border-radius: var(--radius-md);
}
.state-box__icon { font-size: 2rem; margin-bottom: 10px; }
.state-box--error { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }

/* ============ SKELETONS ============ */
.skeleton-row { display: contents; }
.skeleton-card {
  grid-column: span 1; height: 260px; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.skeleton-card--tall { height: 360px; }
.grid--services .skeleton-row { display: contents; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ BOOKING WIZARD ============ */
.booking__steps {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 44px;
}
.booking__step {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); font-size: .85rem; font-weight: 700;
}
.booking__step span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: flex;
  align-items: center; justify-content: center; font-size: .78rem;
}
.booking__step.is-active { color: var(--on-accent); background: var(--accent-light); border-color: var(--accent-light); }
.booking__step.is-active span { background: rgba(0,0,0,.15); color: inherit; }
.booking__step.is-done { color: var(--accent-light); border-color: var(--accent); }

.booking__panel {
  max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow);
}
.booking__pane { display: none; }
.booking__pane.is-active { display: block; animation: fadeIn .3s ease; }
.booking__pane h3 { margin-bottom: 22px; font-size: 1.3rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; min-height: 80px; }
.pick-card {
  text-align: left; border: 1px solid var(--border); background: var(--bg-soft); border-radius: var(--radius-md);
  padding: 16px; cursor: pointer; transition: all .2s ease; color: var(--text); min-width: 0;
}
.pick-card:hover { border-color: var(--accent); }
.pick-card.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pick-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.pick-card small { color: var(--text-dim); }

.date-input, .note-input {
  width: 100%; min-width: 0; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: 1rem;
}
.note-input { resize: vertical; min-height: 90px; margin-top: 4px; }
:root:not([data-theme="light"]) .date-input::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.slots { display: flex; flex-wrap: wrap; gap: 10px; min-height: 60px; }
.slot-btn {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); cursor: pointer; font-weight: 700; font-size: .88rem; transition: all .2s ease;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn.is-selected { background: var(--accent-light); color: var(--on-accent); border-color: var(--accent-light); }

.summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.summary__row:last-child { border-bottom: none; }
.summary__row span:first-child { color: var(--text-dim); }

.booking__nav { display: flex; justify-content: space-between; margin-top: 30px; }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__frame {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.about__frame::after {
  content: '✂'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--accent); opacity: .5;
}
.about__content h2 { margin-bottom: 18px; }
.about__list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.about__list li { padding-left: 26px; position: relative; color: var(--text-dim); }
.about__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; text-align: center; }
.contact-card__icon { display: flex; justify-content: center; margin-bottom: 14px; color: var(--accent-light); }
.contact-card__icon .icon { width: 1.8rem; height: 1.8rem; }
.contact-card h4 { margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); font-size: .92rem; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__copy { color: var(--text-dim); font-size: .85rem; }

/* ============ MODALS ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4,7,14,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity .2s ease; padding: 20px;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; width: 100%; max-width: 420px; position: relative; box-shadow: var(--shadow);
  max-height: 88vh; overflow-y: auto;
}
.modal--wide { max-width: 640px; }
.modal__close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--text-dim); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--text); }

.auth-tabs { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: none; color: var(--text-dim); border-radius: 999px; cursor: pointer; font-weight: 700; }
.auth-tab.is-active { background: var(--accent-light); color: var(--on-accent); }

.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.is-active { display: flex; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--text-dim); font-weight: 600; min-width: 0; }
.auth-form input {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: .95rem;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.form-error { color: var(--red); font-size: .85rem; min-height: 18px; }

/* ============ MY BOOKINGS ============ */
.my-bookings-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.booking-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.booking-item__info strong { display: block; margin-bottom: 4px; }
.booking-item__info span { color: var(--text-dim); font-size: .85rem; }
.badge { padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge--pending { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-light); }
.badge--confirmed { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.badge--completed { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge--cancelled { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.booking-item__actions { display: flex; gap: 8px; align-items: center; }

/* ============ TOASTS ============ */
.toast-container { position: fixed; top: 96px; right: 20px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 340px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); animation: slideIn .25s ease;
  font-size: .88rem; color: var(--text);
}
.toast--success { border-left-color: var(--green); }
.toast--error { border-left-color: var(--red); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__frame { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .mobile-drop { display: none; }
  .mobile-drop.is-open {
    display: flex; flex-direction: column; gap: 26px;
    position: fixed; top: 78px; left: 0; right: 0; height: calc(100vh - 78px);
    background: var(--bg); padding: 28px 24px 34px; overflow-y: auto; z-index: 400;
    animation: fadeIn .2s ease;
  }
  .nav-links { display: flex; flex-direction: column; gap: 20px; }
  .nav-links a { font-size: 1.1rem; }
  .navbar__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .hamburger { display: flex; }
  .hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 70px 0; }
  .booking__panel { padding: 26px; }
}

@media (max-width: 560px) {
  .hero__stats { gap: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .booking__steps { gap: 6px; }
  .booking__step span { display: none; }
  .booking-item { flex-direction: column; align-items: flex-start; }
  .modal { padding: 28px 20px; }
}
