/* Shalayhna public website (landing page + CMS pages). Plain CSS, no framework. Root class: .lp */

@font-face { font-family: "Graphik Arabic"; src: url("../fonts/GraphikArabic-Rg.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url("../fonts/GraphikArabic-Bd.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --lp-brand: #51B4DF;          /* shell blue */
    --lp-brand-ink: #1f6f94;      /* blue deep enough for text on white */
    --lp-brand-soft: #e7f5fb;
    --lp-brand-edge: #3d9fcb;
    --lp-sun: #F04A24;            /* sun orange */
    --lp-sun-soft: #fdeae5;
    --lp-bg: #ffffff;
    --lp-bg-2: #f4f9fc;
    --lp-card: #ffffff;
    --lp-fg: #10212c;
    --lp-muted: #566875;
    --lp-line: #dfe8ee;
    --lp-shadow: 0 1px 2px rgba(16, 50, 70, .06), 0 12px 32px rgba(16, 50, 70, .08);
    --lp-on-brand-shadow: 0 1px 2px rgba(10, 60, 88, .55), 0 0 1px rgba(10, 60, 88, .35);
    --lp-radius: 20px;
    --lp-wrap: 1180px;
    --lp-gutter: clamp(16px, 4vw, 32px);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --lp-brand-ink: #8fd3f0;
        --lp-brand-soft: #12303d;
        --lp-sun-soft: #3a1f18;
        --lp-bg: #0c1820;
        --lp-bg-2: #102029;
        --lp-card: #13242e;
        --lp-fg: #e8f1f6;
        --lp-muted: #9db1bd;
        --lp-line: #22384494;
        --lp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-fg);
    font: 400 16px/1.65 "Graphik Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
:where(.lp) img { max-width: 100%; height: auto; display: block; }
:where(.lp) a { color: inherit; }
:where(.lp) :where(h1, h2, h3) { margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
:where(.lp) p { margin: 0; }
:where(.lp) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.lp) :focus-visible { outline: 3px solid var(--lp-brand); outline-offset: 3px; border-radius: 8px; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--lp-fg); color: var(--lp-bg) !important; text-decoration: none; }
.lp-skip:focus { top: 12px; }
.lp-wrap { width: 100%; max-width: var(--lp-wrap); margin-inline: auto; padding-inline: var(--lp-gutter); }
.lp-narrow { max-width: 820px; }
.lp-center { text-align: center; }
.lp-muted { color: var(--lp-muted); }
[dir="rtl"] .lp-flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.lp-btn-primary { background: var(--lp-brand); border-color: var(--lp-brand-edge); color: #fff; text-shadow: var(--lp-on-brand-shadow); box-shadow: 0 6px 16px rgba(81, 180, 223, .35); }
.lp-btn-primary:hover { background: var(--lp-brand-edge); }
.lp-btn-ghost { background: transparent; border-color: var(--lp-line); color: var(--lp-fg); }
.lp-btn-ghost:hover { border-color: var(--lp-brand); color: var(--lp-brand-ink); }

/* ---------- header ---------- */
.lp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--lp-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.lp-header.is-scrolled { border-bottom-color: var(--lp-line); box-shadow: 0 6px 20px rgba(16, 50, 70, .06); }
.lp-header-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.lp-brand { display: inline-flex; flex: none; border-radius: 12px; }
.lp-brand img { height: 58px; width: auto; }
.lp-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav ul { display: flex; gap: 4px; margin-inline-start: 24px; }
.lp-nav ul a { display: inline-flex; padding: 8px 14px; border-radius: 999px; color: var(--lp-muted); font-weight: 500; text-decoration: none; transition: color .15s, background-color .15s; }
.lp-nav ul a:hover, .lp-nav ul a[aria-current="page"] { color: var(--lp-brand-ink); background: var(--lp-brand-soft); }
.lp-nav-end { display: flex; align-items: center; gap: 10px; }
.lp-lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--lp-fg); font-weight: 500; text-decoration: none; border: 1px solid var(--lp-line); }
.lp-lang:hover { border-color: var(--lp-brand); color: var(--lp-brand-ink); }
.lp-menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--lp-line); background: var(--lp-card); color: var(--lp-fg); cursor: pointer; place-items: center; }
.lp-menu-btn .lp-i-close { display: none; }
.lp-header.is-open .lp-menu-btn .lp-i-open { display: none; }
.lp-header.is-open .lp-menu-btn .lp-i-close { display: inline; }

@media (max-width: 860px) {
    .lp-header-in { min-height: 68px; flex-wrap: wrap; }
    .lp-brand img { height: 50px; }
    .lp-menu-btn { display: grid; }
    .lp-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 18px; }
    .lp-header.is-open .lp-nav { display: flex; }
    .lp-nav ul { flex-direction: column; margin: 0; }
    .lp-nav ul a { display: flex; padding: 12px 14px; font-size: 17px; }
    .lp-nav-end { justify-content: space-between; flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); background:
    radial-gradient(900px 420px at 85% 10%, var(--lp-brand-soft), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--lp-sun-soft) 70%, transparent), transparent 70%); }
