/* ==========================================================================
   SUFIA HEALTHCARE — Premium Design System
   Motif: the physical OPD "token slip" — a perforated requisition ticket
   every hospital hands a patient — reimagined as the card language of the
   entire product (search card, doctor cards, confirmation screen).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* ---- color tokens ---- */
  --navy-950: #071a2e;
  --navy-900: #0b2545;
  --navy-800: #123564;
  --navy-700: #1a4478;
  --cyan-600: #0a8f8a;
  --cyan-500: #0eaba3;
  --cyan-400: #3fc7bd;
  --cyan-100: #e3f6f3;
  --cyan-50: #f1fbf9;
  --coral-600: #d9482f;
  --coral-500: #e2573d;
  --coral-50: #fdf0ec;
  --paper: #ffffff;
  --mist: #f5f8fa;
  --mist-2: #eef2f6;
  --line: #e3e9ef;
  --ink: #0e1a2b;
  --ink-soft: #33465e;
  --slate: #647186;
  --slate-light: #93a0b3;
  --gold: #c9a15a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.16);
  --shadow-cyan: 0 16px 40px rgba(14, 171, 163, 0.24);

  --container: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.sf {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.sf img {
  max-width: 100%;
  display: block;
}

.sf a {
  text-decoration: none;
  color: inherit;
}

.sf ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf button {
  font-family: inherit;
  cursor: pointer;
}

.sf :focus-visible {
  outline: 2.5px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .sf * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.sf .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- eyebrow / labels ---- */
.sf .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  font-weight: 500;
}

.sf .eyebrow::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--cyan-500);
  display: inline-block;
}

.sf .eyebrow.on-dark {
  color: var(--cyan-400);
}

.sf .eyebrow.coral {
  color: var(--coral-600);
}

.sf .eyebrow.coral::before {
  background: var(--coral-500);
}

.sf h1,
.sf h2,
.sf h3,
.sf h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sf .section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.sf .section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 10px;
}

.sf .section-head p {
  color: var(--slate);
  font-size: 1.02rem;
  margin-top: 14px;
}

.sf .section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sf section.sf-section {
  padding: 88px 0;
}

.sf section.sf-section.tight {
  padding: 64px 0;
}

.sf section.sf-section.on-mist {
  background: var(--mist);
}

.sf section.sf-section.on-navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
}

.sf section.sf-section.on-navy h2 {
  color: #fff;
}

.sf section.sf-section.on-navy p {
  color: #a9b8cc;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.sf .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all .28s var(--ease);
  white-space: nowrap;
}

.sf .btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.sf .btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sf .btn-cyan {
  background: var(--cyan-500);
  color: #fff;
  box-shadow: var(--shadow-cyan);
}

.sf .btn-cyan:hover {
  background: var(--cyan-600);
  transform: translateY(-2px);
}

.sf .btn-outline {
  background: transparent;
  border-color: rgba(11, 37, 69, 0.18);
  color: var(--navy-900);
}

.sf .btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.sf .btn-outline.on-dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.sf .btn-outline.on-dark:hover {
  background: #fff;
  color: var(--navy-900);
}

.sf .btn-coral {
  background: var(--coral-500);
  color: #fff;
  box-shadow: 0 14px 30px rgba(226, 87, 61, 0.28);
}

.sf .btn-coral:hover {
  background: var(--coral-600);
  transform: translateY(-2px);
}

.sf .btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

.sf .btn-block {
  width: 100%;
}

.sf .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
/* ==========================================================================
   HEADER & NAVIGATION DESIGN SYSTEM
   ========================================================================== */
.sf {
  padding-top: 112px;
}

.sf .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: #061526;
  color: #c7d3e3;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sf .topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sf .topbar a {
  color: #c7d3e3;
  transition: color 0.2s ease;
}

.sf .topbar a:hover {
  color: #ffffff;
}

.sf .topbar .tb-emergency {
  color: #ff8a73;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 87, 61, 0.14);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 87, 61, 0.3);
  transition: all 0.25s var(--ease);
}

