/* =============================================================
   single-case-study-lahza.css — SpinesTech
   "لحظة" (Lahza) case study — Arabic/RTL only, luxury events platform.
   Page-scoped tokens (does NOT reuse site-wide --color-secondary):
   the source design uses its own purple/gold palette, not the site's
   green brand color — same reasoning as the PropCare 360 build.
   ============================================================= */

.lh {
    --lh-primary:            #09000f;
    --lh-primary-container:  #2e1038;
    --lh-on-primary-container: #9e78a7;
    --lh-secondary:          #81498a;
    --lh-secondary-container:#f7b5ff;
    --lh-tertiary-container: #b0ad7e;
    --lh-error:              #ba1a1a;
    --lh-error-container:    #ffdad6;
    --lh-gold:               #d4a45f;
    --lh-cream:              #f7f1e8;
    --lh-white:              #fffcf8;
    --lh-bg:                 #fff7fb;
    --lh-surface-container:  #f4ecf0;
    --lh-ink:                #1e1b1e;
    --lh-ink-soft:           #4c444c;
    --lh-outline-variant:    #cfc3cd;
    --lh-ease:               cubic-bezier(0.22, 1, 0.36, 1);
    --lh-font-headline: 'Be Vietnam Pro', 'IBM Plex Sans Arabic', sans-serif;
    --lh-font-body:     'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
    --lh-section-y: clamp(3rem, 6vw, 6rem);

    position: relative;
    background: var(--lh-bg);
    color: var(--lh-ink);
    font-family: var(--lh-font-body);
    /* Guards against any element (e.g. the phone stack) ever causing a
       horizontal scrollbar, regardless of screen size. */
    overflow-x: clip;
}

.lh__container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Reveal-on-scroll (mirrors the PropCare pattern) ─────────── */
.lh [data-lh-reveal] { opacity: 1; transform: none; }
.lh.js-ready [data-lh-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--lh-ease), transform 0.7s var(--lh-ease);
    will-change: opacity, transform;
}
.lh.js-ready [data-lh-reveal].is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ── Shared type ──────────────────────────────────────────── */
.lh__h2 {
    font-family: var(--lh-font-headline);
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--lh-primary-container);
    margin-block-end: 0.75rem;
}
.lh__h2--center { text-align: center; margin-inline: auto; }
.lh__h3 {
    font-family: var(--lh-font-headline);
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--lh-primary-container);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 0.75rem;
}
.lh__h4 {
    font-family: var(--lh-font-headline);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 600;
    color: var(--lh-primary-container);
    margin-block-end: 0.25rem;
}
.lh__p {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: var(--lh-ink-soft);
    margin-block-end: 1rem;
}
.lh__p--on-dark { color: rgba(255, 255, 255, 0.78); }
.lh__p-sm {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--lh-ink-soft);
}

.lh__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s var(--lh-ease), box-shadow 0.3s var(--lh-ease), background-color 0.3s ease;
}
.lh__btn--primary {
    background: var(--lh-primary-container);
    color: #fff;
    box-shadow: 0 14px 28px -10px rgba(46, 16, 56, 0.45);
}
.lh__btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -10px rgba(46, 16, 56, 0.55); }
.lh__btn--outline {
    background: transparent;
    color: var(--lh-primary-container);
    border: 2px solid var(--lh-gold);
}
.lh__btn--outline:hover { background: rgba(212, 164, 95, 0.08); transform: translateY(-2px); }
.lh__btn--gold {
    background: var(--lh-gold);
    color: var(--lh-primary-container);
    font-weight: 800;
}
.lh__btn--gold:hover { transform: scale(1.05); }
.lh__btn--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.lh__btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* =============================================================
   01 · HERO
   ============================================================= */
.lh__hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(6rem, 5rem + 2vw, 8rem) var(--lh-section-y);
}
.lh__hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, var(--lh-gold) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}
.lh__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 768px) {
    .lh__hero-inner { flex-direction: row; align-items: center; }
}

