/* 360Riyadh rebuild shell: only pages marked with _sr360_rebuild_layout. */

.sr-rebuild-page {
    margin: 0;
    background: #050914;
}

.sr-rebuild-page #masthead,
.sr-rebuild-page #colophon,
.sr-rebuild-page .entry-header,
.sr-rebuild-page .post-navigation,
.sr-rebuild-page .comments-area {
    display: none !important;
}

.sr-rebuild-page #page,
.sr-rebuild-page #inner-wrap,
.sr-rebuild-page #primary,
.sr-rebuild-page .site-main,
.sr-rebuild-page .content-area,
.sr-rebuild-page .content-container,
.sr-rebuild-page .site-container,
.sr-rebuild-page .content-bg,
.sr-rebuild-page article.page,
.sr-rebuild-page .entry-content-wrap,
.sr-rebuild-page .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sr-rebuild-page .entry-content > * {
    max-width: none;
    margin-block-start: 0;
    margin-block-end: 0;
}

.sr-home {
    min-height: 100vh;
}

.sr-nav {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    border-block-end: 1px solid rgba(255,255,255,.08);
    background: rgba(5,9,20,.84);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.sr-nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.sr-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #f6faff !important;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.sr-brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(98,232,255,.48);
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(98,232,255,.08), 0 0 22px rgba(98,232,255,.10);
}

.sr-brand-mark::before,
.sr-brand-mark::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    background: #62e8ff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(98,232,255,.65);
}

.sr-brand-mark::before { width: 14px; height: 1px; }
.sr-brand-mark::after { width: 1px; height: 14px; }

.sr-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
}

.sr-nav-links a {
    color: #aebfd3;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .025em;
    transition: color .18s ease;
}

.sr-nav-links a:hover,
.sr-nav-links a:focus-visible {
    color: #62e8ff;
}

.sr-lang {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding-inline: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
}

.sr-nav-cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding-inline: 16px;
    border: 1px solid rgba(98,232,255,.28);
    border-radius: 999px;
    color: #e9fbff !important;
    background: rgba(98,232,255,.06);
}

.sr-gradient-text {
    color: #62e8ff;
    background: linear-gradient(105deg, #70efff 5%, #56a8ff 58%, #9c9aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sr-kicker {
    text-wrap: balance;
}

.sr-kicker > span {
    flex: 0 0 24px;
}

.sr-spatial-demo {
    isolation: isolate;
}

.sr-service-card,
.sr-work-card,
.sr-dialog-row,
.sr-btn {
    outline: none;
}

.sr-service-card:focus-within,
.sr-work-card:focus-visible,
.sr-btn:focus-visible,
.sr-nav a:focus-visible {
    box-shadow: 0 0 0 3px rgba(98,232,255,.28);
}

.sr-footer {
    border-block-start: 1px solid rgba(255,255,255,.08);
    background: #050914;
}

.sr-footer-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #71849d;
    font-size: 12px;
}

.sr-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sr-footer a {
    color: #b9c8d9;
}

.sr-footer a:hover,
.sr-footer a:focus-visible {
    color: #62e8ff;
}

/* Arabic rebuild: actual RTL document direction plus targeted visual corrections. */
.sr-lang-ar .sr-home {
    font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

.sr-lang-ar .sr-kicker {
    letter-spacing: 0;
    text-transform: none;
}

.sr-lang-ar .sr-demo-id {
    margin-inline-start: auto;
    margin-left: 0;
}

.sr-lang-ar .sr-card-arrow {
    right: auto;
    left: 25px;
    transform: scaleX(-1);
}

.sr-lang-ar .sr-work-number { left: auto; right: 18px; }
.sr-lang-ar .sr-work-open { right: auto; left: 18px; }

.sr-lang-ar .sr-dialog-row.is-ai {
    margin-left: 0;
    margin-right: 38px;
}

.sr-lang-ar .sr-ai-orbit {
    right: auto;
    left: -160px;
}

.sr-lang-ar .sr-proof-row span {
    border-right: 0;
    border-left: 1px solid var(--srh-line);
}

.sr-lang-ar .sr-proof-row span:last-child {
    border-left: 0;
}

.sr-lang-ar .sr-service-grid {
    border-left: 0;
    border-right: 1px solid var(--srh-line);
}

.sr-lang-ar .sr-service-card {
    border-right: 0;
    border-left: 1px solid var(--srh-line);
}

.sr-lang-ar .sr-cta-actions {
    align-items: flex-start;
}

@media (max-width: 900px) {
    .sr-nav-inner {
        min-height: 68px;
    }

    .sr-nav-links > a:not(.sr-lang):not(.sr-nav-cta) {
        display: none;
    }
}

@media (max-width: 600px) {
    .sr-nav-inner {
        gap: 12px;
    }

    .sr-brand {
        font-size: 16px;
    }

    .sr-nav-links {
        gap: 8px;
    }

    .sr-nav-cta {
        display: none !important;
    }

    /* Compact mobile hero: let content breathe instead of filling the first viewport with type. */
    .sr-rebuild-page .sr-hero {
        padding-block: 44px 48px;
    }

    .sr-rebuild-page .sr-hero h1 {
        font-size: clamp(36px, 9.6vw, 42px);
        line-height: 1.11;
    }

    .sr-lang-ar .sr-hero h1 {
        max-width: 100%;
        font-size: clamp(33px, 8.8vw, 37px);
        line-height: 1.16;
        font-weight: 780;
        letter-spacing: 0;
        text-wrap: balance;
    }

    .sr-lang-ar .sr-kicker {
        margin-bottom: 16px;
        font-size: 11px;
        line-height: 1.5;
    }

    .sr-rebuild-page .sr-hero-lead {
        margin-top: 20px;
        font-size: 15.5px;
        line-height: 1.7;
    }

    .sr-rebuild-page .sr-actions {
        gap: 10px;
        margin-top: 24px;
    }

    .sr-rebuild-page .sr-hero-meta {
        margin-top: 26px;
    }

    .sr-footer-inner {
        min-height: 110px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .sr-lang-ar .sr-dialog-row.is-ai {
        margin-right: 18px;
    }
}
