/* Ebtesama Dental Clinic: demo landing page. RTL-first, logical properties throughout. */
:root {
  --ink: #102a2e;
  --ink-2: #33494c;
  --muted: #5f7477;
  --teal-950: #062f33;
  --teal-900: #0a454b;
  --teal-700: #0d6a6f;
  --teal-600: #0f7c80;
  --teal-500: #179a9a;
  --mint-200: #c9ebe1;
  --mint-100: #e2f4ee;
  --mint-50: #f1faf6;
  --sand-50: #fcfaf6;
  --sand-100: #f6f1e8;
  --coral-500: #ef7656;
  --coral-100: #fde9e2;
  --gold-500: #d79a2b;
  --line: #dde8e4;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 46, 0.06), 0 2px 8px rgba(16, 42, 46, 0.05);
  --shadow: 0 10px 30px -12px rgba(10, 69, 75, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 47, 51, 0.35);
  --font: "Ebt Plex", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Ebt Readex", "Ebt Plex", "Segoe UI", Tahoma, sans-serif;
  --container: 1180px;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sand-50);
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -0.02em; }
p { margin: 0; }

.sprite { display: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--teal-950);
  color: #cfe7e2;
  font-size: 13px;
  text-align: center;
  padding: 6px var(--gutter);
  line-height: 1.5;
}
.demo-ribbon strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 246, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(221, 232, 228, 0.8);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal-600), var(--teal-900)); color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.brand-mark .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--teal-900); }
.brand-sub { font-size: 12px; color: var(--muted); }

.main-nav { display: none; gap: 4px; margin-inline-start: 12px; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--mint-100); color: var(--teal-900); }
@media (min-width: 980px) { .main-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--white); color: var(--teal-900);
  height: 40px; min-width: 48px; padding-inline: 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.lang-toggle:hover { border-color: var(--teal-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; word-spacing: 0.1em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(13, 106, 111, 0.6); }
.btn-primary:hover { background: var(--teal-900); }
.btn-ghost { background: var(--white); color: var(--teal-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .icon { width: 20px; height: 20px; }
.flip-rtl { transform: scaleX(-1); }
html[dir="ltr"] .flip-rtl { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -220px; top: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--mint-100), rgba(226, 244, 238, 0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--teal-700);
  background: var(--mint-100); border: 1px solid var(--mint-200); padding: 4px 12px 4px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(23, 154, 154, 0.18); }
.hero h1 { font-size: clamp(34px, 6.2vw, 58px); font-weight: 600; margin-top: 18px; color: var(--teal-950); }
.hero h1 .accent { color: var(--teal-600); }
.hero-lead { margin-top: 16px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; max-width: 520px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.fact-num { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--teal-900); line-height: 1.4; }
.fact-label { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Chat preview card (static illustration of the widget) */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 8px 0 24px; }
.preview-blob {
  position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: linear-gradient(160deg, var(--mint-200), var(--mint-100) 60%, var(--sand-100));
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.preview-card {
  position: relative; width: min(370px, 100%); background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid rgba(221, 232, 228, 0.9);
}
.preview-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--teal-700), var(--teal-950)); }
.preview-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.preview-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.preview-status { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.preview-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ee0a0; }
.preview-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--mint-50); }
.pv-msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.6; }
.pv-user { align-self: flex-end; background: var(--teal-700); color: #fff; border-end-end-radius: 6px; }
.pv-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-end-start-radius: 6px; }
.pv-bot strong { color: var(--teal-900); }
.pv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--teal-500); color: var(--teal-700); background: var(--white); font-weight: 500; }
.preview-badge {
  position: absolute; inset-inline-start: -6px; bottom: -4px; display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.badge-check { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e3f7ec; color: #1f9d5c; }
.badge-check .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.badge-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.badge-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
@media (min-width: 980px) { .preview-badge { inset-inline-start: -28px; } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 8px; font-weight: 500; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.trust-item .icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700); flex: none; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .trust-item { padding: 22px 12px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 980px) { .section { padding: 96px 0; } }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-kicker { font-size: 14px; font-weight: 600; color: var(--coral-500); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; color: var(--teal-950); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 17px; }

/* Services */
.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--mint-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-top { display: flex; align-items: center; gap: 14px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700); flex: none; }
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; font-weight: 600; color: var(--teal-950); }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.65; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--teal-900); line-height: 1.3; }
.price small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--muted); }
.ask-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--teal-700);
  font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 4px; border-radius: 8px;
}
.ask-btn:hover { color: var(--teal-950); background: var(--mint-50); }
.ask-btn .icon { width: 18px; height: 18px; }