.sf .topbar .tb-emergency:hover {
  background: var(--coral-500);
  color: #ffffff;
  border-color: var(--coral-500);
  box-shadow: 0 4px 16px rgba(226, 87, 61, 0.35);
}

.sf .topbar .tb-emergency .tb-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5232;
  box-shadow: 0 0 0 3px rgba(255, 82, 50, 0.3);
  animation: tbPulse 1.6s infinite;
}

@keyframes tbPulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }

  100% {
    transform: scale(0.95);
    opacity: 1;
  }
}

.sf .topbar .tb-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.sf .topbar .tb-right span {
  opacity: 0.85;
}

.sf .topbar .tb-link-accent {
  color: var(--cyan-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sf header.sf-header {
  position: fixed;
  top: 47px;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(227, 233, 239, 0.85);
  box-shadow: 0 4px 24px rgba(11, 37, 69, 0.06);
  transition: all 0.3s var(--ease);
}

.sf .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

/* Brand & Logo */
.sf .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.sf .brand:hover {
  transform: translateY(-1px);
}

.sf .brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sf .brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sf .brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--cyan-600);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Nav Items */
.sf .main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sf .main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.22s var(--ease);
  position: relative;
  white-space: nowrap;
}

.sf .main-nav a:hover {
  color: var(--navy-900);
  background: rgba(14, 171, 163, 0.08);
}

.sf .main-nav a.active {
  color: var(--cyan-600);
  background: var(--cyan-50);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(14, 171, 163, 0.25);
}

.sf .main-nav a.active::after {
  display: none;
}

/* Nav Actions CTA */
.sf .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf .nav-login {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s var(--ease);
}

.sf .nav-login:hover {
  background: #ffffff;
  border-color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.sf .btn-cyan {
  background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-600) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(14, 171, 163, 0.28);
}

.sf .btn-cyan:hover {
  box-shadow: 0 8px 24px rgba(14, 171, 163, 0.38);
  transform: translateY(-2px);
}

.sf .burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sf .burger:hover {
  background: var(--line);
}

.sf .burger span {
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.sf .hero {
  position: relative;
  background: linear-gradient(180deg, #f8fbfb 0%, var(--paper) 60%);
  padding: 64px 0 150px;
  overflow: hidden;
}

.sf .hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(14, 171, 163, 0.14), transparent 70%);
  border-radius: 50%;
}

.sf .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.sf .hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  margin-top: 16px;
}

.sf .hero-copy h1 em {
  font-style: italic;
  color: var(--cyan-600);
}

.sf .hero-copy p.lead {
  color: var(--slate);
  font-size: 1.12rem;
  margin-top: 20px;
  max-width: 520px;
}

.sf .hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.sf .hero-quickstats {
  display: flex;
  gap: 30px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.sf .hqs-item {
  border-left: 2px solid var(--line);
  padding-left: 14px;
}

.sf .hqs-item b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-900);
  display: block;
}

.sf .hqs-item span {
  font-size: 0.8rem;
  color: var(--slate);
}

.sf .hero-visual {
  position: relative;
}

.sf .hero-visual .hv-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/4.6;
  box-shadow: var(--shadow-lg);
}

.sf .hero-visual .hv-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf .hero-visual .hv-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(7, 26, 46, 0) 45%, rgba(7, 26, 46, 0.55) 100%);
}

.sf .hv-float-badge {
  position: absolute;
  left: -50px;
  top: 34px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  z-index: 3;
}

.sf .hv-float-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 5px var(--cyan-100);
  flex: none;
}

.sf .hv-float-badge b {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.sf .hv-float-badge span {
  font-size: 0.76rem;
  color: var(--slate);
}

.sf .hv-caption {
  position: absolute;
  bottom: -24px;
  right: -14px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 210px;
  z-index: 3;
}

.sf .hv-caption b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: block;
  color: var(--cyan-400);
}

.sf .hv-caption span {
  font-size: 0.78rem;
  color: #c7d3e3;
}

