.hero-section {
    position: relative;
    min-height: 840px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background-image: url('/images/Hero.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 10, 24, 0.30), rgba(4, 10, 24, 0.16)), radial-gradient(circle at center, rgba(5, 12, 28, 0.10), rgba(5, 12, 28, 0.26));
    z-index: 1;
}

.hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 170px;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.94) 68%, #f3f4f6 100%);
}
.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 920px;
    padding-top: 80px;
    padding-bottom: 140px;
}

.hero-title {
    margin: 0 0 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

    /* 👇 ده المهم */
    .hero-title img {
        display: block;
        width: clamp(300px, 42vw, 550px); /* نفس إحساس حجم النص */
        max-width: 50%;
        height: auto;
        object-fit: contain;
    }

.hero-subtitle {
    margin: 0 auto 16px;
    max-width: 900px;
    font-size: 1rem;
    line-height: 1.5;
    color: #f7f7fb;
    font-weight: 500;
}

.hero-text {
    margin: 0 auto 20px;
    max-width: 740px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(245, 247, 252, 0.85);
    font-weight: 500;
}

.hero-highlight {
    margin: 0 0 30px;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    min-width: 150px;
}

.hero-btn-secondary {
    min-width: 170px;
}

.services-section {
    background: #f3f4f6;
    padding-top: 92px;
    padding-bottom: 88px;
}

.industries-section {
    background: #ffffff;
    padding-top: 86px;
    padding-bottom: 86px;
}

.contact-home-section {
    background: #eef0f3;
    padding-top: 70px;
    padding-bottom: 70px;
}

.section-heading.center h2 {
    margin-bottom: 14px;
    line-height: 1.15;
    color: var(--gold);
    letter-spacing: -0.03em;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
}

.section-heading.center p {
    max-width: 650px;
    margin-inline: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

.service-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 18px;
    padding: 28px 22px;
    min-height: 172px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(0,0,0,0.06);
        border-color: rgba(199,154,74,0.18);
    }

.service-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
    color: #2a3240;
    font-weight: 700;
}

.service-card p {
    margin: 0;
    color: #8b91a0;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
}

.industries-grid {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.industries-grid-8 {
    grid-template-columns: repeat(4, 1fr);
}

.industry-card {
    min-height: 88px;
    background: #f8f8fb;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #596170;
    transition: transform .25s ease, border-color .25s ease, color .25s ease;
    padding: 16px;
}

    .industry-card:hover {
        transform: translateY(-3px);
        border-color: rgba(199,154,74,0.3);
        color: var(--gold);
    }

.industry-icon {
    font-size: 1.15rem;
    color: var(--gold);
}

.contact-home-box {
    max-width: 860px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group.full {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-size: 0.85rem;
        font-weight: 500;
        color: #4a5262;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        background: #f8fafc;
        border: 1px solid #dfe4eb;
        border-radius: 10px;
        padding: 10px 12px;
        color: #1e2430;
        outline: none;
        transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
        font-size: 0.9rem;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #8a93a3;
        opacity: 1;
    }

    .form-group select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 90px;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: rgba(199,154,74,0.75);
            box-shadow: 0 0 0 4px rgba(199,154,74,0.12);
            background: #fff;
        }

/* RTL */
body.rtl .hero-text,
body.rtl .hero-subtitle,
body.rtl .hero-highlight {
    max-width: 860px;
}

body.rtl .service-card,
body.rtl .form-group,
body.rtl .contact-modal-content {
    text-align: right;
}

    body.rtl .service-card p,
    body.rtl .service-card h3,
    body.rtl .form-group label,
    body.rtl .form-group input,
    body.rtl .form-group textarea,
    body.rtl .form-group select {
        direction: rtl;
    }

body.rtl .contact-modal-close {
    right: auto;
    left: 14px;
}

/* Dark mode */
body.dark-mode .services-section {
    background: #0c1730;
}

body.dark-mode .industries-section {
    background: #09152a;
}

body.dark-mode .contact-home-section {
    background: #0d1a33;
}

body.dark-mode .hero-bottom-fade {
    background: linear-gradient(to bottom, rgba(8,20,39,0), rgba(8,20,39,0.92) 68%, #0c1730 100%);
}

body.dark-mode .service-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
    box-shadow: none;
}

    body.dark-mode .service-card h3 {
        color: #eef3fb;
    }

    body.dark-mode .service-card p {
        color: rgba(230,236,247,0.72);
    }

body.dark-mode .industry-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: rgba(235,240,248,0.82);
}

body.dark-mode .form-group label {
    color: #e7edf8;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #eef3fb;
}

