/* Soft Medical — design system
   Colors come from the logo blue (#0170C8). Layout uses logical properties
   (inline-start / inline-end) so the same CSS works for Arabic (RTL) and English (LTR). */

:root {
  --blue: #0170c8;        /* brand blue from the logo — 5.0:1 on white */
  --blue-dark: #01569a;   /* hover / pressed */
  --navy: #0a3560;        /* headings, footer */
  --ink: #1e2a36;         /* body text */
  --muted: #4f6072;       /* secondary text */
  --sky: #eaf4fc;         /* light-blue section background */
  --sky-2: #d4e8f8;       /* borders, dividers */
  --white: #ffffff;
  --wa: #128c4a;          /* WhatsApp-style green, AA with white text */
  --todo-bg: #fff6d6;
  --todo-ink: #6b4e00;

  --font: "Cairo", "Segoe UI", Tahoma, system-ui, -apple-system, "Noto Sans Arabic", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(10, 53, 96, 0.08);
  --container: 1140px;
  --gutter: 16px;
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: 56px; }
.section--sky { background: var(--sky); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 700; color: var(--blue); font-size: 0.9rem; margin-bottom: 6px; }

/* TODO placeholders are highlighted so they are easy to spot before launch */
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 6px; padding: 0 6px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--sky); color: var(--blue-dark); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #0d6f3a; color: var(--white); }
.btn-sm { min-height: 42px; padding: 6px 18px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--sky-2); backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.1rem; font-weight: 800; }
.brand-text small { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--sky-2); background: var(--white); border-radius: var(--radius-sm); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; inset-inline: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--sky-2); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 12px 8px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius-sm);
}
.site-nav li a:hover { background: var(--sky); color: var(--blue-dark); }
.site-nav li a[aria-current="page"] { color: var(--blue); background: var(--sky); }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 42px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--sky-2); text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.95rem;
}
.lang-switch:hover { background: var(--sky); }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 18px; position: static; padding: 0; box-shadow: none; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li a { padding: 8px 12px; }
  .nav-actions { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); padding-block: 48px 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero-visual { display: flex; justify-content: center; }
.hero-badge {
  position: relative; width: min(300px, 75vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center;
}
.hero-badge img { width: 62%; }
.hero-chip {
  position: absolute; background: var(--white); border: 1px solid var(--sky-2); border-radius: 999px;
  padding: 4px 14px; font-weight: 700; font-size: 0.85rem; color: var(--navy); box-shadow: var(--shadow); white-space: nowrap;
}
.hero-chip--1 { top: 6%; inset-inline-start: -4%; }
.hero-chip--2 { top: 46%; inset-inline-end: -10%; }
.hero-chip--3 { bottom: 4%; inset-inline-start: 4%; }

@media (min-width: 768px) {
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

.page-hero { background: var(--sky); padding-block: 40px; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 8px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--sky-2); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .btn, .card .card-link { margin-top: auto; align-self: flex-start; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 14px; flex: none;
}
.icon-circle svg { width: 28px; height: 28px; }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; } }

.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--sky-2); border-radius: var(--radius); padding: 20px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 800; margin-bottom: 10px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

.notice {
  border-inline-start: 4px solid var(--blue); background: var(--sky); padding: 14px 18px; border-radius: var(--radius-sm);
  color: var(--navy); font-size: 0.95rem;
}
.notice p:last-child { margin: 0; }

/* ---------- Products ---------- */
.product { padding: 0; overflow: hidden; }
.product-media {
  background: var(--sky); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--blue); gap: 6px; text-align: center;
}
.product-media svg { width: 72px; height: 72px; }
.product-media span { font-size: 0.85rem; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.spec-table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--sky-2); vertical-align: top; }
.spec-table th { color: var(--navy); width: 38%; font-weight: 700; }

.terms { display: grid; gap: 0; margin: 0; border: 1px solid var(--sky-2); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.terms div { display: grid; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--sky-2); }
.terms div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .terms div { grid-template-columns: 220px 1fr; } }
.terms dt { font-weight: 700; color: var(--navy); }
.terms dd { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 36px 24px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d5e4f3; max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--navy); }
.field .req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9bb4cc; border-radius: var(--radius-sm); padding: 10px 14px; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(1,112,200,.35); outline-offset: 0; border-color: var(--blue); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; inset-inline-start: -9999px; }
.form-status { border-radius: var(--radius-sm); padding: 0; font-weight: 600; }
.form-status:not(:empty) { padding: 12px 16px; }
.form-status.is-success { background: #e6f6ec; color: #135c32; }
.form-status.is-error { background: #fdecea; color: #8a1c13; }

.info-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 4px; }
.info-list strong { display: block; color: var(--navy); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d5e4f3; margin-top: 56px; padding-block: 48px 24px; font-size: 0.95rem; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 12px; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--white); font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 40px; height: 40px; background: var(--white); border-radius: 50%; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer .todo { background: #fff3c4; color: #5c4300; }

/* ---------- Floating WhatsApp (mobile only) ---------- */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #0d6f3a; color: var(--white); }
@media (min-width: 768px) { .wa-float { display: none; } }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; color: var(--sky-2); line-height: 1; margin: 0 0 12px; }

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