/* ============================================================================
 * Razur — Customer Page Styles
 * Theme: dark-luxe
 * ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* Dark-luxe palette */
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --border: #262626;
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --accent: #d4a574;
  --accent-hover: #e6b888;
  --accent-dim: rgba(212, 165, 116, 0.12);
  --error: #ef4444;
  --success: #84cc16;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii / layout */
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1080px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: var(--space-xl);
  position: relative;
}
.section-title::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--space-md);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.section-header .section-title { margin-bottom: 0; }

section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-text {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
  border: none;
}
.btn-text:hover { color: var(--accent-hover); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: var(--space-3xl) 0;
  border-top: none;
  background:
    radial-gradient(ellipse at top, rgba(212, 165, 116, 0.08) 0%, transparent 60%),
    var(--bg);
}
.hero-content { max-width: 720px; }
.hero-tagline {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}
.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  margin-bottom: var(--space-md);
  line-height: 1;
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}
.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── About ──────────────────────────────────────────────────────────────── */

.about-text {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

/* ── Services ───────────────────────────────────────────────────────────── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all 0.2s ease;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.08);
}
.service-card.selected {
  border-color: var(--accent);
  background: var(--surface-2);
}
.service-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--space-md);
}
.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}
.service-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font-body);
}
.service-duration {
  color: var(--text-muted);
  font-size: 14px;
}
.service-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Hours ──────────────────────────────────────────────────────────────── */

.hours-list {
  max-width: 480px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
}
.hours-day { font-weight: 500; }
.hours-time {
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hours-row.closed .hours-time { color: var(--text-muted); opacity: 0.6; }
.hours-row.today {
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
  padding-left: calc(var(--space-lg) - 2px);
}
.hours-row.today .hours-day::after {
  content: ' · today';
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

/* ── Gallery ────────────────────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Reviews ────────────────────────────────────────────────────────────── */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.review-rating {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}
.review-comment {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.review-author {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Booking widget ─────────────────────────────────────────────────────── */

.booking-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 720px;
  margin: 0 auto;
}
.step-progress {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}
.step-dot {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.step-dot.active { background: var(--accent); }
.step-dot.done   { background: var(--accent); opacity: 0.5; }

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--space-lg);
}

.summary-bar {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.summary-item { display: flex; flex-direction: column; gap: 2px; }
.summary-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.summary-value { color: var(--text); font-weight: 500; font-size: 14px; }

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-xs);
}
.date-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}
.date-cell:hover:not(:disabled) { border-color: var(--accent); }
.date-cell.selected {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.date-cell:disabled { opacity: 0.25; cursor: not-allowed; }
.date-cell .date-dow {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.date-cell.selected .date-dow { color: var(--bg); opacity: 0.7; }
.date-cell .date-num { font-size: 18px; font-weight: 600; margin-top: 2px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-sm);
}
.slot-chip {
  padding: 12px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.slot-chip:hover { border-color: var(--accent); }
.slot-chip.selected {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.field { display: block; margin-bottom: var(--space-md); }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  gap: var(--space-md);
}
.step-actions > span { flex: 1; }

.success-state {
  text-align: center;
  padding: var(--space-xl) 0;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
}
.success-message {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-size: 16px;
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.contact-info { display: grid; gap: var(--space-md); align-content: start; }
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.contact-item:hover { border-color: var(--accent); }
.contact-icon { font-size: 18px; flex-shrink: 0; }
.contact-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.contact-text { font-weight: 500; word-break: break-all; }
.contact-map {
  background: var(--surface);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: var(--accent-hover); }

/* ── Loading ────────────────────────────────────────────────────────────── */

.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 1000;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ──────────────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--space-lg);
}
.modal-help {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: var(--space-md);
  text-align: center;
}

.rating-input {
  display: flex;
  gap: var(--space-xs);
}
.rating-star {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 32px;
  color: var(--border);
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}
.rating-star:hover { transform: scale(1.1); }
.rating-star.active { color: var(--accent); }

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-xl) 0;
  font-size: 15px;
}

/* ── Toast notifications ────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  z-index: 300;
  font-size: 14px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.2s ease;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  section { padding: var(--space-2xl) 0; }
  .section-title { font-size: 28px; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .contact-grid { grid-template-columns: 1fr; }
  .booking-widget { padding: var(--space-lg); }
  .summary-bar { gap: var(--space-md); }
  .date-grid { gap: 2px; }
  .date-cell { font-size: 13px; }
}
