/* ============================================================
   COMPONENTS.CSS  v1.0.0
   Royal Clinical Portfolio — Dr. Marjuq Al Tuhin
   Buttons · Badges · Cards · Nav · Footer · Form · Modal
   ============================================================ */

/* ── BUTTONS (HIGH-CONTRAST & BOLD) ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  transition: all var(--t-med);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::before { background: rgba(255,255,255,0.14); }
.btn:active        { transform: translateY(1px); }

/* Primary: Royal Brushed Gold with High-Contrast Deep Navy Text */
.btn--primary {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #B89047 100%);
  color: #08162B !important;
  font-weight: 800;
  box-shadow: 0 8px 24px -2px rgba(180, 83, 9, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #E2BF65 0%, #D4AF37 50%, #C99C35 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(180, 83, 9, 0.45);
  color: #08162B !important;
}

/* Secondary: Medical Azure CTA */
.btn--azure {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 8px 24px -2px rgba(2, 132, 199, 0.38);
}
.btn--azure:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.48);
  color: #FFFFFF !important;
}

/* Outline: High-Contrast Deep Navy Pill with solid border */
.btn--outline {
  background: #FFFFFF;
  color: var(--navy-deep) !important;
  border: 2px solid var(--navy-deep);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.btn--outline:hover {
  background: var(--navy-deep);
  color: #FFFFFF !important;
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.25);
}

/* Ghost: Luminous Azure Tint */
.btn--ghost {
  background: #FFFFFF;
  color: var(--azure-deep) !important;
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}
.btn--ghost:hover {
  background: var(--azure-pale);
  border-color: var(--azure);
  color: var(--azure-deep) !important;
  transform: translateY(-2px);
}

/* Danger */
.btn--danger {
  background: #FEE2E2;
  color: #B91C1C !important;
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  font-weight: 700;
}
.btn--danger:hover {
  background: #EF4444;
  color: #FFFFFF !important;
  border-color: #EF4444;
}

/* Sizes */
.btn--sm { padding: 0.55rem 1.35rem; font-size: 0.75rem; }
.btn--lg { padding: 1.05rem 2.75rem; font-size: 0.925rem; }

/* Icon only */
.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ── BADGES / PILLS (COLORFUL & HIGH CONTRAST) ────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}

.badge--gold {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1.5px solid rgba(180, 83, 9, 0.35);
}

.badge--navy {
  background: var(--azure-pale);
  color: var(--azure-deep);
  border: 1.5px solid rgba(2, 132, 199, 0.3);
}

.badge--emerald {
  background: var(--emerald-pale);
  color: var(--emerald-deep);
  border: 1.5px solid rgba(5, 150, 105, 0.3);
}

.badge--pulse::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* Credential pill (hero) */
.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1.25rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 160, 89, 0.5);
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.12);
  backdrop-filter: blur(10px);
}
.cred-pill__sep {
  opacity: 0.5;
  margin-inline: var(--sp-1);
}

/* ── PRISTINE WHITE & GLASS CARDS ──────────────────────────── */
.card {
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.4);
}

.card--sm { padding: var(--sp-5); border-radius: var(--r-md); }
.card--lg { padding: var(--sp-12); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--azure-pale);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--azure-deep);
  margin-bottom: var(--sp-5);
  transition: all var(--t-med);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}
.card:hover .card__icon {
  background: var(--azure);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* ── NAVIGATION (LIGHT THEME) ──────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  transition: height var(--t-med), background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.nav-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* Scrolled state: Luminous frosted white */
#main-nav.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(226, 232, 240, 0.9);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
}
.nav-logo:hover .nav-logo__title { color: var(--azure); }
.nav-logo__sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Nav links container */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  position: relative;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* Individual nav link */
.nav-links a {
  position: relative;
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border-radius: var(--r-full);
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--azure);
  border-radius: 2px;
  transition: width var(--t-med);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--azure-deep);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 2rem);
}

/* Sliding indicator */
#nav-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--azure);
  pointer-events: none;
  transition: left var(--t-med), width var(--t-med), opacity var(--t-med);
  opacity: 0;
}

