/* SonoCare Clinics (sonocare.ng): the SonoCare design system with a hospital accent (indigo) and a 24-hour bar. */
:root { --clinic: #4B55D8; --clinic-deep: #343CB0; --clinic-wash: #ECEDFC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --clinic-wash: #23265A; } }

.open-bar { background: var(--midnight); color: #C9CCEA; font-size: .82rem; position: relative; z-index: 51; }
.open-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 36px; white-space: nowrap; }
.open-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.open-bar svg { width: 15px; height: 15px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2DD4A7; margin-right: 6px; box-shadow: 0 0 0 0 rgba(45, 212, 167, .6); animation: pulse-dot 2s infinite; vertical-align: 1px; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 167, .55); } 70% { box-shadow: 0 0 0 8px rgba(45, 212, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@media (max-width: 640px) { .open-bar .hide-s { display: none; } }
body.hero-page .site-head { top: 36px; }
body.hero-page .site-head.scrolled { top: 0; }

.clinic-logo { display: inline-flex; align-items: center; text-decoration: none; }
.clinic-logo img { height: 50px; width: auto; }
@media (max-width: 600px) { .clinic-logo img { height: 40px; } }
.logo-word { font: 500 .78rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--clinic); padding-left: 10px; border-left: 1px solid var(--line); }
body.hero-page .site-head:not(.scrolled) .logo-word { color: #C9CCEA; border-color: rgba(255,255,255,.25); }

.hero.clinic-hero { padding-top: calc(108px + clamp(40px, 6vw, 88px)); }
.hero.clinic-hero h1 { max-width: 16ch; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-self: center; padding-bottom: clamp(56px, 8vw, 110px); }
.fact { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 20px 22px; backdrop-filter: blur(6px); }
.fact b { display: block; font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--head); color: #fff; letter-spacing: -.02em; }
.fact span { color: #C9CCEA; font-size: .88rem; }
.fact.wide { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
@media (max-width: 900px) { .hero.clinic-hero .hero-grid { grid-template-columns: 1fr; } .hero-facts { padding-bottom: 56px; } }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dept { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.dept:hover { border-color: color-mix(in srgb, var(--clinic) 40%, var(--line)); transform: translateY(-1px); }
.dept h3 { font-size: 1rem; margin-bottom: 4px; }
.dept p { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.dept-detail { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 120px; }
.dept-detail h3 { font-size: 1.2rem; }
.dept-detail ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; font-size: .95rem; }
.dept-detail .go { display: inline-block; margin-top: 12px; color: var(--violet); font-weight: 500; font-size: .9rem; text-decoration: none; }
.t-clinic { --tone: var(--clinic); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--clinic-wash); color: var(--clinic-deep); font-size: .82rem; font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .pill { color: #C9CCFF; } }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.way { background: var(--paper); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.way .btn { justify-self: start; margin-top: 6px; }
.ae-band { background: linear-gradient(135deg, #B81F31, var(--red)); color: #fff; border-radius: var(--r-l); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.ae-band h2 { color: #fff; }
.ae-band p { color: #FBDDE1; }
.ae-band .btn.light { border-color: rgba(255,255,255,.45); }
@media (max-width: 800px) { .ae-band { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.checklist svg { width: 20px; height: 20px; color: var(--teal); margin-top: 3px; }
.checklist.urgent svg { color: var(--red); }
