/* ============================================================
   ROOT VARIABLES & RESET
   ============================================================ */
:root {
    --primary:    #0d5c63;
    --primary-dk: #073b40;
    --accent:     #2dd4bf;
    --accent-dk:  #14b8a6;
    --gold:       #d4af37;
    --bg:         #f0f7f7;
    --white:      #ffffff;
    --text:       #1f2d2e;
    --text-light: #5b7173;
    --border:     #dce8e8;
    --success:    #38a169;
    --star-on:    #f6ad55;
    --star-off:   #cbd5e0;
    --shadow:     0 10px 40px rgba(13,92,99,.10);
    --shadow-lg:  0 20px 60px rgba(13,92,99,.18);
    --radius:     16px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* RTL body override */
body.rtl { direction: rtl; text-align: right; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

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

section { padding: 80px 0; }

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -.5px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 52px;
    font-size: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,95,138,.3); }

.btn-sm { padding: 8px 20px; font-size: .85rem; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #2f855a; }

.btn-danger { background: #e53e3e; color: var(--white); }
.btn-danger:hover { background: #c53030; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(145deg, var(--primary), var(--accent-dk));
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13,92,99,.3);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name  { font-size: 1rem; font-weight: 700; color: var(--primary); }
.logo-title { font-size: .75rem; color: var(--text-light); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: .9rem; font-weight: 500; color: var(--text); transition: var(--transition); }
.nav a:hover { color: var(--primary); }

.lang-switcher { display: flex; gap: 6px; }

.lang-btn {
    padding: 5px 10px;
    border: 1.5px solid var(--border);
    background: transparent;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}
.lang-btn:hover,
.lang-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 96px 0 104px;
    background:
        radial-gradient(circle at 80% 20%, rgba(45,212,191,.25), transparent 45%),
        linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 55%, #117a82 100%);
}

/* subtle dotted medical texture */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}

/* floating decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}
.hero-blob-1 {
    width: 320px; height: 320px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(45,212,191,.45), transparent 70%);
    animation: float 9s ease-in-out infinite;
}
.hero-blob-2 {
    width: 240px; height: 240px;
    bottom: -100px; left: -60px;
    background: radial-gradient(circle, rgba(212,175,55,.30), transparent 70%);
    animation: float 11s ease-in-out infinite reverse;
}

/* faint floating plus signs */
.hero-cross {
    position: absolute;
    color: rgba(255,255,255,.10);
    font-weight: 700;
    pointer-events: none;
}
.hero-cross-1 { font-size: 9rem;  top: 30px;  left: 44%;  animation: float 8s ease-in-out infinite; }
.hero-cross-2 { font-size: 5rem;  bottom: 40px; right: 38%; animation: float 10s ease-in-out infinite reverse; }

@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-22px); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero-text { flex: 1; }

.hero-greeting {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    background: rgba(45,212,191,.12);
    border: 1px solid rgba(45,212,191,.35);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,.88);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.02rem;
    color: rgba(255,255,255,.8);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.hero .btn-primary:hover { background: var(--accent); color: var(--primary-dk); }

.btn-ghost {
    background: rgba(255,255,255,.10);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* hero stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}
.stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    margin-top: 6px;
}
.stat-divider {
    width: 1px;
    height: 42px;
    background: rgba(255,255,255,.22);
}

/* hero photo */
.hero-photo { flex-shrink: 0; position: relative; }

.photo-ring {
    width: 300px; height: 340px;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.4), rgba(45,212,191,.4));
    box-shadow: 0 25px 60px rgba(0,0,0,.30);
}

.photo-placeholder {
    width: 100%; height: 100%;
    background: rgba(255,255,255,.12);
    border: 2px dashed rgba(255,255,255,.55);
    border-radius: 20px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,.85);
    gap: 12px;
    backdrop-filter: blur(2px);
}

/* the doctor's real photo, framed inside the ring */
.doctor-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 20px;
    display: block;
}

.photo-icon { font-size: 4.5rem; }
.photo-placeholder p { font-size: .85rem; opacity: .8; }

.photo-badge {
    position: absolute;
    bottom: 18px; left: -22px;
    display: flex; align-items: center; gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}
.photo-badge-icon { font-size: 1rem; }
body.rtl .photo-badge { left: auto; right: -22px; }

/* ============================================================
   SPECIALTIES
   ============================================================ */
.specialties { background: var(--white); }

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.specialty-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 26px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.specialty-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.specialty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.specialty-card:hover::before { transform: scaleX(1); }