.lh__hero-content { flex: 1 1 0; min-width: 0; width: 100%; text-align: center; }
@media (min-width: 768px) { .lh__hero-content { text-align: start; } }

.lh__hero-title {
    font-family: var(--lh-font-headline);
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--lh-primary-container);
    line-height: 1.1;
    margin-block-end: 0.5rem;
}
.lh__hero-tagline {
    font-family: var(--lh-font-headline);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 600;
    color: var(--lh-secondary);
    margin-block-end: 1rem;
}
.lh__hero-copy {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    color: var(--lh-ink-soft);
    max-width: 34rem;
    margin-inline: auto;
}
@media (min-width: 768px) { .lh__hero-copy { margin-inline: 0; } }

.lh__hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-block-start: 1.25rem;
    justify-content: center;
}
@media (min-width: 768px) { .lh__hero-pills { justify-content: flex-start; } }
.lh__pill {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(212, 164, 95, 0.1);
    border: 1px solid rgba(212, 164, 95, 0.25);
    color: var(--lh-primary-container);
    font-size: 0.8rem;
    font-weight: 600;
}
.lh__hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-block-start: 1.75rem;
}
@media (min-width: 768px) { .lh__hero-ctas { justify-content: flex-start; } }

.lh__hero-visual { flex: 1 1 0; min-width: 0; width: 100%; display: flex; justify-content: center; }

/* Phone stack — all offsets are percentage-based relative to the same
   wrapper, so the fan-out effect stays proportionally contained at any
   screen size with zero risk of overflow (no fixed px offsets). */
.lh__phone-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
}
.lh__phone-stack-item {
    position: absolute;
    top: 0;
    width: 58%;
    transition: transform 0.4s var(--lh-ease);
}
.lh__phone-stack-item img { width: 100%; height: auto; display: block; }
.lh__phone-stack-item--1 {
    z-index: 3;
    right: 0;
    top: 0;
    animation: lh-float 6s ease-in-out infinite;
}
.lh__phone-stack-item--2 {
    z-index: 2;
    right: 26%;
    top: 12%;
    opacity: 0.92;
    transform: scale(0.95);
    animation: lh-float 6s ease-in-out infinite -1.5s;
}
.lh__phone-stack-item--3 {
    z-index: 1;
    right: 48%;
    top: 24%;
    opacity: 0.82;
    transform: scale(0.9);
    animation: lh-float 6s ease-in-out infinite -3s;
}
@keyframes lh-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
    .lh__phone-stack-item { animation: none !important; }
}

/* =============================================================
   02 · نظرة عامة
   ============================================================= */
.lh__overview { padding-block: var(--lh-section-y); }
.lh__overview-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 768px) {
    .lh__overview-inner { flex-direction: row; align-items: flex-start; }
    .lh__overview-intro { flex: 0 0 38%; min-width: 0; }
    .lh__overview-cards { flex: 1 1 0; min-width: 0; }
}

.lh__overview-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .lh__overview-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lh__glass-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px -18px rgba(9, 0, 15, 0.12);
    transition: transform 0.35s var(--lh-ease), box-shadow 0.35s var(--lh-ease);
}
.lh__glass-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -18px rgba(9, 0, 15, 0.18); }
.lh__glass-card-icon {
    display: block;
    color: var(--lh-gold);
    font-size: 2.25rem;
    margin-block-end: 0.75rem;
}

/* =============================================================
   03 · التحدي والحل
   ============================================================= */
.lh__challenge { padding-block: var(--lh-section-y); }
.lh__challenge-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .lh__challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