[dir="rtl"] .lp-hero { background:
    radial-gradient(900px 420px at 15% 10%, var(--lp-brand-soft), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, color-mix(in srgb, var(--lp-sun-soft) 70%, transparent), transparent 70%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--lp-sun-soft); color: #b8341a; font-weight: 700; font-size: 14px; }
@media (prefers-color-scheme: dark) { .lp-eyebrow { color: #ffb29e; } }
.lp-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-sun); }
.lp-hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 700; }
.lp-lead { margin-top: 18px; max-width: 34em; color: var(--lp-muted); font-size: clamp(17px, 1.6vw, 20px); }
.lp-anchor { position: relative; top: -110px; }
.lp-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lp-hero-tags li { padding: 6px 14px; border-radius: 999px; background: var(--lp-card); border: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 14px; font-weight: 500; }

.lp-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; }
.lp-sun { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--lp-sun); top: 2%; inset-inline-end: 6%; box-shadow: 0 0 0 18px color-mix(in srgb, var(--lp-sun) 12%, transparent); animation: lp-float 7s ease-in-out infinite; }
.lp-waves { position: absolute; inset: 12% 0 0 0; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; background:
    repeating-radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--lp-brand) 22%, transparent) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, var(--lp-brand-soft), color-mix(in srgb, var(--lp-brand) 30%, var(--lp-bg))); }
.lp-hero-card { position: absolute; inset: 20% 14% 8%; display: grid; place-items: center; padding: 8%; border-radius: 32px; background: var(--lp-card); box-shadow: var(--lp-shadow); }
.lp-hero-card img { width: 100%; max-width: 300px; }
@media (prefers-color-scheme: dark) { .lp-hero-card { background: #f4fafd; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero-art { max-width: 340px; order: -1; }
}

/* ---------- store badges ---------- */
.lp-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-badge { display: inline-flex; padding: 6px 10px; border-radius: 14px; background: #fff; border: 1px solid #cfe6f2; box-shadow: 0 4px 14px rgba(16, 50, 70, .08); transition: transform .15s, box-shadow .15s; }
.lp-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 50, 70, .14); }
.lp-badge img { height: 44px; width: auto; }
.lp-badges-sm { margin-top: 18px; }
.lp-badges-sm .lp-badge img { height: 36px; }

/* ---------- sections ---------- */
.lp-section { padding-block: clamp(48px, 7vw, 96px); }
.lp-section-tint { background: var(--lp-bg-2); }
.lp-section-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.lp-section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.lp-section-head p { margin-top: 10px; color: var(--lp-muted); font-size: 17px; }

/* categories */
.lp-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(12px, 2vw, 18px); }
@media (max-width: 560px) { .lp-cat { padding: 14px 10px 14px; } .lp-cat-name { font-size: 16px; } }
.lp-cat { display: grid; justify-items: center; gap: 10px; padding: 22px 18px 20px; border-radius: var(--lp-radius); background: var(--lp-card); border: 1px solid var(--lp-line); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-cat:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); border-color: color-mix(in srgb, var(--lp-brand) 45%, var(--lp-line)); }
.lp-cat-art { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: radial-gradient(closest-side, var(--lp-brand-soft), transparent); }
.lp-cat-art img { width: 78%; max-width: 190px; }
.lp-cat-name { font-size: 18px; font-weight: 700; }
.lp-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: var(--lp-muted); font-weight: 500; }
.lp-line { padding: 6px 14px; border-radius: 999px; background: var(--lp-brand-soft); color: var(--lp-brand-ink); font-weight: 700; font-size: 14px; }

