/* Mawtin demo base — override tokens in per-client theme.css */
:root {
  --brand: #6ea8ff;        /* per-client primary */
  --brand-2: #a48bff;      /* per-client accent */
  --bg: #0b0f1a;
  --surface: #101a2e;
  --line: #22304a;
  --text: #e8ecf4;
  --muted: #aeb9cc;
  --radius: 18px;
  --header-h: 68px;
  --font-display: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --font: var(--font-body);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* smooth only for user-driven anchor nav; programmatic scrolls (QA capture) stay instant */
html:focus-within { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.8; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin-inline: auto; }
section { padding: clamp(56px, 9vw, 110px) 0; }
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6.5vw, 4.4rem); line-height: 1.18; font-weight: 800; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: .5em; line-height: 1.3; }
h3 { font-family: var(--font-display); font-weight: 600; }
.sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem); }

/* Floating liquid-glass header */
.glass-header { position: fixed; inset-inline: 0; top: 14px; z-index: 50;
  width: min(1120px, 94%); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  box-shadow: 0 10px 40px rgb(0 0 0 / .35); }
.glass-header .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.glass-header .logo small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); }
.glass-header nav { display: flex; gap: 26px; font-size: .95rem; }
.glass-header nav a:hover { color: var(--brand); }
.burger { display: none; background: none; border: 0; color: var(--text);
  font-size: 1.6rem; cursor: pointer; }

/* Mobile menu (full-screen sheet) */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: grid;
  place-content: center; gap: 8px; text-align: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu .close { position: absolute; top: 26px; inset-inline-start: 26px;
  background: none; border: 0; color: var(--text); font-size: 2rem; cursor: pointer; }
@media (max-width: 860px) {
  .glass-header nav { display: none; }
  .burger { display: block; }
}

/* Hero with media background */
.hero { position: relative; min-height: 100svh; display: grid; place-content: center;
  text-align: center; padding-top: var(--header-h); overflow: hidden; }
.hero .media { position: absolute; inset: 0; z-index: -2; object-fit: cover;
  width: 100%; height: 100%; }
.hero .veil { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .35), var(--bg) 96%); }

/* Cards / grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; background: var(--brand); color: #14101d;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1); }
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.ghost { background: transparent; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Demo notice ribbon + footer */
.demo-notice { position: fixed; bottom: 14px; inset-inline-start: 14px; z-index: 40;
  font-size: .72rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 75%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
footer { border-top: 1px solid var(--line); padding: 34px 0; text-align: center;
  color: var(--muted); font-size: .85rem; }
footer a { color: var(--brand); }

/* Reveal initial states (motion.js animates in; visible if JS fails) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal], [data-load] { opacity: 0; transform: translateY(28px); }
}

/* Infinite marquee (duplicate .marquee-track content twice for a seamless loop) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content;
  animation: marquee-slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-slide { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ===== Interactive layer (booking form + AI chat widget) — token-driven, reusable ===== */
/* ---------- Booking ---------- */
.booking { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 50%, transparent) 25% 75%, transparent); }
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.booking-demo-tag { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.booking-demo-tag i { color: var(--brand-2); margin-inline-end: .4rem; }
.booking-form { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 400; color: var(--muted); }
.booking-form input, .booking-form select { font-family: var(--font-body); font-size: .95rem;
  color: var(--text); background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color .25s cubic-bezier(.16,1,.3,1); width: 100%; }
.booking-form input:focus, .booking-form select:focus { border-color: color-mix(in srgb, var(--brand-2) 60%, transparent); }
.booking-form input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.booking-form .btn { border: 0; cursor: pointer; margin-top: .4rem; }
.booking-toast { position: fixed; bottom: 90px; inset-inline-start: 50%; transform: translate(50%, 20px);
  z-index: 80; opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: #1f2b18; color: #b6e39a; border: 1px solid #3c5a2e;
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1); }
.booking-toast.show { opacity: 1; transform: translate(50%, 0); }
.booking-toast i { color: #8fd06b; }

/* ---------- Chat widget ---------- */
.chat-fab { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand-2); color: #191227; font-size: 1.45rem;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand-2) 35%, transparent);
  transition: transform .3s cubic-bezier(.16,1,.3,1); }
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab.active .chat-fab-ping { display: none; }
.chat-fab-ping { position: absolute; top: 4px; inset-inline-end: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #7ee0a3; }
@media (prefers-reduced-motion: no-preference) {
  .chat-fab-ping { animation: chat-ping 2s ease-out infinite; }
  @keyframes chat-ping { 0% { box-shadow: 0 0 0 0 rgb(126 224 163 / .6); } 70% { box-shadow: 0 0 0 10px rgb(126 224 163 / 0); } 100% { box-shadow: 0 0 0 0 rgb(126 224 163 / 0); } }
}
.chat-panel { position: fixed; bottom: 92px; inset-inline-end: 20px; z-index: 70;
  width: min(370px, calc(100vw - 32px)); height: min(520px, 70vh);
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--line); box-shadow: 0 24px 70px rgb(0 0 0 / .5);
  opacity: 0; pointer-events: none; transform: translateY(16px) scale(.97);
  transform-origin: bottom left;
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1); }
.chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.chat-title i { color: var(--brand-2); margin-inline-end: .45rem; }
.chat-title small { display: block; font-family: var(--font-body); font-weight: 300;
  font-size: .7rem; color: var(--muted); }
