/* Site chrome — header logo, footer, bottom slider, scroll-to-top */

/* ─── Enhanced header & logo ─── */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(13, 33, 55, 0.98) 0%, rgba(27, 73, 101, 0.96) 100%) !important;
  border-bottom: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.landing-header__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--md-primary, #e85d04) 0%, #f5a623 35%, var(--md-accent, #2ec4b6) 70%, var(--md-primary, #e85d04) 100%);
  background-size: 200% 100%;
  animation: header-accent-shift 8s ease infinite;
}

@keyframes header-accent-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.landing-header__top {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-header__top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.landing-header__top-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.landing-header__top-item .material-icons-round {
  font-size: 0.95rem;
  color: var(--md-accent, #2ec4b6);
}

.landing-header__top-item--link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.landing-header__top-item--link:hover {
  color: var(--md-primary, #e85d04);
}

.landing-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-header__menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
}

.landing-header__cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}

.landing-header__cta--mobile {
  display: none;
}

/* Desktop — simple Appointment + Login buttons (same row) */
.header-actions,
.landing-header__cta.landing-header__cta--mobile {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-actions.hide-mobile {
  display: flex;
}

.header-actions .header-cta--login,
.landing-header__cta--mobile .header-cta--login {
  flex-shrink: 0;
  text-decoration: none;
}

/* Legacy panel (unused) — kept for reference during transition */
.header-right-panel {
  flex-shrink: 0;
  margin-left: auto;
}

.header-right-panel__card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-right-panel__section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.15rem 0.55rem;
}

.header-right-panel__section--appt {
  min-width: 168px;
  max-width: 200px;
}

.header-right-panel__section--login {
  min-width: 148px;
  max-width: 172px;
}

.header-right-panel__divider {
  width: 1px;
  align-self: stretch;
  margin: 0.25rem 0.35rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.header-right-panel__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-right-panel__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.header-right-panel__icon .material-icons-round {
  font-size: 1.15rem !important;
}

.header-right-panel__icon--appt {
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.35), rgba(244, 140, 6, 0.2));
  color: #ffd6a5;
}

.header-right-panel__icon--login {
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.35), rgba(27, 73, 101, 0.25));
  color: #b2f5ea;
}

.header-right-panel__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.header-right-panel__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.25;
}

