/* ── Google Font is enqueued via functions.php ── */

/* ══════════ CSS Variables (overridden by Customizer) ══════════ */
:root {
    --acm-primary:   #1E90FF;
    --acm-secondary: #00D4FF;
    --acm-bg:        #0A1628;
    --acm-card:      #0F1F3D;
    --acm-text:      #E2E8F0;
    --acm-muted:     #94A3B8;
    --acm-border:    rgba(30,144,255,.25);
    --acm-glow:      rgba(30,144,255,.35);
    --acm-wa:        #25D366;
    --acm-radius:    12px;
    --acm-header-h:  72px;
    --transition:    0.3s cubic-bezier(.4,0,.2,1);
}

/* ══════════ Reset & Base ══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', 'Arial', sans-serif;
    background-color: var(--acm-bg);
    color: var(--acm-text);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ══════════ Keyframes ══════════ */
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 4px 20px rgba(37,211,102,.35); }
    50%       { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,.6); }
}
@keyframes pulse-call {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,.55), 0 4px 20px rgba(30,144,255,.35); }
    50%       { box-shadow: 0 0 0 14px rgba(30,144,255,0), 0 4px 20px rgba(30,144,255,.6); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}
@keyframes shimmer {
    from { background-position: -200% 0; }
    to   { background-position:  200% 0; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ══════════ Floating Buttons ══════════ */
.floating-btns {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.float-wa {
    background: var(--acm-wa);
    animation: pulse-wa 2.5s infinite;
}
.float-wa:hover {
    transform: scale(1.12);
    animation: none;
    box-shadow: 0 0 0 4px rgba(37,211,102,.4), 0 8px 30px rgba(37,211,102,.5);
}

.float-call {
    background: var(--acm-primary);
    animation: pulse-call 2.5s infinite 1.2s;
}
.float-call:hover {
    transform: scale(1.12);
    animation: none;
    box-shadow: 0 0 0 4px rgba(30,144,255,.4), 0 8px 30px rgba(30,144,255,.5);
}

/* ══════════ Header ══════════ */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--acm-header-h);
    z-index: 1000;
    background: rgba(10, 22, 40, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--acm-border);
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background: rgba(10, 22, 40, 0.97);
    box-shadow: 0 4px 32px rgba(0,0,0,.4);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--acm-primary), var(--acm-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    gap: 6px;
    margin: 0 auto;
}
.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--acm-muted);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(30,144,255,.15);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ══════════ Buttons ══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-wa:hover { box-shadow: 0 8px 32px rgba(37,211,102,.5); color: #fff; }

.btn-call {
    background: linear-gradient(135deg, var(--acm-primary), #0066CC);
    color: #fff;
    box-shadow: 0 4px 20px rgba(30,144,255,.35);
}
.btn-call:hover { box-shadow: 0 8px 32px rgba(30,144,255,.5); color: #fff; }

.btn-sm  { padding: 8px  20px; font-size: .85rem; }
.btn-md  { padding: 12px 26px; font-size: .95rem; }
.btn-lg  { padding: 16px 32px; font-size: 1.05rem; }
.btn-xl  { padding: 18px 40px; font-size: 1.1rem; }

/* ══════════ Fade-up Animation ══════════ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════ Section Commons ══════════ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-badge {
    display: inline-block;
    background: rgba(30,144,255,.15);
    color: var(--acm-secondary);
    border: 1px solid rgba(0,212,255,.3);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--acm-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ══════════ Hero ══════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--acm-header-h);
    overflow: hidden;
    background: linear-gradient(135deg, #060e1e 0%, #0A1628 40%, #0d2348 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(30,144,255,.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 70%, rgba(0,212,255,.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px 20px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(30,144,255,.18);
    color: var(--acm-secondary);
    border: 1px solid rgba(0,212,255,.4);
    border-radius: 50px;
    padding: 8px 24px;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: .04em;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.25;
    text-shadow: 0 2px 30px rgba(30,144,255,.3);
}
.hero-title span { color: var(--acm-secondary); }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--acm-muted);
    margin-bottom: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 28px 40px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--acm-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    max-width: 520px;
    margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--acm-primary);
    line-height: 1;
}
.stat-lbl {
    font-size: .82rem;
    color: var(--acm-muted);
    margin-top: 4px;
}
.stat-divider { width: 1px; height: 40px; background: var(--acm-border); }

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-arrow {
    width: 28px;
    height: 28px;
    border-right: 2.5px solid var(--acm-muted);
    border-bottom: 2.5px solid var(--acm-muted);
    transform: rotate(45deg);
    animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ══════════ CTA Strip ══════════ */
.cta-strip {
    background: linear-gradient(135deg, rgba(30,144,255,.22), rgba(0,212,255,.12));
    border-top: 1px solid rgba(30,144,255,.3);
    border-bottom: 1px solid rgba(30,144,255,.3);
    padding: 28px 0;
}
.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-strip-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 220px;
}
.cta-strip-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ══════════ Service Cards ══════════ */
.services-section {
    padding: 100px 0;
}
.services-section--alt {
    background: rgba(255,255,255,.02);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--acm-card);
    border: 1px solid var(--acm-border);
    border-radius: var(--acm-radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30,144,255,.6);
    box-shadow: 0 16px 48px rgba(30,144,255,.18);
}
.service-card--inst:hover {
    border-color: rgba(0,212,255,.6);
    box-shadow: 0 16px 48px rgba(0,212,255,.18);
}

.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d2348, #0a1628);
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acm-primary);
    opacity: .6;
}
.card-num {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(30,144,255,.9);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 900;
}

