/* ===== أساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== الهيدر ===== */
.header {
    background: #1a5c2a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 3px;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.4rem;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.header nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #90ee90;
}

/* ===== القسم الرئيسي ===== */
.hero {
    background: url('hero.jpg') center center/cover no-repeat;
    color: #fff;
    position: relative;
    min-height: 450px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
    padding: 120px 20px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 18px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ===== الأقسام ===== */
.section {
    padding: 60px 20px;
}

.section-alt {
    background: #f7f9fc;
}

.section-title {
    text-align: center;
    font-size: 1.7rem;
    color: #1a5c2a;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #27ae60;
    border-radius: 2px;
}

.section > .container > p {
    text-align: justify;
    font-size: 1.05rem;
    color: #555;
}

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

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #1a5c2a;
}

.service-card h3 {
    color: #1a5c2a;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== كلمة المدير ===== */
/* ===== تنسيق كلمة المدير ===== */
.director-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.director-photo {
    flex-shrink: 0;
}

.director-photo img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid #27ae60;
}

.director-message {
    background: #fff;
    border-right: 4px solid #27ae60;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    flex: 1;
}

.director-message p {
    text-align: justify;
    color: #555;
    margin-bottom: 15px;
    font-size: 1.02rem;
}

.director-info {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.director-info strong {
    color: #1a5c2a;
    font-size: 1.1rem;
}

.director-info span {
    color: #777;
    font-size: 0.9rem;
}

/* ===== نموذج الاتصال ===== */
.contact-form {
    max-width: 550px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a5c2a;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39,174,96,0.12);
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a5c2a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #27ae60;
}

.success-msg {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 1.05rem;
}

