/* Riaya Medical Complex — navy + clinical teal, coral for booking actions; crisp 10px geometry, data-dense and calm. */
body[data-demo="saclinic"] {
  --bg: #f3f7f9; --ink: #0c2a3e; --muted: #587080; --card: #ffffff; --line: #dbe6ec;
  --accent: #0f8b8d; --accent-ink: #fff; --accent2: #e76f51; --navy: #0c2a3e; --radius: 10px;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif; --display: var(--font);
  font: 15.5px/1.7 var(--font);
}
body[data-demo="saclinic"] h1, body[data-demo="saclinic"] h2, body[data-demo="saclinic"] h3 { font-weight: 700; letter-spacing: -.2px; }
.ry-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header: navy utility bar + white main bar ---------- */
body[data-demo="saclinic"] #top { display: block; padding: 0; background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -16px rgba(12, 42, 62, .5); }
.ry-util { display: flex; align-items: center; gap: 22px; padding: 6px clamp(16px, 4vw, 48px); background: var(--navy); color: #cfe0e8; font-size: 12.5px; }
.ry-hours i { color: #4ade80; font-style: normal; font-size: 9px; margin-inline-end: 6px; vertical-align: 2px; }
.ry-util-end { margin-inline-start: auto; display: flex; gap: 16px; }
.ry-util button, .ry-util a { background: none; border: 0; padding: 0; color: #fff; font-size: 12.5px; font-weight: 600; }
.ry-bar { display: flex; align-items: center; gap: 28px; padding: 10px clamp(16px, 4vw, 48px); }
.ry-brand { display: flex; align-items: center; gap: 10px; }
.ry-brand img { width: 44px; height: 44px; object-fit: contain; }
.ry-brand b { display: block; font-size: 18px; line-height: 1.2; color: var(--navy); }
.ry-brand small { display: block; font-size: 12px; color: var(--muted); }
.ry-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.ry-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--muted); }
.ry-nav a:hover { background: var(--bg); color: var(--ink); }
.ry-cta, .ry-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent2); color: #fff; font-weight: 700; padding: 11px 22px; border-radius: 8px; border: 0; font-size: 15px; transition: background .2s, transform .15s; white-space: nowrap; }
.ry-cta:hover, .ry-btn:hover { background: #d4573a; transform: translateY(-1px); }
.ry-btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.ry-btn.ghost:hover { background: var(--navy); color: #fff; }
.ry-btn.small { padding: 7px 16px; font-size: 14px; }
.ry-btn.light { background: #fff; color: var(--navy); }
.ry-dock { display: none; }

/* ---------- hero: copy + photo + booking widget ---------- */
body[data-demo="saclinic"] #hero { display: block; max-width: none; padding: 0; background: linear-gradient(180deg, #e5f1f3, var(--bg)); }
.ry-hero { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) 0; display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px 48px; align-items: center; padding-bottom: 40px; }
.ry-side { display: grid; }
.ry-kick { display: inline-block; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 13.5px; padding: 5px 14px; border-radius: 999px; }
#hero .ry-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.15; color: var(--navy); margin: 0 0 14px; }
.ry-lead { color: var(--muted); font-size: 17.5px; max-width: 560px; margin: 0 0 24px; }
.ry-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ry-hero-media { border-radius: 14px; overflow: hidden; height: 250px; }
.ry-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ry-widget { position: relative; background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(12, 42, 62, .45); border: 1px solid var(--line); border-top: 5px solid var(--accent); margin: -90px 22px 0; }
.ry-widget h2 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.ry-w-step { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ry-w-step span { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; }
.ry-w-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ry-w-specs button { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 600; }
.ry-w-specs button .ry-ic { width: 24px; height: 24px; color: var(--accent); }
.ry-w-specs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ry-w-specs button.on .ry-ic { color: #fff; }
.ry-w-docs { display: grid; gap: 8px; }
.ry-w-doc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px; color: var(--ink); transition: border-color .2s; }
.ry-w-doc:hover { border-color: var(--accent); }
.ry-w-doc img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; object-position: top; }
.ry-w-doc span { flex: 1; display: grid; line-height: 1.4; }
.ry-w-doc small { color: var(--muted); }
.ry-w-doc em { font-style: normal; background: var(--accent2); color: #fff; font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 8px; }
.ry-stats { list-style: none; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); max-width: 1280px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); color: #fff; position: relative; }
.ry-stats::before { content: ""; position: absolute; inset: 0 -100vw; background: var(--navy); z-index: -1; }
.ry-stats li { display: flex; align-items: center; gap: 14px; padding: 20px 10px; }
.ry-stats li + li { border-inline-start: 1px solid rgba(255,255,255,.15); padding-inline-start: 24px; }
.ry-stats b { font-size: 40px; line-height: 1; color: #5fd4d0; }
.ry-stats span { font-size: 14px; color: #cfe0e8; }
body[data-demo="saclinic"] #hero { overflow: hidden; }

/* ---------- section heads ---------- */
.ry-sec { max-width: 1280px; padding: clamp(44px, 5vw, 70px) clamp(16px, 4vw, 48px) 10px; }
.ry-head { margin: 0 0 26px; text-align: start; max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ry-head h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--navy); position: relative; padding-inline-start: 18px; }
.ry-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 12%; bottom: 12%; width: 5px; border-radius: 4px; background: var(--accent); }
.ry-head p { margin: 0; color: var(--muted); max-width: 560px; }

/* ---------- doctors: specialty tabs + rows ---------- */
.ry-doc-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.ry-tabs { display: grid; gap: 6px; position: sticky; top: 130px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.ry-tabs button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 11px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-align: start; }
.ry-tabs button span { flex: 1; }
.ry-tabs button .ry-ic { color: var(--accent); }
.ry-tabs .ry-ic.all { width: 20px; text-align: center; font-weight: 400; color: var(--accent); }
.ry-tabs button small { min-width: 24px; text-align: center; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12px; padding: 1px 6px; }
.ry-tabs button.on { background: var(--navy); color: #fff; }
.ry-tabs button.on .ry-ic { color: #5fd4d0; }
.ry-tabs button.on small { background: rgba(255,255,255,.15); color: #fff; }
.ry-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ry-doc { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: 1fr auto; gap: 4px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: box-shadow .2s, border-color .2s; animation: kitpop .35s both; }
.ry-doc:hover { border-color: var(--accent); box-shadow: 0 16px 30px -22px rgba(12, 42, 62, .6); }
.ry-doc img { grid-row: 1 / 3; width: 110px; height: 130px; border-radius: 8px; object-fit: cover; object-position: top; }
.ry-doc h3 { font-size: 18px; color: var(--navy); margin: 4px 0 0; }
.ry-doc p { margin: 0; color: var(--muted); font-size: 14px; }
.ry-doc .ry-btn { justify-self: start; align-self: end; padding: 8px 20px; font-size: 14px; }
.ry-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: #e5f4f4; padding: 2px 10px 2px 8px; border-radius: 999px; }
.ry-tag .ry-ic { width: 14px; height: 14px; }

/* ---------- services: price table ---------- */
.ry-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ry-tr { display: grid; grid-template-columns: 1fr 160px 120px; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.ry-tr:hover:not(.ry-th) { background: #f7fbfc; }
.ry-th { border-top: 0; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600; padding-block: 10px; cursor: default; }
.ry-tr > span:last-child { text-align: end; }
.ry-svc-name { display: flex; align-items: center; gap: 14px; }
.ry-svc-name img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.ry-svc-name b { font-size: 16.5px; color: var(--navy); }
.ry-price { font-weight: 700; font-size: 18px; color: var(--accent); }
.ry-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; background: #fff4ef; border: 1px solid #f6d3c6; color: #7a3b28; border-radius: 10px; padding: 12px 16px; font-size: 14.5px; }
.ry-note b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent2); color: #fff; display: grid; place-items: center; font-size: 13px; font-family: Georgia, serif; font-style: italic; }

/* ---------- faq + visit ---------- */
.ry-faq { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
body[data-demo="saclinic"] .faq { max-width: none; margin: 0; gap: 8px; }
body[data-demo="saclinic"] .faq details { border-radius: 10px; padding: 14px 18px; }
body[data-demo="saclinic"] .faq details[open] { border-color: var(--accent); }
body[data-demo="saclinic"] .faq summary { color: var(--navy); }
.ry-visit { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px; display: grid; gap: 14px; position: sticky; top: 130px; scroll-margin-top: 140px; }
.ry-visit h3 { font-size: 22px; }
.ry-visit-row { display: grid; gap: 2px; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.07); }
.ry-visit-row span { color: #a9c6d3; font-size: 14px; }

/* ---------- footer ---------- */
body[data-demo="saclinic"] #foot { background: var(--navy); color: #cfe0e8; border: 0; text-align: start; padding: 40px clamp(16px, 4vw, 48px) 100px; justify-items: stretch; margin-top: 60px; }
.ry-foot { max-width: 1280px; width: 100%; margin: 0 auto 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ry-foot p { margin: 8px 0 0; color: #a9c6d3; }
.ry-foot b { color: #fff; }
.ry-foot .ry-brand img { background: #fff; border-radius: 10px; padding: 3px; }
.ry-foot .ry-brand small { color: #a9c6d3; }
body[data-demo="saclinic"] #foot .photo-note { max-width: 1280px; width: 100%; margin: 0 auto; color: #7f9dab; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }

/* ---------- forms ---------- */
body[data-demo="saclinic"] .kit-layer.center { border-radius: 14px; border-top: 5px solid var(--accent); }
body[data-demo="saclinic"] .btn { border-radius: 8px; }
body[data-demo="saclinic"] .btn.big.wide { background: var(--accent2); }
body[data-demo="saclinic"] .chips button { border-radius: 8px; }
body[data-demo="saclinic"] input, body[data-demo="saclinic"] select, body[data-demo="saclinic"] textarea { border-radius: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .ry-ins { display: none; }
  .ry-nav, .ry-cta { display: none; }
  .ry-hero { grid-template-columns: 1fr; padding-bottom: 28px; }
  .ry-hero-media { height: 190px; }
  .ry-widget { margin: -60px 10px 0; }
  .ry-doc-wrap { grid-template-columns: 1fr; }
  .ry-tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .ry-tabs button { flex: none; padding: 9px 12px; }
  .ry-faq { grid-template-columns: 1fr; }
  .ry-visit { position: static; }
  .ry-dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(12, 42, 62, .35); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .ry-dock a, .ry-dock button { display: grid; justify-items: center; gap: 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; border-radius: 8px; line-height: 1.3; }
  .ry-dock b { font-size: 18px; line-height: 1.2; color: var(--accent); }
  .ry-dock a:first-child { background: var(--accent2); color: #fff; }
  .ry-dock a:first-child b { color: #fff; }
  body[data-demo="saclinic"] .kit-badge { bottom: 72px; }
}
@media (max-width: 640px) {
  .ry-util { gap: 10px; }
  .ry-hours { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ry-brand small { display: none; }
  #hero .ry-hero h1 { font-size: 34px; }
  .ry-lead { font-size: 16px; }
  .ry-hero-btns .ry-btn { flex: 1; }
  .ry-widget { padding: 16px; margin-inline: 0; }
  .ry-w-specs button { font-size: 12px; padding: 10px 2px; }
  .ry-stats { grid-template-columns: 1fr 1fr 1fr; padding: 0 8px; }
  .ry-stats li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 8px; }
  .ry-stats li + li { padding-inline-start: 10px; }
  .ry-stats b { font-size: 30px; } .ry-stats span { font-size: 12px; line-height: 1.45; }
  .ry-docs { grid-template-columns: 1fr; }
  .ry-doc { grid-template-columns: 92px 1fr; }
  .ry-doc img { width: 92px; height: 112px; }
  .ry-th { display: none; }
  .ry-tr { grid-template-columns: 1fr auto; grid-template-areas: "n n" "p b"; padding: 14px; row-gap: 8px; }
  .ry-svc-name { grid-area: n; } .ry-price { grid-area: p; }
  .ry-tr > span:last-child { grid-area: b; }
}
@media (max-width: 640px) { .ry-foot { grid-template-columns: 1fr; } }
