/**
 * AQDERA events platform homepage — Jordan, Arabic-first.
 * Ivory surfaces, deep navy primary, restrained champagne accents.
 * Original composition; not a third-party clone.
 */

:root {
  --ivory: #f7f2ea;
  --ivory-deep: #efe6d8;
  --surface: #fffaf3;
  --navy: #14213d;
  --navy-deep: #0c1528;
  --champagne: #c4a574;
  --champagne-soft: rgba(196, 165, 116, 0.18);
  --ink: #1a1f2e;
  --muted: #5c6170;
  --line: rgba(20, 33, 61, 0.12);
  --danger: #8b3a3a;
  --ok: #2f5d46;
  --font-ar: "IBM Plex Sans Arabic", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --tap: 44px;
  --radius: 16px;
  --radius-pill: 999px;
  --space: clamp(1rem, 3vw, 2rem);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 100% 0%, var(--champagne-soft), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 30%, rgba(20, 33, 61, 0.04), transparent 50%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
}

body[dir="ltr"] {
  font-family: var(--font-ui);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.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: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--navy);
}

.nav-desktop {
  display: none;
  gap: 1.25rem;
  align-items: center;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.nav-desktop a:hover {
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.text-button,
.icon-button {
  min-height: var(--tap);
  min-width: var(--tap);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  color: var(--navy);
}

.menu-lines {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  box-shadow: 0 6px 0 var(--navy), 0 -6px 0 var(--navy);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.btn:hover {
  background: var(--navy-deep);
}
.btn:active {
  transform: scale(0.98);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--surface);
}
.btn-header {
  display: none;
  padding-inline: 1rem;
  font-size: 0.9rem;
}

.account-control {
  position: relative;
}
.account-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.08);
  z-index: 50;
}
.account-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  border-radius: 8px;
}
.account-menu a:hover {
  background: var(--ivory-deep);
}

/* Mobile nav dialog */
.mobile-nav-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(100% - 1.5rem, 420px);
  max-height: min(88vh, 640px);
  border-radius: 20px;
  background: transparent;
}
.mobile-nav-dialog::backdrop {
  background: rgba(12, 21, 40, 0.45);
}
.mobile-nav-panel {
  background: var(--surface);
  border-radius: 20px;
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-links a {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hero */
.hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.brand-mark {
  font-family: var(--font-en);
  letter-spacing: 0.22em;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.85rem;
  animation: rise 700ms ease both;
}

.hero h1 {
  font-family: var(--font-ar);
  font-weight: 600;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  line-height: 1.35;
  max-width: 18ch;
  margin: 0 auto 0.85rem;
  color: var(--navy-deep);
  animation: rise 800ms ease 80ms both;
}

body[dir="ltr"] .hero h1 {
  font-family: var(--font-en);
  max-width: 22ch;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
}

.hero-lead {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  color: var(--muted);
  animation: rise 850ms ease 120ms both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: rise 900ms ease 160ms both;
}

.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: rise 1000ms ease 220ms both;
}

.demo-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.phone-frame {
  width: min(100%, 280px);
  aspect-ratio: 9 / 17;
  border-radius: 28px;
  background: linear-gradient(160deg, #1a2338, #0c1528);
  padding: 10px;
  text-decoration: none;
  box-shadow: 0 24px 48px rgba(20, 33, 61, 0.22);
  position: relative;
  transition: transform 220ms ease;
}
.phone-frame:hover {
  transform: translateY(-4px);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  width: 72px;
  height: 18px;
  border-radius: 12px;
  background: #0a101c;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(247, 242, 234, 0.96), rgba(239, 230, 216, 0.98)),
    url("/assets/theme-worlds/rose-fountain/opening-hero.jpg") center / cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.5rem 1.1rem 1.5rem;
  text-align: center;
  color: var(--navy-deep);
}

.nq-s {
  font-size: 0.78rem;
  color: var(--muted);
}
.nq-l {
  font-family: var(--font-en);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.invite-meta {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
}

.section h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

body[dir="ltr"] .section h2 {
  font-family: var(--font-en);
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 38rem;
}

.section-action {
  margin: 1.25rem 0 0;
  text-align: center;
}

.text-link {
  color: var(--navy);
  font-weight: 600;
}

/* Occasions */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.occasion-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  text-align: center;
  font-size: 0.92rem;
  color: var(--navy);
  transition: border-color 160ms ease, background 160ms ease;
}
.occasion-chip:hover {
  border-color: color-mix(in srgb, var(--champagne) 55%, var(--line));
  background: #fff;
}

/* Themes */
.theme-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 220px);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.theme-card {
  scroll-snap-align: start;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.theme-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}
.theme-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.theme-meta strong {
  color: var(--navy);
  font-weight: 600;
}

.section-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.opening-preview {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 360px;
  margin-inline: auto;
}
.opening-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.feature-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.feature-list li {
  padding-inline-start: 1.25rem;
  position: relative;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--champagne);
}

.service-search {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.service-search select {
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.65rem 0.85rem;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.service-chips span {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, var(--ivory-deep));
  border: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.9rem;
}
.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.inspire-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.inspire-link {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--navy);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.85rem 1rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.faq-list p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: color-mix(in srgb, var(--ivory-deep) 65%, #fff);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-blurb {
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.95rem;
}
.footer-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
}
.footer-grid a {
  display: block;
  min-height: 2.25rem;
  text-decoration: none;
  color: var(--muted);
}
.footer-grid a:hover {
  color: var(--navy);
}
.footer-copy {
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .btn-header {
    display: inline-flex;
  }
  .occasion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .service-search {
    grid-template-columns: 1fr 1fr auto;
    align-items: stretch;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .steps li {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .theme-rail {
    grid-auto-flow: dense;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
  }
}

@media (min-width: 1440px) {
  .theme-rail {
    grid-template-columns: repeat(6, 1fr);
  }
  .occasion-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