/* ---- Signature: Ticket / Token search card ---- */
.sf .ticket-wrap {
  position: relative;
  z-index: 10;
  margin-top: -96px;
}

.sf .ticket {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.6fr 1px 1fr;
  overflow: visible;
  position: relative;
}

.sf .ticket-notch {
  position: relative;
}

.sf .ticket-notch::before,
.sf .ticket-notch::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--mist);
  border-radius: 50%;
  left: -13px;
}

.sf .ticket-notch::before {
  top: -13px;
}

.sf .ticket-notch::after {
  bottom: -13px;
}

.sf .ticket-divider {
  border-left: 2px dashed var(--line);
  position: relative;
}

.sf .ticket-search {
  padding: 34px 36px;
}

.sf .ticket-search-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sf .ticket-search-top h3 {
  font-size: 1.2rem;
}

.sf .ticket-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.sf .ticket-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--slate);
  border: 1.5px solid transparent;
  transition: .2s;
}

.sf .ticket-tab.active {
  background: var(--cyan-50);
  color: var(--cyan-600);
  border-color: var(--cyan-400);
}

.sf .search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 18px;
  background: var(--mist);
}

.sf .search-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: var(--ink);
}

.sf .search-field input:focus {
  outline: none;
}

.sf .chip-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sf .chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: .2s;
}

.sf .chip:hover,
.sf .chip.on {
  border-color: var(--cyan-500);
  background: var(--cyan-50);
  color: var(--cyan-600);
}

.sf .ticket-status {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.sf .ts-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf .ts-row b {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--navy-900);
}

.sf .ts-row span {
  font-size: 0.76rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sf .ts-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--cyan-600);
  font-weight: 600;
}

.sf .ts-live .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  position: relative;
}

.sf .ts-live .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-500);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ==========================================================================
   LOGO / TRUST STRIP
   ========================================================================== */
.sf .trust-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.sf .trust-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sf .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--slate);
  font-weight: 500;
}

.sf .trust-item .ti-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-50);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: none;
}

/* ==========================================================================
   CARDS — general
   ========================================================================== */
.sf .grid {
  display: grid;
  gap: 26px;
}

.sf .grid-2 {
  grid-template-columns: 1fr 1fr;
}

.sf .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.sf .grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.sf .dept-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.sf .dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.sf .dept-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cyan-50);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.sf .dept-card h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.sf .dept-card p {
  font-size: 0.86rem;
  color: var(--slate);
  margin: 0 0 14px;
}

.sf .dept-card .dept-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf .dept-card:hover .dept-link {
  color: var(--cyan-600);
}

.sf .why-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.sf .why-card:last-child {
  border-bottom: none;
}

.sf .why-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-600);
  padding-top: 4px;
}

.sf .why-card h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.sf .why-card p {
  font-size: 0.86rem;
  color: var(--slate);
  margin: 0;
}

/* facility image cards */
.sf .fac-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}

.sf .fac-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.sf .fac-card:hover img {
  transform: scale(1.08);
}

.sf .fac-card .fac-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 20, 38, 0.88) 0%, rgba(7, 20, 38, 0.05) 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.sf .fac-overlay b {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.sf .fac-overlay span {
  color: #c7d3e3;
  font-size: 0.78rem;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   DOCTOR CARDS (ticket motif)
   ========================================================================== */
.sf .doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: .3s var(--ease);
  display: flex;
  flex-direction: column;
}

.sf .doctor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sf .dc-photo {
  position: relative;
  aspect-ratio: 4/3.4;
  overflow: hidden;
  background: var(--mist);
}

.sf .dc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf .dc-avail {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sf .dc-avail .dot {
  width: 7px;
  height: 7px;
  background: var(--cyan-500);
  border-radius: 50%;
}

.sf .dc-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy-900);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.sf .dc-body {
  padding: 22px 22px 0;
}

.sf .dc-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--navy-900);
}

.sf .dc-role {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 3px;
}