body.dark-mode .form-group select {
    background-color: #1b2a4a;
    border-color: rgba(255,255,255,0.10);
    color: #eef3fb;
}

    body.dark-mode .form-group select option {
        background-color: #162544;
        color: #eef3fb;
    }

    body.dark-mode .form-group select option[value=""] {
        color: rgba(238,243,251,0.75);
    }

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: rgba(230,236,247,0.52);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
    border-color: rgba(199,154,74,0.82);
    box-shadow: 0 0 0 4px rgba(199,154,74,0.14);
    background: rgba(255,255,255,0.06);
}

body.dark-mode .contact-modal-dialog {
    background: #ffffff;
}

body.dark-mode .contact-modal-content h2 {
    color: var(--gold);
}

body.dark-mode .contact-modal-content p {
    color: #6f7788;
}

body.dark-mode .contact-modal .form-group label {
    color: #313949 !important;
}

body.dark-mode .contact-modal .form-group input,
body.dark-mode .contact-modal .form-group textarea,
body.dark-mode .contact-modal .form-group select {
    background: #f8fafc !important;
    border-color: #d9dfe8 !important;
    color: #1e2430 !important;
}

    body.dark-mode .contact-modal .form-group input::placeholder,
    body.dark-mode .contact-modal .form-group textarea::placeholder {
        color: #8a93a3 !important;
    }

/* Responsive */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 760px;
        background-position: center center;
    }

    .hero-content {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .industries-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-modal {
        padding: 16px 12px;
    }

    .contact-modal-dialog {
        max-width: 100%;
        margin: 12px auto;
        border-radius: 18px;
    }

    .contact-modal-content {
        padding: 20px 16px 18px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 0.96rem;
    }

    .hero-bottom-fade {
        height: 120px;
    }

    .services-grid,
    .industries-grid-8,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .contact-modal {
        padding: 10px;
    }

    .contact-modal-dialog {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 16px;
    }

    .contact-modal-content {
        padding: 22px 14px 18px;
    }

        .contact-modal-content h2 {
            max-width: 100%;
            font-size: 1.9rem;
            padding-right: 34px;
        }

    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-modal .form-group input,
    .contact-modal .form-group textarea,
    .contact-modal .form-group select {
        border-radius: 12px;
        padding: 14px;
    }

    .contact-modal .btn-full {
        border-radius: 12px;
    }

    .contact-modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    body.rtl .contact-modal-close {
        right: auto;
        left: 10px;
    }
    /* intl-tel-input : Home + Modal */
    .iti {
        width: 100%;
    }

    .iti--allow-dropdown,
    .iti--separate-dial-code {
        width: 100%;
    }

    .iti__selected-flag {
        border-radius: 10px 0 0 10px;
    }

    .iti input,
    .iti input[type="tel"] {
        width: 100% !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 0.9rem !important;
    }

    .contact-modal .iti input,
    .contact-modal .iti input[type="tel"] {
        width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
        background: #f8fafc !important;
        border: 1px solid #d9dfe8 !important;
        color: #1e2430 !important;
    }

    .contact-modal .iti--separate-dial-code .iti__selected-flag {
        background: #f8fafc;
        border-right: 1px solid #d9dfe8;
    }

    .contact-modal .iti__country-list {
        text-align: left;
        direction: ltr;
    }

    body.rtl .iti__country-list {
        text-align: left;
        direction: ltr;
    }

    body.dark-mode .iti input,
    body.dark-mode .iti input[type="tel"] {
        background: rgba(255,255,255,0.04);
        border-color: rgba(255,255,255,0.08);
        color: #eef3fb;
    }

    body.dark-mode .contact-modal .iti input,
    body.dark-mode .contact-modal .iti input[type="tel"] {
        background: #f8fafc !important;
        border-color: #d9dfe8 !important;
        color: #1e2430 !important;
    }
    .contact-toast {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 18px 0 10px;
        padding: 16px 18px;
        border-radius: 14px;
        border: 1px solid transparent;
        font-size: 15px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    }

    .contact-toast-icon {
        font-size: 24px;
        line-height: 1;
        flex-shrink: 0;
    }

    .contact-toast-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .contact-toast-text strong {
            font-size: 16px;
            font-weight: 700;
        }

        .contact-toast-text span {
            font-size: 14px;
            line-height: 1.5;
            color: #2d3a2f;
        }

    .success-toast {
        background: #dff7e8;
        border-color: #5fcf80;
    }

        .success-toast .contact-toast-icon {
            color: #198754;
        }

        .success-toast .contact-toast-text strong {
            color: #146c43;
        }

    .error-toast {
        background: #fff1f1;
        border-color: #f1aeb5;
    }

        .error-toast .contact-toast-icon {
            color: #dc3545;
        }

        .error-toast .contact-toast-text strong {
            color: #b02a37;
        }

    @media (max-width: 768px) {
        .iti input,
        .iti input[type="tel"] {
            font-size: 0.9rem !important;
        }
    }
}
