/* ===== VARIABLES ===== */
:root {
    --primary: #29ABE2;
    --primary-light: #4DC3EE;
    --primary-dark: #0077B6;
    --accent: #D91C7E;
    --accent-light: #F06E9B;
    --highlight: #F7A11A;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --white: #FFFFFF;
    --bg-light: #F0FAFF;
    --bg-alt: #FFF5FA;
    --text-dark: #1A1A2E;
    --text-med: #4A5568;
    --text-light: #718096;
    --border: #E2EEF5;
    --shadow-sm: 0 2px 8px rgba(41,171,226,0.08);
    --shadow: 0 4px 24px rgba(41,171,226,0.12);
    --shadow-lg: 0 12px 48px rgba(41,171,226,0.16);
    --radius: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ar);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
}
[lang="en"] body, [lang="en"] { font-family: var(--font-en); }
[lang="ar"] body, [lang="ar"] { font-family: var(--font-ar); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41,171,226,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION COMMON ===== */
.section { padding: 96px 0; }
.bg-white { background: #fff; }
.bg-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-tag.light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}
.section-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}
.section-title.white { color: #fff; }
.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== ANIMATE ON SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 9px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.top-bar i { margin-left: 5px; }
[dir="ltr"] .top-bar i { margin-left: 0; margin-right: 5px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    font-size: 14px;
}
.social-links a:hover { color: #fff; }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(41,171,226,0.25);
}
.logo-icon-img {
    background: #fff !important;
    padding: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(41,171,226,0.18);
}
.logo-icon-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 19px; font-weight: 800; color: var(--primary-dark); }
.logo-tagline { font-size: 11px; color: var(--text-light); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-med);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--bg-light);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-med);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.shape-1 { width: 600px; height: 600px; top: -200px; left: -100px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; right: -150px; }
.shape-3 { width: 200px; height: 200px; top: 50%; right: 50%; background: rgba(255,255,255,0.06); }
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.95);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}
.hero-title .highlight {
    color: #90CAF9;
}
.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 28px;
}
/* Service Pills in Hero */
.hero-services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.pill:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    gap: 0;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 18px;
    text-align: center;
}
.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-suffix { font-size: 20px; font-weight: 800; color: #90CAF9; display: inline; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
}
.hero-card-main {
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(16px);
}
.pulse-ring {
    position: absolute;
    width: 100%; height: 100%;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: pulse-out 2.5s ease-out infinite;
}
.pulse-ring-2 { animation-delay: 1.25s; }
@keyframes pulse-out {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}
.hero-cross-wrap { font-size: 80px; color: rgba(255,255,255,0.9); display:flex; align-items:center; justify-content:center; }
.logo-circle-hero {
    width: 220px; height: 220px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 18px;
    box-sizing: border-box;
}
.logo-circle-hero img { width: 100%; height: 100%; object-fit: contain; }
.hero-cert-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}
.floating-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    animation: float 3s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); }
.floating-card small { font-size: 11px; color: var(--text-light); }
.card-1 { top: 90px;    right: -20px; animation-delay: 0s; }
.card-2 { top: 90px;    left:  -20px; animation-delay: 0.8s; }
.card-3 { top: -10px;   left:   50%; animation: float-center 3s ease-in-out infinite; animation-delay: 0.4s; }
.card-4 { bottom: 60px; right: -20px; animation-delay: 1.6s; }
.card-5 { bottom: 60px; left:  -20px; animation-delay: 2.2s; }
[dir="ltr"] .card-1 { right: auto; left:  -20px; }
[dir="ltr"] .card-2 { left:  auto; right: -20px; }
[dir="ltr"] .card-4 { right: auto; left:  -20px; }
[dir="ltr"] .card-5 { left:  auto; right: -20px; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.fc-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.fc-icon.red   { background: #FFEBEE; color: #E53935; }
.fc-icon.blue  { background: #EDE7F6; color: #6A1B9A; }
.fc-icon.yellow{ background: #FFF8E1; color: #F9A825; }
.fc-icon.teal  { background: #E0F7FA; color: #00838F; }
.fc-icon.green { background: #E8F5E9; color: #2E7D32; }
/* card-4 and card-5 positions now handled in block above */
@keyframes float-center {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-10px); }
}
.hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.service-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}
.service-icon {
    width: 62px; height: 62px;
    border-radius: 16px;
    background: var(--sbg);
    color: var(--scolor);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--scolor);
    color: #fff;
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ===== WHY SECTION ===== */
.why-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.why-section::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.why-intro { color: rgba(255,255,255,0.82); font-size: 16px; margin-bottom: 36px; line-height: 1.8; }
.why-features { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.why-feature { display: flex; align-items: flex-start; gap: 16px; }
.why-icon-wrap {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90CAF9;
    font-size: 18px;
    flex-shrink: 0;
}
.why-feature h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.why-feature p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.why-card-main {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    backdrop-filter: blur(16px);
    margin-bottom: 20px;
}
.why-card-icon { font-size: 56px; color: rgba(255,255,255,0.9); margin-bottom: 16px; display:flex; align-items:center; justify-content:center; }
.logo-circle-why {
    width: 170px; height: 170px;
    border-radius: 50%;
    background: rgba(255,255,255,0.97);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 15px;
    box-sizing: border-box;
    margin: 0 auto;
}
.logo-circle-why img { width: 100%; height: 100%; object-fit: contain; }
.why-card-main h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.why-card-main p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.cert-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cert-badge {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cert-badge i { color: #90CAF9; }
.why-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-mini-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    backdrop-filter: blur(8px);
}
.why-mini-card i { font-size: 28px; color: #90CAF9; margin-bottom: 8px; display: block; }
.why-mini-card strong { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.why-mini-card span { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== DOCTORS ===== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.doctor-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.doctor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary);
}
.doctor-avatar {
    background: var(--dbg);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: var(--dc);
    position: relative;
}
.doctor-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
[dir="ltr"] .doctor-badge { left: auto; right: 12px; }
.doctor-badge.available { color: #2E7D32; }
.doctor-badge.available i { font-size: 8px; }
.doctor-info { padding: 24px; }
.doctor-info h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.doctor-specialty {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.doctor-info p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.doctor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.doctor-meta i { margin-left: 4px; color: var(--primary); }
[dir="ltr"] .doctor-meta i { margin-left: 0; margin-right: 4px; }
.rating { color: #F9A825; font-weight: 700; }
.rating i { color: #F9A825; }

/* ===== APPOINTMENTS ===== */
.appointments-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.appointments-section::before {
    content: '';
    position: absolute;
    bottom: -150px; right: -100px;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.appointments-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.appointments-info { padding-top: 12px; }
.appt-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.appt-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}
.appt-feature i { color: #90CAF9; font-size: 18px; flex-shrink: 0; }
.contact-quick-list { display: flex; flex-direction: column; gap: 12px; }
.contact-quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: var(--transition);
}
.contact-quick-item:hover { background: rgba(255,255,255,0.15); }
.cq-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.cq-icon.green { background: rgba(37,211,102,0.3); color: #81C784; }
.contact-quick-item small { display: block; font-size: 11px; color: rgba(255,255,255,0.7); }
.contact-quick-item strong { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }

/* Appointment Form */
.appt-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.appt-form { padding: 36px; }
.appt-form h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-med);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-alt);
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 20px;
    padding-left: 40px;
}
[dir="ltr"] .form-group select {
    background-position: right 12px center;
    padding-left: 16px;
    padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(41,171,226,0.08);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}
.form-note i { color: var(--whatsapp); margin-left: 4px; }
.form-success {
    display: none;
    padding: 48px 36px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.form-success.show { display: flex; }
.success-icon { font-size: 64px; color: #4CAF50; }
.form-success h3 { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.form-success p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ===== CONTACT ===== */
#contact {
    background: url('../images/profile.jpeg') center/cover no-repeat;
    position: relative;
}
#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 0;
}
#contact .container {
    position: relative;
    z-index: 1;
}
#contact .section-tag {
    background: rgba(255,255,255,0.3);
    color: var(--primary);
    border: 1px solid rgba(255,255,255,0.6);
}
#contact .section-title {
    color: var(--primary);
}
#contact .section-subtitle {
    color: var(--primary);
    font-weight: 600;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.contact-icon {
    width: 44px; height: 44px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-icon.green-icon {
    background: rgba(37,211,102,0.1);
    color: var(--whatsapp);
}
.contact-card h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.contact-social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}
.social-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.map-wrapper { min-height: 460px; }
.map-placeholder {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    height: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(41,171,226,0.04) 0, rgba(41,171,226,0.04) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(41,171,226,0.04) 0, rgba(41,171,226,0.04) 1px, transparent 1px, transparent 40px);
}
.map-overlay { position: relative; z-index: 1; text-align: center; padding: 36px 24px; }
.map-pin-anim {
    font-size: 64px;
    color: #fff;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    animation: pin-bounce 1.5s ease-in-out infinite;
    display: block;
}
@keyframes pin-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.map-overlay h3 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.map-overlay p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 16px; line-height: 1.8; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.map-overlay .btn + .btn { display: block; width: fit-content; margin: 0 auto; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #D8E8F8; border-radius: 16px; overflow: hidden; transition: box-shadow 0.25s; }
.faq-item:hover, .faq-item.open { box-shadow: 0 4px 20px rgba(41,171,226,0.10); }
.faq-q {
    width: 100%; background: none; border: none; padding: 20px 24px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
    gap: 16px; cursor: pointer; text-align: right; font-size: 16px; font-weight: 700;
    color: var(--primary-dark); font-family: inherit; transition: background 0.2s;
}
.faq-q:hover { background: #F0F7FF; }
.faq-icon { color: var(--primary); transition: transform 0.3s; -ms-flex-negative: 0; flex-shrink: 0; font-size: 14px; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 24px 20px; color: #555; line-height: 1.9; font-size: 15px; margin: 0; }
.faq-a a { color: var(--primary); text-decoration: underline; }
[dir="ltr"] .faq-q { text-align: left; }
.topbar-link { color: inherit; text-decoration: none; }
.topbar-link:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer { background: var(--text-dark); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}
.footer-about .logo { margin-bottom: 16px; }
.footer-about .logo-name { color: #fff; }
.footer-about .logo-tagline { color: rgba(255,255,255,0.5); }
.footer-about p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #90CAF9; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.footer-contact-list i { color: #90CAF9; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom-links a:hover { color: #90CAF9; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
[dir="ltr"] .back-to-top { left: auto; right: 28px; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* ===== MOBILE MENU ===== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 999;
    }
    [dir="ltr"] .nav { right: auto; left: -100%; transition: left 0.3s ease; }
    .nav.open { right: 0; }
    [dir="ltr"] .nav.open { left: 0; }
    .nav-link { width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 16px; }
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }
    .nav-overlay.open { display: block; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { min-height: 320px; }
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .appointments-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-wrapper { min-height: 340px; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .services-grid-3 { grid-template-columns: 1fr; }
    .doctors-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding: 80px 0 60px; }
    .hero-title { font-size: 34px; }
    .floating-card { display: none; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }
    .stat { padding: 8px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .top-bar-left { display: none; }
    .header .btn-sm { display: none; }
    .hero-services-pills { gap: 6px; }
    .pill { font-size: 12px; padding: 5px 12px; }
    .contact-social-row { flex-direction: column; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 58px; height: 58px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    z-index: 998;
    text-decoration: none;
    animation: waPulse 2.5s infinite;
    transition: transform 0.3s;
}
[dir="ltr"] .whatsapp-float { right: auto; left: 28px; }
.whatsapp-float:hover { transform: scale(1.12); color: #fff; }
.wa-float-tip {
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: var(--font-ar);
}
[dir="ltr"] .wa-float-tip { right: auto; left: 70px; }
.whatsapp-float:hover .wa-float-tip { opacity: 1; }
@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== GALLERY ===== */
.gallery-section { background: #fff; }
.gallery-tabs {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
}
.gallery-tab {
    padding: 8px 22px;
    border: 1.5px solid var(--border);
    background: transparent;
    border-radius: 50px;
    font-family: var(--font-ar);
    font-size: 14px; cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
}
.gallery-tab:hover, .gallery-tab.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 16px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
    background: var(--bg-light);
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.gallery-item.g-hidden { display: none; }
.ba-wrapper { display: flex; height: 190px; position: relative; }
.ba-side { flex: 1; position: relative; overflow: hidden; }
.ba-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-placeholder {
    width: 100%; height: 100%;
    background: var(--bac, #ccc);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75); font-size: 36px; gap: 6px;
}
.ba-label {
    position: absolute; bottom: 8px; right: 8px;
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 4px; color: #fff;
}
[dir="ltr"] .ba-label { right: auto; left: 8px; }
.ba-before { background: rgba(0,0,0,0.45); }
.ba-after  { background: var(--primary); }
.ba-divider {
    width: 28px; background: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 13px;
}
.gallery-info { padding: 14px 16px; }
.gbadge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 50px; margin-bottom: 6px;
}
.dental-b { background: #E0F4FC; color: #0077B6; }
.skin-b   { background: #F3E5F5; color: #7B1FA2; }
.laser-b  { background: #E8F5E9; color: #1B5E20; }
.cosm-b   { background: #FFF3E0; color: #BF360C; }
.gallery-info p { font-size: 13px; color: var(--text-light); margin: 0; }
.gallery-note { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: linear-gradient(180deg, #EDF4FF 0%, #F5F9FF 100%);
}
.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px;
}
@media (max-width: 960px) { .testimonials-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr !important; } }

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 22px;
    border: 1px solid #D8E8F8;
    box-shadow: 0 4px 20px rgba(41,171,226,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(41,171,226,0.13);
}
.testimonial-card::before {
    content: '\201C';
    position: absolute; top: 14px; right: 20px;
    font-size: 80px; line-height: 1;
    color: var(--primary); opacity: 0.07;
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
}
[dir="ltr"] .testimonial-card::before { right: auto; left: 20px; }

.testi-stars { color: #F59E0B; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }

.testi-text {
    font-size: 14px; color: var(--text);
    line-height: 1.85;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-bottom: 22px;
}

.testi-author {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #E8F0FA;
    padding-top: 16px;
}

.testi-avatar {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 50%;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.testi-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.testi-info strong {
    display: block; font-size: 14px; font-weight: 700;
    color: var(--text); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.testi-info span { font-size: 12px; color: var(--text-light); }

.testi-badge {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 11px; font-weight: 600;
    background: #E8F5E9; color: #2E7D32;
    padding: 4px 10px; border-radius: 50px;
    white-space: nowrap;
    margin-right: auto;
}
[dir="ltr"] .testi-badge { margin-right: 0; margin-left: auto; }
