/* =========================================================
   شُرفة — الصفحة الرئيسية للمنصة (تُحمَّل بعد style.css)
   ========================================================= */

/* شاشة الهاتف في الواجهة */
.app-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 11.5px; color: var(--muted); box-shadow: var(--shadow-sm); }
.app-search .ico { width: 15px; height: 15px; }
.app-event { position: relative; border-radius: 18px; padding: 14px; color: var(--cream); overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(245, 166, 35, .45), transparent 55%), linear-gradient(135deg, #1A2E28, #2E5148); }
.app-event small { display: block; font-size: 10.5px; opacity: .7; }
.app-event strong { display: block; font-family: var(--font-head); font-size: 17px; margin-block: 2px 6px; }
.ae-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; opacity: .85; }
.ae-loc .ico { width: 13px; height: 13px; }
.ae-badge { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

/* شارات الحالة (مشتركة) */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; line-height: 1.5; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-live { background: rgba(44, 166, 164, .14); color: #17716F; }
.st-event { background: rgba(123, 91, 167, .12); color: var(--purple); }
.st-soon { background: rgba(245, 166, 35, .18); color: #9A6200; }
.st-ended { background: rgba(26, 46, 40, .08); color: var(--muted); }

.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 28px; }
.sec-row h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin-top: 12px; line-height: 1.2; }
.sec-row p { max-width: 380px; color: var(--muted); }

.chip-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.chip-btn .ico { width: 17px; height: 17px; }
.chip-btn:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.chip-btn.is-active { background: var(--green); color: var(--cream); box-shadow: none; }

/* ما هي شُرفة */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; line-height: 1.2; margin-block: 14px 18px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 12px; max-width: 520px; }
.about-copy p b { color: var(--green); }
.about-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; max-width: 520px; }
.about-compare > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; font-size: 14px; }
.about-compare small { font-family: var(--font-head); font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.ac-before { background: var(--cream); color: var(--muted); }
.ac-before span::before { content: "✕ "; color: var(--brick); }
.ac-after { background: var(--green); color: var(--cream); }
.ac-after small { color: var(--gold); }
.ac-after span::before { content: "✓ "; color: var(--gold); }
.pillars { display: grid; gap: 14px; }
.pillar { --ac: var(--gold); position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 22px 24px; border-radius: 22px; background: var(--cream); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { transform: translateX(-6px); box-shadow: var(--shadow); background: #fff; }
.pillar .p-ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); }
.pillar .p-ico .ico { width: 28px; height: 28px; }
.pillar h3 { font-size: 20px; }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.p-num { position: absolute; inset-inline-end: 20px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 34px; color: color-mix(in srgb, var(--ac) 22%, transparent); line-height: 1; }

/* جواز السياحة الرقمي */
.home-passport { background: radial-gradient(ellipse 60% 70% at 10% 30%, rgba(123, 91, 167, .28), transparent 70%), var(--green); }
.hp-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hp-copy h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-block: 14px 14px; }
.hp-lead { color: rgba(250, 246, 240, .76); font-size: 18px; max-width: 540px; }
.hp-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 26px; max-width: 560px; }
.hp-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(250, 246, 240, .85); }
.hp-features b { color: var(--gold); font-weight: 700; }
.hp-features .ico { color: var(--gold); width: 20px; height: 20px; }
.home-passport .flow3 { margin-top: 28px; }
.hp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.btn-link-light { color: rgba(250, 246, 240, .65); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.btn-link-light:hover { color: var(--cream); }
.hp-visual { display: flex; flex-direction: column; align-items: center; }
.passport-how { position: relative; margin-top: 44px; padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); animation: popIn .5s var(--ease); }
.passport-how h3 { font-size: 20px; margin-bottom: 18px; }
.passport-how ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.passport-how li { display: flex; flex-direction: column; gap: 4px; }
.passport-how li span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--green); font-weight: 800; margin-bottom: 6px; }
.passport-how li b { font-family: var(--font-head); font-size: 15.5px; }
.passport-how li small { color: rgba(250, 246, 240, .65); font-size: 13.5px; }
.hp-note { position: relative; display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 18px; border-radius: 16px; background: rgba(245, 166, 35, .08); color: rgba(250, 246, 240, .82); font-size: 14px; line-height: 1.7; }
.hp-note .ico { color: var(--gold); margin-top: 3px; }

