/* Medical Miracle Polyclinic - Main Stylesheet */
:root {
    --primary: #9C1B6A;
    --primary-dark: #7B1560;
    --primary-light: #C44D9A;
    --primary-lighter: #E8B4D4;
    --primary-bg: #F5E6F0;
    --dark: #2D0A1F;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-primary: 0 10px 30px rgba(156, 27, 106, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --transition-base: 0.3s ease;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-ar);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}
a { text-decoration: none; color: inherit; transition: var(--transition-base); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); display: flex; align-items: center; justify-content: center;
    z-index: 99999; transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo { width: 100px; height: 100px; margin-bottom: 20px; }
.preloader-circle { animation: preloaderSpin 1.5s linear infinite; transform-origin: center; }
@keyframes preloaderSpin { to { stroke-dashoffset: 0; } }
.preloader-text {
    font-family: var(--font-ar); font-size: 1.2rem; font-weight: 700;
    color: var(--primary); animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Navigation */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 16px 0; transition: var(--transition-base); background: transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md); padding: 10px 0;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-svg { width: 50px; height: 50px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-ar { font-family: var(--font-ar); font-size: 1rem; font-weight: 700; color: var(--white); transition: var(--transition-base); }
.logo-en { font-family: var(--font-en); font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.8); letter-spacing: 1px; transition: var(--transition-base); }
.navbar.scrolled .logo-ar { color: var(--primary); }
.navbar.scrolled .logo-en { color: var(--gray-500); }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link { font-family: var(--font-ar); font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); padding: 8px 16px; border-radius: var(--radius-full); transition: var(--transition-base); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.15); }
.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--primary); background: var(--primary-bg); }
.nav-cta {
    display: flex; align-items: center; gap: 8px; background: var(--white); color: var(--primary);
    padding: 10px 24px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.85rem;
    margin-right: 16px; transition: var(--transition-base); box-shadow: var(--shadow-md);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--primary-bg); }
.navbar.scrolled .nav-cta { background: var(--primary); color: var(--white); }
.navbar.scrolled .nav-cta:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 1001; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition-base); }
.navbar.scrolled .nav-toggle span { background: var(--primary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.hero-particles .particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); animation: floatParticle linear infinite; }
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 24px 60px; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: var(--white); padding: 10px 24px; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600; margin-bottom: 32px; border: 1px solid rgba(255,255,255,0.2); }
.hero-badge i { color: #FFD700; }
.hero-title { margin-bottom: 24px; }
.title-line { display: block; font-family: var(--font-ar); font-size: 3.5rem; font-weight: 900; color: var(--white); line-height: 1.2; text-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.title-highlight { font-family: var(--font-en); font-size: 2rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 8px; letter-spacing: 2px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 40px; line-height: 1.9; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: var(--radius-full); font-family: var(--font-ar); font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition-base); border: none; outline: none; }
.btn-primary { background: var(--white); color: var(--primary); box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); transform: translateY(-3px); }
.btn-white { background: var(--white); color: var(--primary); box-shadow: var(--shadow-lg); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-en); font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 8px; font-weight: 500; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-down { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--white); animation: bounce 2s infinite; }
.scroll-down span { width: 2px; height: 30px; background: rgba(255,255,255,0.3); border-radius: 2px; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* Section Common */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; background: var(--primary-bg); color: var(--primary); padding: 8px 24px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; border: 1px solid var(--primary-lighter); }
.section-title { font-family: var(--font-ar); font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.3; }
.section-desc { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* About */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrapper { position: relative; }
.about-img-main { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-svg { width: 100%; height: auto; display: block; }
.about-img-float { position: absolute; background: var(--white); padding: 12px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; color: var(--dark); animation: float 3s ease-in-out infinite; }
.about-img-float i { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: 50%; font-size: 1rem; }
.about-float-1 { top: 20px; right: -20px; animation-delay: 0s; }
.about-float-2 { bottom: 80px; left: -20px; animation-delay: 0.5s; }
.about-float-3 { bottom: 20px; right: 20px; animation-delay: 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; line-height: 1.4; }
.about-text { color: var(--gray-600); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.about-feature { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { width: 50px; height: 50px; min-width: 50px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: var(--radius-md); font-size: 1.2rem; transition: var(--transition-base); }
.about-feature:hover .feature-icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.feature-text h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.feature-text p { font-size: 0.85rem; color: var(--gray-500); }

/* Services */
.services { padding: 100px 0; position: relative; background: var(--gray-50); overflow: hidden; }
.services-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.services-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C1B6A' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 1; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px 30px; position: relative; overflow: hidden; transition: var(--transition-base); border: 1px solid var(--gray-200); z-index: 1; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary-lighter); }
.service-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-bg) 0%, transparent 100%); opacity: 0; transition: var(--transition-base); z-index: -1; }
.service-card:hover .service-hover { opacity: 1; }
.service-icon { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: var(--radius-md); font-size: 1.8rem; margin-bottom: 24px; transition: var(--transition-base); }
.service-card:hover .service-icon { background: var(--primary); color: var(--white); transform: scale(1.1) rotate(-5deg); }
.service-content h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.service-content p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 0.9rem; transition: var(--transition-base); }
.service-link:hover { gap: 12px; color: var(--primary-dark); }