/* popular places */
.lp-places { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: -4px -4px 0; scrollbar-width: thin; }
.lp-places > li { scroll-snap-align: start; }
@media (max-width: 560px) { .lp-places { grid-auto-columns: 78%; } }
.lp-place { display: flex; flex-direction: column; height: 100%; border-radius: var(--lp-radius); overflow: hidden; background: var(--lp-card); border: 1px solid var(--lp-line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.lp-place:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); }
.lp-place-img { display: block; aspect-ratio: 4 / 3; background: var(--lp-brand-soft); overflow: hidden; }
.lp-place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lp-place:hover .lp-place-img img { transform: scale(1.04); }
.lp-place-body { display: grid; gap: 4px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.lp-place-cat { color: var(--lp-brand-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.lp-place-title { font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.lp-place-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--lp-muted); font-size: 14px; font-weight: 500; }
.lp-place:hover .lp-place-link { color: var(--lp-brand-ink); }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; counter-reset: none; }
.lp-step { position: relative; padding: 26px 24px; border-radius: var(--lp-radius); background: var(--lp-card); border: 1px solid var(--lp-line); }
.lp-step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: var(--lp-brand); color: #fff; text-shadow: var(--lp-on-brand-shadow); font-weight: 700; font-size: 18px; }
.lp-step:nth-child(3) .lp-step-num { background: var(--lp-sun); text-shadow: 0 1px 2px rgba(120, 30, 10, .45); }
.lp-step h3 { font-size: 19px; font-weight: 700; }
.lp-step p { margin-top: 8px; color: var(--lp-muted); }

/* faq */
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { border-radius: 16px; background: var(--lp-card); border: 1px solid var(--lp-line); transition: border-color .15s, box-shadow .15s; }
.lp-faq details[open] { border-color: color-mix(in srgb, var(--lp-brand) 45%, var(--lp-line)); box-shadow: var(--lp-shadow); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lp-brand-soft) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f94' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq .lp-prose { padding: 0 20px 20px; color: var(--lp-muted); }
.lp-faq + .lp-center { margin-top: 28px; }

/* download band */
.lp-cta { padding-block: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, #3fa6d4, var(--lp-brand) 55%, #6cc3e8); color: #fff; position: relative; overflow: hidden; }
.lp-cta::after { content: ""; position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%; background: var(--lp-sun); opacity: .9; inset-inline-end: -70px; top: -90px; }
.lp-cta-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.lp-cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; text-shadow: var(--lp-on-brand-shadow); }
.lp-cta p { margin-top: 8px; font-size: 18px; text-shadow: var(--lp-on-brand-shadow); }
.lp-badges-cta { margin-top: 0; }

/* ---------- CMS pages ---------- */
.lp-page-head { padding-block: clamp(32px, 5vw, 64px) 8px; background: linear-gradient(180deg, var(--lp-brand-soft), transparent); }
.lp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--lp-muted); font-size: 14px; }
.lp-crumbs a { color: var(--lp-brand-ink); text-decoration: none; }
.lp-crumbs a:hover { text-decoration: underline; }
.lp-page-head h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; }
.lp-updated { margin-top: 10px; color: var(--lp-muted); font-size: 14px; }
.lp-article-wrap { padding-top: 24px; }
.lp-article { padding: clamp(20px, 4vw, 40px); border-radius: var(--lp-radius); background: var(--lp-card); border: 1px solid var(--lp-line); }
.lp-article-img { width: 100%; margin-bottom: 24px; border-radius: 16px; }
.lp-back { margin-top: 28px; }

.lp-prose { overflow-wrap: anywhere; font-size: 17px; line-height: 1.8; }
.lp-prose > * + * { margin-top: 1em; }
.lp-prose h1, .lp-prose h2, .lp-prose h3, .lp-prose h4 { margin-top: 1.6em; font-size: 1.25em; font-weight: 700; line-height: 1.35; }
.lp-prose ul, .lp-prose ol { padding-inline-start: 1.4em; }
.lp-prose ul { list-style: disc; }
.lp-prose ol { list-style: decimal; }
.lp-prose li + li { margin-top: .4em; }
.lp-prose a { color: var(--lp-brand-ink); }
.lp-prose img { height: auto; border-radius: 12px; }
.lp-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.lp-prose td, .lp-prose th { padding: 8px 10px; border: 1px solid var(--lp-line); }
/* Content pasted into the admin editor often carries inline colours/fonts; keep it readable. */
.lp-prose [style*="font-family"] { font-family: inherit !important; }
@media (prefers-color-scheme: dark) { .lp-prose [style*="color"] { color: inherit !important; } .lp-prose [style*="background"] { background: transparent !important; } }

/* ---------- footer ---------- */
.lp-footer { padding-top: clamp(40px, 6vw, 64px); background: var(--lp-bg-2); border-top: 1px solid var(--lp-line); }
.lp-footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.lp-footer-brand img { height: 92px; width: auto; }
.lp-footer-brand p { margin-top: 14px; max-width: 32em; color: var(--lp-muted); }
.lp-footer h2 { margin-bottom: 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-footer-list { display: grid; gap: 10px; }
.lp-footer-list a { color: var(--lp-fg); text-decoration: none; }
.lp-footer-list a:hover { color: var(--lp-brand-ink); text-decoration: underline; }
.lp-contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--lp-fg); }
.lp-contact svg { flex: none; margin-top: 4px; color: var(--lp-brand-ink); }
.lp-follow-h { margin-top: 22px; }
.lp-social { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid #d4e8f2; transition: transform .15s, border-color .15s; }
.lp-social a:hover { transform: translateY(-2px); border-color: var(--lp-brand); }
.lp-footer-bottom { margin-top: 36px; padding-block: 18px; border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 14px; }
@media (max-width: 860px) {
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .lp-footer-grid { grid-template-columns: 1fr; }
}