.lh__challenge-card {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 1.5rem;
    background: #fff;
    border: 1px solid var(--lh-outline-variant);
    box-shadow: 0 8px 24px -16px rgba(9, 0, 15, 0.15);
}
.lh__challenge-card--solution {
    position: relative;
    overflow: hidden;
    background: var(--lh-primary-container);
    color: #fff;
    border: none;
    box-shadow: 0 24px 48px -16px rgba(46, 16, 56, 0.45);
}
.lh__challenge-watermark {
    position: absolute;
    inset-inline-end: -2.5rem;
    bottom: -2.5rem;
    font-size: 10rem;
    opacity: 0.08;
    pointer-events: none;
}
.lh__challenge-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block-end: 1.25rem;
}
.lh__challenge-head--error { color: var(--lh-error); }
.lh__challenge-head--gold { color: var(--lh-gold); }
.lh__challenge-head .lh__h3 { color: inherit; margin-block-end: 0; }
.lh__challenge-card--solution .lh__challenge-head .lh__h3 { color: #fff; }

.lh__dot-list { display: flex; flex-direction: column; gap: 0.75rem; margin-block-start: 1rem; }
.lh__dot-list li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.9rem; font-weight: 500; }
.lh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lh-gold); flex-shrink: 0; }

.lh__stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-block-start: 1.5rem;
    position: relative;
    z-index: 1;
}
.lh__stat-box {
    padding: 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lh__stat-num {
    display: block;
    color: var(--lh-gold);
    font-weight: 800;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    margin-block-end: 0.25rem;
}
.lh__stat-label { font-size: 0.75rem; opacity: 0.85; }

/* =============================================================
   04 · المميزات
   ============================================================= */
.lh__features {
    padding-block: var(--lh-section-y);
    background: var(--lh-cream);
    border-radius: clamp(1.5rem, 4vw, 3rem);
    margin-block: clamp(1.5rem, 3vw, 3rem);
}
.lh__features-head { text-align: center; margin-block-end: clamp(2rem, 4vw, 3.5rem); }
.lh__features-sub {
    color: var(--lh-ink-soft);
    max-width: 34rem;
    margin-inline: auto;
    font-size: 0.98rem;
}

.lh__features-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) { .lh__features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lh__feature-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(212, 164, 95, 0.25);
    background: var(--lh-white);
    transition: border-color 0.3s ease, transform 0.35s var(--lh-ease), box-shadow 0.35s var(--lh-ease);
}
.lh__feature-card:hover {
    border-color: var(--lh-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 36px -18px rgba(212, 164, 95, 0.4);
}
.lh__feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--lh-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-end: 1.25rem;
    transition: transform 0.35s var(--lh-ease);
}
.lh__feature-card:hover .lh__feature-icon { transform: scale(1.1) rotate(-4deg); }
.lh__feature-icon .material-symbols-outlined { color: var(--lh-gold); font-size: 1.6rem; }

/* =============================================================
   05 · المعرض
   ============================================================= */
.lh__gallery { padding-block: var(--lh-section-y); }
.lh__gallery-block { margin-block-end: clamp(3rem, 6vw, 5rem); }
.lh__gallery-block:last-child { margin-block-end: 0; }

.lh__section-kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}
.lh__kicker-bar { width: 2.5rem; height: 3px; background: var(--lh-gold); border-radius: 9999px; flex-shrink: 0; }

.lh__gallery-scroll {
    /* No longer a horizontal scroller — all images are laid out in a
       fixed grid below and always fully visible, no swiping needed. */
    width: 100%;
}
.lh__gallery-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding-block: 0.5rem 1.5rem;
    width: 100%;
}
@media (min-width: 640px) {
    .lh__gallery-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lh__phone-card {
    width: 100%;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -18px rgba(9, 0, 15, 0.25);
    transition: transform 0.35s var(--lh-ease);
}
.lh__phone-card:hover { transform: translateY(-8px); }
.lh__phone-card img { width: 100%; height: auto; display: block; }

.lh__dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .lh__dash-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
}
.lh__dash-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lh-outline-variant);
    box-shadow: 0 20px 40px -20px rgba(9, 0, 15, 0.2);
    transition: transform 0.35s var(--lh-ease), box-shadow 0.35s var(--lh-ease);
}
.lh__dash-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -18px rgba(9, 0, 15, 0.26); }
.lh__dash-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lh__dash-stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.lh__dash-stack .lh__dash-card { flex: 1; }

/* =============================================================
   06 · المنظومة المتصلة
   ============================================================= */
