/*
Theme Name: Tiba Dental Center
Theme URI: https://tiba.site
Author: Hicham Oukal
Author URI: https://tiba.site
Description: Professional dental clinic theme for Tiba Center — Antwerp, Belgium. Trilingual (AR/EN/NL), modern medical design.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: tiba
Tags: medical, dental, rtl-language, multilingual, responsive
*/

/* ============================================================
   TIBA DENTAL CENTER — WordPress Theme
   Design: Navy #0D1B2A | Teal #1A7A8A | Gold #C9A84C
   ============================================================ */

:root {
  --navy:   #0D1B2A;
  --teal:   #1A7A8A;
  --teal2:  #15939F;
  --gold:   #C9A84C;
  --light:  #F4F7FB;
  --card:   #FFFFFF;
  --text:   #1E2D3D;
  --muted:  #5A7184;
  --line:   #E2EAF2;
  --r:      12px;
  --shadow: 0 4px 24px rgba(13,27,42,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

body.rtl,
body[dir="rtl"] {
  font-family: 'Cairo', 'Tahoma', Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.3; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--muted); }
a  { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 32px, 1180px); margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ── Header ── */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
/* Logo */
.logo-img-link { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  /* الخلفية البيضاء للصورة شفافة — لا نحتاج filter */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
  transition: opacity .2s, transform .2s;
}
.logo-img:hover { opacity: .88; transform: scale(1.03); }
/* للتوافق مع الكلاس القديم */
.logo-img-transparent {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
  transition: opacity .2s;
}
.logo-img-transparent:hover { opacity: .85; }

.site-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px; height: 48px; background: var(--teal);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 28px; height: 28px; fill: #fff; }
.logo-text { color: #fff; }
.logo-text .name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.3px; }
.logo-text .sub  { font-size: .72rem; color: #8AAFCA; font-weight: 400; letter-spacing: .5px; }

/* Nav */
#site-nav { display: flex; align-items: center; gap: 6px; }
#site-nav a {
  color: #CBD9E8; font-size: .9rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; transition: .18s;
}
#site-nav a:hover, #site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }

/* Lang switcher */
.lang-switcher { display: flex; gap: 6px; }
.lang-btn {
  padding: 6px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700;
  cursor: pointer; border: 1px solid rgba(255,255,255,.25);
  color: #CBD9E8; background: transparent; transition: .18s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--teal); color: #fff; border-color: var(--teal);
}

/* Mobile menu */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ── Hero ── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3A5C 60%, var(--teal) 100%);
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  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%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.15); color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
  padding: 6px 16px; border-radius: 30px; font-size: .8rem; font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge svg { width: 14px; height: 14px; fill: currentColor; }