.chat-head button { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: .92rem;
  line-height: 1.8; white-space: pre-wrap; }
.chat-msg.assistant { background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--line); border-start-start-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: color-mix(in srgb, var(--brand-2) 88%, #fff 0%); color: #191227;
  font-weight: 400; border-start-end-radius: 4px; align-self: flex-end; }
.chat-msg.typing { display: flex; gap: 5px; padding: 14px 18px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .chat-msg.typing span { animation: chat-dots 1.2s ease-in-out infinite; }
  .chat-msg.typing span:nth-child(2) { animation-delay: .18s; }
  .chat-msg.typing span:nth-child(3) { animation-delay: .36s; }
  @keyframes chat-dots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips button { font-family: var(--font-body); font-size: .84rem; color: var(--text);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px;
  cursor: pointer; transition: border-color .25s; }
.chat-chips button:hover { border-color: var(--brand-2); color: var(--brand-2); }
.chat-limit { font-size: .88rem; color: var(--muted); text-align: center; display: grid; gap: 10px;
  padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.chat-limit .btn { justify-self: center; }
.chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-foot input { flex: 1; font-family: var(--font-body); font-size: .92rem; color: var(--text);
  background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 17px; outline: none; }
.chat-foot input:focus { border-color: color-mix(in srgb, var(--brand-2) 60%, transparent); }
.chat-foot button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand-2); color: #191227; font-size: 1rem; flex: 0 0 auto; }
.chat-foot button:disabled, .chat-foot input:disabled { opacity: .5; }

/* keep demo notice clear of the chat FAB on phones */
@media (max-width: 640px) {
  .demo-notice { bottom: 14px; max-width: calc(100vw - 110px); }
  .bf-row { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .booking-grid { grid-template-columns: 1fr; }
}


/* chat: disclaimer strip + booked card */
.chat-disclaimer { padding: 8px 18px; font-size: .74rem; color: var(--muted);
  background: color-mix(in srgb, var(--brand-2) 8%, transparent);
  border-bottom: 1px solid var(--line); }
.chat-disclaimer i { color: var(--brand-2); margin-inline-end: .35rem; }
.chat-booked { align-self: flex-start; max-width: 90%; display: grid; gap: 10px;
  padding: 14px 16px; border-radius: 16px; font-size: .9rem; font-weight: 700;
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 40%, transparent); }
.chat-booked > i { color: var(--brand-2); margin-inline-end: .4rem; }
.chat-booked small { font-weight: 300; color: var(--muted); }
.chat-booked .btn { justify-self: start; }

/* booking: dual actions + mock-success animation */
.bf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: .4rem; }
.bf-actions .btn { margin-top: 0; }
.booking-form.booked > :not(.bf-success) { display: none; }
.bf-success { display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 2.2rem 0; animation: bf-pop .5s cubic-bezier(.16,1,.3,1); }
.bf-success svg { width: 74px; height: 74px; margin-bottom: .5rem; }
.bf-success circle { fill: none; stroke: var(--brand-2); stroke-width: 2.5;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: bf-draw .7s cubic-bezier(.65,0,.45,1) forwards; }
.bf-success path { fill: none; stroke: var(--brand-2); stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: bf-draw .45s .55s cubic-bezier(.65,0,.45,1) forwards; }
.bf-success strong { font-family: var(--font-display); font-size: 1.3rem; }
.bf-success span { color: var(--muted); font-size: .9rem; }
.bf-again { margin-top: 1rem; background: none; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 9px 22px; cursor: pointer;
  font-family: var(--font-body); font-size: .88rem; transition: border-color .25s, color .25s; }
.bf-again:hover { border-color: var(--brand-2); color: var(--brand-2); }
@keyframes bf-draw { to { stroke-dashoffset: 0; } }
@keyframes bf-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bf-success, .bf-success circle, .bf-success path { animation: none; stroke-dashoffset: 0; }
}