/* Why Us */
.why-us { padding: 100px 0; background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-desc { color: var(--gray-600); font-size: 1.05rem; line-height: 1.9; margin-bottom: 32px; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--gray-50); border-radius: var(--radius-md); border-right: 3px solid var(--primary); transition: var(--transition-base); }
.why-item:hover { background: var(--primary-bg); transform: translateX(-5px); }
.why-check { width: 28px; height: 28px; min-width: 28px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); border-radius: 50%; font-size: 0.8rem; }
.why-text h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.why-text p { font-size: 0.9rem; color: var(--gray-500); }
.why-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.why-circle { position: absolute; width: 300px; height: 300px; animation: rotateSlow 30s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.why-cards { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.why-card { display: flex; align-items: center; gap: 16px; background: var(--white); padding: 24px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-weight: 700; color: var(--dark); font-size: 1.1rem; transition: var(--transition-base); }
.why-card:hover { transform: translateX(-10px); box-shadow: var(--shadow-xl); }
.why-card i { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: var(--radius-md); font-size: 1.3rem; }
.why-card-1 { animation: float 4s ease-in-out infinite; }
.why-card-2 { animation: float 4s ease-in-out infinite 0.5s; }
.why-card-3 { animation: float 4s ease-in-out infinite 1s; }

/* Doctors */
.doctors { padding: 100px 0; background: var(--gray-50); }
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.doctor-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-base); border: 1px solid var(--gray-200); }
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.doctor-img { position: relative; height: 220px; background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-lighter) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.doctor-avatar { width: 100px; height: 100px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); box-shadow: var(--shadow-lg); transition: var(--transition-base); }
.doctor-card:hover .doctor-avatar { transform: scale(1.1); }
.doctor-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(156,27,106,0.1), transparent); }
.doctor-info { padding: 24px; text-align: center; }
.doctor-info h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.doctor-spec { display: inline-block; background: var(--primary-bg); color: var(--primary); padding: 4px 16px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; }
.doctor-info p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.7; }
.doctor-book { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--white); padding: 10px 24px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.85rem; transition: var(--transition-base); }
.doctor-book:hover { background: var(--primary-dark); transform: scale(1.05); box-shadow: var(--shadow-primary); }

/* Testimonials */
.testimonials { padding: 100px 0; background: var(--white); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track { display: flex; gap: 30px; transition: transform 0.5s ease; }
.testimonial-card { min-width: calc(33.333% - 20px); background: var(--gray-50); border-radius: var(--radius-lg); padding: 40px 30px; border: 1px solid var(--gray-200); transition: var(--transition-base); }
.testimonial-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-lighter); }
.testimonial-stars { color: #FFD700; margin-bottom: 20px; font-size: 0.9rem; }
.testimonial-text { font-size: 1rem; color: var(--gray-700); line-height: 1.9; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 50px; height: 50px; background: var(--primary-bg); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.author-info h4 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.author-info span { font-size: 0.85rem; color: var(--gray-500); }
.testimonials-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gray-300); cursor: pointer; transition: var(--transition-base); }
.dot.active { background: var(--primary); width: 30px; border-radius: 6px; }

