/* /event — the «أجمل لايف» launch event page. Mobile first. */
:root {
  --ev-red: #b8202f;
  --ev-deep: #5e0f1b;
  --ev-night: #240811;
  --ev-gold: #d9b868;
  --ev-gold-ink: #7d5f17;
  --ev-paper: #fcf8ef;
  --ev-cream: #f5ecdb;
  --ev-ink: #231c1e;
  --ev-soft: #5c5254;
  --ev-line: #e4d7bd;
  --ev-green: #0c6636;
  --ev-orange: #e8951f;
  --ev-radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ev-paper); color: var(--ev-ink);
  font-family: 'Cairo', Tahoma, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.8;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--ev-red); }
:focus-visible { outline: 3px solid var(--ev-orange); outline-offset: 2px; border-radius: 4px; }
.ev-wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 18px; }
.ev-narrow { width: min(720px, 100%); }
.ev-center { text-align: center; }
.ev-skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.ev-skip:focus { top: 8px; }
.ev-adminbar { background: #1e293b; color: #fff; font-size: 14px; text-align: center; padding: 6px 12px; }
.ev-adminbar a { color: #fde68a; }

/* Hero */
.ev-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(184, 32, 47, .75), transparent 70%),
    radial-gradient(70% 55% at 0% 100%, rgba(217, 184, 104, .16), transparent 70%),
    linear-gradient(160deg, var(--ev-night), var(--ev-deep) 70%, #47101c);
}
.ev-hero::before, .ev-hero::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 44px, rgba(217, 184, 104, .3) 44px 45px);
}
.ev-hero::before { top: -210px; left: -210px; }
.ev-hero::after { bottom: -210px; right: -210px; }
.ev-hero-ten {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: 'Amiri', serif; font-weight: 700; font-size: min(78vw, 560px); line-height: 1;
  color: rgba(217, 184, 104, .07); user-select: none; pointer-events: none; direction: ltr;
}
.ev-hero-in { position: relative; padding-block: 26px 44px; }
.ev-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 12px; line-height: 0; box-shadow: 0 10px 34px rgba(0, 0, 0, .3); }
.ev-logo img { display: block; width: 96px; height: auto; }
.ev-eyebrow { margin-top: 22px; color: var(--ev-gold); font-weight: 700; font-size: 16px; line-height: 1.6; }
.ev-hero h1 { font-family: 'Amiri', serif; font-weight: 700; font-size: clamp(40px, 11vw, 72px); line-height: 1.25; margin-top: 8px; }
.ev-hero h1 span { color: var(--ev-gold); white-space: nowrap; }
.ev-lead { max-width: 620px; margin: 10px auto 0; font-size: 18px; color: rgba(255, 255, 255, .88); }

.ev-facts { display: grid; gap: 10px; margin-top: 26px; text-align: center; }
.ev-facts li {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(217, 184, 104, .3);
  border-radius: var(--ev-radius); padding: 10px 14px; display: flex; flex-direction: column; line-height: 1.5;
}
.ev-facts small { color: var(--ev-gold); font-size: 14px; font-weight: 700; }
.ev-facts strong { font-size: 18px; }
.ev-facts em { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .82); }

