/* ── KBL Shared Styles — Bright Medical Theme ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off-white: #f7f9fc;
  --bg-subtle: #eef3f9;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a5f;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(203,213,225,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-brand-text {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  letter-spacing: -0.01em;
}

nav ul { list-style: none; display: flex; align-items: center; gap: 0.2rem; }

nav ul a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav ul a:hover { color: var(--blue-600); background: var(--blue-50); }
nav ul a.active { color: var(--blue-600); background: var(--blue-50); }

.nav-cta {
  background: var(--blue-600) !important;
  color: white !important;
}
.nav-cta:hover { background: var(--blue-700) !important; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 8rem 4rem 3.5rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--slate-200);
}

.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--blue-600);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.page-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ── PAGE CONTENT ── */
.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 4rem 6rem;
}

/* ── BUTTONS ── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.6rem;
  background: var(--blue-600);
  color: white;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-solid:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.6rem;
  background: transparent;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }

/* ── LINK ARROW ── */
.link-arrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.6rem; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── FOOTER ── */
footer {
  background: var(--slate-900);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left { display: flex; align-items: center; gap: 0.9rem; }

.footer-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-name { color: rgba(255,255,255,0.65); font-size: 0.85rem; font-weight: 500; }
.footer-right-text { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }

@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  .page-hero { padding: 7rem 2rem 3rem; }
  .page-content { padding: 3rem 2rem 5rem; }
}

@media (max-width: 640px) {
  nav ul a { padding: 0.35rem 0.5rem; font-size: 0.75rem; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; padding: 2rem 1.5rem; }
}