.sf .dc-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sf .dc-meta-item {
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sf .dc-meta-item b {
  color: var(--navy-900);
}

.sf .dc-slip {
  margin: 20px 22px 22px;
  border-top: 2px dashed var(--line);
  position: relative;
  padding-top: 16px;
}

.sf .dc-slip::before,
.sf .dc-slip::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
}

.sf .dc-slip::before {
  left: -33px;
}

.sf .dc-slip::after {
  right: -33px;
}

.sf .dc-slip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sf .dc-slip-row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.sf .dc-slip-row b {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--navy-900);
}

.sf .dc-slip-actions {
  display: flex;
  gap: 10px;
  padding-bottom: 22px;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.sf .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sf .stat-item {
  background: var(--navy-900);
  padding: 38px 26px;
  text-align: center;
}

.sf .stat-item b {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--cyan-400);
  display: block;
}

.sf .stat-item span {
  font-size: 0.84rem;
  color: #c7d3e3;
}

/* ==========================================================================
   PACKAGES
   ========================================================================== */
.sf .pkg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: .3s var(--ease);
}

.sf .pkg-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-400);
}

.sf .pkg-card .pkg-eyebrow {
  font-size: 0.74rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sf .pkg-card h4 {
  font-size: 1.2rem;
  margin: 8px 0 4px;
}

.sf .pkg-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy-900);
  margin: 10px 0;
}

.sf .pkg-price span {
  font-size: 0.9rem;
  color: var(--slate);
  font-family: var(--font-body);
  text-decoration: line-through;
  margin-left: 8px;
}

.sf .pkg-list {
  margin: 14px 0 22px;
}

.sf .pkg-list li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 8px;
}

.sf .pkg-list li:last-child {
  border-bottom: none;
}

.sf .pkg-list li::before {
  content: '✓';
  color: var(--cyan-600);
  font-weight: 700;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.sf .test-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.sf .test-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.sf .test-quote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy-900);
  margin: 14px 0 20px;
  line-height: 1.5;
}

.sf .test-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf .test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.sf .test-person b {
  display: block;
  font-size: 0.88rem;
  color: var(--navy-900);
}

.sf .test-person span {
  font-size: 0.76rem;
  color: var(--slate);
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.sf .blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: .3s;
}

.sf .blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sf .blog-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.sf .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.sf .blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.sf .blog-body {
  padding: 22px;
}

.sf .blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sf .blog-body h4 {
  font-size: 1.02rem;
  margin: 10px 0 8px;
  line-height: 1.35;
}

.sf .blog-body p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0 0 14px;
}

.sf .blog-read {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
}

/* ==========================================================================
   EMERGENCY CTA
   ========================================================================== */
.sf .emergency-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  padding: 50px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.sf .emergency-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 87, 61, 0.35), transparent 70%);
}

.sf .emergency-banner h3 {
  color: #fff;
  font-size: 1.7rem;
  position: relative;
  z-index: 1;
}

.sf .emergency-banner p {
  color: #c7d3e3;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.sf .emergency-phone {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: #ffb3a1;
  font-weight: 600;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sf footer.sf-footer {
  background: var(--navy-950);
  color: #c7d3e3;
  padding: 80px 0 0;
}

.sf .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-img {
  background-color: white;
  padding: 5px;
  border-radius: 5px;
  max-width: 150px;
}

.sf .footer-brand .brand-text {
  color: #fff;
}

.sf .footer-brand p {
  font-size: 0.86rem;
  color: #8fa0b8;
  margin-top: 16px;
  max-width: 280px;
}

.sf .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.sf .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.sf .footer-col h5 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 18px;
}

.sf .footer-col ul li {
  margin-bottom: 11px;
}

.sf .footer-col ul li a {
  font-size: 0.85rem;
  color: #8fa0b8;
  transition: .2s;
}

.sf .footer-col ul li a:hover {
  color: var(--cyan-400);
}

.sf .footer-bottom {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #6d7f97;
}