.lh__ecosystem { padding-block: var(--lh-section-y); background: var(--lh-cream); }
.lh__ecosystem-head { text-align: center; margin-block-end: clamp(2rem, 4vw, 3.5rem); }

.lh__ecosystem-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .lh__ecosystem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lh__ecosystem-line {
    display: none;
}
@media (min-width: 768px) {
    .lh__ecosystem-line {
        display: block;
        position: absolute;
        top: 50%;
        inset-inline: 0;
        height: 2px;
        background: rgba(212, 164, 95, 0.25);
        transform: translateY(-50%);
        z-index: 0;
    }
}

.lh__ecosystem-card {
    position: relative;
    z-index: 1;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 1.25rem;
    background: var(--lh-white);
    box-shadow: 0 20px 40px -20px rgba(9, 0, 15, 0.18);
    border-top: 4px solid transparent;
    transition: transform 0.35s var(--lh-ease);
}
.lh__ecosystem-card:hover { transform: translateY(-6px); }
.lh__ecosystem-card--primary  { border-top-color: var(--lh-primary-container); }
.lh__ecosystem-card--gold     { border-top-color: var(--lh-gold); }
.lh__ecosystem-card--secondary{ border-top-color: var(--lh-secondary); }
.lh__ecosystem-card .lh__h3 .material-symbols-outlined { color: var(--lh-gold); }

.lh__check-list { display: flex; flex-direction: column; gap: 0.9rem; }
.lh__check-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; }
.lh__check-list .material-symbols-outlined { font-size: 1.1rem; color: var(--lh-gold); flex-shrink: 0; }

/* =============================================================
   07 · النتائج + CTA
   ============================================================= */
.lh__results { padding-block: var(--lh-section-y); }
.lh__results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
    margin-block-end: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 768px) {
    .lh__results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lh__result-list { display: flex; flex-direction: column; gap: 1.5rem; margin-block-start: 1.5rem; }
.lh__result-list li { display: flex; gap: 1rem; align-items: flex-start; }
.lh__result-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(212, 164, 95, 0.1);
    color: var(--lh-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lh__results-visual { position: relative; min-width: 0; }
.lh__results-glow {
    position: absolute;
    inset: 10%;
    background: rgba(212, 164, 95, 0.12);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.lh__results-collage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
}
.lh__results-phone {
    width: clamp(120px, 22vw, 200px);
    min-width: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -16px rgba(46, 16, 56, 0.35);
    margin-block-end: clamp(-2rem, -4vw, -3rem);
    flex-shrink: 0;
}
.lh__results-dashboard {
    width: clamp(220px, 45vw, 400px);
    min-width: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    padding: 0.4rem;
    box-shadow: 0 24px 48px -16px rgba(9, 0, 15, 0.25);
    flex-shrink: 1;
}
.lh__results-phone img,
.lh__results-dashboard img { width: 100%; height: auto; display: block; border-radius: 0.9rem; }

.lh__cta {
    position: relative;
    overflow: hidden;
    border-radius: clamp(1.5rem, 4vw, 3rem);
    background: var(--lh-primary-container);
    color: #fff;
    text-align: center;
    padding-block: clamp(3rem, 6vw, 5rem);
}
.lh__cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
}
.lh__cta-inner { position: relative; z-index: 1; max-width: 38rem; margin-inline: auto; padding-inline: 1.5rem; }
.lh__cta-brand { display: block; color: var(--lh-gold); font-weight: 800; margin-block-end: 1rem; }
.lh__cta-heading {
    font-family: var(--lh-font-headline);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-block-end: 1rem;
}
.lh__cta-copy { color: rgba(255, 255, 255, 0.8); margin-block-end: 1.75rem; }
.lh__cta-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    .lh.js-ready [data-lh-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .lh__glass-card:hover,
    .lh__feature-card:hover,
    .lh__dash-card:hover,
    .lh__ecosystem-card:hover,
    .lh__phone-card:hover,
    .lh__btn:hover {
        transform: none;
    }
}