.card-body { padding: 24px; }
.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.card-desc {
    font-size: .9rem;
    color: var(--acm-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--acm-primary);
    transition: gap var(--transition), color var(--transition);
}
.card-cta:hover { gap: 10px; color: var(--acm-secondary); }

/* ══════════ Why Choose Us ══════════ */
.why-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(30,144,255,.06) 0%, transparent 50%);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.why-card {
    background: var(--acm-card);
    border: 1px solid var(--acm-border);
    border-radius: var(--acm-radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition);
}
.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30,144,255,.5);
}
.why-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30,144,255,.2), rgba(0,212,255,.1));
    border: 1px solid rgba(30,144,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--acm-primary);
    transition: background var(--transition);
}
.why-card:hover .why-icon-wrap {
    background: linear-gradient(135deg, rgba(30,144,255,.35), rgba(0,212,255,.2));
}
.why-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.why-desc {
    font-size: .88rem;
    color: var(--acm-muted);
    line-height: 1.7;
}

/* ══════════ Service Areas ══════════ */
.areas-section {
    padding: 100px 0;
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.area-card {
    background: var(--acm-card);
    border: 1px solid var(--acm-border);
    border-radius: var(--acm-radius);
    padding: 24px 16px;
    text-align: center;
    cursor: default;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.area-card:hover {
    transform: translateY(-4px);
    border-color: var(--acm-primary);
    box-shadow: 0 8px 28px rgba(30,144,255,.2);
}
.area-icon {
    color: var(--acm-primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}
.area-name {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
}
.area-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acm-primary);
    margin-left: 6px;
    vertical-align: middle;
}

/* ══════════ Contact Section ══════════ */
.contact-section {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, rgba(30,144,255,.08) 0%, rgba(0,212,255,.04) 100%);
    border-top: 1px solid var(--acm-border);
}
.contact-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.contact-icon-big {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,144,255,.2), rgba(0,212,255,.1));
    border: 2px solid rgba(30,144,255,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--acm-primary);
}
.contact-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}
.contact-subtitle {
    font-size: 1.05rem;
    color: var(--acm-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}
.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.contact-note {
    font-size: .9rem;
    color: var(--acm-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ══════════ Footer ══════════ */
.site-footer {
    background: rgba(0,0,0,.35);
    border-top: 1px solid var(--acm-border);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-logo svg { color: var(--acm-primary); flex-shrink: 0; }
.footer-about-text {
    font-size: .88rem;
    color: var(--acm-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-contact-info { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--acm-muted);
    transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--acm-primary); }

.footer-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--acm-primary);
    display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links li {
    display: flex;
    align-items: center;
}
.footer-links a, .footer-links span.area-dot + * {
    font-size: .88rem;
    color: var(--acm-muted);
    transition: color var(--transition), padding-right var(--transition);
}
.footer-links li:hover > a { color: var(--acm-primary); padding-right: 4px; }

.footer-bottom {
    border-top: 1px solid var(--acm-border);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: .85rem;
    color: var(--acm-muted);
}

/* ══════════ Responsive ══════════ */
@media (max-width: 900px) {
    .site-nav { display: none; }
    .header-actions { display: none; }
    .hamburger { display: flex; }

    .site-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--acm-header-h);
        right: 0;
        left: 0;
        background: rgba(10,22,40,.98);
        border-bottom: 1px solid var(--acm-border);
        padding: 16px;
        gap: 4px;
        z-index: 999;
    }
    .site-nav.mobile-open .nav-link { padding: 14px 16px; font-size: 1rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .hero-stats { gap: 20px; padding: 20px 24px; }
    .stat-divider { width: 40px; height: 1px; }
}

@media (max-width: 600px) {
    .cta-strip-inner { flex-direction: column; text-align: center; }
    .cta-strip-actions { justify-content: center; }
    .hero-actions { flex-direction: column; align-items: center; }
    .contact-actions { flex-direction: column; align-items: center; }
    .floating-btns { left: 8px; }
    .float-btn { width: 46px; height: 46px; }
    .cards-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════ WordPress Admin Bar Offset ══════════ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