/* CTA button */
.nav-cta {
  display: none;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .nav-cta { display: block; }
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
@media (min-width: 900px) {
  .nav-hamburger { display: none; }
}
.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform var(--t-med), opacity var(--t-med), width var(--t-med);
  transform-origin: left center;
}
.nav-hamburger span:nth-child(2) { width: 70%; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(42deg) translateY(-1px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-42deg) translateY(1px); }

/* Mobile nav overlay */
#nav-mobile {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
#nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}
#nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 800;
  color: var(--navy-deep);
  transition: color var(--t-fast), transform var(--t-med);
  transform: translateY(20px);
  opacity: 0;
}
#nav-mobile a:hover {
  color: var(--azure-deep);
}
#nav-mobile.open a {
  transform: translateY(0);
  opacity: 1;
}
#nav-mobile a:nth-child(1) { transition-delay: 60ms;  }
#nav-mobile a:nth-child(2) { transition-delay: 120ms; }
#nav-mobile a:nth-child(3) { transition-delay: 180ms; }
#nav-mobile a:nth-child(4) { transition-delay: 240ms; }
#nav-mobile a:nth-child(5) { transition-delay: 300ms; }
#nav-mobile a:hover { color: var(--gold); }

/* ── FOOTER (LIGHT THEME) ─────────────────────────────────── */
#site-footer, #main-footer {
  background: #FFFFFF;
  border-top: 1.5px solid rgba(226, 232, 240, 0.95);
  padding-top: var(--sp-16);
  margin-top: var(--sp-24);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.03);
}
#site-footer::before, #main-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.4), rgba(197, 160, 89, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand { max-width: 320px; }
.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: var(--sp-3);
}
.footer-brand__tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.footer-col__title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-deep);
  margin-bottom: var(--sp-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a,
.footer-col span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  line-height: 1.5;
}
.footer-col a:hover { color: var(--azure); font-weight: 700; }

/* Social icons */
.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  border: 1px solid rgba(203, 213, 225, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy-deep);
  transition: all var(--t-med);
}
.social-link:hover {
  background: var(--azure);
  border-color: var(--azure);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: var(--border-subtle);
  padding-block: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom p {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--azure-deep);
  font-weight: 700;
}
.footer-bottom a:hover {
  color: var(--azure);
}

/* ── FORM ELEMENTS (LIGHT THEME HIGH-CONTRAST) ─────────────── */
.form-group {
  position: relative;
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: var(--sp-2);
  transition: color var(--t-fast);
}
.form-group:focus-within .form-label {
  color: var(--azure);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  border-radius: var(--r-md);
  color: var(--text-primary);
  padding: 0.9rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--azure);
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-input.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: var(--sp-1);
}

.form-success {
  padding: var(--sp-4) var(--sp-5);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: #86efac;
}

/* ── STATS COUNTER CARD ───────────────────────────────────── */
/* ── STATS COUNTER CARD (BOLD & VIBRANT) ───────────────────── */
.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-number {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

/* ── PAGE LOADER (LIGHT THEME) ────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-5);
  transition: opacity 0.5s, visibility 0.5s;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-deep);
}
.loader-bar {
  width: 140px;
  height: 3px;
  background: rgba(2, 132, 199, 0.18);
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, var(--azure), var(--gold-accent));
  border-radius: inherit;
  animation: loader-slide 1.2s ease-in-out infinite;
}
@keyframes loader-slide {
  0%   { left: -40%; }
  100% { left: 140%; }
}

/* ── TOAST NOTIFICATIONS ──────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 340px;
  backdrop-filter: blur(20px);
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.toast--success {
  background: rgba(15,40,25,0.95);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}
.toast--error {
  background: rgba(40,15,15,0.95);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
.toast--info {
  background: rgba(11,25,44,0.95);
  border: var(--border-gold-mid);
  color: var(--gold-light);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── BACK TO TOP ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-overlay);
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--glass-dark);
  border: var(--border-gold);
  backdrop-filter: var(--glass-blur-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--t-med), transform var(--t-med), background var(--t-med);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: rgba(197,160,89,0.12);
  box-shadow: var(--shadow-gold);
}

/* ── SECTION ANATOMY ─────────────────────────────────────── */
.section-head { margin-bottom: var(--sp-12); }
.section-head--center { text-align: center; }

.section-head__pre {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.section-head__title {
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}
.section-head__desc {
  color: var(--text-muted);
  max-width: 540px;
}
.section-head--center .section-head__desc { margin-inline: auto; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid rgba(197,160,89,0.1);
  margin: 0;
}

/* ── GOLD GRADIENT TEXT ──────────────────────────────────── */
.gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO PORTRAIT SYSTEM (LIGHT THEME) ───────────────────── */
.hero-portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(ellipse 85% 85% at 50% 65%, rgba(2, 132, 199, 0.12) 0%, rgba(217, 119, 6, 0.14) 50%, rgba(248, 250, 252, 0) 75%);
  border-radius: 260px 260px 40px 40px;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 24px 50px -10px rgba(2, 132, 199, 0.16), inset 0 2px 20px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.hero-portrait-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(2, 132, 199, 0.2);
  pointer-events: none;
}
.hero-portrait-ring--1 { inset: 5%; }
.hero-portrait-ring--2 { inset: 15%; border-color: rgba(197, 160, 89, 0.2); }

.hero-portrait-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 140px;
  background: radial-gradient(ellipse, rgba(197, 160, 89, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-portrait-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: auto;
  /* High contrast drop-shadow on light background */
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.18));
  /* Smooth bottom dissolve into light canvas */
  -webkit-mask-image: linear-gradient(180deg, black 74%, transparent 100%);
  mask-image: linear-gradient(180deg, black 74%, transparent 100%);
}