/* الفعاليات */
.events { background: var(--cream); }
.event-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ev-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--ev-ac) 55%, transparent), transparent 55%), linear-gradient(135deg, var(--ev-from), var(--ev-to)); }
.ev-cover::before { content: ""; position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23FAF6F0' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M36 14l6.4 15.6L58 36l-15.6 6.4L36 58l-6.4-15.6L14 36l15.6-6.4z'/%3E%3Crect x='20.5' y='20.5' width='31' height='31' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"); }
.ev-cover::after { content: ""; position: absolute; width: 150px; height: 210px; inset-inline-start: 24px; bottom: -40px; border-radius: 75px 75px 0 0; border: 2px solid rgba(250, 246, 240, .16); }
.ev-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .ev-cover img { transform: scale(1.05); }
.ev-art { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.ev-art .ico { width: 64px; height: 64px; color: var(--ev-ac); transition: transform .5s var(--ease); }
.event-card:hover .ev-art .ico { transform: scale(1.1) rotate(-6deg); }
.ev-cover .st { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: rgba(255, 255, 255, .92); }
.ev-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.ev-body h3 { font-size: 22px; }
.ev-body h3 a:hover { color: var(--brick); }
.ev-body > p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.ev-meta li { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta .ico { width: 16px; height: 16px; color: var(--green); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags li { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--cream); }
.ev-btn { margin-top: auto; align-self: flex-start; }
.ev-btn .ico { width: 16px; height: 16px; }
.ev-btn.is-disabled { background: var(--sand); color: var(--muted); cursor: default; }
.ev-btn.is-disabled:hover { transform: none; }
.event-card.is-ended { opacity: .75; }
.event-card.is-coming { align-items: flex-start; justify-content: center; gap: 12px; padding: 28px; background: transparent; border: 2px dashed rgba(26, 46, 40, .16); box-shadow: none; }
.event-card.is-coming:hover { transform: none; box-shadow: none; border-color: rgba(26, 46, 40, .3); }
.ec-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--brick); }
.event-card.is-coming h3 { font-size: 19px; }
.event-card.is-coming p { color: var(--muted); font-size: 14.5px; }
.empty-note { grid-column: 1 / -1; color: var(--muted); padding: 20px 0; }

/* الخدمات */
.services-home { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { --ac: var(--green); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; background: var(--cream); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s; }
a.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fff; }
.svc-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac); margin-bottom: 6px; }
.svc-ico .ico { width: 25px; height: 25px; }
.svc-card .st { position: absolute; top: 22px; inset-inline-end: 22px; }
.svc-card h3 { font-size: 18px; }
.svc-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.svc-note { font-size: 13px; font-weight: 600; color: var(--ac); margin-top: auto; padding-top: 4px; }
.svc-go { position: absolute; bottom: 22px; inset-inline-end: 22px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
a.svc-card:hover .svc-go { transform: translateX(-4px); color: var(--green); }
.svc-card.is-soon { background: transparent; border: 1.5px dashed var(--sand); }
.svc-card.is-soon .svc-ico { filter: grayscale(.4); }
.svc-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.svc-legend .st { margin-inline-start: 10px; }

/* الشركاء */
.partners-home { background: var(--sand); }
.ptype-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ptype-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .7); animation: popIn .4s var(--ease) both; }
.pt-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: var(--gold); }
.ptype-card b { font-family: var(--font-head); font-size: 16px; display: block; }
.ptype-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pt-soon { grid-column: 1 / -1; justify-self: start; font-size: 12px; font-weight: 600; color: #9A6200; background: rgba(245, 166, 35, .16); padding: 3px 10px; border-radius: 99px; margin-top: 6px; }
.partner-grid.has-logos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.partner-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 16px; border-radius: 18px; background: #fff; text-align: center; }
.partner-logo img { max-height: 54px; width: auto; object-fit: contain; }
.partner-logo small { font-size: 12px; color: var(--muted); }
.partner-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 22px 26px; border-radius: 22px; background: var(--green); color: var(--cream); }
.partner-cta b { display: block; font-family: var(--font-head); font-size: 18px; }
.partner-cta span { color: rgba(250, 246, 240, .72); font-size: 14.5px; }
.partner-cta .btn-primary { background: var(--gold); color: var(--green); }
.partner-cta .btn-primary .ico { color: var(--green); }