.sf .footer-bottom a {
  color: #8fa0b8;
  margin-left: 18px;
}

.sf .newsletter-box {
  display: flex;
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 5px;
}

.sf .newsletter-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.84rem;
}

.sf .newsletter-box input:focus {
  outline: none;
}

.sf .newsletter-box button {
  background: var(--cyan-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.82rem;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
.sf .mobile-book-bar {
  display: none;
}

@media (max-width: 980px) {
  .sf .hero-grid {
    grid-template-columns: 1fr;
  }

  .sf .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .sf .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf .grid-2 {
    grid-template-columns: 1fr;
  }

  .sf .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf .ticket {
    grid-template-columns: 1fr;
  }

  .sf .ticket-divider {
    border-left: none;
    border-top: 2px dashed var(--line);
  }

  .sf .ticket-notch::before,
  .sf .ticket-notch::after {
    left: auto;
    top: -13px;
  }

  .sf .ticket-notch::before {
    left: -13px;
  }

  .sf .ticket-notch::after {
    right: -13px;
  }
}

@media (max-width: 720px) {

  .sf .main-nav,
  .sf .nav-login {
    display: none;
  }

  .sf .burger {
    display: flex;
  }

  .sf .topbar .tb-right a:not(.tb-emergency) {
    display: none;
  }

  .sf .hero {
    padding-bottom: 180px;
  }

  .sf .hero-quickstats {
    gap: 20px;
  }

  .sf .grid-4,
  .sf .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .sf .footer-grid {
    grid-template-columns: 1fr;
  }

  .sf .emergency-banner {
    padding: 36px 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sf .mobile-book-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    gap: 10px;
  }

  .sf .mobile-book-bar .btn {
    flex: 1;
  }

  body.sf {
    padding-bottom: 74px;
  }
}

@media (max-width: 520px) {

  .sf .grid-4,
  .sf .grid-3,
  .sf .grid-2 {
    grid-template-columns: 1fr;
  }

  .sf .hv-caption {
    right: 0;
  }

  .sf .hv-float-badge {
    left: 0;
  }
}

/* ---- reveal-on-scroll ---- */
.sf .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.sf .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- misc ---- */
.sf .badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.sf .badge-inline.ok {
  background: var(--cyan-50);
  color: var(--cyan-600);
}

.sf .badge-inline.warn {
  background: var(--coral-50);
  color: var(--coral-600);
}

.sf hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================================
   PAGE HERO BANNER (FOR INNER PAGES)
   ========================================================================== */
.sf .page-hero {
  background: linear-gradient(145deg, #061526 0%, #0b2545 60%, #123564 100%);
  color: #ffffff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.sf .page-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 171, 163, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sf .page-hero.on-emergency::before {
  background: radial-gradient(circle, rgba(226, 87, 61, 0.3), transparent 70%);
}

.sf .page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-top: 12px;
}

.sf .page-hero p.lead {
  color: #a9b8cc;
  font-size: 1.08rem;
  max-width: 620px;
  margin-top: 14px;
}

/* ==========================================================================
   MULTI-ROLE LOGIN & PORTAL SYSTEM
   ========================================================================== */
.sf .login-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}

.sf .role-tabs {
  display: flex;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 6px;
  gap: 6px;
}

.sf .role-tab {
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sf .role-tab:hover {
  color: var(--navy-900);
}

.sf .role-tab.active {
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.sf .role-tab.active.tab-patient {
  color: var(--cyan-600);
}

.sf .role-tab.active.tab-staff {
  color: #0284c7;
}

.sf .role-tab.active.tab-admin {
  color: var(--coral-600);
}

.sf .login-body {
  padding: 36px 32px;
}

.sf .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.sf .form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf .form-group input,
.sf .form-group select,
.sf .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-size: 0.94rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  transition: all 0.2s ease;
}

.sf .form-group input:focus,
.sf .form-group select:focus,
.sf .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--cyan-100);
}