/* Hero floating chips (Crisp white badges) */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.55rem 1.15rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(203, 213, 225, 0.95);
  border-radius: var(--r-full);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
  z-index: 3;
  animation: chip-float 6s ease-in-out infinite;
}
.hero-chip--1 {
  bottom: 28%;
  left: -18px;
  border-left: 3.5px solid var(--azure);
  animation-delay: 0s;
}
.hero-chip--2 {
  top: 22%;
  right: -12px;
  border-right: 3.5px solid var(--gold-accent);
  animation-delay: 3s;
}
.hero-chip--3 {
  bottom: 10%;
  right: -10px;
  border-right: 3.5px solid var(--emerald);
  animation-delay: 1.5s;
}

@keyframes chip-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Ring pulse */
@keyframes ring-pulse {
  0%,100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 0.08; transform: scale(1.03); }
}
.ring-pulse { animation: ring-pulse 4s ease-in-out infinite; }

/* ── COMPETENCY PILLS (TABS - ULTRA HIGH CONTRAST) ────────── */
.comp-pills {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.comp-pill {
  padding: 0.75rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--r-full);
  background: #FFFFFF;
  border: 2px solid #94A3B8;
  color: #08162B !important;
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.comp-pill:hover {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}
.comp-pill.active {
  background: #08162B !important;
  color: #FFFFFF !important;
  border-color: #08162B !important;
  box-shadow: 0 8px 24px -2px rgba(8, 22, 43, 0.5) !important;
  font-weight: 800 !important;
  transform: translateY(-2px);
  outline: 2.5px solid #0284C7;
  outline-offset: 2px;
}
.comp-pill.active::before {
  content: '✓';
  display: inline-block;
  color: #F59E0B;
  font-weight: 900;
  font-size: 0.85rem;
  margin-right: 2px;
}

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PRACTICE / CONTACT MODE SWITCHER (LIGHT THEME) ───────── */
.switcher {
  display: inline-flex;
  background: #F1F5F9;
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  border-radius: var(--r-full);
  padding: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}
.switcher-btn {
  position: relative;
  z-index: 2;
  padding: 0.6rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--r-full);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-med);
  letter-spacing: 0.03em;
}
.switcher-btn.active { color: #FFFFFF; }
.switcher-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  z-index: 1;
  background: linear-gradient(135deg, var(--azure), #0369A1);
  border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: left var(--t-med), width var(--t-med);
}

/* ── RESEARCH CARDS (LIGHT THEME) ────────────────────────── */
.research-card {
  padding: var(--sp-8);
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--gold-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.4);
}
.research-card:hover::before { transform: scaleX(1); }

/* DOI / type badge */
.doi-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: var(--purple-pale);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-deep);
}

/* ── SPECIALTY MEDICAL ILLUSTRATIONS & CARDS ─────────────── */
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px)  { .specialty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .specialty-grid { grid-template-columns: repeat(4, 1fr); } }

