/* ==========================================================================
   Star Clean — الهوية العامة والهيدر والفوتر
   ========================================================================== */

:root {
    --dark:     #0e6a73;
    --dark-2:   #0a5560;
    --dark-3:   #084149;
    --cyan:     #f9cc02;
    --cyan-2:   #e0b800;
    --orange:   #a4d00e;
    --org-2:    #8ab40c;
    --ink:      #0e3a40;
    --ink-soft: rgba(14, 58, 64, .72);
    --light:    #f8f9fa;
    --ease:     cubic-bezier(.4, 0, .2, 1);
    --t:        .32s var(--ease);
}

.sc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text,
.sc-skip {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.sc-skip:focus {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 999;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 18px;
    background: var(--cyan);
    color: var(--dark);
    border-radius: 8px;
    font-weight: 700;
}

/* ━━━ الأزرار ━━━ */
.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: all var(--t);
}

.sc-btn--wa {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 6px 20px rgba(164, 208, 14, .28);
}

.sc-btn--wa:hover {
    background: var(--org-2);
    color: #fff;
    transform: translateY(-2px);
}

.sc-btn--ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
}

.sc-btn--ghost:hover {
    background: #fff;
    color: var(--dark);
}

/* ━━━ الهيدر ━━━ */
.sc-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--dark);
}

.sc-topbar {
    background: var(--dark-3);
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
}

.sc-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    flex-wrap: wrap;
}

.sc-topbar__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.sc-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    transition: color var(--t);
}

.sc-topbar__item:hover { color: var(--cyan); }
.sc-topbar__item svg { color: var(--cyan); flex-shrink: 0; }

.sc-topbar__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-topbar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .8);
    transition: all var(--t);
}

.sc-topbar__social a:hover {
    background: var(--cyan);
    color: var(--dark);
}

.sc-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow var(--t);
}

.sc-header.is-stuck .sc-navbar {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.sc-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.sc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
    max-width: 46%;
}

.sc-brand a { text-decoration: none; display: block; }

.sc-brand img,
.sc-brand .custom-logo {
    height: var(--sc-logo-h, 56px);
    max-height: var(--sc-logo-h, 56px);
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.sc-brand__name {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.25;
    white-space: nowrap;
}

.sc-brand__tag {
    display: block;
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 26ch;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, .16);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* القائمة */
.sc-nav { margin-inline-start: auto; min-width: 0; }
.sc-menu, .sc-menu-wrap ul { flex-wrap: nowrap; }

.sc-menu,
.sc-menu-wrap ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-menu li,
.sc-menu-wrap li { position: relative; }

.sc-menu a,
.sc-menu-wrap a {
    display: block;
    white-space: nowrap;
    padding: .6rem clamp(.5rem, .8vw, .9rem);
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.82rem, 1vw, .92rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--t);
}

.sc-menu a:hover,
.sc-menu .current-menu-item > a,
.sc-menu .current_page_item > a,
.sc-menu-wrap a:hover,
.sc-menu-wrap .current_page_item > a {
    color: var(--cyan);
    background: rgba(249, 204, 2, .1);
}

/* عنصر له قائمة فرعية */
.sc-menu li.menu-item-has-children { position: relative; }

.sc-menu li.menu-item-has-children > a { padding-left: 1.9rem; }

.sc-sub-toggle {
    position: absolute;
    top: 50%;
    left: .45rem;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cyan);
    transition: transform var(--t);
}

.sc-sub-toggle::before {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--t);
}

.sc-menu li.is-open > .sc-sub-toggle { transform: translateY(-50%) rotate(180deg); }

/* القوائم الفرعية */
.sc-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    margin: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.sc-menu li:hover > .sub-menu,
.sc-menu li:focus-within > .sub-menu,
.sc-menu li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sc-menu .sub-menu a {
    padding: .6rem .75rem;
    border-radius: 8px;
    font-size: .89rem;
    white-space: nowrap;
}

.sc-menu .sub-menu a:hover { background: rgba(249, 204, 2, .12); }

/* منع خروج القائمة الفرعية من حدود الشاشة */
.sc-menu > li:last-child .sub-menu,
.sc-menu > li:nth-last-child(2) .sub-menu { right: auto; left: 0; }

.sc-nav__mobile-cta { display: none; }

/* أزرار الهيدر */
.sc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-headphone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.sc-headphone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(249, 204, 2, .14);
    border: 1px solid rgba(249, 204, 2, .35);
    color: var(--cyan);
    flex-shrink: 0;
}

.sc-headphone__text small {
    display: block;
    font-size: .68rem;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
}

