/* 2026-10-21: the public website (fastdoctoriraq.com) - navy / gold brand,
 * mobile first, light and dark. Shared by the home page, find-a-doctor,
 * doctor pages, booking, the prescription verification page and the
 * emergency card. */
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-Bold.ttf"); font-weight: 700; font-display: swap; }

:root {
  --navy: #1E2A5A; --navy-2: #2C3B78; --gold: #F2B544; --gold-tint: #FDF3DC;
  --bg: #F7F6F2; --surface: #FFFFFF; --surface-alt: #F0EEE8; --border: #E3E0D8;
  --text: #1B1E26; --muted: #5D6577; --success: #1F7A4D; --success-bg: #E3F4EA;
  --danger: #A3312B; --danger-bg: #FBE7E5; --radius: 16px; --shadow: 0 2px 10px rgba(30, 42, 90, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10142A; --surface: #182040; --surface-alt: #1F2850; --border: #2C3766; --text: #EEF0F7;
    --muted: #A9B0C7; --gold-tint: #3A3222; --success-bg: #183A2A; --danger-bg: #43201E; --navy-2: #9FB0F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10142A; --surface: #182040; --surface-alt: #1F2850; --border: #2C3766; --text: #EEF0F7;
  --muted: #A9B0C7; --gold-tint: #3A3222; --success-bg: #183A2A; --danger-bg: #43201E; --navy-2: #9FB0F0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 16px/1.6 "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="en"] body { font-family: "Sora", "Plex Arabic", system-ui, sans-serif; }
a { color: var(--navy-2); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }

/* header / footer */
.site-top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.site-logo { height: 34px; width: auto; display: block; }
.site-logo.dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-logo.light { display: none; } :root:not([data-theme="light"]) .site-logo.dark { display: block; } }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.site-nav a:hover { background: var(--surface-alt); }
.site-nav .lang { border: 1px solid var(--border); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 6px 10px; font: inherit; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 60px; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
}
.site-foot { margin-top: 48px; background: var(--navy); color: #E7EAF6; padding: 32px 0; font-size: 14px; }
.site-foot a { color: #FFE2A3; }
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-foot h4 { margin: 0 0 8px; color: var(--gold); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 4px 0; }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.gold { background: var(--gold); color: #1B1E26; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
/* 2026-10-27: secondary action - clearly not the main (filled) button */
.btn.outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
:root[data-theme="dark"] .btn.outline { color: var(--navy-2); border-color: var(--navy-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.outline { color: var(--navy-2); border-color: var(--navy-2); } }
.notice-box { background: var(--gold-tint); border-radius: 12px; padding: 14px; margin: 12px 0; }
.notice-box p { margin: 0 0 10px; }
.consent-points { padding-inline-start: 20px; line-height: 1.8; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 14px 0; }
label.check input { width: 22px; height: 22px; }
.btn:disabled { opacity: .55; cursor: default; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-alt); font-size: 13px; }
.chip.ok { background: var(--success-bg); color: var(--success); }
.chip.bad { background: var(--danger-bg); color: var(--danger); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.center { text-align: center; }
.state { text-align: center; padding: 48px 16px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; width: 100%; min-height: 46px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
.error { color: var(--danger); }
.big-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 36px; }
.big-icon.ok { background: var(--success-bg); color: var(--success); }
.big-icon.bad { background: var(--danger-bg); color: var(--danger); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
.red-list li { color: var(--danger); font-weight: 700; }

/* 2026-10-21 phase D: home, find a doctor, doctor page, booking */
.sec { padding-top: 28px; }
.sec h2 { margin: 0 0 14px; color: var(--navy-2); }
.hero { background: linear-gradient(135deg, var(--navy) 0%, #2C3B78 100%); color: #fff; padding: 40px 0; }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.3; margin: 10px 0; }
.hero .lead { font-size: 17px; opacity: .92; }
.hero .chip { background: var(--gold); color: #1B1E26; font-weight: 700; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-art { display: flex; justify-content: center; gap: 8px; }
.hero-art img { width: min(42%, 180px); height: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.svc-ic { font-size: 34px; }
.svc h3, .step h3 { margin: 6px 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1B1E26; font-weight: 700; }
.mascots { display: flex; align-items: center; gap: 16px; }
.join { background: var(--gold-tint); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq { margin-bottom: 10px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 12px; margin-bottom: 16px; }
.filters label { margin: 4px 0; }
.doc-card h3 { margin: 0 0 4px; }
.doc-card .meta { color: var(--muted); font-size: 14px; }
.doc-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.doc-logo { width: 96px; height: 96px; border-radius: 18px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.doc-logo.ph { display: grid; place-items: center; font-size: 44px; }
.doc-head h1 { margin: 0; }
.doc-photo { max-width: 48%; border-radius: 12px; margin: 8px 1%; }
.slots { display: grid; gap: 8px; }
.slot { text-align: start; }
.big-num { font-size: 56px; font-weight: 700; color: var(--navy-2); text-align: center; margin: 8px 0; }
@media (max-width: 760px) { .hero-in { grid-template-columns: 1fr; } .hero-art img { width: 120px; } .mascots { flex-direction: column; text-align: center; } }

/* 2026-10-21 PART 3: the patient web app (/app) */
.app-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;align-items:center}
.app-tabs a{padding:8px 14px;border-radius:99px;background:var(--surface-alt,#eef0f6);text-decoration:none;color:inherit}
.app-tabs a.active{background:#1E2A5A;color:#fff}.app-tabs .linkish{margin-inline-start:auto;background:none;border:0;color:inherit;text-decoration:underline;cursor:pointer}
.specs{display:grid;gap:6px;margin-bottom:10px}.spec{display:block}.big{font-size:32px;margin:4px 0}
.chat{max-height:420px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;margin:10px 0}
.bubble{align-self:flex-start;background:var(--surface-alt,#eef0f6);padding:8px 12px;border-radius:14px;max-width:85%;white-space:pre-wrap}
.bubble.mine{align-self:flex-end;background:#1E2A5A;color:#fff}.chat .btn.small{align-self:flex-start;padding:6px 12px;font-size:14px}
.chat-in{display:flex;gap:8px}.chat-in input{flex:1}.star{border:1px solid #ccc;border-radius:8px;background:none;padding:4px 8px;cursor:pointer}
@media (prefers-color-scheme:dark){.app-tabs a,.bubble{background:#232a4a}}
