/* ===== CSS لموقع شركة المصادقة للتفتيش والمطابقة - النسخة النهائية ===== */
/* ===== إعدادات عامة ===== */
:root {
    --primary-color: #0A3D62;
    --secondary-color: #F9A826;
    --accent-color: #1E6CB3;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    direction: rtl;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e59400;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== الهيدر وشريط التنقل ===== */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

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

.logo-ar {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.logo-en {
    font-size: 0.8rem;
    color: var(--gray-color);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links li a {
    padding: 8px 15px;
    font-weight: 600;
    color: var(--dark-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(10, 61, 98, 0.1);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== قسم البطل (Hero) ===== */
.hero {
    background: linear-gradient(rgba(10, 61, 98, 0.95), rgba(10, 61, 98, 0.85)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 90px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.9) 0%, rgba(30, 108, 179, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== قسم من نحن ===== */
.about-section {
    background-color: var(--light-color);
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    width: 100%;
    border: 2px dashed var(--border-color);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.image-placeholder p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ===== قسم الخدمات ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.food-icon {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.general-icon {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.medical-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.oil-icon {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-list {
    text-align: right;
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-list i {
    color: var(--secondary-color);
}

/* ===== قسم الاعتمادات ===== */
.certificates-section {
    background-color: #f0f8ff;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.certificate-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certificate-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    text-align: center;
}

.certificate-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.certificate-header h3 {
    color: white;
    font-size: 1.4rem;
}

.certificate-body {
    padding: 25px;
    text-align: center;
}

.cert-status {
    margin-top: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.cert-status.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* ===== قسم الاتصال ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(10, 61, 98, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 5px;
    color: var(--gray-color);
	direction: ltr;

}

.map-qr {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 2px dashed var(--border-color);
}

.qr-code {
    flex-shrink: 0;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: var(--shadow);
}

.qr-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.qr-placeholder p {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 0;
    text-align: center;
}

.qr-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.qr-info p {
    color: var(--gray-color);
    margin-bottom: 0;
    font-size: 0.95rem;
}

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

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230A3D62' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
    padding-left: 40px;
}

/* ===== الفوتر ===== */
.footer {
    background-color: #1a1a1a;
    color: #ddd;
    padding-top: 60px;
}

.footer h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-credits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.design-credit {
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.design-credit i {
    color: var(--secondary-color);
}

.ly-tech {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.ly-tech:hover {
    color: white;
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.footer-info li {
    margin-bottom: 15px;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-info i {
    color: var(--secondary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.cert-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

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

.badge-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.badge-text strong {
    font-size: 1rem;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== زر العودة للأعلى ===== */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== التجاوب مع الشاشات الصغيرة ===== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-qr {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        background-color: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 130px 0 80px;
        margin-top: 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .certificates-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .certificate-card, .service-card {
        padding: 25px 20px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-ar {
        font-size: 1rem;
    }
    
    .logo-en {
        font-size: 0.7rem;
    }
}

/* ===== تحسينات للشاشات الصغيرة ===== */
@media (max-width: 768px) {
    /* تكبير الشعار على الموبايل */
    .logo-img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .logo-ar {
        font-size: 1.2rem !important;
    }
    
    .logo-en {
        font-size: 0.85rem !important;
    }
    
    /* تكبير الإيقونات في قسم القيم (من نحن) */
    .value-item i {
        font-size: 3.5rem !important;
    }
    
    /* تكبير إيقونات الخدمات */
    .service-icon {
        width: 120px !important;
        height: 120px !important;
        font-size: 4rem !important;
    }
    
    /* تكبير صورة QR */
    .qr-placeholder {
        width: 250px !important;
        height: 250px !important;
    }
    
    .qr-placeholder i {
        font-size: 3rem !important;
    }
}

@media (max-width: 576px) {
    /* تكبير إضافي للشاشات الصغيرة جداً */
    .logo-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .value-item i {
        font-size: 5.2rem !important;
    }
    
    .service-icon {
        width: 120px !important;
        height: 120px !important;
        font-size: 2.5rem !important;
    }
    
    .qr-placeholder {
        width: 250px !important;
        height: 250px !important;
    }
    
    .qr-placeholder i {
        font-size: 2.8rem !important;
    }
}

/* تكبير إضافي لإيقونات الشهادات على الموبايل */
@media (max-width: 768px) {
    .certificate-icon {
        font-size: 3rem !important;
        margin-bottom: 20px !important;
    }
    
    .certificate-header {
        padding: 20px 15px !important;
    }
    
    .certificate-header h3 {
        font-size: 1.3rem !important;
    }
}

/* تحسين عرض خريطة QR على الشاشات الصغيرة */
@media (max-width: 992px) {
    .map-qr {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    .qr-info {
        text-align: center;
    }
}

/* تحسين حجم خطوط الخدمات على الموبايل */
@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.3rem !important;
    }
    
    .service-list li {
        font-size: 1rem !important;
    }
}

/* تحسين حجم الخطوط في الفوتر على الموبايل */
@media (max-width: 768px) {
    .footer h3 {
        font-size: 1.3rem !important;
    }
    
    .footer-links a, 
    .footer-info li {
        font-size: 0.95rem !important;
    }
    
    .social-icon {
        width: 45px !important;
        height: 45px !important;
    }
}