.sf .demo-credentials-box {
  background: var(--cyan-50);
  border: 1px dashed var(--cyan-400);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.sf .demo-credentials-box b {
  color: var(--cyan-600);
}

.sf .demo-btn-chip {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--cyan-400);
  color: var(--cyan-600);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  margin-right: 6px;
  transition: all 0.2s ease;
}

.sf .demo-btn-chip:hover {
  background: var(--cyan-500);
  color: #ffffff;
}

/* Dashboard Mockup Layout */
.sf .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.sf .dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sf .dash-stat-card b {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-900);
  display: block;
}

.sf .dash-stat-card span {
  font-size: 0.84rem;
  color: var(--slate);
}

/* Emergency Live Tracker Cards */
.sf .tracker-badge-red {
  background: rgba(226, 87, 61, 0.12);
  color: var(--coral-600);
  border: 1px solid rgba(226, 87, 61, 0.3);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}

/* Floating Quick Action Dock */
.floating-quick-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: auto;
}

.floating-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(11, 26, 44, 0.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-action-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(11, 26, 44, 0.45);
  color: #ffffff !important;
}

.floating-action-btn.red-emergency {
  background: linear-gradient(135deg, #e2573d 0%, #c0392b 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(226, 87, 61, 0.4);
  animation: pulseEmergency 2s infinite;
}

.floating-action-btn.red-emergency:hover {
  background: linear-gradient(135deg, #f06246 0%, #d63031 100%);
  box-shadow: 0 14px 32px rgba(226, 87, 61, 0.55);
}

@keyframes pulseEmergency {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 87, 61, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(226, 87, 61, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(226, 87, 61, 0);
  }
}

@media (max-width: 768px) {
  .floating-quick-widget {
    bottom: 80px;
    right: 16px;
  }

  .floating-action-btn {
    padding: 10px 16px;
    font-size: 0.78rem;
  }
}

/* Footer Map styling */
.footer-col iframe {
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
}

.footer-col iframe:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 171, 163, 0.3) !important;
}
/* ================= Language switcher + corrected responsive navigation ================= */
.sf .language-switcher { position: relative; flex: 0 0 auto; }
.sf .language-select {
  min-width: 104px;
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--navy-900);
  font: 600 0.82rem var(--font-body);
  cursor: pointer;
  outline: none;
}
.sf .language-select:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(14,171,163,.12); }
.sf .sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width: 1180px) and (min-width: 721px) {
  .sf .nav-row { gap: 12px; }
  .sf .main-nav { gap: 2px; }
  .sf .main-nav a { padding: 8px 9px; font-size: .82rem; }
  .sf .nav-cta { gap: 8px; }
  .sf .language-select { min-width: 92px; }
}

@media (max-width: 720px) {
  .sf header.sf-header { top: 47px; }
  .sf .nav-row { position: relative; padding: 9px 0; gap: 8px; }
  .sf .brand { min-width: 0; margin-right: auto; }
  .sf .brand img { height: 38px; max-width: 132px; }
  .sf .nav-cta { gap: 7px; margin-left: auto; }
  .sf .nav-cta > .btn { display: none; }
  .sf .language-select { min-width: 86px; height: 36px; padding-left: 10px; padding-right: 24px; font-size: .78rem; }
  .sf .burger { display: flex; width: 40px; height: 38px; padding: 8px; align-items:center; }
  .sf .main-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 1100;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(255,255,255,.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(11,26,44,.12);
  }
  .sf .main-nav.is-open { display: flex !important; }
  .sf .main-nav a { width: 100%; padding: 11px 12px; border-radius: 10px; font-size: .9rem; }
  .sf .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .sf .burger.is-open span:nth-child(2) { opacity: 0; }
  .sf .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 390px) {
  .sf .brand img { max-width: 112px; height: 34px; }
  .sf .language-select { min-width: 78px; font-size: .73rem; }
  .sf .nav-cta { gap: 5px; }
}

/* ========================================================================== 
   Responsive navbar stability fix (mobile + tablet)
   Keeps the existing visual design; only improves responsive behaviour.
   ========================================================================== */