.ev-count { margin-top: 26px; }
.ev-count-label { color: rgba(255, 255, 255, .85); font-size: 15px; margin-bottom: 8px; }
.ev-count-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin-inline: auto; direction: rtl; }
.ev-count-tiles div { background: rgba(0, 0, 0, .28); border: 1px solid rgba(217, 184, 104, .35); border-radius: 12px; padding: 10px 2px 6px; }
.ev-count-tiles b { display: block; font-size: clamp(24px, 7vw, 34px); font-weight: 800; color: var(--ev-gold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ev-count-tiles span { font-size: 13px; color: rgba(255, 255, 255, .85); }
.ev-count-msg { margin-top: 24px; font-size: 20px; font-weight: 700; color: var(--ev-gold); }
.ev-count[hidden], .ev-count-msg[hidden] { display: none; }

.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 30px;
  border: 0; border-radius: 12px; background: var(--ev-red); color: #fff; font: inherit; font-weight: 800; font-size: 18px;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.ev-btn:hover { background: #9c1826; }
.ev-btn:active { transform: translateY(1px); }
.ev-btn[disabled] { opacity: .7; cursor: progress; }
.ev-btn-gold { background: var(--ev-gold); color: #33200a; margin-top: 24px; }
.ev-btn-gold:hover { background: #e7cb86; }
.ev-btn-wide { width: 100%; }
.ev-spin { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: evSpin .8s linear infinite; }
@keyframes evSpin { to { transform: rotate(360deg); } }

/* Sections */
.ev-section { padding-block: 52px; }
.ev-section-tight { padding-block: 28px 0; }
.ev-section-alt { background: var(--ev-cream); }
.ev-section-invite { padding-block: 0 8px; margin-top: -22px; position: relative; }
.ev-section h2 { font-family: 'Amiri', serif; font-size: clamp(28px, 6vw, 38px); line-height: 1.35; color: var(--ev-deep); }
.ev-sub { color: var(--ev-soft); }
.ev-about { margin-top: 12px; font-size: 18px; }

.ev-themes { display: grid; gap: 14px; margin-top: 30px; }
.ev-themes li {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius); padding: 16px 18px;
}
.ev-themes span {
  flex: none; width: 46px; height: 46px; border-radius: 12px 12px 12px 3px; display: grid; place-items: center;
  border: 3px solid var(--ev-red); color: var(--ev-red); font-weight: 800; font-size: 20px;
}
.ev-themes li:nth-child(2) span { border-color: var(--ev-orange); color: #9a5c06; }
.ev-themes li:nth-child(3) span { border-color: var(--ev-green); color: var(--ev-green); }
.ev-themes h3 { font-size: 18px; font-weight: 700; line-height: 1.55; }

/* Agenda: a single timeline, the line runs along the inline start */
.ev-agenda-wrap { margin-top: 26px; max-width: 820px; }
.ev-agenda { position: relative; padding-inline-start: 22px; }
.ev-agenda::before { content: ''; position: absolute; inset-inline-start: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--ev-gold); opacity: .7; }
.ev-agenda li { position: relative; padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; }
.ev-agenda li::before {
  content: ''; position: absolute; inset-inline-start: -22px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ev-paper); border: 2px solid var(--ev-gold-ink);
}
.ev-agenda time { display: block; color: var(--ev-gold-ink); font-weight: 800; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ev-agenda p { font-size: 17px; line-height: 1.6; }
.ev-agenda .is-key { background: #fff; border: 1px solid var(--ev-line); border-inline-start: 4px solid var(--ev-red); }
.ev-agenda .is-key::before { background: var(--ev-red); border-color: var(--ev-red); }
.ev-agenda .is-key p { font-weight: 700; }
.ev-agenda .is-now { background: var(--ev-deep); border-color: var(--ev-deep); color: #fff; }
.ev-agenda .is-now time { color: var(--ev-gold); }
.ev-agenda .is-now::before { background: var(--ev-orange); border-color: var(--ev-orange); }
.ev-agenda .is-now p::after { content: 'الآن'; margin-inline-start: 10px; padding: 0 10px; border-radius: 99px; background: var(--ev-orange); color: #33200a; font-size: 13px; font-weight: 800; }

.ev-venue-name { font-size: 22px; font-weight: 800; margin-top: 8px; }

/* Invitation + RSVP */
.ev-invite {
  background: #fff; border: 1px solid var(--ev-line); border-top: 5px solid var(--ev-gold);
  border-radius: var(--ev-radius); padding: 26px 20px; box-shadow: 0 16px 44px rgba(60, 20, 26, .14);
}
.ev-invite-kind { display: inline-block; background: var(--ev-red); color: #fff; font-weight: 800; font-size: 15px; padding: 2px 18px; border-radius: 99px; }
.ev-invite h2 { margin-top: 12px; font-size: clamp(25px, 6.5vw, 34px); color: var(--ev-ink); overflow-wrap: anywhere; }
.ev-invite-attn { color: var(--ev-soft); }
.ev-invite-text { margin-top: 8px; font-size: 18px; }
.ev-rsvp { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--ev-line); }

.ev-form { display: grid; gap: 16px; margin-top: 4px; }
.ev-field label, .ev-field legend, .ev-label { display: block; font-weight: 700; margin-bottom: 6px; }
.ev-field small { font-weight: 400; color: var(--ev-soft); }
.ev-field input[type=text], .ev-field input[type=tel], .ev-field select, .ev-field textarea {
  width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; font-size: 17px; color: var(--ev-ink);
  background: #fff; border: 1.5px solid #bfb09a; border-radius: 10px;
}
.ev-field input[dir=ltr] { text-align: right; }
.ev-field [aria-invalid=true] { border-color: var(--ev-red); }
.ev-readonly { padding: 8px 12px; background: var(--ev-paper); border-radius: 10px; }
.ev-choices { display: grid; gap: 10px; }
.ev-choices-row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.ev-choice { position: relative; display: block; margin: 0 !important; cursor: pointer; font-weight: 600 !important; }
.ev-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ev-choice span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 8px 12px;
  border: 1.5px solid #bfb09a; border-radius: 10px; background: #fff; transition: background .12s, border-color .12s;
}
.ev-choice input:checked + span { background: var(--ev-deep); border-color: var(--ev-deep); color: #fff; }
.ev-choice input:focus-visible + span { outline: 3px solid var(--ev-orange); outline-offset: 2px; }
.ev-error { color: #a01622; font-size: 15px; font-weight: 700; margin-top: 4px; }
.ev-alert { padding: 12px 14px; border-radius: 10px; font-weight: 700; margin-bottom: 14px; line-height: 1.7; }
.ev-alert:focus { outline: none; }
.ev-alert-ok { background: #e8f4ec; color: #0a5029; border: 1px solid #b6dcc4; }
.ev-alert-error { background: #fcebec; color: #8e1320; border: 1px solid #f0c2c6; }
.ev-saved { display: grid; gap: 6px; background: var(--ev-paper); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.ev-saved-row { display: flex; justify-content: space-between; gap: 12px; }
.ev-saved-row span { color: var(--ev-soft); }
.ev-saved .is-yes { color: var(--ev-green); }
.ev-saved .is-no { color: var(--ev-red); }
.ev-edit summary { cursor: pointer; font-weight: 700; color: var(--ev-red); min-height: 44px; display: flex; align-items: center; }
.ev-hint { font-size: 15px; color: var(--ev-soft); }
.ev-closed { font-weight: 700; color: var(--ev-deep); }
.ev-notice { background: #fff; border: 1px solid var(--ev-line); border-inline-start: 4px solid var(--ev-orange); border-radius: var(--ev-radius); padding: 18px 20px; }
.ev-notice h2 { font-size: 26px; }

/* App download */
.ev-saved + .ev-app { margin-bottom: 14px; }
.ev-app { background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 16px 18px; text-align: center; }
.ev-section-app .ev-app { background: none; border: 0; padding: 0; }
.ev-app-title { font-size: 20px; color: var(--ev-deep); margin: 0 0 4px; }
.ev-app-text { color: var(--ev-soft); margin: 0 0 14px; }
.ev-app-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ev-app-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border-radius: 12px;
  background: var(--ev-night); color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; direction: ltr;
  transition: background .15s;
}
.ev-app-btn:hover { background: var(--ev-deep); }
.ev-app-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.ev-app-btn small { font-size: 12px; font-weight: 600; color: var(--ev-gold); direction: rtl; }

.ev-footer { background: var(--ev-night); color: rgba(255, 255, 255, .85); text-align: center; padding-block: 24px; font-size: 15px; }
.ev-footer a { color: var(--ev-gold); }

@media (min-width: 720px) {
  .ev-hero-in { padding-block: 40px 70px; }
  .ev-logo img { width: 116px; }
  .ev-facts { grid-template-columns: repeat(3, 1fr); }
  .ev-themes { grid-template-columns: repeat(3, 1fr); }
  .ev-themes li { flex-direction: column; text-align: center; padding: 24px 18px; }
  .ev-invite { padding: 32px 36px; }
  .ev-choices { grid-template-columns: 1fr 1fr; }
  .ev-agenda li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
  .ev-agenda li::before { top: 50%; margin-top: -7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .ev-hero { background: #fff; color: #000; }
  .ev-hero::before, .ev-hero::after, .ev-hero-ten, .ev-count, .ev-btn, .ev-skip, .ev-adminbar, .ev-app, .ev-section-app, form, details { display: none !important; }
  .ev-eyebrow, .ev-hero h1 span, .ev-facts small, .ev-facts em { color: #000; }
  .ev-lead { color: #000; }
}
