/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.8;
    color: #1a1a2e;
    background: #f8fafc;
    direction: rtl;
    text-align: right;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Logo ===== */
.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, #22d3ee, #0ea5e9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 0 4px rgba(34,211,238,0.25), 0 8px 20px rgba(14,165,233,0.4);
    position: relative;
    overflow: hidden;
}
.logo-icon::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    top: 12px;
    left: 18px;
}
.logo-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    top: 18px;
    left: 24px;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text .brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #22d3ee, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-text .tagline {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 400;
}
.main-nav ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(34,211,238,0.2);
    color: #22d3ee;
}
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #22d3ee;
    color: #22d3ee;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero h1 span {
    color: #22d3ee;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, #22d3ee, #0ea5e9);
    color: #0f172a;
    box-shadow: 0 8px 25px rgba(14,165,233,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14,165,233,0.5);
}
.btn-outline {
    background: transparent;
    border: 2px solid #22d3ee;
    color: #22d3ee;
    margin-right: 12px;
}
.btn-outline:hover {
    background: rgba(34,211,238,0.15);
}

/* ===== Sections ===== */
.section {
    padding: 70px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.section-title p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-dark {
    background: #0f172a;
    color: #e2e8f0;
}
.section-dark .section-title h2 {
    color: #fff;
}
.section-dark .section-title p {
    color: #94a3b8;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    border: 1px solid #e2e8f0;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(14,165,233,0.18);
    border-color: #22d3ee;
}
.card-img {
    height: 180px;
    background: linear-gradient(135deg, #1e3a5f, #0c4a6e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #22d3ee;
}
.card-body {
    padding: 24px;
}
.card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}
.card-body p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.card-body .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== Content Pages ===== */
.page-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}
.page-hero .breadcrumb a {
    color: #22d3ee;
}
.content-area {
    padding: 50px 0 80px;
}
.article-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    line-height: 2;
}
.article-content h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin: 35px 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #22d3ee;
}
.article-content h3 {
    font-size: 1.3rem;
    color: #1e3a5f;
    margin: 28px 0 14px;
}
.article-content p {
    margin-bottom: 18px;
    color: #334155;
}
.article-content ul, .article-content ol {
    margin: 15px 0 20px 20px;
    padding-right: 20px;
}
.article-content li {
    margin-bottom: 10px;
    position: relative;
}
.article-content ul li::before {
    content: '▸';
    color: #0ea5e9;
    position: absolute;
    right: -20px;
}
.article-content img {
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===== Contact Form ===== */
.contact-form {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #22d3ee;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== Footer ===== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 18px;
    font-weight: 700;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a:hover {
    color: #22d3ee;
}
.footer-bottom {
    border-top: 1px solid #1e3a5f;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Floating Buttons ===== */
.floating-btns {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.float-btn:hover {
    transform: scale(1.12);
}
.float-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.float-call {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}
.float-btn span {
    display: none;
}

/* ===== Sitemap ===== */
.sitemap-list {
    columns: 2;
    column-gap: 40px;
}
.sitemap-list li {
    margin-bottom: 12px;
    break-inside: avoid;
}
.sitemap-list a {
    color: #0ea5e9;
    font-weight: 600;
}
.sitemap-list a:hover {
    text-decoration: underline;
}

/* ===== Admin ===== */
.admin-panel {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.admin-panel h1 {
    margin-bottom: 30px;
    color: #0f172a;
}
.success-msg {
    background: #dcfce7;
    color: #166534;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #86efac;
}
.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        width: 100%;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 15px 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .article-content {
        padding: 25px 18px;
    }
    .sitemap-list {
        columns: 1;
    }
    .floating-btns {
        bottom: 15px;
        left: 15px;
    }
    .float-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}
