/* ==========================================================================
   ROAYA REAL ESTATE — Case Study

   Palette sampled from the live site (roaya-realestate.com): white paper, a
   warm grey section band, near-black ink, and one signal orange (#E85828,
   measured off the send button and the status pills).

   Contrast: #E85828 on white is 3.59:1 — large display text and fills only.
   Small text uses --roaya-accent-dp (#C43F14, 5.16:1). Primary buttons are
   black on white, exactly as the brand uses them.
   ========================================================================== */

:root {
    --roaya-bg:        #FFFFFF;
    --roaya-bg-alt:    #F6F6F4;
    --roaya-surface:   #FFFFFF;
    --roaya-sky:       #E6F1F2;   /* the pale map wash behind the hero */

    --roaya-ink:       #121214;
    --roaya-ink-rgb:   18, 18, 20;
    --roaya-body:      #5F6060;   /* 6.6:1 on white */

    --roaya-accent:    #E85828;
    --roaya-accent-dp: #C43F14;   /* readable orange for small text */
    --roaya-accent-sf: #FDEDE7;   /* orange at 8% — chips and icon plates */

    --roaya-line:      rgba(18, 18, 20, .10);
    --roaya-line-soft: rgba(18, 18, 20, .06);

    --roaya-r-lg: 18px;
    --roaya-r-md: 14px;
    --roaya-r-sm: 10px;

    --cs-elev-1: 0 1px 2px rgba(var(--roaya-ink-rgb), .04), 0 8px 20px -14px rgba(var(--roaya-ink-rgb), .22);
    --cs-elev-2: 0 2px 4px rgba(var(--roaya-ink-rgb), .05), 0 22px 48px -30px rgba(var(--roaya-ink-rgb), .34);
    --cs-elev-3: 0 4px 8px rgba(var(--roaya-ink-rgb), .05), 0 60px 110px -60px rgba(var(--roaya-ink-rgb), .48);
}

.roaya-page { background: var(--roaya-bg); color: var(--roaya-body); }
.roaya-page *:not([class*="fa-"]):not(i) { font-family: 'Plus Jakarta Sans', sans-serif; }
.roaya-page .section-hero,
.roaya-page .box-white,
.roaya-page .box-black { background: transparent !important; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.cs-hero {
    position: relative;
    padding: 150px 0 110px;
    overflow-x: clip;
    background: linear-gradient(180deg, var(--roaya-sky) 0%, rgba(230, 241, 242, .35) 46%, var(--roaya-bg) 100%);
}
.cs-hero-title {
    font-size: clamp(3rem, 6.2vw, 5.2rem);
    font-weight: 800;
    color: var(--roaya-ink);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.cs-hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--roaya-body);
    line-height: 1.8;
    max-width: 560px;
}
.cs-hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    border-top: 1px solid var(--roaya-line);
    padding-top: 34px;
    margin-top: 44px;
}
.cs-meta-label {
    font-size: .64rem;
    letter-spacing: .2em;
    color: var(--roaya-body);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}
.cs-meta-value { font-size: .95rem; color: var(--roaya-ink); font-weight: 600; }
.cs-meta-value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--roaya-accent); }
.cs-meta-value a:hover { color: var(--roaya-accent-dp); }