.specialty-icon {
    width: 70px; height: 70px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    background: linear-gradient(145deg, rgba(45,212,191,.15), rgba(13,92,99,.10));
    border-radius: 50%;
    transition: var(--transition);
}
.specialty-card:hover .specialty-icon {
    background: linear-gradient(145deg, var(--primary), var(--accent-dk));
    color: var(--white);
    transform: rotate(8deg) scale(1.05);
}

.specialty-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.specialty-card p  { font-size: .875rem; color: var(--text-light); }

/* ============================================================
   CLINIC INFO
   ============================================================ */
.clinic-info { background: var(--bg); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-size: .95rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.info-card p  { font-size: .875rem; color: var(--text-light); }

/* Private "Request a Visit" form */
.contact-form {
    max-width: 560px;
    margin: 48px auto 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}
.contact-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 6px;
}
.contact-form-note {
    text-align: center;
    color: var(--text-light);
    font-size: .9rem;
    margin-bottom: 28px;
}
.contact-form .btn-primary { width: 100%; padding: 14px; font-size: 1rem; }

/* hidden anti-spam field (never shown to patients) */
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* small privacy note under the forms */
.form-note {
    font-size: .8rem;
    color: var(--text-light);
    background: var(--bg);
    border-inline-start: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { background: var(--white); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.review-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 12px; left: 20px;
    font-size: 3rem;
    color: var(--accent);
    opacity: .4;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars { color: var(--star-on); font-size: 1.1rem; margin-bottom: 10px; }
.review-text  { font-size: .9rem; color: var(--text); margin-bottom: 16px; line-height: 1.7; }

.review-footer { display: flex; align-items: center; justify-content: space-between; }
.reviewer-name { font-weight: 600; font-size: .875rem; color: var(--primary); }
.review-date   { font-size: .78rem; color: var(--text-light); }

.no-reviews-msg {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: .95rem;
    display: none;
}

/* ============================================================
   REVIEW FORM
   ============================================================ */
.write-review-section {
    background: var(--bg);
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,138,.12); }

.form-group textarea { resize: vertical; }

/* Star Rating */
.star-rating { display: flex; gap: 8px; cursor: pointer; }
.star {
    font-size: 2rem;
    color: var(--star-off);
    transition: var(--transition);
    user-select: none;
}
.star.active, .star.hover { color: var(--star-on); }

.review-form .btn-primary { width: 100%; padding: 14px; font-size: 1rem; }

/* Success message */
.success-msg {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: none;
}

.success-check {
    width: 64px; height: 64px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.success-msg h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; }
.success-msg p  { color: var(--text-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-dk);
    color: rgba(255,255,255,.7);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
}

.footer-links { display: flex; align-items: center; gap: 20px; }

.admin-link {
    color: rgba(255,255,255,.4);
    font-size: .8rem;
    transition: var(--transition);
}
.admin-link:hover { color: rgba(255,255,255,.9); }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-body { background: var(--bg); min-height: 100vh; }

.admin-header {
    background: var(--primary-dk);
    color: var(--white);
    padding: 20px 0;
    margin-bottom: 40px;
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 1.3rem; }
.admin-header a { color: rgba(255,255,255,.7); font-size: .85rem; }

.login-box {
    max-width: 420px;
    margin: 80px auto;
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.login-box h2 { color: var(--primary); margin-bottom: 8px; }
.login-box p  { color: var(--text-light); font-size: .9rem; margin-bottom: 28px; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.tab-btn {
    flex: 1; padding: 12px;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.admin-review-card .top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.admin-review-card .name  { font-weight: 700; color: var(--primary); }
.admin-review-card .date  { font-size: .8rem; color: var(--text-light); }
.admin-review-card .stars { color: var(--star-on); margin-bottom: 10px; }
.admin-review-card .text  { font-size: .9rem; color: var(--text); margin-bottom: 16px; }
.admin-review-card .actions { display: flex; gap: 10px; }

.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--accent);
    color: var(--white);
    margin-left: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.4rem; }
    .hero-photo { order: -1; }
    .photo-ring { width: 230px; height: 270px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 18px; }
    .hero-greeting { margin-top: 4px; }
    .photo-badge { left: 50%; transform: translateX(-50%); bottom: -14px; }
    body.rtl .photo-badge { right: auto; left: 50%; }

    .nav { display: none; }

    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
    .header-inner { flex-wrap: wrap; }

    section { padding: 56px 0; }
    .review-form { padding: 28px 20px; }
}