/* Contact */
.contact { padding: 100px 0; position: relative; background: var(--gray-50); overflow: hidden; }
.contact-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.contact-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0z' fill='none'/%3E%3Ccircle cx='15' cy='15' r='2' fill='%239C1B6A' fill-opacity='0.04'/%3E%3C/svg%3E"); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; position: relative; z-index: 1; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; align-items: flex-start; gap: 20px; background: var(--white); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition-base); }
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateX(-5px); border-color: var(--primary-lighter); }
.contact-icon { width: 55px; height: 55px; min-width: 55px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: var(--radius-md); font-size: 1.3rem; transition: var(--transition-base); }
.contact-card:hover .contact-icon { background: var(--primary); color: var(--white); }
.contact-text h4 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.contact-text p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.8; }
.contact-link { display: block; color: var(--primary); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; transition: var(--transition-base); }
.contact-link:hover { color: var(--primary-dark); }
.contact-note { font-size: 0.85rem !important; color: var(--gray-400) !important; }
.contact-social { background: var(--white); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); text-align: center; }
.contact-social h4 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.social-links { display: flex; justify-content: center; gap: 16px; }
.social-link { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: 50%; font-size: 1.3rem; transition: var(--transition-base); }
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-5px) scale(1.1); box-shadow: var(--shadow-primary); }
.contact-map { position: relative; }
.map-wrapper { position: relative; height: 100%; min-height: 500px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-wrapper iframe { width: 100%; height: 100%; border: none; }
.map-overlay { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; }
.map-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--white); padding: 14px 28px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow-lg); transition: var(--transition-base); }
.map-btn:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-primary); }

/* CTA */
.cta-section { padding: 100px 0; position: relative; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); overflow: hidden; }
.cta-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cta-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-ar); font-size: 2.5rem; font-weight: 900; color: var(--white); margin-bottom: 20px; }
.cta-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 40px; line-height: 1.9; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--dark); color: var(--white); }
.footer-top { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-logo-svg { width: 60px; height: 60px; flex-shrink: 0; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-text span:first-child { font-family: var(--font-ar); font-size: 1.2rem; font-weight: 800; }
.footer-logo-text span:last-child { font-family: var(--font-en); font-size: 0.75rem; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.9; max-width: 300px; }
.footer-links h4, .footer-contact h4 { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.footer-links h4::after, .footer-contact h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 3px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 0.95rem; transition: var(--transition-base); }
.footer-links a:hover { color: var(--white); padding-right: 8px; }
.footer-links a i { font-size: 0.7rem; color: var(--primary-light); }
.footer-contact ul { display: flex; flex-direction: column; gap: 16px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-contact li i { color: var(--primary-light); margin-top: 4px; font-size: 1rem; }
.footer-contact a { color: rgba(255,255,255,0.6); transition: var(--transition-base); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: var(--white); border-radius: 50%; font-size: 1rem; transition: var(--transition-base); }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: var(--transition-base); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-5px); box-shadow: var(--shadow-primary); }

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .title-line { font-size: 2.5rem; }
    .title-highlight { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px; height: 100vh; background: var(--white); flex-direction: column; padding: 100px 30px 30px; gap: 8px; transition: var(--transition-base); box-shadow: var(--shadow-xl); z-index: 999; }
    .nav-menu.active { right: 0; }
    .nav-link { color: var(--gray-800); padding: 12px 20px; width: 100%; border-radius: var(--radius-md); }
    .nav-link:hover, .nav-link.active { background: var(--primary-bg); color: var(--primary); }
    .nav-cta { margin: 16px 0 0; justify-content: center; width: 100%; background: var(--primary); color: var(--white); }
    .title-line { font-size: 2rem; }
    .title-highlight { font-size: 1.2rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.8rem; }
    .services-grid, .doctors-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .testimonial-card { min-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .section-title { font-size: 1.8rem; }
    .cta-content h2 { font-size: 1.8rem; }
    .why-visual { min-height: 300px; }
    .map-wrapper { min-height: 350px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-container { padding: 0 16px; }
    .title-line { font-size: 1.6rem; }
    .title-highlight { font-size: 1rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .section-title { font-size: 1.5rem; }
    .about-title { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .contact-card { padding: 20px; }
    .service-card { padding: 30px 20px; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
::selection { background: var(--primary); color: var(--white); }
