/* ===== Variables & Reset ===== */
:root {
    --primary: #0a4d8c;
    --primary-dark: #063a6b;
    --primary-light: #1a6bb5;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --dark: #1a2332;
    --darker: #0f1620;
    --gray: #5a6a7e;
    --light-gray: #f0f4f8;
    --white: #ffffff;
    --success: #27ae60;
    --shadow: 0 10px 40px rgba(10, 77, 140, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 77, 140, 0.18);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(10, 77, 140, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(10, 77, 140, 0.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a2e5c 0%, #0a4d8c 40%, #1a6bb5 100%);
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(10, 77, 140, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-desc {
    color: var(--gray);
    font-size: 1.05rem;
}

/* ===== About ===== */
.about {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--gray);
    font-size: 1.02rem;
}

.about-content strong {
    color: var(--dark);
}

.about-info {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-item i {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card {
    background: var(--white);
    padding: 28px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.about-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid #e8eef5;
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(10, 77, 140, 0.08);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 600;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== Means ===== */
.means {
    background: var(--darker);
    color: var(--white);
}

.means .section-tag {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

.means .section-title {
    color: var(--white);
}

.means .section-desc {
    color: rgba(255,255,255,0.7);
}

.means-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.means-column h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
}

.means-list {
    display: grid;
    gap: 14px;
}

.means-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.means-list li:hover {
    background: rgba(255,255,255,0.08);
}

.means-list i {
    color: var(--success);
    font-size: 0.95rem;
}

/* ===== Certifications ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    position: relative;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cert-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: white;
}

.iso9001 { background: #0a4d8c; }
.iso14001 { background: #27ae60; }
.iso45001 { background: #e67e22; }

.cert-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.cert-type {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
    font-weight: 500;
}

.cert-card ul {
    margin-bottom: 18px;
}

.cert-card ul li {
    font-size: 0.88rem;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--gray);
}

.cert-card ul li strong {
    color: var(--dark);
}

.cert-scope {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.55;
}

.cert-note {
    margin-top: 40px;
    text-align: center;
    background: var(--light-gray);
    padding: 20px 30px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--gray);
}

.cert-note a {
    color: var(--primary);
    font-weight: 500;
}

.cert-note a:hover {
    text-decoration: underline;
}

/* ===== Contact ===== */
.contact {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 18px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.55;
}

.contact-card a {
    color: var(--primary);
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    background: #fafbfc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(10, 77, 140, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text strong {
    color: white;
}

.footer-brand .logo-text small {
    color: rgba(255,255,255,0.6);
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-contact p {
    font-size: 0.92rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent);
    width: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .about-grid,
    .means-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-stats {
        gap: 24px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Logo Image ===== */
.logo-img {
    height: 52px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.footer-logo {
    height: 48px;
    max-width: 240px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1); /* Make logo white in footer if needed, or remove */
}

/* Better: keep original colors in footer */
.footer .logo-img {
    filter: none;
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
}

/* ===== Header Actions & Language Switcher ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    background: rgba(10, 77, 140, 0.08);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(10, 77, 140, 0.25);
}

/* ===== RTL Support ===== */
[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .means-column h3,
[dir="rtl"] .cert-card h3 {
    font-family: 'Noto Sans Arabic', 'Oswald', sans-serif;
}

[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

[dir="rtl"] .hero-stats {
    justify-content: flex-start;
}

[dir="rtl"] .about-grid {
    direction: rtl;
}

[dir="rtl"] .info-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .about-cards {
    direction: rtl;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .service-card::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .means-list li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .means-column h3 {
    flex-direction: row-reverse;
}

[dir="rtl"] .cert-card {
    text-align: right;
}

[dir="rtl"] .contact-card {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-form-wrapper {
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 6px;
}

[dir="rtl"] .footer-contact p {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-header {
    text-align: center;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .nav {
        text-align: right;
    }

    .logo-img {
        height: 42px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 36px;
        max-width: 160px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
}


/* ===== Recruitment form ===== */
.recruitment {
    background: var(--light, #f5f7fa);
}
.recruitment-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(20, 40, 70, 0.08);
}
.recruitment-form-wrapper input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed #b8c5d5;
    border-radius: 8px;
    background: #f8fafc;
}
@media (max-width: 768px) {
    .recruitment-form-wrapper { padding: 24px 18px; }
}