@media (max-width: 767px) {
    .cs-hero { padding: 120px 0 70px; }
    .cs-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ==========================================================================
   2. SECTION SHARED
   The eyebrow reproduces the site's own "- Label" convention.
   ========================================================================== */
.cs-section    { padding: 116px 0; position: relative; }
.cs-section-sm { padding: 80px 0;  position: relative; }
.cs-section-tint { background: var(--roaya-bg-alt); }

.cs-label {
    display: inline-block;
    font-size: .82rem;
    color: var(--roaya-accent-dp);
    font-weight: 700;
    letter-spacing: -.005em;
    margin-bottom: 1rem;
}
.cs-label::before { content: '- '; }
.cs-title {
    font-size: clamp(2rem, 3.9vw, 3.3rem);
    font-weight: 800;
    color: var(--roaya-ink);
    line-height: 1.1;
    letter-spacing: -.035em;
}
.cs-text      { color: var(--roaya-body); font-size: 1.02rem; line-height: 1.85; }
.cs-text-lead { color: var(--roaya-ink);  font-size: 1.16rem; line-height: 1.75; font-weight: 500; }
.cs-divider   { width: 52px; height: 3px; border-radius: 3px; background: var(--roaya-accent); margin: 1.4rem 0; }
.cs-divider-center { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   3. IMAGE PRIMITIVES  —  sources are 1440x1087 (4:3)
   ========================================================================== */
.cs-frame {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--roaya-r-sm);
    background: var(--roaya-bg-alt);
}
.cs-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.cs-zoom { display: block; position: relative; text-decoration: none; cursor: zoom-in; }
.cs-zoom-cue {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--cs-elev-1);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.cs-zoom-cue svg { width: 16px; height: 16px; stroke: var(--roaya-accent-dp); fill: none; stroke-width: 1.8; }
.cs-zoom:hover .cs-zoom-cue,
.cs-zoom:focus-visible .cs-zoom-cue { opacity: 1; transform: translateY(0); }
.cs-zoom:focus-visible { outline: 2px solid var(--roaya-accent); outline-offset: 3px; }

/* ==========================================================================
   R1 · PLATE — a framed screen. Nothing sits behind it, nothing crops it.
   ========================================================================== */
.rw-plate {
    display: block;
    position: relative;
    background: var(--roaya-surface);
    padding: 12px;
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-lg);
    box-shadow: var(--cs-elev-3);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.rw-plate:hover { transform: translateY(-5px); }
@media (max-width: 575.98px) { .rw-plate { padding: 8px; } }

/* ==========================================================================
   R2 · BRAND STAT STRIP — the site's own numbers, in the site's own layout
   ========================================================================== */
.rw-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 44px;
    background: var(--roaya-surface);
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-lg);
    box-shadow: var(--cs-elev-1);
}
.rw-strip-item { display: flex; align-items: baseline; gap: 12px; }
.rw-strip-num {
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    font-weight: 800;
    color: var(--roaya-ink);
    letter-spacing: -.04em;
    line-height: 1;
}
.rw-strip-label {
    font-size: .68rem;
    line-height: 1.35;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--roaya-body);
    font-weight: 600;
}
@media (max-width: 991.98px) { .rw-strip { grid-template-columns: repeat(2, 1fr); padding: 30px 26px; } }
@media (max-width: 575.98px) { .rw-strip { grid-template-columns: 1fr; gap: 20px; } }

/* ==========================================================================
   R3 · WALKTHROUGH ROWS — the screen, then what it does.
   The frame keeps its own 4:3 height and centres against the copy; tying it
   to the column height would re-crop the shot.
   ========================================================================== */
.rw-row { margin-bottom: 78px; }
.rw-row:last-child { margin-bottom: 0; }

.rw-shot {
    display: block;
    position: relative;
    background: var(--roaya-surface);
    padding: 12px;
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-lg);
    box-shadow: var(--cs-elev-2);
    transition: transform .4s ease, box-shadow .4s ease;
}
.rw-shot:hover { transform: translateY(-4px); box-shadow: var(--cs-elev-3); }

.rw-copy-num {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--roaya-accent-sf);
    color: var(--roaya-accent-dp);
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 16px;
}
.rw-copy-title {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    font-weight: 800;
    color: var(--roaya-ink);
    line-height: 1.16;
    letter-spacing: -.032em;
    margin-bottom: 12px;
}
.rw-copy-text { color: var(--roaya-body); font-size: .98rem; line-height: 1.85; }
.rw-feats { list-style: none; padding: 0; margin: 20px 0 0; }
.rw-feats li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: .89rem;
    color: var(--roaya-ink);
    line-height: 1.6;
    border-bottom: 1px solid var(--roaya-line-soft);
}
.rw-feats li:last-child { border-bottom: none; }
.rw-feats li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--roaya-accent);
    margin-top: 8px;
}

@media (max-width: 991.98px) { .rw-row { margin-bottom: 54px; } }
@media (max-width: 575.98px) { .rw-shot { padding: 8px; } }

/* ==========================================================================
   R4 · SCREEN CARDS — image, then its explanation, two across.
   ========================================================================== */
