:root {
  --shell-width: min(1220px, calc(100% - 40px));
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --shadow-soft: 0 22px 46px rgba(10, 17, 29, 0.12);
  --shadow-deep: 0 28px 56px rgba(10, 17, 29, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-demo {
  margin: 0;
  font-family: var(--font-body, "IBM Plex Sans Arabic", sans-serif);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
    var(--page-bg, #0f1724);
  color: var(--ink, #ffffff);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--topbar-bg, rgba(8, 14, 23, 0.72));
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(14px);
  transition: box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.demo-topbar.is-scrolled {
  box-shadow: 0 16px 36px rgba(8, 14, 23, 0.18);
  border-color: var(--line-strong, rgba(255, 255, 255, 0.18));
}

.demo-topbar .shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.demo-brand img {
  width: auto;
  height: 38px;
}

.demo-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent, #c9a366), rgba(255, 255, 255, 0.18));
  color: var(--accent-ink, #111827);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.demo-brand-copy {
  display: grid;
  gap: 2px;
}

.demo-brand-copy strong {
  font-size: 13px;
  font-weight: 800;
}

.demo-brand-copy span {
  color: var(--muted, rgba(255, 255, 255, 0.72));
  font-size: 11px;
  font-weight: 700;
}

.demo-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.demo-link,
.demo-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.demo-link {
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: var(--link-bg, rgba(255, 255, 255, 0.03));
  color: var(--ink, #ffffff);
}

.demo-link:hover,
.demo-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.demo-cta,
.btn.primary {
  background: var(--accent, #c9a366);
  color: var(--accent-ink, #111827);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn.secondary {
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
  background: var(--button-secondary-bg, rgba(255, 255, 255, 0.06));
  color: var(--ink, #ffffff);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-backdrop,
.hero-photo img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay, linear-gradient(180deg, rgba(8, 12, 18, 0.44), rgba(8, 12, 18, 0.74)));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--kicker-line, rgba(255, 255, 255, 0.2));
  background: var(--kicker-bg, rgba(255, 255, 255, 0.08));
  color: var(--kicker-ink, var(--accent, #c9a366));
  font-size: 12px;
  font-weight: 800;
}

.hero-brandline {
  margin-top: 18px;
  color: var(--muted, rgba(255, 255, 255, 0.72));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.cta-band h2 {
  margin: 14px 0 14px;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}

html[lang="ar"] .hero-copy h1,
html[lang="ar"] .section-head h2,
html[lang="ar"] .cta-band h2 {
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy p,
.section-head p,
.list-copy p,
.cta-band p,
.stat-box p,
.listing-card p,
.timeline-step p,
.feature-card p,
.fact-card p,
.side-copy p,
.footer-copy p {
  margin: 0;
  color: var(--muted, rgba(255, 255, 255, 0.72));
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-facts,
.stat-row,
.listing-grid,
.feature-grid,
.timeline-grid,
.fact-grid {
  display: grid;
  gap: 16px;
}

.hero-facts {
  position: relative;
  z-index: 2;
}

.hero-fact,
.stat-box,
.listing-card,
.feature-card,
.timeline-step,
.fact-card,
.side-copy,
.surface-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: var(--surface, rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow-soft);
}

.hero-fact,
.stat-box,
.feature-card,
.timeline-step,
.fact-card,
.side-copy,
.surface-panel {
  padding: 20px;
}

.hero-fact strong,
.stat-box strong,
.fact-card strong,
.timeline-step strong {
  display: block;
  color: var(--ink, #ffffff);
  font-size: 25px;
  line-height: 1.1;
}

.hero-fact span,
.stat-box span,
.fact-card span,
.listing-card span,
.feature-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent, #c9a366);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section {
  position: relative;
  padding: 92px 0;
}

.section.alt {
  background: var(--section-alt, rgba(255, 255, 255, 0.04));
}

.section.light {
  background: var(--section-light, #f6f2ea);
  color: var(--section-light-ink, #162032);
}

.section.light .section-head p,
.section.light .list-copy p,
.section.light .stat-box p,
.section.light .listing-card p,
.section.light .feature-card p,
.section.light .timeline-step p,
.section.light .fact-card p,
.section.light .side-copy p {
  color: var(--section-light-muted, #5f6f84);
}

.section.light .hero-fact,
.section.light .stat-box,
.section.light .listing-card,
.section.light .feature-card,
.section.light .timeline-step,
.section.light .fact-card,
.section.light .side-copy,
.section.light .surface-panel {
  background: #ffffff;
  border-color: rgba(20, 33, 50, 0.08);
  box-shadow: 0 16px 32px rgba(20, 33, 50, 0.06);
}

.section.light .listing-card h3,
.section.light .feature-card h3,
.section.light .timeline-step h3,
.section.light .side-copy h3,
.section.light .hero-fact strong,
.section.light .stat-box strong,
.section.light .fact-card strong,
.section.light .menu-row strong,
.section.light .detail-row strong,
.section.light .service-item strong,
.section.light .property-item strong {
  color: var(--section-light-ink, #162032);
}

.section.light .menu-row small,
.section.light .detail-row small,
.section.light .service-item small,
.section.light .property-item small {
  color: var(--section-light-muted, #5f6f84);
}

.section.light .hero-kicker,
.section.light .section-kicker {
  background: rgba(20, 33, 50, 0.05);
  border-color: rgba(20, 33, 50, 0.08);
}

.section.dark {
  background: var(--section-dark, #101725);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
  max-width: 760px;
}

.section-head h2,
.cta-band h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 24px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: #d7dce6;
  box-shadow: var(--shadow-deep);
}

.media-frame img {
  aspect-ratio: 4 / 5;
}

.media-frame.wide img {
  aspect-ratio: 16 / 10;
}

.list-copy {
  display: grid;
  gap: 18px;
}

.menu-list,
.detail-list,
.service-list,
.property-list {
  display: grid;
  gap: 12px;
}

.menu-row,
.detail-row,
.service-item,
.property-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.12));
}

.menu-row:last-child,
.detail-row:last-child,
.service-item:last-child,
.property-item:last-child {
  border-bottom: none;
}

.menu-row strong,
.detail-row strong,
.service-item strong,
.property-item strong {
  font-size: 15px;
  color: var(--ink, #ffffff);
}

.menu-row small,
.detail-row small,
.service-item small,
.property-item small {
  color: var(--muted, rgba(255, 255, 255, 0.68));
  font-size: 12px;
  font-weight: 700;
}

.listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-card {
  padding: 22px;
  background: var(--card-bg, rgba(255, 255, 255, 0.06));
}

.listing-card h3,
.feature-card h3,
.timeline-step h3,
.side-copy h3 {
  margin: 0 0 10px;
  color: var(--ink, #ffffff);
  font-size: 22px;
  line-height: 1.25;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-step {
  position: relative;
  padding-top: 50px;
}

.timeline-index {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent, #c9a366);
  color: var(--accent-ink, #111827);
  font-size: 12px;
  font-weight: 900;
}

.fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-band {
  border-radius: 38px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: var(--cta-bg, linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)));
  box-shadow: var(--shadow-deep);
  padding: 34px;
  display: grid;
  gap: 18px;
}

.footer-strip {
  padding: 34px 0 52px;
}

.footer-strip .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  padding-top: 24px;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted, rgba(255, 255, 255, 0.72));
  font-size: 13px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-restaurant {
  --page-bg: linear-gradient(180deg, #130f0d 0%, #181210 28%, #0f0b09 100%);
  --surface: rgba(255, 248, 239, 0.06);
  --card-bg: rgba(255, 248, 239, 0.06);
  --topbar-bg: rgba(10, 8, 7, 0.72);
  --ink: #f8f1e5;
  --muted: rgba(248, 241, 229, 0.72);
  --accent: #d5ab70;
  --accent-ink: #1a120d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --kicker-bg: rgba(213, 171, 112, 0.12);
  --kicker-line: rgba(213, 171, 112, 0.28);
  --hero-overlay: linear-gradient(90deg, rgba(9, 7, 6, 0.88), rgba(9, 7, 6, 0.58) 44%, rgba(9, 7, 6, 0.18));
  --section-alt: linear-gradient(180deg, rgba(255, 248, 239, 0.04), rgba(255, 248, 239, 0.02));
  --cta-bg: linear-gradient(135deg, rgba(213, 171, 112, 0.12), rgba(255, 248, 239, 0.04));
}

.page-restaurant .hero {
  min-height: 100svh;
}

.page-restaurant .hero-grid {
  align-items: end;
  min-height: calc(100svh - 76px);
}

.page-restaurant .hero-copy {
  padding: 128px 0 116px;
}

.page-restaurant .hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -44px;
  padding-bottom: 26px;
}

.page-hospital {
  --page-bg: linear-gradient(180deg, #f7fbff 0%, #f2f7fc 100%);
  --surface: #ffffff;
  --card-bg: linear-gradient(180deg, #ffffff, #fbfdff);
  --topbar-bg: rgba(247, 251, 255, 0.84);
  --ink: #142233;
  --muted: #597089;
  --accent: #1a79e4;
  --accent-ink: #ffffff;
  --line: rgba(20, 34, 51, 0.1);
  --line-strong: rgba(20, 34, 51, 0.16);
  --kicker-bg: rgba(26, 121, 228, 0.08);
  --kicker-line: rgba(26, 121, 228, 0.2);
  --hero-overlay: linear-gradient(180deg, rgba(247, 251, 255, 0.08), rgba(247, 251, 255, 0.08));
  --section-alt: linear-gradient(180deg, #eef5fb, #ffffff);
  --section-light: #ffffff;
  --section-light-ink: #142233;
  --section-light-muted: #597089;
  --button-secondary-bg: rgba(20, 34, 51, 0.03);
  --cta-bg: linear-gradient(135deg, rgba(26, 121, 228, 0.08), rgba(255, 255, 255, 0.86));
}

.page-hospital .demo-link {
  background: rgba(20, 34, 51, 0.03);
}

.page-hospital .hero {
  padding: 40px 0 0;
}

.page-hospital .hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
}

.page-hospital .hero-copy {
  padding: 48px 0 36px;
}

.page-hospital .hero-photo {
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(20, 34, 51, 0.08);
  box-shadow: 0 22px 48px rgba(20, 34, 51, 0.12);
  background: #dce7f2;
}

.page-hospital .hero-photo img {
  aspect-ratio: 4 / 5;
}

.page-hospital .hero-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px 0 0;
}

.page-estate {
  --page-bg: linear-gradient(180deg, #0d1117 0%, #101722 36%, #131b28 100%);
  --surface: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(255, 255, 255, 0.06);
  --topbar-bg: rgba(10, 13, 18, 0.72);
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.72);
  --accent: #cfab6d;
  --accent-ink: #15100c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --kicker-bg: rgba(207, 171, 109, 0.12);
  --kicker-line: rgba(207, 171, 109, 0.24);
  --hero-overlay: linear-gradient(180deg, rgba(8, 11, 16, 0.18), rgba(8, 11, 16, 0.7) 64%, rgba(8, 11, 16, 0.88));
  --section-alt: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  --section-light: #f6f1e7;
  --section-light-ink: #172131;
  --section-light-muted: #617186;
  --cta-bg: linear-gradient(135deg, rgba(207, 171, 109, 0.12), rgba(255, 255, 255, 0.04));
}

.page-estate .hero {
  min-height: 100svh;
}

.page-estate .hero-grid {
  align-items: end;
  min-height: calc(100svh - 76px);
}

.page-estate .hero-copy {
  padding: 148px 0 66px;
}

.page-estate .hero-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 34px;
}

@media (max-width: 1080px) {
  .page-hospital .hero-grid,
  .split-grid,
  .feature-grid,
  .timeline-grid,
  .listing-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .page-restaurant .hero-facts,
  .page-hospital .hero-facts,
  .page-estate .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --shell-width: min(100% - 26px, 1220px);
  }

  .demo-topbar .shell,
  .demo-nav,
  .hero-actions,
  .footer-strip .shell {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-brand {
    justify-content: center;
  }

  .demo-brand-copy {
    text-align: center;
  }

  .demo-link,
  .demo-cta,
  .btn {
    width: 100%;
  }

  .page-restaurant .hero-copy,
  .page-estate .hero-copy {
    padding: 112px 0 88px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 58px);
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 560px) {
  .page-restaurant .hero-facts,
  .page-hospital .hero-facts,
  .page-estate .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-fact,
  .stat-box,
  .feature-card,
  .timeline-step,
  .fact-card,
  .side-copy,
  .surface-panel,
  .listing-card,
  .cta-band {
    padding: 18px;
  }

  .media-frame,
  .page-hospital .hero-photo {
    border-radius: 24px;
  }
}