.sc-headphone__text strong {
    display: block;
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: .5px;
}

.sc-headphone:hover .sc-headphone__icon {
    background: var(--cyan);
    color: var(--dark);
}

/* زر القائمة للجوال */
.sc-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    cursor: pointer;
}

.sc-burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--t);
}

.sc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sc-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 65, 73, .55);
    backdrop-filter: blur(2px);
    z-index: 190;
}

@media (max-width: 1024px) {
    .sc-btn--head { display: none; }
    .sc-headphone__text { display: none; }
}

@media (max-width: 900px) {
    .sc-brand { max-width: 60%; }
    .sc-brand img,
    .sc-brand .custom-logo { height: var(--sc-logo-h-m, 40px); max-height: var(--sc-logo-h-m, 40px); }
    .sc-topbar__meta .sc-topbar__item:nth-child(n+3) { display: none; }
}

/* ━━━ الفوتر ━━━ */
.sc-footer {
    background: var(--dark-3);
    color: rgba(255, 255, 255, .7);
    padding: 64px 0 0;
    font-size: .92rem;
}

.sc-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 46px;
}

.sc-footer__brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.sc-footer__logo img { height: var(--sc-logo-h-f, 52px); max-height: var(--sc-logo-h-f, 52px); width: auto; margin-bottom: 14px; object-fit: contain; }
.sc-footer__text { line-height: 1.9; max-width: 42ch; }

.sc-footer__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    position: relative;
}

.sc-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
}

.sc-footer__links,
.sc-footer__links-wrap ul,
.sc-footer__areas,
.sc-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.sc-footer__links a,
.sc-footer__links-wrap a,
.sc-footer__contact a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    transition: color var(--t);
}

.sc-footer__links a:hover,
.sc-footer__links-wrap a:hover,
.sc-footer__contact a:hover { color: var(--cyan); }

.sc-footer__areas li { color: rgba(255, 255, 255, .65); }

.sc-footer__contact a,
.sc-footer__contact span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.sc-footer__contact svg { color: var(--cyan); flex-shrink: 0; }

.sc-footer__social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.sc-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    transition: all var(--t);
}

.sc-footer__social a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--dark);
}

.sc-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

.sc-footer__credit a { color: var(--cyan); text-decoration: none; }
.sc-footer__legal a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.sc-footer__legal a:hover { color: var(--cyan); }

@media (max-width: 900px) {
    .sc-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .sc-footer__grid { grid-template-columns: 1fr; }
    .sc-footer__bottom { justify-content: center; text-align: center; }
}

/* ━━━ الأزرار العائمة ━━━ */
.sc-float {
    position: fixed;
    bottom: var(--sc-float-bottom, 250px);
    left: var(--sc-float-gap, 20px);
    z-index: 180;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-float__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform var(--t);
}

.sc-float__btn:hover { transform: scale(1.08); }
.sc-float__btn--wa { background: #25d366; }
.sc-float__btn--call { background: var(--dark); }

@media (max-width: 560px) {
    .sc-float {
        bottom: min(var(--sc-float-bottom, 250px), 120px);
        left: min(var(--sc-float-gap, 20px), 14px);
    }
    .sc-float__btn { width: 48px; height: 48px; }
}

/* ━━━ صفحات المحتوى العادية ━━━ */
.sc-page {
    padding: 60px 0 80px;
}

.sc-page__header {
    background: var(--dark);
    color: #fff;
    padding: 54px 0;
    text-align: center;
}

.sc-page__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
}

.sc-entry {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.95;
    color: var(--ink);
}

.sc-entry h2,
.sc-entry h3 { color: var(--dark); margin: 28px 0 12px; }
.sc-entry p { margin-bottom: 16px; }
.sc-entry ul,
.sc-entry ol { margin: 0 22px 18px 0; }
.sc-entry img { border-radius: 14px; margin: 18px 0; }

.sc-entry a { color: var(--dark-2); }

.sc-card-post {
    border: 1px solid rgba(14, 106, 115, .12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow var(--t);
}

.sc-card-post:hover { box-shadow: 0 14px 34px rgba(14, 106, 115, .12); }
.sc-card-post h2 { font-size: 1.3rem; margin-bottom: 8px; }
.sc-card-post h2 a { color: var(--dark); text-decoration: none; }
.sc-card-post .sc-meta { font-size: .82rem; color: #888; margin-bottom: 10px; }

.sc-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.sc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
}

.sc-pagination .page-numbers.current,
.sc-pagination .page-numbers:hover {
    background: var(--dark);
    color: #fff;
}
