/* Visual layer only. Page copy, links, and forms stay as they are. */

:root {
    --si-navy: #1e3a8a;
    --si-blue: #2563eb;
    --si-gold: #f59e0b;
    --si-ink: #0f172a;
    --shadow-heavy: 0 22px 45px rgba(15, 23, 42, 0.16);
}

body.site {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--si-ink);
    background-color: #eef3f9;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.08), transparent 26%),
        radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.12), transparent 22%),
        radial-gradient(circle at 80% 100%, rgba(16, 185, 129, 0.08), transparent 28%);
    background-attachment: fixed;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body.site {
    font-family: "Tajawal", "Segoe UI", sans-serif;
}

body.site ::selection {
    background: #1e40af;
    color: #fff;
}

body.site h1,
body.site h2,
body.site h3,
body.site h4 {
    font-family: inherit;
    letter-spacing: -0.03em;
}

.si-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #ffffff);
    pointer-events: none;
}

body.site .header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.site .header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e3a8a, #f59e0b, #1e3a8a);
    background-size: 200% 100%;
    animation: siLine 8s linear infinite;
}

body.site .header.scrolled {
    padding: 0.45rem 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

body.site .container {
    max-width: 1440px;
}

body.site .logo {
    font-size: 1.02rem;
    letter-spacing: -0.03em;
    gap: 12px;
    min-width: 0;
}

body.site .logo-text {
    line-height: 1.15;
}

body.site .logo-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

body.site .nav-menu {
    gap: 2px;
}

body.site .nav-menu a {
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 999px;
}

body.site .nav-menu a i {
    margin-inline-end: 5px;
    font-size: 0.85em;
}

body.site .lang-selector select {
    font-family: inherit;
    font-weight: 700;
    background: #fff;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.site .lang-selector select:hover,
body.site .lang-selector select:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.14);
    outline: none;
}

body.site .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(30, 64, 175, 0.15);
    background: #fff;
}

body.site main.site-main {
    animation: siPage 0.55s ease;
}

body.site main > section[style*="background: var(--light-color)"],
body.site main > section[style*="background: white"],
body.site main > section[style*="background:white"] {
    background: transparent !important;
}

body.site .hero-section,
body.site .about-hero,
body.site .services-hero,
body.site .packages-hero,
body.site .contact-hero,
body.site .profile-hero,
body.site .management-hero,
body.site .testimonials-hero {
    position: relative;
    overflow: hidden;
    animation: siPan 26s ease-in-out infinite alternate;
    box-shadow: inset 0 -40px 60px rgba(15, 23, 42, 0.12);
}

body.site .hero-section h1,
body.site .about-hero h1,
body.site .services-hero h1,
body.site .packages-hero h1,
body.site .contact-hero h1,
body.site .profile-hero h1,
body.site .management-hero h1,
body.site .testimonials-hero h1 {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    line-height: 1.15;
}

body.site .hero-section h1::after,
body.site .about-hero h1::after,
body.site .services-hero h1::after,
body.site .packages-hero h1::after,
body.site .contact-hero h1::after,
body.site .profile-hero h1::after,
body.site .management-hero h1::after,
body.site .testimonials-hero h1::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #fde68a, #fff, #fde68a, transparent);
}

body.site .hero-section p,
body.site .about-hero p,
body.site .services-hero p,
body.site .packages-hero p,
body.site .contact-hero p,
body.site .profile-hero p,
body.site .management-hero p,
body.site .testimonials-hero p {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

body.site a.cta-button,
body.site main a[style*="border-radius: 50px"] {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease !important;
}

body.site a.cta-button::after,
body.site main a[style*="border-radius: 50px"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

body.site a.cta-button:hover,
body.site main a[style*="border-radius: 50px"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

body.site a.cta-button:hover::after,
body.site main a[style*="border-radius: 50px"]:hover::after {
    left: 130%;
}

body.site .feature-card,
body.site .service-card,
body.site .si-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

body.site .feature-card::before,
body.site .service-card::before,
body.site .si-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
    z-index: 2;
}

html[dir="rtl"] body.site .feature-card::before,
html[dir="rtl"] body.site .service-card::before,
html[dir="rtl"] body.site .si-card::before {
    transform-origin: right;
}

body.site .feature-card:hover,
body.site .si-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12) !important;
}

body.site .feature-card:hover::before,
body.site .service-card:hover::before,
body.site .si-card:hover::before {
    transform: scaleX(1);
}

