@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;600;700&display=swap");
@import url("utilities.css");

:root {
  --primary: #9a7510;
  --primary-hover: #7a5e0c;
  --secondary: #1c1912;
  --ink: #16140e;
  --muted: #6a6356;
  --line: #e4dfd2;
  --page: #f4f1e8;
  --card: #ffffff;
  --header-h: 4.75rem;
  --brand-soft: #f3ebd2;
  --gold-cream: #fff8e7;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: Archivo, system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  overflow-x: clip;
}
img { max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
[dir="rtl"] body { font-family: "Noto Sans Arabic", Archivo, system-ui, sans-serif; }
.font-display { font-family: Archivo, system-ui, sans-serif; font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -3rem; z-index: 80;
  border-radius: 999px; background: var(--secondary); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.dash-layout { display: flex; min-height: 100vh; }

.drawer {
  position: fixed; inset: 0; z-index: 60;
  visibility: hidden; opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.drawer.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0; border: 0; background: rgba(16, 18, 40, 0.5); cursor: pointer;
}
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: min(20rem, 88vw);
  background: var(--card);
  color: var(--ink);
  overflow: auto;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}
[dir="rtl"] .drawer-panel { transform: translateX(100%); }
.drawer.is-open .drawer-panel { transform: translateX(0); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border-radius: 10px; background: var(--primary); color: var(--gold-cream); font-weight: 600;
  padding: 0.78rem 1.25rem; box-shadow: 0 10px 24px -12px rgba(154, 117, 16, 0.55);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  color: var(--secondary); font-weight: 600; padding: 0.78rem 1.25rem;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: 10px; padding: 0.55rem 0.85rem; font-weight: 600; color: var(--ink);
}
.btn-ghost:hover { background: #f3efe4; }

.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border-radius: 999px; background: var(--brand-soft); color: var(--secondary);
  font-size: 0.75rem; font-weight: 600; padding: 0.28rem 0.7rem;
}

.badge-verified {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: 999px; background: rgba(154, 117, 16, 0.14); color: var(--primary);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px -18px rgba(28, 25, 18, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(28, 25, 18, 0.28); }

.input {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; padding: 0.8rem 0.95rem; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(154, 117, 16, 0.18); }

.hero-truelysell {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 52rem);
  background: var(--secondary);
  color: var(--gold-cream);
}
.hero-parallax-scene {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-parallax-bg {
  position: absolute; inset: -18% 0;
  background: #1c1912 url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  will-change: transform;
}
.hero-parallax-overlay {
  position: absolute; inset: 0;
  background: rgba(28, 25, 18, 0.64);
}
.hero-blob {
  position: absolute; border-radius: 999px; filter: blur(8px); pointer-events: none;
  width: 10rem; height: 10rem;
  will-change: transform;
}
.hero-blob.is-left { inset-inline-start: -2.5rem; top: 2.5rem; background: rgba(154, 117, 16, 0.45); }
.hero-blob.is-right { inset-inline-end: 2.5rem; top: 1rem; width: 12rem; height: 12rem; background: rgba(196, 163, 90, 0.28); }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 5rem;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding: 6rem 1rem; }
}
.hero-truelysell h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
}
.hero-truelysell .chip {
  background: #fff;
  color: var(--primary);
}
.hero-truelysell .text-gray-500,
.hero-truelysell .hero-lead { color: rgba(255, 248, 231, 0.82); }
.hero-truelysell .text-beba-teal { color: #e6d7a2; }
.hero-search {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px -24px rgba(28, 25, 18, 0.5);
  color: var(--ink);
}
@media (min-width: 640px) {
  .hero-search { grid-template-columns: 1fr 1fr auto; align-items: stretch; }
}
.hero-search .btn-primary { min-height: 3.1rem; }
.hero-visual {
  position: relative;
  width: min(100%, 28rem);
  margin-inline: auto;
  will-change: transform;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.hero-float {
  position: absolute;
  z-index: 2;
  width: 11rem;
  padding: 0.75rem;
}
.hero-float.is-rating { top: 1.5rem; inset-inline-start: 0; }
.hero-float.is-bookings { bottom: 2rem; inset-inline-end: 0; }
.hero-visual .card:hover { transform: none; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.page-banner {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { font-size: 2rem; font-weight: 700; }
@media (min-width: 768px) {
  .page-banner h1 { font-size: 2.5rem; }
}

.cat-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th {
  text-align: start; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line);
}
table.data td { padding: 0.9rem; border-bottom: 1px solid #f1f2f6; vertical-align: middle; }

.status { display: inline-flex; border-radius: 999px; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; }
.status-upcoming, .status-confirmed { background: #f3ebd2; color: #7a5e0c; }
.status-active { background: #e5f6ef; color: #0f6a4f; }
.status-completed { background: #eef2f0; color: #3d4d49; }
.status-cancelled, .status-rejected { background: #fdecea; color: #b42318; }
.status-pending { background: #fff6de; color: #8a5a00; }

.star { color: var(--primary); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(16, 18, 40, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.toast-wrap { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-direction: column; gap: 0.6rem; }

.chat-bubble-me {
  margin-inline-start: auto; max-width: 80%;
  border-radius: 1.1rem 1.1rem 0.3rem 1.1rem;
  background: var(--primary); color: var(--gold-cream); padding: 0.7rem 0.9rem;
}
.chat-bubble-them {
  margin-inline-end: auto; max-width: 80%;
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: #f4f5fa; color: var(--ink); padding: 0.7rem 0.9rem;
}
[dir="rtl"] .chat-bubble-me { border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; }
[dir="rtl"] .chat-bubble-them { border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; }

.cal-day { min-height: 5.5rem; }
.cal-day.is-off { opacity: 0.4; }
.cal-day.is-selected { outline: 2px solid var(--primary); }
.step-dot { width: 0.7rem; height: 0.7rem; border-radius: 999px; background: #d7d1c6; }
.step-dot.is-on { background: var(--primary); }
.step-dot.is-done { background: var(--secondary); }

.online-dot { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; display: inline-block; }
.crumb { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.crumb a { color: var(--secondary); }

.bg-beba-forest, .bg-beba-teal { background: var(--secondary); }
.bg-beba-sand { background: var(--page); }
.bg-beba-cream { background: #fff; }
.bg-beba-gold, .brand-fill, .bg-beba-clay { background: var(--primary); }
.text-beba-ink { color: var(--ink); }
.text-beba-forest, .text-beba-teal { color: var(--primary); }
.text-beba-cream { color: #fff; }
.text-beba-gold { color: var(--primary); }
.text-beba-clay { color: var(--primary); }
.text-beba-sand { color: #eef0f7; }

.dark {
  --page: #12100c;
  --card: #1c1912;
  --ink: #f4ead0;
  --muted: #c4b896;
  --line: #3a3428;
  --brand-soft: #2a2418;
}
.dark body { background: var(--page); color: var(--ink); }
.dark .site-header, .dark .glass { background: rgba(18, 16, 12, 0.92); }
.dark .btn-secondary, .dark .input, .dark .card { background: var(--card); color: var(--ink); border-color: var(--line); }
.dark .btn-ghost { color: var(--ink); }
.dark .btn-ghost:hover { background: #2a2418; }
.dark .chip { background: #2a2418; color: #e6d7a2; }
.dark .chat-bubble-them { background: #2a2418; color: var(--ink); }
.dark table.data th, .dark table.data td { border-color: var(--line); }
.dark .hero-truelysell { background: var(--secondary); }
.dark .hero-parallax-overlay { background: rgba(18, 16, 12, 0.72); }
.dark .hero-search { background: var(--card); }
.dark .page-banner { background: #1c1912; }
.dark .drawer-panel { background: #1c1912; }
.dark .ent-topbar { background: #12100c; }
.dark .ent-kpi, .dark .ent-panel, .dark .ent-banner { background: var(--card); }

[dir="rtl"] .site-header nav,
[dir="rtl"] .dash-side,
[dir="rtl"] .crumb { text-align: start; }
[dir="rtl"] table.data th,
[dir="rtl"] table.data td { text-align: start; }
[dir="rtl"] .modal-backdrop > * { text-align: start; }

@media (prefers-reduced-motion: reduce) {
  .hero-parallax-bg, .hero-blob, .hero-visual { transform: none !important; }
}

.ent-app { min-height: 100vh; display: flex; flex-direction: column; background: #eceae3; }
.ent-topbar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--secondary); color: var(--gold-cream);
  padding: 0.55rem 0.9rem; position: sticky; top: 0; z-index: 40;
}
.ent-logo { display: flex; align-items: center; gap: 0.5rem; color: var(--gold-cream); flex-shrink: 0; }
.ent-logo-mark {
  width: 2rem; height: 2rem; border-radius: 4px;
  display: grid; place-items: center; background: var(--primary); color: var(--gold-cream); font-weight: 800;
}
.ent-search { display: flex; flex: 1; max-width: 44rem; min-width: 0; }
.ent-search input {
  flex: 1; min-width: 0; border: 0; border-radius: 4px 0 0 4px;
  padding: 0.55rem 0.8rem; color: var(--ink); background: #fff;
}
.ent-search button {
  border-radius: 0 4px 4px 0; padding: 0 0.9rem; background: var(--primary); color: var(--gold-cream);
}
.ent-top-actions { display: flex; align-items: center; gap: 0.35rem; margin-inline-start: auto; }
.ent-top-actions a, .ent-top-actions button { color: var(--gold-cream); }
.ent-account { display: none; text-align: start; line-height: 1.15; }
@media (min-width: 640px) {
  .ent-account { display: block; }
}
.ent-account small { display: block; font-size: 0.68rem; opacity: 0.7; }
.ent-frame { display: flex; flex: 1; min-height: 0; }
.dash-sidebar { background: #16140e; color: #e6d7a2; border: 0; width: 14.75rem; }
.dash-sidebar .ent-side-kicker {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); padding: 0.25rem 0.75rem 0.75rem;
}
.dash-side { color: #d9d0b8; border-radius: 4px; font-size: 0.82rem; }
.dash-side:hover { background: rgba(255,255,255,0.06); color: var(--gold-cream); }
.dash-side.is-on, .dash-side.brand-fill { background: var(--primary); color: var(--gold-cream); }
.drawer-panel .dash-side { color: var(--ink); }
.drawer-panel .dash-side.is-on { color: var(--gold-cream); }
.ent-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ent-pagehead { padding: 1rem 1.15rem 0; }
.ent-pagehead h1 { font-size: 1.35rem; font-weight: 700; }
.ent-app main#main { max-width: none; padding: 0.85rem 1.15rem 1.5rem; }
.ent-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--primary);
  border-radius: 4px; padding: 0.9rem 1rem; margin-bottom: 0.9rem;
}
.ent-kpi-row { display: grid; gap: 0.65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
  .ent-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ent-kpi { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0.85rem 1rem; }
.ent-kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ent-kpi-value { margin-top: 0.35rem; font-size: 1.45rem; font-weight: 700; }
.ent-kpi-hint { margin-top: 0.2rem; font-size: 0.75rem; color: var(--primary); }
.ent-grid { display: grid; gap: 0.85rem; margin-top: 0.85rem; }
@media (min-width: 1024px) {
  .ent-grid { grid-template-columns: 1.7fr 0.9fr; }
}
.ent-panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ent-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 0.92rem;
}
.ent-panel .table-wrap, .ent-panel .card { border: 0; border-radius: 0; box-shadow: none; }
.ent-app .card { border-radius: 4px; }
.ent-app .card:hover { transform: none; }
.ent-link { color: var(--primary); font-weight: 600; font-size: 0.82rem; }
.ent-mini { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); }
.ent-mini:last-child { border-bottom: 0; }
.slider-controls { display: flex; gap: 0.4rem; }
.slider-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1.25rem; line-height: 1;
}
.slider-btn:hover { border-color: var(--primary); color: var(--primary); }
.svc-slider { overflow: hidden; }
.svc-slider-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 0.5rem;
}
.svc-slider-track::-webkit-scrollbar { display: none; }
.svc-slider-track > * { flex: 0 0 min(86vw, 20rem); scroll-snap-align: start; }

@media (max-width: 480px) {
  .hero-truelysell h1 { font-size: 2rem; }
  .hero-float { width: 8.5rem; padding: 0.55rem; }
  .btn-primary, .btn-secondary { padding: 0.7rem 1rem; }
  table.data td, table.data th { padding: 0.65rem; }
}

@media print {
  header, aside, footer, .no-print { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
}
