/* =====================================================
   NAYA CLINIC — style.css
   Mobile-first, bilingual (EN/AR), RTL-ready
   ===================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --primary:        #1D6FA4;
  --primary-dark:   #155C87;
  --primary-light:  #E8F4FB;
  --primary-50:     rgba(29,111,164,.08);
  --accent:         #0E9AB0;
  --bg:             #F8FBFD;
  --bg-alt:         #EEF6FC;
  --surface:        #FFFFFF;
  --text:           #1A2E3E;
  --text-muted:     #5B7A96;
  --border:         #C8DFF0;
  --border-light:   #DFF0FA;
  --success:        #16A34A;
  --success-light:  #F0FDF4;
  --error:          #DC2626;
  --error-light:    #FEF2F2;
  --whatsapp:       #25D366;
  --whatsapp-dark:  #128C7E;
  --warn-bg:        #FEF9EC;
  --warn-border:    #F5D269;
  --warn-text:      #92660A;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --shadow-sm:      0 1px 6px rgba(29,111,164,.07);
  --shadow:         0 2px 14px rgba(29,111,164,.10);
  --shadow-md:      0 6px 28px rgba(29,111,164,.14);
  --shadow-lg:      0 12px 48px rgba(29,111,164,.18);
  --header-h:       68px;
  --t:              .2s ease;
}

/* ---------- RESET & BASE ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

/* Language-specific fonts */
[lang="en"] { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
[lang="ar"] { font-family: 'Cairo', system-ui, sans-serif; }

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

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

button { cursor: pointer; border: none; background: none; font-family: inherit; }

ul, ol { list-style: none; }

/* Scroll offset for fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- FOCUS STATES ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- LANGUAGE TOGGLE HELPERS ---------- */
[lang="en"] .ar-text,
[lang="ar"] .en-text { display: none !important; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 5rem; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3rem; }
[dir="rtl"] .section-header { text-align: center; }

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: .6rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  padding: .65rem 1.4rem;
  transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid transparent;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: .7rem 1.4rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background var(--t), box-shadow var(--t);
  margin-top: 1.25rem;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow); }

.btn-danger {
  background: var(--error);
  color: #fff;
  border: 2px solid transparent;
}
.btn-danger:hover { background: #b91c1c; }

.btn-sm { font-size: .85rem; padding: .45rem 1rem; }
.btn-lg { font-size: 1rem; padding: .8rem 1.75rem; }
.btn-full { width: 100%; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248,251,253,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}

.header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.logo-mark { color: var(--primary); display: flex; }
.logo:hover { opacity: .85; }

/* Desktop nav */
.nav {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--primary); background: var(--primary-50); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .38rem .75rem;
  background: var(--surface);
  transition: border-color var(--t), background var(--t);
}
.lang-btn:hover { border-color: var(--primary); background: var(--primary-light); }

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--radius-sm);
}
.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.menu-btn.open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn.open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: .25rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .25s ease, opacity .2s ease;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: .7rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}
.mobile-link:hover { color: var(--primary); background: var(--primary-50); }

.mobile-link-btn {
  margin-top: .5rem;
  text-align: center;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(160deg, var(--surface) 55%, var(--bg-alt) 100%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 560px; width: 100%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .35rem .9rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item svg { color: var(--success); flex-shrink: 0; }

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 280px;
  flex-shrink: 0;
}

.hero-shape-1,
.hero-shape-2 {
  position: absolute;
  border-radius: 50%;
}

.hero-shape-1 {
  width: 220px;
  height: 220px;
  background: var(--primary-light);
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .7;
}
.hero-shape-2 {
  width: 140px;
  height: 140px;
  background: var(--bg-alt);
  bottom: 0;
  right: 0;
  border: 2px solid var(--border-light);
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 100px;
}
.hero-card-icon { color: var(--primary); }
.hero-card-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }

.card-1 { top: 10px; left: 0; }
.card-2 { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.card-3 { bottom: 10px; right: 0; }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  cursor: default;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.service-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- ABOUT ---------- */
.about-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 340px;
}

.about-emblem {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.about-emblem svg { margin-inline: auto; margin-bottom: .75rem; opacity: .8; }
.about-emblem-name { font-size: 1.3rem; font-weight: 800; }
.about-emblem-sub { font-size: .85rem; opacity: .7; margin-top: .2rem; }

.about-stats {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.stat-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

.about-content { max-width: 580px; }
.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-content .btn { margin-top: .75rem; }

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: box-shadow var(--t);
}
.why-card:hover { box-shadow: var(--shadow); }

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.why-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}
.why-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 780px; }

.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  text-align: start;
  background: transparent;
  transition: background var(--t), color var(--t);
  cursor: pointer;
}
.faq-q:hover { background: var(--primary-50); color: var(--primary); }
.faq-q.open { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .25s ease;
}
.faq-q.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a.open { max-height: 400px; }

.faq-a-inner {
  padding: 0 1.4rem 1.25rem;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- BOOKING FORM ---------- */
.booking-wrap { max-width: 720px; margin-inline: auto; }

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-size: .85rem;
  color: var(--warn-text);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.demo-note svg { flex-shrink: 0; margin-top: .1rem; color: #D97706; }

.booking-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,111,164,.15); }

.form-input.invalid,
.form-select.invalid { border-color: var(--error); background: var(--error-light); }

.form-textarea { resize: vertical; min-height: 90px; }

.form-error {
  font-size: .8rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1rem;
}