.specialty-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med);
  box-shadow: var(--shadow-sm);
}
.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.18);
  border-color: rgba(2, 132, 199, 0.4);
}

.specialty-illustration {
  width: 100%;
  height: 190px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03);
}
.specialty-illustration--ear {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 50%, #E0F2FE 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
}
.specialty-illustration--sinus {
  background: linear-gradient(135deg, #E0F2FE 0%, #F0FDF4 50%, #ECFEFF 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
}
.specialty-illustration--throat {
  background: linear-gradient(135deg, #FFE4E6 0%, #FFF1F2 50%, #FEF3C7 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.25);
}
.specialty-illustration--neck {
  background: linear-gradient(135deg, #EDE9FE 0%, #F5F3FF 50%, #E0F2FE 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.25);
}

.specialty-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.specialty-tag--gold   { color: var(--gold-dark); }
.specialty-tag--azure  { color: var(--azure-deep); }
.specialty-tag--rose   { color: var(--rose); }
.specialty-tag--purple { color: var(--purple-deep); }

.specialty-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-deep);
  margin-bottom: var(--sp-3);
}

.specialty-desc {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

.specialty-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.specialty-badge {
  padding: 0.25rem 0.65rem;
  background: var(--bg-subtle);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-deep);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

/* ── EDUCATION TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--sp-10);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--azure), var(--gold), rgba(197,160,89,0.15));
  border-radius: var(--r-full);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-10);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-10) + 1px);
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--azure);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  transition: all var(--t-med);
}
.timeline-item:nth-child(1)::before {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
}
.timeline-item:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.2);
}
.timeline-item .t-h3 {
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 1.45rem;
}
.timeline-item .t-label {
  color: var(--azure-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.timeline-item .t-body {
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.65;
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(6,15,26,0.95);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--r-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  border: var(--border-gold);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-dark);
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.lightbox-close:hover {
  background: rgba(197,160,89,0.16);
  color: var(--gold);
}

/* ── SHIMMER SKELETON ────────────────────────────────────── */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  width: var(--progress, 0%);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-bar__fill.animated {
  transform: scaleX(1);
}

/* ── T-LABEL ──────────────────────────────────────────────── */
/* Ensure .t-label utility is available for hero pre-text */
.t-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

/* ── CTA BAND HIGH CONTRAST ──────────────────────────────── */
#cta-band {
  background: linear-gradient(135deg, #061224 0%, #0B2240 50%, #08162B 100%) !important;
  border-top: 3.5px solid #F59E0B !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-align: center;
  color: #FFFFFF !important;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 24px rgba(0, 0, 0, 0.4);
}

#cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(2, 132, 199, 0.22), transparent 70%);
  pointer-events: none;
}

#cta-band .container {
  position: relative;
  z-index: 2;
}

#cta-band [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

#cta-band .t-label {
  color: #38BDF8 !important;
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  margin-bottom: var(--sp-4);
  display: block;
}

#cta-band h2,
#cta-band .t-h2,
#cta-band #cta-heading {
  color: #FFFFFF !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 3.8vw, 3.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7) !important;
  margin-bottom: var(--sp-6);
}

#cta-band em,
#cta-band .gold,
#cta-band .brush-accent,
#cta-band .cursive-accent {
  color: #FDE047 !important;
  font-family: var(--font-brush) !important;
  font-size: 1.25em !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.02em !important;
  display: inline-block;
  text-shadow: 0 0 24px rgba(253, 224, 71, 0.55) !important;
}

#cta-band #cta-book-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #08162B !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
  padding: 0.95rem 2.25rem !important;
  border: 2px solid #F59E0B !important;
  border-radius: var(--r-full) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45) !important;
  transition: all var(--t-fast) !important;
}

#cta-band #cta-book-btn:hover {
  background: #FBBF24 !important;
  border-color: #FBBF24 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.65) !important;
}

#cta-band #cta-contact-btn {
  background: #FFFFFF !important;
  color: #08162B !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
  padding: 0.95rem 2.25rem !important;
  border: 2px solid #FFFFFF !important;
  border-radius: var(--r-full) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25) !important;
  transition: all var(--t-fast) !important;
}

#cta-band #cta-contact-btn:hover {
  background: #F8FAFC !important;
  color: #0284C7 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4) !important;
}