@media (max-width: 900px) {
  .sf .nav-row {
    position: relative;
    padding: 9px 0;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .sf .brand {
    min-width: 0;
    margin-right: auto;
    flex: 0 1 auto;
  }

  .sf .brand img {
    height: 38px;
    max-width: 132px;
  }

  .sf .nav-cta {
    gap: 7px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .sf .nav-cta > .btn {
    display: none;
  }

  .sf .language-select {
    min-width: 86px;
    height: 36px;
    padding-left: 10px;
    padding-right: 24px;
    font-size: .78rem;
  }

  .sf .burger {
    display: flex;
    width: 40px;
    height: 38px;
    padding: 8px;
    align-items: center;
    flex: 0 0 40px;
  }

  .sf .main-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: -28px;
    right: -28px;
    z-index: 1200;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 28px 18px;
    background: rgba(255,255,255,.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(11,26,44,.12);
  }

  .sf .main-nav.is-open {
    display: flex !important;
  }

  .sf .main-nav a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: .9rem;
  }

  .sf .burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .sf .burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .sf .burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .sf .wrap { padding-left: 18px; padding-right: 18px; }
  .sf .main-nav { left: -18px; right: -18px; padding-left: 18px; padding-right: 18px; }
  .sf .topbar .wrap { flex-wrap: nowrap; }
  .sf .topbar .tb-right { display: none; }
  .sf .topbar .tb-emergency { font-size: .72rem; padding: 4px 10px; white-space: nowrap; }
}

@media (max-width: 390px) {
  .sf .brand img { max-width: 108px; height: 34px; }
  .sf .language-select { min-width: 74px; width: 74px; font-size: .72rem; }
  .sf .nav-cta { gap: 5px; }
}

/* ========================================================================== 
   BOOKING DRAWER — shared HTML component
   Keeps the booking markup hidden until opened by app.js.
   ========================================================================== */
.sf .booking-drawer-modal,
.sf .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 46, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}

.sf .booking-drawer-modal.active,
.sf .modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf .drawer-content,
.sf .modal-content {
  width: min(580px, 100%);
  height: 100%;
  background: var(--paper);
  padding: 32px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(7, 26, 46, .20);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}

.sf .booking-drawer-modal.active .drawer-content {
  transform: translateX(0);
}

.sf .modal-content {
  margin: auto;
  height: auto;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  transform: translateY(20px);
}

.sf .modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.sf .drawer-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--mist-2);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.sf .drawer-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--slate);
  transition: .25s var(--ease);
}

.sf .drawer-tab-btn.active {
  background: var(--cyan-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.sf .slot-day-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.sf .slot-day-card {
  border: 1.5px solid var(--line);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: .25s var(--ease);
}

.sf .slot-day-card.active,
.sf .slot-day-card:hover {
  border-color: var(--cyan-600);
  background: var(--cyan-50);
}

.sf .slot-day-name {
  font-weight: 800;
  font-size: .95rem;
  color: var(--navy-950);
}

.sf .slot-day-count {
  font-size: .75rem;
  color: var(--cyan-600);
  font-weight: 700;
}

.sf .time-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.sf .time-slot-btn {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: .25s var(--ease);
}

.sf .time-slot-btn:hover,
.sf .time-slot-btn.selected {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}

.sf .branch-slot-box {
  background: var(--mist);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: .25s var(--ease);
}

.sf .branch-slot-box:hover {
  border-color: var(--cyan-600);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sf .branch-name {
  font-weight: 700;
  color: var(--navy-950);
  font-size: .95rem;
}

.sf .branch-avail {
  font-size: .82rem;
  color: var(--slate);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .sf .drawer-content,
  .sf .modal-content {
    padding: 20px 16px;
  }

  .sf .slot-day-selector {
    grid-template-columns: 1fr;
  }

  .sf .time-slots-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sf .booking-drawer-modal[aria-hidden="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.sf .booking-drawer-modal[aria-hidden="false"] {
  visibility: visible;
}