.booking-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--success-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}
.success-check {
  width: 60px;
  height: 60px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.success-msg {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}
.contact-value { font-size: .95rem; font-weight: 500; color: var(--text); }
.contact-value-sub { font-size: .85rem; color: var(--text-muted); margin-top: .1rem; }

.demo-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  padding: .1rem .55rem;
  margin-inline-start: .3rem;
  vertical-align: middle;
}

.map-wrap { width: 100%; }

.map-placeholder {
  width: 100%;
  min-height: 260px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
  color: var(--text-muted);
  text-align: center;
}
.map-placeholder svg { color: var(--border); }
.map-note { font-size: .88rem; line-height: 1.6; max-width: 320px; }

/* ---------- ADMIN SECTION ---------- */
.admin-section { border-top: 3px dashed var(--border); }

.admin-title-wrap { display: flex; align-items: center; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.admin-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  background: #FEF2F2;
  color: var(--error);
  border: 1px solid #FECACA;
  border-radius: 100px;
  padding: .15rem .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-toolbar { text-align: center; margin-bottom: 1.75rem; }

.requests-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: .95rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}

.requests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.req-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: .8rem;
  gap: .5rem;
  flex-wrap: wrap;
}

.req-source {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: var(--primary);
}
.req-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.req-time { color: var(--text-muted); }

.req-card-body {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem .75rem;
}

.req-field { }
.req-field-label {
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.req-field-val { font-size: .9rem; color: var(--text); font-weight: 500; margin-top: .1rem; }

.req-field.full { grid-column: 1/-1; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.85);
  padding-block: 3rem;
}

.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .75rem;
}
.footer-nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  padding: .25rem;
  transition: color var(--t);
}
.footer-nav a:hover { color: #fff; }

.footer-rights { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.35); max-width: 520px; line-height: 1.6; }

/* ---------- FABS ---------- */
.fab {
  position: fixed;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t);
}
.fab:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }

.fab-wa {
  background: var(--whatsapp);
  color: #fff;
  bottom: 1.5rem;
  right: 1.5rem;
}

/* ---------- CHATBOT ---------- */
.chatbot {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 200;
}

.chatbot-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  position: relative;
}
.chatbot-toggle:hover { background: var(--primary-dark); transform: scale(1.06); box-shadow: var(--shadow-lg); }

.icon-close { display: none; }
.chatbot-toggle.open .icon-chat { display: none; }
.chatbot-toggle.open .icon-close { display: block; }

.chatbot-notif {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--error);
  border: 2px solid var(--bg);
  display: none;
}
.chatbot-notif.show { display: block; }

.chatbot-panel {
  position: absolute;
  bottom: calc(100% + .75rem);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 520px;
  transform: scale(.92) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform .22s ease, opacity .2s ease;
}

.chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: var(--primary);
  color: #fff;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-name { font-weight: 700; font-size: .95rem; }
.chatbot-status { font-size: .75rem; opacity: .8; display: flex; align-items: center; gap: .3rem; margin-top: .1rem; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.chatbot-close-btn {
  margin-inline-start: auto;
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  padding: .25rem;
  transition: color var(--t);
}
.chatbot-close-btn:hover { color: #fff; }

.chatbot-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 82%;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-bubble-bot {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border-end-start-radius: 4px;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-end-end-radius: 4px;
}

.chat-quick-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 0 .25rem;
}

.chat-qr {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 500;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: .35rem .8rem;
  background: var(--surface);
  transition: background var(--t), border-color var(--t), color var(--t);
  cursor: pointer;
  text-align: start;
}
.chat-qr:hover { background: var(--primary-light); border-color: var(--primary); }
.chat-qr:disabled { opacity: .5; cursor: not-allowed; }

.chatbot-input-wrap {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}

.chatbot-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: .5rem 1rem;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--t);
}
.chatbot-input:focus { outline: none; border-color: var(--primary); }

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t);
}
.chatbot-send:hover { background: var(--primary-dark); }

/* =====================================================
   RTL OVERRIDES
   ===================================================== */

[dir="rtl"] .chatbot { right: auto; left: 1.5rem; }
[dir="rtl"] .chatbot-panel { right: auto; left: 0; transform-origin: bottom left; }
[dir="rtl"] .fab-wa { right: auto; left: 1.5rem; }
[dir="rtl"] .chat-bubble-bot { border-end-start-radius: var(--radius); border-end-end-radius: 4px; }
[dir="rtl"] .chat-bubble-user { border-end-end-radius: var(--radius); border-end-start-radius: 4px; }
[dir="rtl"] .hero-content { text-align: start; }
[dir="rtl"] .hero-trust { justify-content: flex-start; }
[dir="rtl"] .card-1 { left: auto; right: 0; }
[dir="rtl"] .card-3 { right: auto; left: 0; }
[dir="rtl"] .about-content { text-align: start; }

/* =====================================================
   RESPONSIVE — sm: 560px
   ===================================================== */

@media (min-width: 560px) {
  .form-row { flex-direction: row; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .requests-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   RESPONSIVE — md: 768px
   ===================================================== */

@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn { display: none; }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-content { max-width: 520px; }
  .hero-visual { flex-shrink: 0; }

  .about-inner {
    flex-direction: row;
    align-items: center;
  }

  .contact-grid {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }
  .contact-info { flex: 1; }
  .map-wrap { flex: 1; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================
   RESPONSIVE — lg: 1024px
   ===================================================== */

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-visual { max-width: 400px; height: 320px; }
  .hero-shape-1 { width: 280px; height: 280px; }
}

/* =====================================================
   RESPONSIVE — RTL hero flip
   ===================================================== */

[dir="rtl"] .hero-inner { flex-direction: row-reverse; }
[dir="rtl"] .about-inner { flex-direction: row-reverse; }
