/* SEO public pages + mobile CTA — لا يغيّر تخطيط الصفحة الرئيسية إلا شريط الموبايل */
body.seo-public-page {
    background: #0a192f;
    color: #e6f1ff;
    font-family: 'Cairo', sans-serif;
    padding-bottom: 88px;
}

body.seo-public-page .navbar--public {
    position: sticky;
    top: 0;
    z-index: 900;
}

.seo-public-main {
    width: 92%;
    max-width: 1100px;
    margin: 24px auto 48px;
    padding-top: 12px;
}

.seo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #8892b0;
    margin-bottom: 20px;
}

.seo-breadcrumb a {
    color: #64ffda;
    text-decoration: none;
}

.seo-breadcrumb a:hover {
    text-decoration: underline;
}

.seo-public-hero {
    text-align: center;
    margin-bottom: 36px;
}

.seo-public-hero h1 {
    font-size: clamp(1.35rem, 4vw + 0.5rem, 2.4rem);
    line-height: 1.25;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.seo-public-hero p {
    color: #8892b0;
    max-width: 640px;
    margin: 0 auto;
}

.seo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.seo-service-card {
    display: block;
    background: #112240;
    border: 1px solid rgba(100, 255, 218, 0.12);
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.seo-service-card:hover {
    transform: translateY(-4px);
    border-color: #64ffda;
}

.seo-service-card i {
    font-size: 1.8rem;
    color: #64ffda;
    margin-bottom: 12px;
}

.seo-service-card h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.seo-service-card p {
    color: #8892b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.seo-service-card__cta {
    display: inline-block;
    margin-top: 12px;
    color: #64ffda;
    font-weight: 700;
    font-size: 0.85rem;
}

.seo-public-card {
    background: #112240;
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.08);
    padding: 28px;
}

.seo-public-card__head h1 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin: 8px 0;
}

.seo-public-lead {
    color: #8892b0;
    line-height: 1.7;
}

.seo-service-icon {
    font-size: 2rem;
    color: #64ffda;
}

.seo-public-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.seo-public-gallery img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.seo-public-body {
    color: #ccd6f6;
    line-height: 1.8;
    margin: 20px 0;
}

.seo-public-wa {
    display: inline-flex;
    margin-top: 16px;
}

.seo-back-link,
.seo-back-btn {
    display: inline-block;
    color: #64ffda;
    text-decoration: none;
    font-weight: 700;
    margin: 0 0 16px 12px;
    font-size: 0.9rem;
}

.seo-case-category {
    color: #64ffda;
    font-weight: 700;
    font-size: 0.85rem;
}

.seo-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.seo-case-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #020c1b;
    margin: 0;
}

.seo-case-photo img {
    width: 100%;
    display: block;
}

.seo-case-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.seo-case-label--before {
    background: rgba(255, 77, 77, 0.9);
    color: #fff;
}

.seo-case-label--after {
    background: rgba(100, 255, 218, 0.9);
    color: #0a192f;
}

.seo-public-note {
    text-align: center;
    margin-top: 32px;
}

.seo-public-note a {
    color: #64ffda;
}

.seo-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #8892b0;
}

.seo-hub-link-wrap {
    text-align: center;
    margin: -6px 0 22px;
}

.seo-hub-link {
    color: #64ffda;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.seo-hub-link:hover {
    text-decoration: underline;
}

/* رابط صفحة الحالة داخل المعرض — صغير ولا يكسر التصميم */
.case-seo-link {
    font-size: 0.72rem;
    color: #64ffda;
    text-decoration: none;
    opacity: 0.85;
    white-space: nowrap;
}

.case-seo-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* شريط اتصال / واتساب للموبايل */
.seo-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    flex-direction: column;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    background: rgba(10, 25, 47, 0.96);
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.seo-mobile-bar__pick {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seo-mobile-bar__pick-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64ffda;
}

.seo-mobile-bar__select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.35);
    background: #112240;
    color: #e6f1ff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.seo-mobile-bar__pick-hint {
    font-size: 0.68rem;
    color: #8892b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seo-mobile-bar__actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.seo-mobile-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    color: #fff !important;
}

.seo-mobile-bar__btn--call {
    background: #3b82f6;
}

.seo-mobile-bar__btn--wa {
    background: #25d366;
}

@media (max-width: 768px) {
    .seo-mobile-bar {
        display: flex;
    }

    body:not(.seo-public-page) {
        padding-bottom: 72px;
    }

    body.has-seo-mobile-picker:not(.seo-public-page) {
        padding-bottom: 128px;
    }

    body.has-seo-mobile-picker.seo-public-page {
        padding-bottom: 128px;
    }

    .seo-case-grid {
        grid-template-columns: 1fr;
    }

    .clinic-whatsapp-btn,
    #clinic-whatsapp {
        min-height: 48px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    body.seo-public-page {
        padding-bottom: 0;
    }
}
