/* ============================================================
   Zhin Medical Clinic — demo clinic site by truq.online.
   Calm, clean, reassuring: soft blue/teal on white.
   Mobile-first. Logical properties for LTR + RTL.
   ============================================================ */

:root {
  --accent: #0e7490;
  --accent-dark: #155e75;
  --accent-soft: #eefafd;
  --accent-border: #bfe6f0;
  --wa: #1faa53;
  --ink: #12292f;
  --muted: #5d7681;
  --line: #e0ecef;
  --bg: #ffffff;
  --bg-soft: #f4fafb;
  --radius: 16px;
  --shadow: 0 6px 22px rgba(9, 60, 74, 0.07);
  --shadow-lg: 0 16px 38px rgba(9, 60, 74, 0.12);
  --font-latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* room for the floating button + badge */
  padding-block-end: 84px;
}

html[lang="ar"] body,
html[lang="ckb"] body { font-family: var(--font-arabic); line-height: 1.8; }
html[lang="ar"] *,
html[lang="ckb"] * { letter-spacing: 0 !important; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin-inline: auto; padding-inline: 18px; }

.section-head { text-align: center; max-width: 560px; margin-inline: auto; margin-block-end: clamp(1.5rem, 4vw, 2.25rem); }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); text-decoration: none; }
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: var(--wa); box-shadow: 0 8px 20px rgba(31, 170, 83, 0.3); }
.btn-wa:hover { background: #178f45; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-inline-end: auto; }
@media (max-width: 480px) { .brand { font-size: 0.92rem; } }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a.active { background: #fff; color: var(--accent-dark); box-shadow: 0 1px 4px rgba(9, 60, 74, 0.14); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(65% 75% at 50% 0%, rgba(14, 116, 144, 0.08), transparent 70%),
    var(--bg-soft);
  border-block-end: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 700;
  margin-block-end: 1rem;
}
.hero .sub { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.15rem); max-width: 42ch; margin-inline: auto; margin-block-end: 1.6rem; }
.hero-note { margin-block-start: 0.9rem; margin-block-end: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Services ---------- */
.services { padding-block: clamp(2.5rem, 6vw, 4rem); }
.services-grid { display: grid; gap: 0.9rem; }
@media (min-width: 520px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.service-card .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 0.8rem;
}
.service-card .icon-wrap svg { width: 22px; height: 22px; }
.service-card p { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* ---------- Doctors ---------- */
.doctors { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--bg-soft); border-block: 1px solid var(--line); }
.doctors-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .doctors-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.avatar-0 { background: linear-gradient(135deg, #0e7490, #155e75); }
.avatar-1 { background: linear-gradient(135deg, #0d9488, #0f766e); }
.avatar-2 { background: linear-gradient(135deg, #4f6bd8, #3b4fae); }
.doctor-card h3 { margin-block-end: 0.15rem; }
.doctor-card .specialty { color: var(--accent-dark); font-weight: 700; font-size: 0.92rem; margin: 0 0 0.5rem; }
.doctor-card .days {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.doctor-card .days::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); flex: none; }
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wa);
}
.book-link svg { width: 1.05em; height: 1.05em; }

/* ---------- Hours + trust ---------- */
.info-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.info-grid { display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .info-grid { grid-template-columns: 1fr 1fr; } }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.2rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-block-end: 1px dashed var(--line);
  font-size: 0.97rem;
}
.hours-list li:last-child { border-block-end: 0; }
.hours-list .time { font-weight: 700; white-space: nowrap; }
.hours-note { color: var(--muted); font-size: 0.88rem; margin: 0.75rem 0 0; }

.trust-list { list-style: none; margin: 0; padding: 0; }
.trust-list li {
  position: relative;
  padding-block: 0.55rem;
  padding-inline-start: 1.7rem;
  border-block-end: 1px dashed var(--line);
  font-size: 0.97rem;
}
.trust-list li:last-child { border-block-end: 0; }
.trust-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--wa);
  font-weight: 800;
}

/* ---------- Location ---------- */
.location { padding-block-start: 0; }
.info-card .address { color: var(--muted); font-size: 0.95rem; }
.map-frame {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 12px;
  margin-block-start: 0.75rem;
  background: var(--bg-soft);
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--bg-soft); border-block-start: 1px solid var(--line); }
.faq-list { max-width: 680px; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.25rem 1.05rem; margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 1.5rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-langs { display: flex; gap: 1rem; }

/* ---------- Floating WhatsApp + truq badge ---------- */
.wa-float {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31, 170, 83, 0.4);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

.truq-badge {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 16px;
  z-index: 60;
  background: #fff;
  border: 1px solid #C9C9FF;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1B1BD6;
  box-shadow: 0 6px 18px rgba(35, 35, 255, 0.14);
  white-space: nowrap;
}
.truq-badge:hover { background: #EDEDFF; text-decoration: none; }
.truq-badge strong { color: #2323FF; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
