/* --- CSS Variables for Colors --- */
:root {
    --primary-color: #FF6B00; /* Orange from logo */
    --secondary-color: #0077B6; /* Medical Blue */
    --dark-color: #212529; /* Black */
    --light-color: #F8F9FA; /* White/Light Gray */
    --gold-color: #FFD700; /* Gold */
    --text-color: #333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
}

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

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

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

ul {
    list-style: none;
}

/* --- Header --- */
header {
    background: var(--light-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.logo img {
    max-height: 50px;
    margin-left: 10px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 25px; /* Changed from margin-left for RTL */
}

nav ul li a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Sections --- */
section {
    padding: 60px 0;
}

/* --- Home Section --- */
#home {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image\002.jpg') no-repeat center center/cover;
    color: var(--light-color);
}

#home h1 {
    font-size: 3rem;
    color: var(--light-color);
}

#home p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.video-placeholder img {
    max-width: 200px;
    border-radius: 10px;
    margin-top: 20px;
}

/* --- Products Section --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 30px;
    margin-left: 15px;
}

.contact-info a {
    margin-right: 10px;
    font-weight: bold;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* --- Contact Form --- */
.contact-form-container {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

#whatsapp-form {
    display: flex;
    flex-direction: column;
}

#whatsapp-form input,
#whatsapp-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

#whatsapp-form button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#whatsapp-form button:hover {
    background-color: #e55a00;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--gold-color);
    font-weight: bold;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 1rem;
    }
    
    header nav ul {
        justify-content: center;
    }
    
    header nav ul li {
        margin: 0 10px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 250px;
    }
}