/* Vaia Medical Complex — v2 theme (dark-plum + gold, Alexandria/Almarai, FA icons) */
:root {
  --brand: #b9a4ff;
  --brand-2: #d8b56a;
  --bg: #131020;
  --surface: #1c1730;
  --line: #332a4e;
  --text: #f1eef8;
  --muted: #b4abc9;
}

body {
  font-weight: 300;
  background:
    radial-gradient(90rem 50rem at 85% -10%, color-mix(in srgb, #3e3556 55%, transparent), transparent 60%),
    radial-gradient(70rem 45rem at -10% 40%, color-mix(in srgb, #2a2142 70%, transparent), transparent 65%),
    var(--bg);
}
strong, b { font-weight: 700; }

/* ---------- Header ---------- */
.logo-pill { display: inline-flex; align-items: center; justify-content: center;
  background: #f4f0e8; border-radius: 12px; padding: 7px 10px; }
.logo-txt { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.3; }
.logo-txt small { font-family: var(--font-body); font-weight: 300; letter-spacing: .02em; }
.glass-header nav a { font-weight: 400; opacity: .85; }
.glass-header nav a:hover { opacity: 1; color: var(--brand-2); }
.burger, .mobile-menu .close { font-size: 1.35rem; }
.mobile-menu a { font-family: var(--font-display); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { text-align: right; padding-block: 0; }
.ghost-letter { position: absolute; inset-inline-end: -4rem; bottom: -10rem;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(22rem, 42vw, 40rem);
  line-height: 1; color: color-mix(in srgb, var(--brand) 5%, transparent);
  pointer-events: none; user-select: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(7rem, 14vh, 10rem) clamp(3rem, 8vh, 5rem); }
.hero-eyebrow { color: var(--brand-2); font-size: .95rem; font-weight: 400;
  letter-spacing: .04em; margin-bottom: 1.1rem; }
.hero-eyebrow i { margin-inline-end: .4rem; }
.hero h1 { font-weight: 900; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--brand-2); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 2%; bottom: .04em;
  height: .1em; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; color: var(--muted);
  max-width: 44ch; line-height: 2; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-facts { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(1rem, 2.5vw, 2rem); }
.hero-facts i { color: var(--brand-2); margin-inline-end: .45rem; }

/* Portal figure (arched frame + offset gold ring) */
.portal { position: relative; width: min(400px, 86%); justify-self: start; margin-inline: auto 0; }
.portal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 26px 26px; }
.portal::before { content: ""; position: absolute; inset: 0;
  border: 1px solid color-mix(in srgb, var(--brand-2) 45%, transparent);
  border-radius: 999px 999px 26px 26px; transform: translate(14px, 14px); z-index: -1; }
.portal-chip { position: absolute; bottom: 22px; inset-inline-start: -18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  font-size: .85rem; font-weight: 700; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); }
.portal-chip i { color: var(--brand-2); }

/* ---------- Buttons ---------- */
.btn-gold { background: var(--brand-2); color: #191227; }
.btn-gold:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-2) 30%, transparent); }
.btn-sm { padding: 11px 22px; font-size: .9rem; margin-top: .9rem; }

/* ---------- Section rhythm ---------- */
.section-sub { max-width: 60ch; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- Floors directory ---------- */
.floor { display: grid; grid-template-columns: 210px 1fr; gap: clamp(1.2rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3.5vw, 2.4rem); border-top: 1px solid var(--line); }
.floor:last-of-type { border-bottom: 1px solid var(--line); }
.floor-label { position: relative; }
.floor-num { font-family: var(--font-display); font-weight: 900; font-size: 3.2rem;
  line-height: 1; color: color-mix(in srgb, var(--brand) 16%, transparent); display: block; }
.floor-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  display: block; margin-top: -1.2rem; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; align-content: center; }
.specs li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 400; font-size: .95rem;
  transition: border-color .25s cubic-bezier(.16,1,.3,1), background .25s cubic-bezier(.16,1,.3,1); }
.specs li i { color: var(--brand-2); font-size: 1rem; }
.specs li:hover { border-color: color-mix(in srgb, var(--brand-2) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* ---------- Feature bands (lab / derma) ---------- */
.band { position: relative; overflow: hidden; }
.band-lab { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent) 20% 80%, transparent); }
.band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band-grid.mirror { grid-template-columns: 1.1fr .9fr; }
.band-grid.mirror .band-head { order: 2; }
.band-grid.mirror .checks { order: 1; }
.band-head { position: relative; }
.band-icon { font-size: 2rem; color: var(--brand-2); margin-bottom: 1.2rem; display: block; }
.band-head h2 { margin-bottom: 0; }
.checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 14px 26px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 400;
  padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.checks i { color: var(--brand-2); }
.band-derma .checks i { color: var(--brand); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; min-height: 320px; object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 18px 20px 14px;
  font-size: .85rem; font-weight: 400;
  background: linear-gradient(0deg, rgb(10 8 18 / .85), transparent); }

/* ---------- Visit (hours / location / payment) ---------- */
.visit { padding-top: 0; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.visit-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: color-mix(in srgb, var(--surface) 45%, transparent); }
.visit-card h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.visit-card h3 i { color: var(--brand-2); margin-inline-end: .5rem; }
.visit-card p { color: var(--muted); font-weight: 300; line-height: 1.9; }
.visit-note { margin-top: .5rem; font-weight: 400; color: var(--text); }
.visit-note i { color: var(--brand-2); margin-inline-end: .4rem; }
.pay-logos { display: flex; gap: 10px; margin-top: 1rem; align-items: center; }
.pay-pill { display: inline-flex; align-items: center; background: #f4f0e8;
  border-radius: 999px; padding: 8px 16px; }
.pay-pill.pay-dark { background: #2e2648; border: 1px solid var(--line); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .sub { max-width: 50ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 7.5rem; }
  .portal { width: min(340px, 80%); margin-inline: auto; order: -1; }
  .portal-chip { inset-inline-start: 6px; }
  .hero { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-facts { justify-content: center; }
  .floor { grid-template-columns: 1fr; gap: 1rem; }
  .floor-num { font-size: 2.6rem; }
  .band-grid, .band-grid.mirror { grid-template-columns: 1fr; }
  .band-grid.mirror .band-head { order: 1; }
  .band-grid.mirror .checks { order: 2; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { min-height: 240px; }
}

/* ---------- Services marquee ---------- */
.svc-marquee { padding-block: clamp(1.2rem, 3vw, 2rem); border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 35%, transparent); }
.marquee-group { display: flex; gap: 14px; padding-inline-end: 14px; }
.marquee-track { gap: 0; }
.m-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 999px; font-size: .95rem;
  font-weight: 400; white-space: nowrap; }
.m-chip i { color: var(--brand-2); }

/* ---------- 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; }
}