.rw-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.rw-card {
    display: flex;
    flex-direction: column;
    background: var(--roaya-surface);
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-lg);
    padding: 12px 12px 4px;
    box-shadow: var(--cs-elev-1);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.rw-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cs-elev-2);
    border-color: rgba(232, 88, 40, .34);
}
.rw-card-shot { display: block; position: relative; text-decoration: none; }
.rw-card-body { padding: 24px 14px 22px; }
.rw-card-num {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--roaya-accent-sf);
    color: var(--roaya-accent-dp);
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
}
.rw-card-title {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--roaya-ink);
    line-height: 1.2;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}
.rw-card-text { color: var(--roaya-body); font-size: .93rem; line-height: 1.8; margin: 0; }

@media (max-width: 991.98px) { .rw-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================================
   4. PILLARS / FEATURES
   ========================================================================== */
.cs-pillar {
    position: relative;
    background: var(--roaya-surface);
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-md);
    padding: 36px 32px;
    height: 100%;
    box-shadow: var(--cs-elev-1);
    transition: transform .4s ease, box-shadow .4s ease;
}
.cs-pillar:hover { transform: translateY(-4px); box-shadow: var(--cs-elev-2); }
.cs-pillar-num {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--roaya-accent-sf);
    line-height: 1;
    letter-spacing: -.04em;
}
.cs-pillar-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: var(--roaya-r-sm);
    background: var(--roaya-accent-sf);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.cs-pillar-icon svg { width: 23px; height: 23px; stroke: var(--roaya-accent-dp); fill: none; }
.cs-pillar-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--roaya-ink);
    letter-spacing: -.028em;
    margin-bottom: .8rem;
}
.cs-pillar-text { font-size: .93rem; color: var(--roaya-body); line-height: 1.8; }

.cs-pillar-list { list-style: none; padding: 0; margin: 20px 0 0; }
.cs-pillar-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--roaya-ink);
    font-size: .93rem;
    line-height: 1.65;
    margin-bottom: 12px;
}
.cs-pillar-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--roaya-accent);
    margin-top: 8px;
}

.cs-feature {
    background: var(--roaya-surface);
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-md);
    padding: 30px 26px;
    height: 100%;
    box-shadow: var(--cs-elev-1);
    transition: transform .4s ease, box-shadow .4s ease;
}
.cs-feature:hover { transform: translateY(-3px); box-shadow: var(--cs-elev-2); }
.cs-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--roaya-r-sm);
    background: var(--roaya-accent-sf);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.cs-feature-icon svg { width: 20px; height: 20px; stroke: var(--roaya-accent-dp); fill: none; }
.cs-feature-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--roaya-ink);
    letter-spacing: -.026em;
    margin-bottom: 9px;
}
.cs-feature-text { font-size: .88rem; color: var(--roaya-body); line-height: 1.75; }

/* ==========================================================================
   5. QUOTE — the brand's one inverted card, reused
   ========================================================================== */
.cs-quote { background: var(--roaya-ink); padding: 96px 0; }
.cs-quote-mark { font-size: 4.6rem; color: var(--roaya-accent); line-height: .5; margin-bottom: 1.6rem; font-weight: 800; }
.cs-quote-text {
    font-size: clamp(1.5rem, 2.7vw, 2.35rem);
    font-weight: 700;
    color: #FBFBFA;
    line-height: 1.35;
    letter-spacing: -.03em;
    max-width: 900px;
    margin: 0 auto 26px;
}
.cs-quote-author {
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--roaya-accent);
    font-weight: 700;
}

/* ==========================================================================
   6. PROCESS STEPS
   ========================================================================== */
