:root {
    --primary: #0077b6;
    --primary-dark: #005f8d;
    --secondary: #48cae4;
    --accent: #90e0ef;
    --text-dark: #03045e;
    --text-light: #555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}
#navbar {
    position: fixed;       /* يثبت الهيدر أعلى الصفحة */
    top: 0;                /* أعلى الصفحة */
    left: 0;
    width: 100%;           /* يغطي كامل عرض الشاشة */
    z-index: 9999;         /* فوق كل العناصر */
    background-color: #ffffff; /* خلي الخلفية متناسقة مع الموقع */
    box-shadow: 0 2px 10px rgb(0, 0, 0); /* ظل خفيف أسفل الشريط */
    transition: all 0.3s ease; /* حركة سلسة عند التمرير */
}
body {
    padding-top: 80px; /* نفس ارتفاع الهيدر تقريباً */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: rgba(10,10,15,0.95);
    padding: 10px 0; /* أصغر padding عند التمرير */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 119, 182, 0.1), rgba(0, 119, 182, 0.05)), url('physiotherapy_hero_image.png');
    background-size: cover;
    background-position: center;
    margin-top: 0;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-item i {
    color: var(--primary);
}

/* Services */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Booking Section */
.booking {
    padding: 100px 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    color: var(--text-dark);
}

.booking-container h2 {
    text-align: center;
    margin-bottom: 40px;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
}

.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.form-full {
    grid-column: 1 / -1;
}

.booking-form .btn {
    grid-column: 1 / -1;
    margin-top: 10px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { background-attachment: scroll; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-btns { flex-direction: column; }
    .booking-form { grid-template-columns: 1fr; }
    .hero { text-align: center; }
    .hero-btns { justify-content: center; }
}
/* =========================
   NAVBAR FIX & MOBILE MENU
========================= */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Space under navbar */
body {
    padding-top: 90px;
}

/* Container layout */
#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Menu toggle animation */
.menu-toggle i {
    transition: transform 0.3s ease;
}



/* Change icon from bars to X */

.menu-toggle {
    position: relative;
    z-index: 10001; /* أعلى من navbar نفسه */
    cursor: pointer;
}
.menu-toggle {
    pointer-events: auto !important;
}

/* Nav links desktop */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
}

/* CTA button desktop */
.nav-btn {
    margin-right: 20px;
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {

    #navbar .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-btn {
        display: none;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        background: #ffffff;
        margin-top: 20px;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .nav-links li {
        padding: 12px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}
/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10001;
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {

    .menu-toggle {
        display: block; /* 👈 ده كان ناقص */
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        margin-top: 20px;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        text-align: center;
    }
}