.kids-banner {
  margin-top: 20px; display: grid; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--coral-100), #fff6ef); border: 1px solid #f7d8cc;
}
@media (min-width: 760px) { .kids-banner { grid-template-columns: auto 1fr auto; padding: 26px 30px; } }
.kids-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--white); color: var(--coral-500); }
.kids-icon .icon { width: 30px; height: 30px; }
.kids-banner h3 { font-size: 20px; font-weight: 600; color: #7a3420; }
.kids-banner p { color: #8a5446; font-size: 15px; margin-top: 4px; }

/* Doctors */
.doctors-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .doctors-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.doctor-card { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.avatar {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #fff;
}
.avatar::after {
  content: ""; position: absolute; inset-inline-end: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white) url("assets/tooth-badge.svg") center / 14px no-repeat; box-shadow: var(--shadow-sm);
}
.av-1 { background: linear-gradient(150deg, #19a3a0, #0a5b61); }
.av-2 { background: linear-gradient(150deg, #3f7fd0, #20457f); }
.av-3 { background: linear-gradient(150deg, #d7834f, #9a4a26); }
.av-4 { background: linear-gradient(150deg, #9b6fd0, #5a3b8f); }
.doctor-card h3 { font-size: 18px; font-weight: 600; color: var(--teal-950); }
.doctor-role { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-top: -6px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.day-pill { font-size: 12.5px; font-weight: 500; color: var(--teal-700); background: var(--mint-100); border-radius: 999px; padding: 3px 10px; }

/* Hours & location */
.visit-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel h3 { font-size: 20px; font-weight: 600; color: var(--teal-950); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel h3 .icon { color: var(--teal-600); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours-table th, .hours-table td { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.hours-table th { font-weight: 500; color: var(--ink-2); }
.hours-table td { font-weight: 600; color: var(--teal-900); text-align: end; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed td { color: var(--coral-500); }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.note .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--coral-500); }

.map-art { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #eef5f2; aspect-ratio: 16 / 8; }
.map-art svg { width: 100%; height: 100%; }
.address { margin-top: 16px; font-weight: 500; color: var(--ink); line-height: 1.7; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 500; text-decoration: none; background: var(--sand-50); }
.contact-chip .icon { width: 18px; height: 18px; color: var(--teal-600); }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pay-label { width: 100%; font-size: 14px; color: var(--muted); font-weight: 500; }
.pay-chip { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--sand-100); border-radius: 8px; padding: 5px 11px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16.5px; color: var(--teal-950);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--teal-600); transition: transform 0.2s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }

/* CTA band */
.cta-band { padding: 56px 0 72px; }
.cta-inner {
  position: relative; overflow: hidden; border-radius: 28px; padding: 36px 24px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #13868a 0%, var(--teal-900) 45%, var(--teal-950) 100%);
  display: grid; gap: 22px; align-items: center;
}
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; padding: 48px 56px; } }
.cta-inner h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 600; }
.cta-inner p { margin-top: 8px; color: #cde9e4; font-size: 16.5px; }
.cta-inner .btn-primary { background: #fff; color: var(--teal-900); box-shadow: none; }
.cta-inner .btn-primary:hover { background: var(--mint-100); }
.cta-rings { position: absolute; inset-inline-end: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.05); pointer-events: none; }

/* Footer */
.site-footer { background: var(--teal-950); color: #b9d6d1; padding: 48px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8fb7b0; }
.site-footer h4 { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-about { margin-top: 14px; max-width: 30em; line-height: 1.7; }
.disclaimer { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #8fb7b0; line-height: 1.7; }

:focus-visible { outline: 3px solid rgba(23, 154, 154, 0.45); outline-offset: 2px; }

/* Small phones */
@media (max-width: 420px) {
  .header-row { gap: 10px; }
  .brand-sub { display: none; }
  .header-actions .btn-sm { padding: 0 12px; }
  .hero-facts { gap: 8px; }
  .fact { padding: 10px; }
  .fact-num { font-size: 20px; }
  .fact-label { font-size: 12px; }
  .btn { padding: 0 18px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .panel { padding: 20px 16px; }
  .service-card { padding: 18px; }
}
