/* ===================== */
/* Reset and Base Styles */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f9f9f9;
    direction: rtl;
    min-width: 320px;
    overflow-x: hidden;
}

/* ===================== */
/* Header + Navbar (من الرئيسية) */
/* ===================== */
header {
    background: linear-gradient(135deg,
        #FF7700 0%,
        #FFA500 20%,
        #1E90FF 50%,
        #00008B 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.logo img {
    height: 90px;
    margin-left: 10px;
    max-width: 100%;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1.5rem;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav ul li a:hover {
    color: #FFA500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #FFA500;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* ===================== */
/* Main Content */
/* ===================== */
main {
    min-height: calc(100vh - 220px);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    color: #00008B;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF7700;
}

/* ===================== */
/* Services Grid + Cards */
/* ===================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.service-card {
    flex: 1;
    min-width: 280px;
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid #FF8C00;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* ===================== */
/* Contact Form */
/* ===================== */
form input,
form select,
form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #0077C0;
    outline: none;
}

form button {
    background: linear-gradient(90deg, #FF8C00, #0077C0);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

form button:hover {
    opacity: 0.85;
}

/* ===================== */
/* Map */
/* ===================== */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ===================== */
/* Social Links */
/* ===================== */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #0077C0;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15);
    background-color: #FF8C00;
}

/* ===================== */
/* ===================== *//* ===================== */
/* WhatsApp Floating Button */
/* ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* ===================== */
/* Facebook Floating Button */
/* ===================== */
.facebook-float {
    position: fixed;
    bottom: 100px; /* stacked above WhatsApp */
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #1877F2; /* Facebook blue */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.facebook-float:hover {
    background-color: #145DBF;
    transform: scale(1.1);
}

/* ===================== */
/* Instagram Floating Button */
/* ===================== */
.instagram-float {
    position: fixed;
    bottom: 170px; /* stacked above Facebook */
    left: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 107%, 
        #fdf497 0%, #fdf497 5%, 
        #fd5949 45%, #d6249f 60%, 
        #285AEB 90%); /* Instagram gradient */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.instagram-float:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* ===================== */
/* Footer */
/* ===================== */
footer {
    background: linear-gradient(135deg, #FF7700 0%, #FFA500 30%, #1E90FF 60%, #00008B 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

/* ===================== */
/* Animations */
/* ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes floatUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* Accessibility Improvements */
/* ===================== */
a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
input, select, textarea {
    font-size: 16px !important;
}

/* ===================== */
/* Responsive Design */
/* ===================== */
@media (max-width: 992px) {
    .logo img { height: 70px; }
    .logo h1 { font-size: 1.6rem; }
    nav ul li { margin-right: 1rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .header-container { flex-direction: column-reverse; padding: 0.5rem 1rem; }
    .logo { flex-direction: row; gap: 15px; margin-top: 0.5rem; justify-content: center; }
    .logo img { height: 70px; margin-left: 0; }
    .logo h1 { font-size: 1.6rem; white-space: normal; }
    nav ul { flex-wrap: wrap; justify-content: center; padding: 0.5rem 0; }
    nav ul li { margin: 0 0.5rem; }

    /* Resize all social buttons equally */
    .whatsapp-float,
    .facebook-float,
    .instagram-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        left: 20px;
    }
    .whatsapp-float { bottom: 20px; }
    .facebook-float { bottom: 80px; }
    .instagram-float { bottom: 140px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .logo { flex-direction: column; gap: 10px; }
    .logo h1 { font-size: 1.4rem; }
    nav ul li { margin: 0 0.3rem; }

    /* Resize all social buttons equally */
    .whatsapp-float,
    .facebook-float,
    .instagram-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        left: 15px;
    }
    .whatsapp-float { bottom: 15px; }
    .facebook-float { bottom: 70px; }
    .instagram-float { bottom: 125px; }
}