body.site .feature-card div[style*="border-radius: 50%"],
body.site .service-icon {
    transition: transform 0.45s ease;
}

body.site .feature-card:hover div[style*="border-radius: 50%"],
body.site .service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
}

body.site main img {
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

body.site .header img,
body.site footer img {
    border-radius: 14px;
    box-shadow: none;
}

body.site main input,
body.site main select,
body.site main textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body.site main input:focus,
body.site main select:focus,
body.site main textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    outline: none;
}

body.site main button[type="submit"],
body.site main input[type="submit"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body.site main button[type="submit"]:hover,
body.site main input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(30, 64, 175, 0.25);
}

body.site footer.footer {
    position: relative;
    margin-top: 0;
    height: auto;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.16), transparent 32%),
        radial-gradient(circle at 100% 80%, rgba(59, 130, 246, 0.22), transparent 34%),
        linear-gradient(180deg, #0b1220 0%, #111827 100%) !important;
    border-top: 3px solid #f59e0b;
    clear: both;
}

body.site footer.footer a {
    transition: color 0.25s ease, transform 0.25s ease;
}

body.site footer.footer a:hover {
    color: #fbbf24 !important;
}

body.site footer.footer .fab,
body.site footer.footer a .fab {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.site footer.footer a:hover .fab {
    transform: translateY(-4px);
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

body.site footer.footer p {
    line-height: 1.7;
}

@keyframes siPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes siPan {
    from { background-position: center 42%; }
    to { background-position: center 58%; }
}

@keyframes siLine {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

@media (max-width: 1400px) {
    body.site .nav-container {
        flex-wrap: nowrap;
        gap: 8px;
    }

    body.site .logo {
        order: 1;
        flex: 1 1 auto;
    }

    body.site .lang-selector {
        order: 3;
        flex: 0 0 auto;
    }

    body.site .mobile-menu-btn {
        order: 2;
        flex: 0 0 auto;
    }

    body.site .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        border-radius: 0 0 18px 18px;
    }

    body.site .nav-menu.show {
        display: flex;
    }

    body.site .mobile-menu-btn {
        display: block;
    }

    body.site .nav-menu a {
        margin: 4px 0;
    }
}

@media (max-width: 768px) {
    body.site main h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    body.site main h2 {
        font-size: 1.7rem !important;
    }

    body.site .hero-section,
    body.site .about-hero,
    body.site .services-hero,
    body.site .packages-hero,
    body.site .contact-hero,
    body.site .profile-hero,
    body.site .management-hero,
    body.site .testimonials-hero {
        padding: 110px 0 56px !important;
        overflow: visible;
        animation: none;
    }

    body.site .hero-section h1,
    body.site .about-hero h1,
    body.site .services-hero h1,
    body.site .packages-hero h1,
    body.site .contact-hero h1,
    body.site .profile-hero h1,
    body.site .management-hero h1,
    body.site .testimonials-hero h1,
    body.site main h2 {
        overflow-wrap: anywhere;
    }

    body.site main > section[style*="padding: 100px"] {
        padding: 56px 0 !important;
    }

    body.site main div[style*="1fr 1fr"],
    body.site main div[style*="minmax(350px"],
    body.site main div[style*="minmax(300px"],
    body.site main .services-grid {
        grid-template-columns: 1fr !important;
    }

    body.site .logo {
        font-size: 0.78rem;
        max-width: none;
        gap: 8px;
    }

    body.site .logo-text {
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.site .logo-image {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
    }

    body.site .lang-selector select {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

.wa-float {
    position: fixed;
    z-index: 1200;
    bottom: 22px;
    inset-inline-end: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.wa-float-label {
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff;
    color: #14532d;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.wa-float-icon {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    font-size: 2rem;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.wa-float-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: waPulse 1.8s ease-out infinite;
}

.wa-float:hover .wa-float-icon {
    transform: translateY(-2px);
}

body.quick-bar-open .wa-float {
    bottom: 118px;
}

@keyframes waPulse {
    0% { transform: scale(0.92); opacity: 0.8; }
    100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 640px) {
    .wa-float {
        inset-inline-end: 14px;
        bottom: 14px;
        gap: 8px;
    }

    .wa-float-label {
        font-size: 0.82rem;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .wa-float-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.site *,
    body.site *::before,
    body.site *::after {
        animation: none !important;
        transition: none !important;
    }
}
