/* ── Design tokens ── */
:root {
  --bg: #0a0f1e;
  --bg2: #111827;
  --bg3: #1a2237;
  --surface: #1e2d45;
  --surface2: #243352;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --ink: #f0f4ff;
  --ink2: #a8b8d8;
  --ink3: #6b7fa3;
  --accent: #4f8ef7;
  --accent-dark: #3a73dd;
  --accent2: #7c5bf5;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) var(--bg);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
  background: rgba(10,15,30,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 20px; height: 20px; color: #fff; }
.nav-logo-text { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--ink2); text-decoration: none; font-size: 0.9rem;
  padding: 6px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important; font-weight: 600; padding: 8px 18px !important;
  border-radius: 10px !important; transition: all 0.2s !important;
  box-shadow: 0 4px 14px rgba(79,142,247,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,142,247,0.4) !important; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pt-nav { padding-top: 64px; }
section { padding: 80px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 0.95rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 4px 16px rgba(79,142,247,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,142,247,0.45); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(79,142,247,0.1); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface2); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.4); }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all 0.25s;
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Business card ── */
.biz-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s;
  text-decoration: none; color: inherit; display: block;
}
.biz-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.biz-card-header { height: 8px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.biz-card-body { padding: 20px; }
.biz-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 14px; flex-shrink: 0;
}
.biz-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.biz-meta { font-size: 0.82rem; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.biz-rating { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.stars { color: var(--yellow); font-size: 0.85rem; }
.rating-val { font-weight: 700; font-size: 0.9rem; }
.rating-count { color: var(--ink3); font-size: 0.82rem; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: 0.75rem; padding: 3px 10px; border-radius: 99px;
  background: rgba(79,142,247,0.1); color: var(--accent); border: 1px solid rgba(79,142,247,0.2);
}
.biz-price { margin-top: 12px; font-size: 0.85rem; color: var(--ink2); }
.biz-card-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.verified-badge { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--green); }

/* ── Star rating display ── */
.star-display { display: flex; gap: 2px; }
.star-display span { font-size: 1rem; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ── Section headings ── */
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--ink2); max-width: 540px; line-height: 1.7; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-sub { margin: 0 auto; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 99px;
}
.badge-blue { background: rgba(79,142,247,0.15); color: var(--accent); }
.badge-green { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-purple { background: rgba(124,91,245,0.15); color: var(--accent2); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink3); margin-bottom: 32px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border2); }

/* ── Form elements ── */
.input {
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: 10px; padding: 12px 16px; color: var(--ink);
  font-size: 0.95rem; width: 100%; outline: none; transition: all 0.2s;
  font-family: inherit;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,247,0.15); }
.input::placeholder { color: var(--ink3); }

select.input { appearance: none; cursor: pointer; }

label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.form-group { margin-bottom: 20px; }

/* ── Footer ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--ink3); font-size: 0.9rem; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--ink3); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: var(--ink3); font-size: 0.82rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } nav .nav-links a:not(.nav-cta) { display: none; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Category pill nav ── */
.cat-nav { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex; align-items: center; gap: 7px; padding: 8px 18px;
  border-radius: 99px; border: 1.5px solid var(--border2);
  color: var(--ink2); text-decoration: none; font-size: 0.88rem;
  font-weight: 500; white-space: nowrap; transition: all 0.2s;
  background: var(--surface);
}
.cat-pill:hover, .cat-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,0.08); }
.cat-pill i { width: 16px; height: 16px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--surface2); color: var(--ink);
  padding: 14px 20px; border-radius: 12px; font-size: 0.9rem;
  box-shadow: var(--shadow-lg); display: none; border-left: 3px solid var(--accent);
  animation: slideIn 0.3s ease;
}
.toast.show { display: block; }
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--green); }
@keyframes slideIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* ── Map placeholder ── */
.map-embed { width: 100%; height: 300px; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(190deg) brightness(0.85); }

/* ── Booking calendar ── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 16px 0; }
.cal-cell {
  aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer; border: 1.5px solid transparent; transition: all 0.18s;
  background: var(--surface);
}
.cal-cell:hover:not(.empty):not(.past) { border-color: var(--accent); color: var(--accent); }
.cal-cell.today { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.cal-cell.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-cell.past, .cal-cell.empty { opacity: 0.3; cursor: default; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 6px; }
.cal-weekday { text-align: center; font-size: 0.72rem; color: var(--ink3); font-weight: 600; padding: 4px 0; }

.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.time-slot {
  padding: 10px; border-radius: 8px; text-align: center; cursor: pointer;
  font-size: 0.88rem; border: 1.5px solid var(--border2); background: var(--surface);
  transition: all 0.18s; color: var(--ink2);
}
.time-slot:hover { border-color: var(--accent); color: var(--accent); }
.time-slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.time-slot.booked { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
@media (max-width: 480px) { .time-slots { grid-template-columns: repeat(3,1fr); } }

/* ── Search bar ── */
.search-bar {
  display: flex; gap: 0; background: var(--surface2);
  border: 1.5px solid var(--border2); border-radius: 14px; overflow: hidden;
  max-width: 640px; margin: 0 auto;
}
.search-bar input {
  flex: 1; background: transparent; border: none; padding: 16px 20px;
  color: var(--ink); font-size: 0.95rem; outline: none; font-family: inherit;
}
.search-bar input::placeholder { color: var(--ink3); }
.search-bar button {
  background: var(--accent); border: none; padding: 0 24px; color: #fff;
  font-weight: 600; cursor: pointer; font-size: 0.95rem; transition: background 0.2s;
  font-family: inherit;
}
.search-bar button:hover { background: var(--accent-dark); }

/* ── Stats ── */
.stats-row { display: flex; gap: 48px; }
.stat-val { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--ink3); margin-top: 4px; }
@media (max-width: 480px) { .stats-row { flex-wrap: wrap; gap: 24px; } }

/* ── Accordion / FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; color: var(--ink);
  font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.25s; width: 20px; height: 20px; color: var(--ink3); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--ink2); line-height: 1.7; font-size: 0.95rem; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ── Utility ── */
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