.cs-step {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 30px;
    padding: 36px 0;
    border-bottom: 1px solid var(--roaya-line);
}
.cs-step:last-child { border-bottom: none; }
.cs-step-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--roaya-accent);
    line-height: 1;
    letter-spacing: -.04em;
}
.cs-step-title { font-size: 1.25rem; font-weight: 800; color: var(--roaya-ink); letter-spacing: -.028em; margin-bottom: 10px; }
.cs-step-text { color: var(--roaya-body); font-size: .95rem; line-height: 1.85; }
.cs-step-tags { margin-top: 16px; }
.cs-step-tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--roaya-bg-alt);
    border: 1px solid var(--roaya-line);
    color: var(--roaya-body);
    font-size: .73rem;
    font-weight: 600;
    margin: 4px 6px 4px 0;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.cs-step-tag:hover { background: var(--roaya-ink); border-color: var(--roaya-ink); color: #fff; }
@media (max-width: 767px) { .cs-step { grid-template-columns: 54px 1fr; gap: 18px; } }

/* ==========================================================================
   7. RESULTS
   ========================================================================== */
.cs-stats {
    background: var(--roaya-surface);
    border: 1px solid var(--roaya-line);
    border-radius: var(--roaya-r-lg);
    box-shadow: var(--cs-elev-2);
    padding: 54px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.cs-stat { text-align: center; }
.cs-stat-num {
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
    font-weight: 800;
    color: var(--roaya-accent);
    line-height: 1;
    letter-spacing: -.045em;
    margin-bottom: 10px;
}
.cs-stat-label {
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--roaya-body);
    font-weight: 700;
}
@media (max-width: 767px) { .cs-stats { grid-template-columns: repeat(2, 1fr); padding: 34px 20px; gap: 28px; } }

/* ==========================================================================
   8. CTA / BUTTONS
   Black pill on white — the brand's own primary. White on #E85828 is 3.59:1
   and would fail, so orange stays a fill for large text and marks only.
   ========================================================================== */
.cs-cta-section { background: var(--roaya-bg-alt); padding: 110px 0; }
.cs-cta-title { font-size: clamp(2rem, 3.9vw, 3.3rem); font-weight: 800; color: var(--roaya-ink); letter-spacing: -.035em; }
.cs-cta-text { font-size: 1rem; color: var(--roaya-body); line-height: 1.85; max-width: 560px; }

.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 34px;
    border-radius: 999px;
    background: var(--roaya-ink);
    color: #FFFFFF;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    box-shadow: var(--cs-elev-1);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.cs-cta-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(var(--roaya-ink-rgb), .06), 0 18px 34px -18px rgba(var(--roaya-ink-rgb), .55);
}
.cs-cta-btn svg { width: 1.05em; height: 1.05em; }
.cs-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    background: transparent;
    color: var(--roaya-ink);
    border: 1.5px solid var(--roaya-line);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: 12px;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.cs-cta-btn-outline:hover { background: var(--roaya-ink); border-color: var(--roaya-ink); color: #fff; }
@media (max-width: 575.98px) {
    .cs-cta-btn, .cs-cta-btn-outline { display: flex; justify-content: center; margin: 0 0 12px; }
}

/* ==========================================================================
   9. FOOTER CREDIT
   ========================================================================== */
.cs-footer-credit { border-top: 1px solid var(--roaya-line); padding: 36px 0; text-align: center; }
.cs-footer-credit p { font-size: .78rem; color: var(--roaya-body); margin: 0; }
.cs-footer-credit a { color: var(--roaya-accent-dp); text-decoration: none; font-weight: 700; }

/* ==========================================================================
   10. REVEAL
   ========================================================================== */
.roaya-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}
.roaya-fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   11. LIGHTBOX — light theme (default Magnific is a black overlay, which
   under a white page reads as a bug)
   ========================================================================== */
.mfp-cs.mfp-bg { background: #EFEFEC; opacity: 1; }
.mfp-cs .mfp-figure::after { background: var(--roaya-surface); box-shadow: var(--cs-elev-3); }
.mfp-cs img.mfp-img { padding: 18px 0 44px; background: var(--roaya-surface); }
.mfp-cs .mfp-title {
    color: var(--roaya-ink);
    font-size: .84rem;
    font-weight: 600;
    padding-right: 60px;
}
.mfp-cs .mfp-counter { color: var(--roaya-accent-dp); font-size: .76rem; font-weight: 700; }
.mfp-cs .mfp-arrow::before { border-color: transparent; }
.mfp-cs .mfp-arrow::after { border-right-color: var(--roaya-ink); border-left-color: var(--roaya-ink); }
.mfp-cs .mfp-arrow:hover { opacity: 1; }
.mfp-cs .mfp-close { color: var(--roaya-ink); opacity: .7; font-size: 30px; }
.mfp-cs .mfp-close:hover { opacity: 1; }

/* ==========================================================================
   12. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .roaya-fade-up { opacity: 1; transform: none; transition: none; }
    .rw-plate:hover,
    .rw-shot:hover,
    .rw-card:hover,
    .cs-pillar:hover,
    .cs-feature:hover,
    .cs-cta-btn:hover { transform: none; }
    .cs-zoom-cue { transition: none; }
}