#hero h1 { color: #fff; margin-bottom: 18px; }
#hero h1 span { color: var(--gold); }
#hero p { color: #8AAFCA; font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.hstat { color: #fff; }
.hstat strong { display: block; font-size: 1.8rem; color: var(--gold); font-weight: 800; }
.hstat span   { font-size: .8rem; color: #8AAFCA; }

/* Hero image card */
.hero-visual {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(10px);
}
.hero-img-wrap {
  border-radius: 14px; overflow: hidden; margin-bottom: 18px;
  height: 240px; background: linear-gradient(135deg,#1A7A8A,#0D4A6E);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap svg { width: 100px; height: 100px; fill: rgba(255,255,255,.3); }
.hero-img-wrap img { width:100%; height:100%; object-fit:cover; }
.clinic-info { color: #CBD9E8; }
.clinic-info h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.clinic-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 6px; }
.clinic-row svg { width: 14px; height: 14px; fill: var(--teal2); flex-shrink: 0; }

/* ── Section head ── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--teal); font-size: .8rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { max-width: 580px; margin: 0 auto; }

/* ── Specialties ── */
#specialties { padding: 80px 0; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.spec-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 24px;
  box-shadow: var(--shadow); transition: .25s;
  position: relative; overflow: hidden;
}
.spec-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 4px; height: 100%; background: var(--teal);
  border-radius: 0 var(--r) var(--r) 0;
}
body:not(.rtl) .spec-card::before { right: auto; left: 0; }
.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,27,42,.14);
  border-color: var(--teal);
}
.spec-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.spec-icon svg { width: 28px; height: 28px; fill: #fff; }
.spec-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.spec-card p  { font-size: .88rem; line-height: 1.65; }
.spec-tag {
  display: inline-block; margin-top: 14px;
  background: rgba(26,122,138,.08); color: var(--teal);
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}

/* ── Why us ── */
#why { background: var(--navy); padding: 80px 0; }
#why .section-head h2 { color: #fff; }
#why .section-head p  { color: #8AAFCA; }
#why .section-head .eyebrow { color: var(--gold); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 24px;
}
.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r); padding: 28px 22px; text-align: center;
}
.why-num {
  font-size: 2.2rem; font-weight: 800; color: var(--gold); margin-bottom: 8px;
}
.why-card h4 { color: #fff; margin-bottom: 8px; }
.why-card p  { color: #8AAFCA; font-size: .88rem; }

/* ── Team ── */
#team { padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 28px; }
.team-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transition: .25s; text-align: center;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(13,27,42,.13); }
.team-photo {
  height: 200px; background: linear-gradient(135deg,#E8F4F8,#C8E4EC);
  display: flex; align-items: center; justify-content: center;
}
.team-photo svg { width: 80px; height: 80px; fill: var(--teal); opacity: .6; }
.team-photo img { width:100%; height:100%; object-fit:cover; }
.team-info { padding: 20px; }
.team-info h3 { font-size: 1rem; margin-bottom: 4px; }
.team-info .role { color: var(--teal); font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.team-info p { font-size: .83rem; }

/* ── CTA ── */
#cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 72px 0; text-align: center;
}
#cta h2 { color: #fff; margin-bottom: 14px; }
#cta p  { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gold); color: var(--navy); }

/* ── Footer ── */
#site-footer { background: #070F18; padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px;
}
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: #5A7A96; font-size: .85rem; line-height: 1.8; }
.footer-col a:hover { color: var(--teal2); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #1A2D40; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: #3A5470; font-size: .82rem; }

/* ── Contact form ── */
#contact { padding: 80px 0; background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--card); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: .92rem; color: var(--text); background: #fff;
  transition: .18s; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,122,138,.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.contact-info h3 { margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon {
  width: 44px; height: 44px; background: rgba(26,122,138,.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; fill: var(--teal); }
.info-item h4 { font-size: .9rem; margin-bottom: 2px; }
.info-item p  { font-size: .85rem; }

/* ── Map embed ── */
.map-wrap { border-radius: var(--r); overflow: hidden; margin-top: 28px; height: 220px; }
.map-wrap iframe { width:100%; height:100%; border:0; }

/* ── Responsive ── */
@media(max-width:1024px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media(max-width:768px){
  /* ─ hide desktop nav — show hamburger ─ */
  #site-nav { display: none; }
  #site-nav.open, #site-nav.nav-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; right: 0; left: 0; background: var(--navy);
    padding: 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 999;
  }
  /* ─ lang switcher: always visible on mobile (inline in header) ─ */
  .lang-switcher {
    display: flex !important;
    gap: 4px;
  }
  .lang-btn {
    padding: 5px 9px;
    font-size: .72rem;
  }
  .menu-toggle { display: flex; }
  #site-header { position: relative; }
  .header-inner { position: relative; flex-wrap: nowrap; gap: 8px; padding: 10px 0; }
  /* keep logo from shrinking */
  .site-logo { flex-shrink: 0; }
  .logo-img  { height: 52px; }
  .hero-stats { gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px){
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions  { flex-direction: column; align-items: center; }
  .header-inner { gap: 6px; }
  .lang-btn { padding: 4px 7px; font-size: .68rem; }
}

/* ═══════════════════════════════════ HERO SECTION ═══════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a3a5c 0%, #1e4d72 60%, #2a6090 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(26,122,138,0.12);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 300px; height: 300px; bottom: 50px; left: -80px; background: rgba(201,168,76,0.08); }
.shape-3 { width: 150px; height: 150px; top: 40%; right: 30%; }
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { color: white; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}
.hero-accent { color: var(--teal); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.stat-item.visible { opacity: 1; transform: none; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.hero-visual { position: relative; }
.hero-image-wrap { position: relative; }
.hero-svg-art { width: 100%; max-width: 420px; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.hero-smile-photo {
  width: 100%;
  max-width: 480px;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: block;
}
/* Booking banner */
.booking-banner-section { background: linear-gradient(90deg, #1A7A8A 0%, #0d5f6e 100%); padding: 32px 0; }
.booking-banner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.booking-banner-icon { font-size: 2.5rem; flex-shrink: 0; }
.booking-banner-text { flex: 1; color: white; }
.booking-banner-text h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 4px; }
.booking-banner-text p { margin: 0; opacity: 0.88; font-size: 0.95rem; }
.btn-booking-large { background: white; color: #1A7A8A; font-weight: 700; white-space: nowrap; font-size: 1rem; padding: 14px 28px; border-radius: 50px; text-decoration: none; transition: background .2s, color .2s, transform .2s; flex-shrink: 0; }
.btn-booking-large:hover { background: var(--gold); color: white; transform: scale(1.04); }
body.rtl .booking-banner { flex-direction: row-reverse; }
/* Hero booking button variant */
.btn-booking { background: var(--gold); color: #0D1B2A !important; font-weight: 700; }
.hero-badge-float {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.hero-badge-float-1 { bottom: 40px; left: -30px; }
.hero-badge-float-2 { top: 30px; right: -20px; }

/* ═══════════════════════════════════ SPECIALTIES ═══════════════════════════════════ */
.specialties-section { padding: 100px 0; background: var(--light); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(26,122,138,0.1);
  color: var(--teal);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.section-sub { color: var(--gray); max-width: 580px; margin: 0 auto; line-height: 1.7; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.spec-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #e8edf2;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}
.spec-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
  border-radius: 4px 0 0 4px;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
body.rtl .spec-card::before { left: auto; right: 0; border-radius: 0 4px 4px 0; }
.spec-card:hover::before { transform: scaleY(1); }
.spec-card:hover { box-shadow: 0 12px 40px rgba(13,27,42,0.12); transform: translateY(-4px); }
.spec-card.visible { opacity: 1; transform: translateY(0); }
.spec-icon { width: 80px; height: 80px; margin-bottom: 20px; }
.spec-icon svg { width: 100%; height: 100%; }
.spec-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.spec-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.65; margin-bottom: 20px; }
.spec-link { color: var(--teal); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.spec-link:hover { color: var(--navy); }

/* ═══════════════════════════════════ WHY US ═══════════════════════════════════ */
.why-section { padding: 100px 0; background: white; }
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-svg { width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(13,27,42,0.15); }
.why-content {}
.why-features { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}
body.rtl .why-feature { transform: translateX(20px); }
.why-feature.visible { opacity: 1; transform: none; }
.why-icon { font-size: 1.6rem; flex-shrink: 0; }
.why-feature h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-feature p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ═══════════════════════════════════ TEAM ═══════════════════════════════════ */
.team-section { padding: 100px 0; background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 10px; }
.team-card {
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(13,27,42,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}
.team-card.visible { opacity: 1; transform: none; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,27,42,0.12); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; }
.team-avatar svg { width: 100%; height: 100%; }
.team-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--teal); font-weight: 600; display: block; margin-bottom: 12px; }
.team-bio { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ═══════════════════════════════════ AI SECTION ═══════════════════════════════════ */
.ai-section { padding: 100px 0; background: linear-gradient(135deg, var(--navy) 0%, #0e3550 100%); }
.ai-section .section-tag { background: rgba(201,168,76,0.2); color: var(--gold); }
.ai-section .section-title { color: white; }
.ai-section .section-sub { color: rgba(255,255,255,0.7); }
.ai-chat-wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; max-width: 800px; margin: 0 auto; }
.ai-chat-box {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  flex: 1;
}
.ai-messages {
  height: 320px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-msg { display: flex; align-items: flex-end; gap: 10px; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-avatar { font-size: 1.4rem; flex-shrink: 0; }
.ai-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ai-msg-bot .ai-bubble  { background: var(--light); color: var(--navy); border-bottom-left-radius: 4px; }
.ai-msg-user .ai-bubble { background: var(--teal); color: white; border-bottom-right-radius: 4px; }
.ai-input-wrap {
  display: flex;
  border-top: 1px solid #eee;
  padding: 12px 16px;
  gap: 10px;
}
.ai-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 8px 0;
}
.ai-send-btn {
  background: var(--teal);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}
.ai-send-btn:hover { background: var(--navy); }
.ai-send-btn svg { stroke: white; fill: none; }
.ai-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
}
.ai-feat-icon { font-size: 1.3rem; }

/* ═══════════════════════════════════ CONTACT ═══════════════════════════════════ */
.contact-section { padding: 100px 0; background: white; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: start; }
.contact-info {}
.contact-details { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 0.95rem; color: var(--navy); text-decoration: none; }
.contact-item a:hover { color: var(--teal); }
.contact-form-wrap {
  background: var(--light);
  border-radius: 20px;
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid #e0e8ef;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; }
.btn-full { width: 100%; justify-content: center; }
.form-msg { font-size: 0.9rem; font-weight: 600; padding: 10px; border-radius: 8px; text-align: center; }
.form-success { background: #e8f5e9; color: #2e7d32; }
.form-error   { background: #fdecea; color: #c62828; }

/* ═══════════════════════════════════ CASES GALLERY ═══════════════════════════════════ */
.cases-section { padding: 100px 0; background: var(--light); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.case-card {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(13,27,42,.18);
}

.case-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.case-card:hover .case-img-wrap img { transform: scale(1.06); }

.case-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(13,27,42,.82);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .4px;
  backdrop-filter: blur(4px);
}
body.rtl .case-badge { left: auto; right: 10px; }

@media (max-width: 900px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cases-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cases-section { padding: 60px 0; }
}

/* ═══════════════════════════════════ FOOTER ═══════════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); }
.footer-top { padding: 80px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo span { font-size: 1.2rem; font-weight: 800; color: white; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.social-link:hover { background: var(--teal); border-color: var(--teal); color: white; }
.social-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.footer-heading { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.footer-contact-list svg { width: 16px; height: 16px; stroke: var(--teal); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-contact-list a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }
.footer-credit { color: var(--gold) !important; opacity: 0.7; }

/* ═══════════════════════════════════ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .why-wrap { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ai-chat-wrap { grid-template-columns: 1fr; }
  .ai-features { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .hero-wrap { grid-template-columns: 1fr !important; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .spec-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .wrap { flex-direction: column; gap: 8px; text-align: center; }
  .section-title { font-size: 1.6rem; }
  .hero-section { padding: 90px 0 50px; }
  .contact-form-wrap { padding: 24px; }
  /* booking banner على الموبايل */
  .booking-banner { flex-direction: column; text-align: center; gap: 16px; }
  .btn-booking-large { width: 100%; text-align: center; }
  body.rtl .booking-banner { flex-direction: column; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .hero-badge-float { display: none; }
  .hero-title { font-size: 1.7rem; }
  .hero-section { padding: 80px 0 40px; }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.4rem; }
}

/* ═══════════════════════════════════ MOBILE NAV ═══════════════════════════════════ */
/* hamburger: ظاهر دائماً على الموبايل (hidden on desktop by earlier rule) */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex !important;
    flex-direction: column; gap: 5px;
    padding: 8px; background: none; border: none; cursor: pointer; z-index: 200;
  }
  /* خطوط الـ hamburger باللون الأبيض لأن الخلفية navy */
  .menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: #ffffff; border-radius: 2px; transition: all 0.3s;
  }
  .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* القائمة تنزلق من الأعلى */
  #site-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 150;
  }
  body.rtl #site-nav { transform: translateX(100%); }
  #site-nav.nav-open,
  #site-nav.open { transform: translateX(0) !important; display: flex !important; position: fixed !important; }
  #site-nav .nav-link { font-size: 1.4rem; font-weight: 700; color: #fff; }

  /* lang switcher دائماً ظاهر في الهيدر الموبايل */
  .lang-switcher { display: flex !important; gap: 4px; }
}

/* ═══════════════════════════════════ HEADER SCROLLED ═══════════════════════════════════ */
#site-header { transition: box-shadow 0.3s; }
#site-header.header-scrolled { box-shadow: 0 2px 20px rgba(13,27,42,0.12); }

/* ── Team card: Director variant ── */
.team-card-director {
  border: 2px solid var(--gold) !important;
  background: linear-gradient(135deg, #0D1B2A 0%, #1a3550 100%) !important;
}
.team-card-director .team-name { color: var(--gold) !important; }
.team-card-director .team-bio  { color: rgba(255,255,255,.75) !important; }

/* Gold role badge */
.team-role-gold {
  color: var(--gold) !important;
  font-weight: 700;
}

/* ── Team grid: center last odd card ── */
.team-grid { justify-content: center; }

/* ── Dental Elegant Visual Section ── */
.dental-bridge-section {
  background: #060f1a;
  padding: 48px 0;
}
.dental-visual-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.dental-elegant-svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .dental-bridge-section { padding: 32px 0; }
  .dental-visual-card { border-radius: 12px; margin: 0 16px; }
}