.header-right-panel__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.header-right-panel__phone .material-icons-round {
  font-size: 0.95rem !important;
  color: var(--md-accent, #2ec4b6);
}

.header-right-panel__phone:hover {
  color: var(--md-primary, #e85d04);
}

.header-right-panel__hint {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.header-right-panel__portals {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.header-right-panel__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--md-primary, #e85d04) 0%, #f48c06 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-right-panel__book .material-icons-round {
  font-size: 1rem !important;
}

.header-right-panel__book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.5);
}

.header-right-panel__login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.1rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #1b4965;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-right-panel__login-btn .material-icons-round {
  font-size: 1rem !important;
  color: var(--md-primary, #e85d04);
}

.header-right-panel__login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.header-login-dropdown--panel {
  width: 100%;
}

.header-login-dropdown--panel .header-login-dropdown__menu {
  min-width: 280px;
}

/* Mobile menu — appointment block */
.site-nav__appt-mobile {
  display: none;
  width: 100%;
  padding: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.18), rgba(46, 196, 182, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav__appt-mobile-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.95rem;
}

.site-nav__appt-mobile-head .material-icons-round {
  color: var(--md-primary, #e85d04);
}

.site-nav__appt-mobile-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-nav__appt-mobile-hint {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-nav__appt-mobile-book {
  width: 100%;
  justify-content: center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-cta .material-icons-round {
  font-size: 1.15rem;
}

.header-cta--login {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.header-cta--login:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

/* Login dropdown — Patient, Doctor, Admin, Lab */
.header-login-dropdown {
  position: relative;
}

.header-login-dropdown__toggle {
  cursor: pointer;
  font: inherit;
}

.header-login-dropdown__chevron {
  font-size: 1.1rem !important;
  transition: transform 0.2s ease;
}

.header-login-dropdown.is-open .header-login-dropdown__chevron {
  transform: rotate(180deg);
}

.header-login-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 0.35rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27, 73, 101, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 200;
}

.header-login-dropdown__menu:not([hidden]) {
  animation: login-menu-in 0.2s ease;
}

@keyframes login-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-login-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--md-secondary, #1b4965);
  transition: background 0.15s ease;
}

.header-login-dropdown__item:hover {
  background: rgba(232, 93, 4, 0.08);
}

.header-login-dropdown__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.15), rgba(27, 73, 101, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-login-dropdown__icon .material-icons-round {
  font-size: 1.15rem;
  color: var(--md-primary, #e85d04);
}

.header-login-dropdown__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header-login-dropdown__text strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.header-login-dropdown__text small {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.header-login-dropdown__arrow {
  font-size: 1.1rem !important;
  color: #94a3b8;
}

/* Mobile menu login tiles */
.site-nav__login-portals {
  display: none;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__login-portals-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.site-nav__login-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
  text-decoration: none;
}

.site-nav__login-hub .material-icons-round {
  font-size: 1.15rem !important;
}

.site-nav__login-portals-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-nav__login-portals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.site-nav__login-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}

.site-nav__login-portal .material-icons-round {
  font-size: 1.35rem;
  color: var(--md-accent, #2ec4b6);
}

.site-nav__login-portal:hover {
  background: rgba(232, 93, 4, 0.2);
}

@media (max-width: 900px) {
  .header-actions.hide-mobile {
    display: none !important;
  }

  .landing-header__cta--mobile {
    display: flex !important;
    flex-flow: row nowrap;
    order: 2;
    margin-left: auto;
    gap: 0.4rem;
  }

  .landing-header__menu.is-open .site-nav__login-portals {
    display: block;
  }

  .landing-header__menu.is-open .site-nav__appt-mobile {
    display: block;
  }
}

.header-cta--book {
  color: #fff;
  background: linear-gradient(135deg, var(--md-primary, #e85d04) 0%, #f48c06 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(232, 93, 4, 0.45);
}

.header-cta--book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(232, 93, 4, 0.55);
  filter: brightness(1.05);
}

.header-cta__book-short {
  display: none;
}

.site-nav__call-mobile {
  display: none;
  width: 100%;
  justify-content: center;
}

.site-nav__for-clinics {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.82rem !important;
  padding: 0.35rem 0.65rem !important;
  min-height: auto !important;
}

.landing-header.is-scrolled .landing-header-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.landing-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.landing-header.is-scrolled .landing-header__top {
  display: none;
}

.brand-lockup--enhanced {
  gap: 1rem !important;
}

.brand-lockup--prominent {
  gap: 0.85rem 1.15rem !important;
  align-items: center;
  min-width: 0;
}

.brand-lockup--prominent .brand-lockup__logo-wrap {
  flex-shrink: 0;
}

.brand-lockup--image-logo .brand-lockup__logo {
  width: auto !important;
  height: clamp(58px, 9vw, 82px) !important;
  max-width: min(340px, 58vw);
  object-fit: contain;
  border-radius: 14px !important;
  background: #fff;
  padding: 8px 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(232, 93, 4, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-lockup--image-logo .brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand-lockup--image-logo .brand-lockup__name {
  display: block !important;
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #ffd4a8 55%, #f5a623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-lockup--image-logo .brand-lockup__tagline {
  display: block;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 500;
  opacity: 0.88;
  color: rgba(255, 255, 255, 0.92);
  max-width: 18rem;
  line-height: 1.4;
}

.brand-lockup--image-logo .brand-lockup__ring {
  display: none;
}

.brand-lockup--image-logo:hover .brand-lockup__logo {
  transform: scale(1.04);
  box-shadow:
    0 10px 36px rgba(232, 93, 4, 0.35),
    0 0 0 2px rgba(245, 166, 35, 0.55);
  rotate: 0deg;
}

/* Text-only brand (no logo image) */
.brand-lockup--prominent:not(.brand-lockup--image-logo) .brand-lockup__logo,
.brand-lockup--prominent:not(.brand-lockup--image-logo) .brand-logo-fallback {
  width: 64px !important;
  height: 64px !important;
  font-size: 1.65rem !important;
}

.brand-lockup--prominent:not(.brand-lockup--image-logo) .brand-lockup__name {
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  font-weight: 800 !important;
  color: #fff;
}

.brand-lockup--prominent:not(.brand-lockup--image-logo) .brand-lockup__tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .brand-lockup--prominent.brand-lockup--image-logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-lockup--image-logo .brand-lockup__text {
    display: none;
  }

  .brand-lockup--image-logo .brand-lockup__logo {
    max-width: min(300px, 72vw);
    height: clamp(54px, 14vw, 68px) !important;
  }
}

@media (min-width: 769px) {
  .brand-lockup--prominent.brand-lockup--image-logo {
    flex-direction: row;
  }
}

.brand-lockup__logo-wrap {
  position: relative;
  flex-shrink: 0;
}

.brand-lockup__logo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(245, 166, 35, 0.35);
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.brand-logo-fallback,
.login-portal-banner__logo.brand-logo-fallback,
.clinic-loader__logo.brand-logo-fallback,
.footer-landing__logo.brand-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--md-primary, #e85d04), var(--md-secondary, #1b4965));
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  object-fit: cover;
}

.brand-lockup--enhanced:hover .brand-lockup__logo {
  transform: scale(1.05) rotate(-2deg);
}

.brand-lockup__ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid transparent;
  border-top-color: var(--md-primary, #e85d04);
  border-right-color: var(--md-accent, #2ec4b6);
  animation: logo-spin 4s linear infinite;
  z-index: 0;
}

@keyframes logo-spin {
  to { transform: rotate(360deg); }
}

.brand-lockup__text h1,
.brand-lockup__name {
  font-size: 1.35rem !important;
  letter-spacing: -0.02em;
}

/* Navigation */
.landing-nav {
  align-items: center;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.site-nav__link {
  position: relative;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--md-primary, #e85d04);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.site-nav__link.is-active::after {
  width: 1.25rem;
}

.site-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.site-nav-toggle:hover {
  background: rgba(232, 93, 4, 0.35);
}

@media (max-width: 768px) {
  .landing-header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .landing-header__cta--mobile {
    order: 2;
    margin-left: auto;
    gap: 0.4rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .header-cta__book-text {
    display: none;
  }

  .header-cta__book-short {
    display: inline;
  }

  .site-nav-toggle {
    order: 3;
    display: inline-flex;
  }

  .landing-header__menu {
    order: 4;
    flex: 1 1 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.65rem;
    gap: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .landing-header__menu.is-open {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
    width: 100%;
  }

  .site-nav__link {
    width: 100%;
    text-align: center;
  }

  .site-nav__call-mobile {
    display: inline-flex;
  }

  .social-links--header {
    justify-content: center;
    margin-left: 0 !important;
  }
}

@media (min-width: 901px) {
  .landing-header-inner {
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .landing-header__menu {
    flex: 1 1 auto;
    justify-content: center;
  }

  .header-actions.hide-mobile {
    display: flex !important;
  }

  .header-right-panel {
    display: none !important;
  }

  .landing-header__cta--mobile {
    display: none !important;
  }

  .site-nav-toggle {
    display: none;
  }
}

/* ─── Branch select bar (below header) ─── */
.branch-select-bar {
  background: linear-gradient(90deg, rgba(232, 93, 4, 0.12) 0%, rgba(46, 196, 182, 0.1) 100%);
  border-bottom: 1px solid rgba(27, 73, 101, 0.12);
  box-shadow: 0 4px 16px rgba(27, 73, 101, 0.08);
}

.branch-select-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.branch-select-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--md-secondary, #1b4965);
  white-space: nowrap;
}

.branch-select-bar__label .material-icons-round {
  color: var(--md-primary, #e85d04);
  font-size: 1.15rem;
}

.branch-select-bar__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.branch-select-bar__select {
  min-width: min(280px, 100%);
  max-width: 340px;
  min-height: 42px;
  border-radius: 10px !important;
  border: 1.5px solid rgba(27, 73, 101, 0.2) !important;
  font-weight: 600;
  color: var(--md-secondary, #1b4965);
  background: #fff;
  flex: 1 1 200px;
}

.branch-select-bar__call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-secondary, #1b4965);
  white-space: nowrap;
}

.branch-select-bar__call .material-icons-round {
  font-size: 1rem;
  color: var(--md-primary, #e85d04);
}

.branch-select-bar__call a {
  color: var(--md-primary, #e85d04);
  text-decoration: none;
  font-weight: 700;
}

.branch-select-bar__call a:hover {
  text-decoration: underline;
}

.branch-select-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.branch-select-bar__btn--book {
  color: #fff;
  background: linear-gradient(135deg, var(--md-primary, #e85d04), #f48c06);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}

.branch-select-bar__btn--book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.45);
}

.public-branch-book--bar {
  margin: 0;
  max-width: none;
}

@media (max-width: 640px) {
  .branch-select-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .branch-select-bar__label {
    justify-content: center;
  }

  .branch-select-bar__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .branch-select-bar__select {
    max-width: none;
    width: 100%;
  }

  .branch-select-bar__call {
    justify-content: center;
  }

  .branch-select-bar__btn {
    width: 100%;
    justify-content: center;
  }
}

/* News ticker click controls */
.news-ticker__controls {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.5rem;
  align-items: center;
}

.news-ticker__ctrl {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.news-ticker__ctrl:hover {
  background: var(--md-primary, #e85d04);
}

.news-ticker__viewport.is-paused .news-ticker__track {
  animation-play-state: paused;
}

/* ─── Bottom click slider (above footer) ─── */
.bottom-slider {
  background: linear-gradient(180deg, #f0f4f8 0%, #e8eef4 100%);
  border-top: 1px solid #dde4ec;
  padding: 2rem 1.5rem;
}

.bottom-slider__inner {
  max-width: 900px;
  margin: 0 auto;
}

.bottom-slider__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.bottom-slider__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--md-secondary, #1b4965);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.bottom-slider__head h3 .material-icons-round {
  color: var(--md-primary, #e85d04);
}

.bottom-slider__hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.bottom-slider__stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bottom-slider__viewport {
  flex: 1;
  overflow: hidden;
  min-height: 140px;
}

.bottom-slider__track {
  display: flex;
  min-height: 140px;
}

.bottom-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 8px 28px rgba(27, 73, 101, 0.1);
  border: 1px solid rgba(27, 73, 101, 0.08);
  text-align: center;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.bottom-slider__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.bottom-slider__badge--news { background: #dbeafe; color: #1d4ed8; }
.bottom-slider__badge--notice { background: #fef3c7; color: #b45309; }
.bottom-slider__badge--info { background: #d1fae5; color: #047857; }

.bottom-slider__slide h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--md-secondary, #1b4965);
}

.bottom-slider__slide p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.bottom-slider__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--md-primary, #e85d04);
  text-decoration: none;
  font-size: 0.88rem;
}

.bottom-slider__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--md-secondary, #1b4965);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 73, 101, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.bottom-slider__arrow:hover {
  background: var(--md-primary, #e85d04);
  transform: scale(1.08);
}

.bottom-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.bottom-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.bottom-slider__dot.is-active {
  background: var(--md-primary, #e85d04);
  transform: scale(1.25);
}

/* ─── Footer enhancements ─── */
.footer-landing {
  position: relative;
  padding: 0 1.5rem 2rem !important;
  background: linear-gradient(180deg, #0f2840 0%, var(--md-secondary, #1b4965) 28%, #0a1e32 100%) !important;
  overflow: hidden;
}

.footer-landing__wave {
  height: 48px;
  margin: 0 -1.5rem 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f7fa' d='M0 32L48 28C96 24 192 16 288 18.7C384 21 480 35 576 37.3C672 40 768 32 864 26.7C960 21 1056 19 1152 22.7C1248 26 1344 34 1392 38.7L1440 43V0H1392C1344 0 1248 0 1152 0C1056 0 960 0 864 0C768 0 672 0 576 0C480 0 384 0 288 0C192 0 96 0 48 0H0V32Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.footer-landing__cta {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding-top: 1.5rem;
}

.footer-landing__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.18) 0%, rgba(46, 196, 182, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.footer-landing__cta-text h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: #fff;
  font-weight: 700;
}

.footer-landing__cta-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-landing__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-landing__cta-btn {
  min-height: 46px !important;
  font-weight: 600 !important;
}

.footer-landing__cta-btn.md-btn-filled {
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.45) !important;
}

.footer-landing__grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

@media (max-width: 960px) {
  .footer-landing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-landing__grid {
    grid-template-columns: 1fr;
  }
  .footer-landing__cta-inner {
    padding: 1.35rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-landing__cta-buttons {
    width: 100%;
  }
  .footer-landing__cta-btn {
    flex: 1;
    min-width: 0;
  }
}

.footer-landing__col {
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s, background 0.25s;
}

.footer-landing__col:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 93, 4, 0.25);
}

.footer-landing__col h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff !important;
  margin: 0 0 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(232, 93, 4, 0.45);
}

.footer-landing__col h4 .material-icons-round {
  font-size: 1.1rem;
  color: var(--md-primary, #e85d04);
}

.footer-landing__brand {
  position: relative;
}

.footer-landing__brand--image-logo .footer-landing__brand-name {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #ffd4a8 60%, #f5a623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-landing__brand--image-logo .footer-landing__logo {
  width: auto !important;
  height: clamp(64px, 10vw, 80px) !important;
  max-width: 100%;
  object-fit: contain;
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(232, 93, 4, 0.35);
}

.footer-landing__brand--image-logo .footer-landing__logo-ring {
  display: none;
}

.footer-landing__brand-name {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.1rem;
}

.footer-landing__brand-tagline {
  margin: 0 0 0.5rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.875rem !important;
  line-height: 1.5;
}

.footer-landing__logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer-landing__logo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.footer-landing__logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px dashed rgba(46, 196, 182, 0.5);
  animation: logo-spin 12s linear infinite reverse;
}

.footer-landing__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-landing__list li {
  margin-bottom: 0.5rem;
}

.footer-landing__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8 !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-landing__list a::before {
  content: '›';
  color: var(--md-primary, #e85d04);
  font-weight: 700;
  transition: transform 0.2s;
}

.footer-landing__list a:hover {
  color: #fff !important;
  transform: translateX(3px);
}

.footer-landing__list a:hover::before {
  transform: translateX(2px);
}

.footer-landing__list--plain li {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
  padding-left: 0.15rem;
}

.footer-landing__list--plain li.muted {
  opacity: 0.65;
  font-style: italic;
}

.footer-landing__list--contact a {
  align-items: flex-start;
}

.footer-landing__list--contact a::before {
  display: none;
}

.footer-landing__contact-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(232, 93, 4, 0.15);
  border: 1px solid rgba(232, 93, 4, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-landing__contact-icon .material-icons-round {
  font-size: 1rem;
  color: var(--md-primary, #e85d04);
}

.footer-landing__views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem !important;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.8rem !important;
  color: var(--md-accent, #2ec4b6) !important;
}

.footer-landing__views .material-icons-round {
  font-size: 1rem;
}

.footer-landing__developer {
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-landing__developer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-landing__developer-inner .material-icons-round {
  font-size: 1.1rem;
  color: var(--md-accent, #2ec4b6);
}

.footer-landing__developer-inner a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(46, 196, 182, 0.6);
}

.footer-landing__developer-inner a:hover {
  color: var(--md-accent, #2ec4b6) !important;
}

.footer-landing__dev-year {
  opacity: 0.85;
}

.footer-landing__dev-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--md-primary, #e85d04);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
}

.footer-landing__copy p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* ─── Floating corner controls (scroll top + accessibility) ─── */
:root {
  --float-edge-x: max(1.25rem, env(safe-area-inset-right, 0px));
  --float-edge-y: max(1rem, env(safe-area-inset-bottom, 0px));
  --scroll-top-size: 52px;
  --float-stack-gap: 0.75rem;
  --site-access-bar-height: 46px;
}

/* ─── Scroll to top ─── */
.scroll-top-btn {
  position: fixed;
  bottom: var(--float-edge-y);
  right: var(--float-edge-x);
  z-index: 10001;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--md-primary, #e85d04), #f48c06);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232, 93, 4, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(232, 93, 4, 0.5);
}

.scroll-top-btn .material-icons-round {
  font-size: 1.5rem;
}

/* Social — Facebook & Instagram */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.social-links--footer {
  margin-top: 1rem;
}

.social-links--header {
  margin-left: 0.25rem;
}

.social-links__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}

.social-links__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links__btn span {
  display: none;
}

.social-links--footer .social-links__btn span,
.social-links--contact .social-links__btn span {
  display: inline;
}

.social-links__btn--facebook {
  background: #1877f2;
}

.social-links__btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links--header .social-links__btn {
  padding: 0.4rem;
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 50%;
}

.social-links--header .social-links__btn svg {
  width: 18px;
  height: 18px;
}

.contact-quick__item--facebook:hover,
.contact-quick__item--instagram:hover {
  border-color: transparent;
}

.contact-quick__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  margin: 0 auto 0.25rem;
  display: block;
}

.contact-quick__icon--fb {
  background: #1877f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") center/60% no-repeat;
}

.contact-quick__icon--ig {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324z'/%3E%3C/svg%3E") center/60% no-repeat;
}

.scroll-top-btn__label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: -2px;
}

@media (max-width: 480px) {
  :root {
    --float-edge-x: max(0.85rem, env(safe-area-inset-right, 0px));
    --float-edge-y: max(1rem, env(safe-area-inset-bottom, 0px));
    --scroll-top-size: 48px;
    --float-stack-gap: 0.55rem;
  }

  .scroll-top-btn {
    width: var(--scroll-top-size);
    height: var(--scroll-top-size);
  }
}

/* Selected branch details panel */
.branch-details-section {
  padding-top: 0.5rem;
}

.branch-details-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 0;
  overflow: hidden;
}

.branch-details-card__photo {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.branch-details-card__photo--empty {
  background: linear-gradient(135deg, rgba(27, 73, 101, 0.08), rgba(232, 93, 4, 0.08));
}

.branch-details-card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--md-secondary, #1b4965);
}

.branch-details-card__address,
.branch-details-card__note,
.branch-details-card__phone {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.branch-details-card__phone {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--md-primary, #e85d04);
  text-decoration: none;
}

.branch-details-card__actions {
  margin-top: 1rem;
}

.branch-details-card__map {
  grid-column: 1 / -1;
  min-height: 280px;
  border-top: 1px solid rgba(27, 73, 101, 0.08);
}

.branch-details-card__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.doctors-slider__empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--md-secondary, #1b4965);
}

.doctors-slider__empty .material-icons-round {
  font-size: 2.5rem;
  color: var(--md-primary, #e85d04);
  margin-bottom: 0.5rem;
}

.contact-grid--form {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

@media (max-width: 768px) {
  .branch-details-card {
    grid-template-columns: 1fr;
  }
}
