/* إعدادات عامة */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background-color: #f7f9fc;
    color: #16181d;
    line-height: 1.8;
}

/* الحاوية العامة */
.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

/* الروابط والأزرار */
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    white-space: nowrap;
}

.primary-btn {
    background: linear-gradient(135deg, #0052ff, #0391ff);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.25);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 82, 255, 0.35);
}

.ghost-btn {
    background: #fff;
    color: #0052ff;
    border-color: rgba(0, 82, 255, 0.3);
}

.ghost-btn:hover {
    background: rgba(0, 82, 255, 0.03);
}

/* الهيدر */
.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 249, 252, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(12, 20, 33, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1.5rem;
}

/* الشعار */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-text span {
    color: #0052ff;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1rem;
}

.logo-tagline {
    font-size: 0.78rem;
    color: #363f4f;
    line-height: 1.4;
}

/* القائمة */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-list a {
    padding-block: 0.5rem;
    position: relative;
    color: #333;
}

.nav-list a::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0052ff, #00d4ff);
    transition: width 0.2s ease-in-out;
}

.nav-list a:hover::after {
    width: 100%;
}

/* البطل (Hero) */
.hero {
    padding: 4.5rem 0 3.5rem;
    background: radial-gradient(circle at top left, #e5f1ff, transparent 65%),
        radial-gradient(circle at bottom right, #e3fff8, transparent 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    color: #111827;
}

.hero-text h1 span {
    display: block;
    font-size: 0.9em;
    font-weight: 400;
    color: #4b5563;
    margin-top: 0.3rem;
}

.hero-text p {
    color: #4b5563;
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 82, 255, 0.06);
    color: #0052ff;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(0, 82, 255, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.hero-meta strong {
    display: block;
    color: #111827;
}

/* صورة الهيرو */
.hero-image {
    position: relative;
}

.hero-main-image {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-secondary-card {
    position: absolute;
    inset-inline-start: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    font-size: 0.78rem;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-secondary-card span {
    display: block;
    color: #6b7280;
    margin-top: 0.2rem;
}

/* الأقسام العامة */
.section {
    padding: 3.5rem 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    color: #111827;
}

.section-heading p {
    color: #6b7280;
    max-width: 540px;
}

.section-heading.center {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

/* من نحن */
.about {
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 0.9rem;
    color: #4b5563;
}

.about-list {
    list-style: none;
    margin-top: 0.8rem;
}

.about-list li {
    position: relative;
    padding-inline-start: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #374151;
}

.about-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: #0052ff;
}

/* صور من نحن */
.about-image-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.8rem;
}

.about-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.about-image.small {
    align-self: end;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* الخدمات */
.services {
    background: #f3f6fb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 82, 255, 0.07);
    font-size: 1.3rem;
}

.service-card h3 {
    font-size: 1.05rem;
    color: #111827;
}

.service-card p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* الشريط الأوسط */
.strip {
    padding: 2.4rem 0;
    background: linear-gradient(135deg, #0052ff, #00b7ff);
    color: #ffffff;
}

.strip-content {
    text-align: center;
}

.strip-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

/* لماذا نحن */
.why-us {
    background: #ffffff;
}

.why-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.why-card {
    background: #f5f7fb;
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.why-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    margin-bottom: 0.6rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

/* تواصل معنا */
.contact {
    background: #f3f6fb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.3rem;
    align-items: flex-start;
}

.contact-info p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.contact-label {
    font-weight: 600;
    color: #111827;
    margin-inline-end: 0.35rem;
}

.contact-list a {
    color: #0052ff;
}

.contact-note {
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(0, 82, 255, 0.06);
    font-size: 0.9rem;
    color: #1f2933;
}

/* نموذج التواصل */
.contact-form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.contact-form-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.form-group label {
    font-weight: 600;
    color: #111827;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.6rem 0.8rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.16s ease-in-out;
    background: #f9fafb;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0052ff;
    box-shadow: 0 0 0 1px rgba(0, 82, 255, 0.16);
    background: #ffffff;
}

.full-width {
    width: 100%;
}

/* الفوتر */
.main-footer {
    padding: 1.4rem 0;
    background: #0b1120;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
}

/* تجاوبية الشاشات */

/* أقل من 1024px */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-image-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* أقل من 768px (جوال) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 0.7rem;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.8rem 1.2rem;
        font-size: 0.87rem;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .section {
        padding: 2.6rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-image-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 1.3rem 1.1rem;
    }
}

/* أقل من 480px (شاشات صغيرة جدًا) */
@media (max-width: 480px) {
    .container {
        width: min(100% - 2rem, 100%);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-secondary-card {
        position: static;
        transform: none;
        margin-top: 0.9rem;
        border-radius: 16px;
    }
}