/* ===== الخريطة ===== */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ===== الفوتر ===== */
.footer {
    background: #1a5c2a;
    color: #eee;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ===== سلايدر التراخيص ===== */
.license-slider {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #fff;
    overflow: hidden;
}

.license-slides {
    position: relative;
}

.license-slide {
    display: none;
}

.license-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.license-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.license-dots {
    text-align: center;
    padding: 12px 0;
    background: #fff;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #1a5c2a;
}

/* ===== الاستجابة - تابلت ===== */
@media (max-width: 768px) {
    .container,
    .container-wide {
        padding: 0 15px;
    }

    .hero {
        min-height: 350px;
    }

    .hero-overlay {
        padding: 80px 15px;
        min-height: 350px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .section {
        padding: 45px 15px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .director-home {
        gap: 25px;
    }

    .director-home-img img {
        width: 160px;
        height: 200px;
    }

    .page-banner {
        min-height: 150px;
    }

    .page-banner-overlay {
        min-height: 150px;
    }

    .page-banner-overlay h2 {
        font-size: 1.7rem;
    }

    .contact-layout {
        flex-direction: column;
        gap: 25px;
    }

    .service-detail {
        padding: 20px;
    }
}

/* ===== الاستجابة - جوال ===== */
@media (max-width: 600px) {
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .header {
        padding: 8px 0;
    }

    .menu-toggle {
        display: block;
    }

    .header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 8px;
    }

    .header nav.open {
        display: flex;
    }

    .header nav a {
        padding: 10px 15px;
        border-radius: 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hero {
        min-height: 280px;
    }

    .hero-overlay {
        padding: 50px 15px;
        min-height: 280px;
    }

    .hero h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 5px;
    }

    .btn-hero {
        display: block;
        margin: 10px auto 0;
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 80%;
        text-align: center;
    }

    .btn-hero-outline {
        margin-right: 0;
    }

    .section {
        padding: 35px 12px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section > .container > p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* --- الخدمات --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 22px 15px;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* --- الأرقام --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 22px 10px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* --- لماذا تختارنا --- */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .why-item {
        padding: 18px 15px;
        gap: 12px;
    }

    .why-icon {
        font-size: 1.5rem;
        width: 35px;
    }

    .why-content h3 {
        font-size: 1rem;
    }

    .why-content p {
        font-size: 0.88rem;
    }

    /* --- قيم الشركة --- */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* --- المدير - الرئيسية --- */
    .director-home {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .director-home-img img {
        width: 140px;
        height: 170px;
    }

    .director-home-text p {
        font-size: 0.95rem;
        text-align: center;
    }

    /* --- المدير - من نحن --- */
    .director-about {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .director-img img {
        width: 140px;
        height: 170px;
    }

    /* --- المدير - عام --- */
    .director-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .director-photo img {
        width: 130px;
        height: 160px;
    }

    .director-message {
        border-right: none;
        border-top: 4px solid #27ae60;
        padding: 20px 15px;
    }

    .director-message p {
        font-size: 0.95rem;
        text-align: center;
    }

    .director-info strong {
        font-size: 1rem;
    }

    /* --- صفحة الاتصال --- */
    .contact-layout {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info-box {
        padding: 20px 15px;
        width: 100%;
    }

    .contact-info-box h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .contact-item {
        gap: 10px;
    }

    .contact-item p {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .contact-form-box {
        padding: 20px 15px;
        width: 100%;
    }

    .contact-form-box h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
        border-radius: 8px;
    }

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

    .contact-form-full .btn {
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
        margin-top: 5px;
    }

    .container-wide {
        padding: 0 12px;
    }

    /* --- خدمات تفصيلية --- */
    .service-detail {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 12px;
        border-right: none;
        border-top: 4px solid #27ae60;
    }

    .service-detail-icon {
        font-size: 1.8rem;
        width: auto;
    }

    .service-detail-content h3 {
        font-size: 1.05rem;
    }

    .service-detail-content p {
        font-size: 0.92rem;
        text-align: center;
    }

    /* --- بانر الصفحات --- */
    .page-banner {
        min-height: 120px;
    }

    .page-banner-overlay {
        min-height: 120px;
    }

    .page-banner-overlay h2 {
        font-size: 1.4rem;
    }

    /* --- الخريطة --- */
    .map-container iframe {
        height: 250px;
    }

    /* --- الفوتر --- */
    .footer {
        padding: 15px 10px;
        font-size: 0.82rem;
    }

    /* --- الأزرار العامة --- */
    .btn {
        padding: 11px;
        font-size: 0.95rem;
    }

    .btn-link {
        font-size: 0.95rem;
    }
}

/* ===== شاشات صغيرة جداً ===== */
@media (max-width: 380px) {
    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.88rem;
    }

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

    .stat-card {
        padding: 18px 10px;
    }

    .btn-hero {
        width: 90%;
        padding: 11px 15px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section {
        padding: 30px 10px;
    }
}

/* ===== الأرقام ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a5c2a;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.05rem;
    color: #666;
}

/* ===== لماذا تختارنا ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.why-icon {
    font-size: 2rem;
    color: #1a5c2a;
    flex-shrink: 0;
    width: 45px;
    text-align: center;
}

.why-content h3 {
    color: #1a5c2a;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.why-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== كلمة المدير - الرئيسية ===== */
.director-home {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.director-home-img {
    flex-shrink: 0;
}

.director-home-img img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid #27ae60;
}

.director-home-text {
    flex: 1;
}

.director-home-text p {
    text-align: justify;
    color: #555;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.director-home-text .btn-link {
    margin-top: 10px;
}

/* ===== بانر الصفحات الداخلية ===== */
.page-banner {
    background: url('hero.jpg') center center/cover no-repeat;
    min-height: 200px;
}

.page-banner-overlay {
    background: rgba(0, 0, 0, 0.45);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-overlay h2 {
    color: #fff;
    font-size: 2.2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

/* ===== تخطيط واسع ===== */
.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== زر الهيرو ===== */
.btn-hero {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 40px;
    background: #1a5c2a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-hero:hover {
    background: #27ae60;
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid #fff;
    margin-right: 15px;
}

.btn-hero-outline:hover {
    background: #fff;
    color: #1a5c2a;
}

/* ===== رابط المزيد ===== */
.btn-link {
    display: inline-block;
    color: #1a5c2a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 3px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #27ae60;
}

/* ===== الرابط النشط ===== */
.header nav a.active {
    background: rgba(255,255,255,0.2);
    color: #90ee90;
}

/* ===== قيم الشركة ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #1a5c2a;
}

.value-card h3 {
    color: #1a5c2a;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.value-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== كلمة المدير - صفحة من نحن ===== */
.director-about {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.director-img {
    flex-shrink: 0;
}

.director-img img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid #27ae60;
}

/* ===== صفحة الاتصال ===== */
.contact-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-box {
    flex: 1;
    background: #f0f7f2;
    border-radius: 12px;
    padding: 30px;
}

.contact-info-box h3 {
    color: #1a5c2a;
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
}

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

.contact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    color: #1a5c2a;
    width: 30px;
    text-align: center;
}

.contact-item strong {
    color: #1a5c2a;
    display: block;
    margin-bottom: 3px;
}

.contact-item p {
    color: #555;
    margin: 0;
}

.contact-form-box {
    flex: 1.5;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-form-box h3 {
    color: #1a5c2a;
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
}

.contact-form-full {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* ===== خدمات تفصيلية ===== */
.service-detail {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-right: 4px solid #27ae60;
}

.service-detail-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    color: #1a5c2a;
    width: 50px;
    text-align: center;
}

.service-detail-content h3 {
    color: #1a5c2a;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-detail-content p {
    color: #555;
    text-align: justify;
    line-height: 1.9;
}