/* القسم الختامي */
.dl-events-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 600; }
.dl-events-link .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.dl-events-link:hover .ico { transform: translateX(-4px); }

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
  .event-grid, .svc-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .about-grid, .hp-grid { grid-template-columns: 1fr; }
  .hp-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hp-features { text-align: start; }
  .hp-ctas { justify-content: center; }
  .passport-how ol { grid-template-columns: 1fr 1fr; }
  .sec-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .partner-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .sec-row h2, .about-copy h2 { font-size: clamp(26px, 7.6vw, 30px); }
  .sec-row p, .about-copy p { font-size: 15px; }
  .about-compare { grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-compare > div { padding: 12px; font-size: 12.5px; border-radius: 14px; }
  .pillar { padding: 16px; column-gap: 14px; border-radius: 18px; }
  .pillar .p-ico { width: 44px; height: 44px; border-radius: 14px; }
  .pillar .p-ico .ico { width: 22px; height: 22px; }
  .pillar h3 { font-size: 17px; }
  .pillar p { font-size: 13.5px; }
  .p-num { font-size: 24px; }

  .hp-copy h2 { font-size: clamp(28px, 8vw, 32px); }
  .hp-lead { font-size: 15.5px; }
  .hp-features { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .hp-features li { font-size: 14px; }
  .hp-ctas .btn { flex: 1; }
  .hp-visual .phone { zoom: .7; }
  .passport-how { padding: 18px; margin-top: 28px; }
  .passport-how ol { gap: 14px 10px; }
  .passport-how li b { font-size: 14px; }
  .passport-how li small { font-size: 12.5px; }
  .hp-note { font-size: 13px; padding: 12px 14px; }

  .chip-btn { padding: 7px 12px; font-size: 13px; }
  .event-grid, .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .ev-body { padding: 16px 18px 18px; }
  .ev-body h3 { font-size: 19px; }
  .ev-body > p { font-size: 14px; }
  .event-card.is-coming { padding: 22px; }
  .svc-card { padding: 18px; border-radius: 18px; }
  .svc-card .st { top: 18px; inset-inline-end: 18px; font-size: 11px; }
  .svc-ico { width: 42px; height: 42px; border-radius: 13px; }
  .svc-card h3 { font-size: 16.5px; }
  .svc-card p { font-size: 13.5px; }
  .ptype-filters { gap: 6px; }
  .ptype-filters .chip-btn .ico { display: none; }
  .partner-grid { grid-template-columns: 1fr; gap: 10px; }
  .ptype-card { padding: 14px; }
  .partner-cta { padding: 18px; }
  .partner-cta .btn { width: 100%; }
}

/* الهاتف: تقصير الصفحة — بطاقات الخدمات والشركاء في عمودين ومختصرة */
@media (max-width: 640px) {
  .home-passport .hp-features { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .home-passport .hp-features li { font-size: 12.5px; gap: 6px; }
  .home-passport .hp-features .ico { width: 16px; height: 16px; }
  .hp-visual .phone { zoom: .6; }
  .hp-ctas { margin-top: 18px; }

  .svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc-card { padding: 14px 12px; gap: 6px; }
  .svc-card .st { position: static; align-self: flex-start; order: 3; font-size: 10.5px; padding: 2px 8px; }
  .svc-ico { width: 38px; height: 38px; margin-bottom: 2px; }
  .svc-ico .ico { width: 20px; height: 20px; }
  .svc-card h3 { font-size: 14.5px; line-height: 1.4; }
  .svc-card p { display: none; }
  .svc-note { font-size: 11.5px; order: 4; }
  .svc-go { display: none; }
  .svc-legend { font-size: 11.5px; gap: 6px; }
  .svc-legend .st { margin-inline-start: 4px; font-size: 10.5px; }

  .partner-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ptype-card { grid-template-columns: 1fr; gap: 8px; padding: 12px; text-align: start; }
  .pt-ico { width: 36px; height: 36px; border-radius: 11px; }
  .pt-ico .ico { width: 18px; height: 18px; }
  .ptype-card b { font-size: 13.5px; }
  .ptype-card p { display: none; }
  .pt-soon { font-size: 10.5px; margin-top: 0; }
}
@media (max-width: 640px) { .ev-cover { aspect-ratio: 2 / 1; } .ev-art .ico { width: 48px; height: 48px; } }

/* أمثلة بطاقات الولاء */
.lc-examples { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; max-width: 560px; }
.lc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.lc-row b { min-width: 52px; color: var(--gold); font-weight: 700; }
.lc-row span { padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: rgba(250, 246, 240, .88); }
.lc-row span.r1 { background: rgba(245, 166, 35, .18); color: var(--gold); }
.lc-row span.r2 { background: var(--gold); color: var(--green); font-weight: 600; }
.lc-row i { font-style: normal; color: rgba(250, 246, 240, .45); }
.lc-examples small { font-size: 12px; color: rgba(250, 246, 240, .55); }
@media (max-width: 960px) {
  .lc-examples { align-items: center; text-align: center; }
  .lc-row { justify-content: center; }
}
@media (max-width: 640px) {
  .lc-row { font-size: 12px; gap: 5px; }
  .lc-row span { padding: 3px 9px; }
  .lc-row b { min-width: 0; width: 100%; }
}

/* صور أغلفة الفعاليات: بدون زخارف فوق الصورة، مع تدرّج خفيف أسفلها */
.ev-cover:has(img)::after { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(to top, rgba(26, 46, 40, .35), transparent 55%); z-index: 1; }
.ev-cover:has(img) .st { z-index: 2; }

/* شعار المهرجان على بطاقته */
.ev-card-logo { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); }
.ev-card-logo img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 640px) { .ev-card-logo img { height: 28px; max-width: 130px; } }
.ev-cover .ev-card-logo img { position: static; inset: auto; width: auto; transform: none !important; }
