/* ==========================================================================
   Kensai Health — Official Stylesheet
   Tagline: Advancing Evidence. Enabling Access.
   ========================================================================== */

:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-dark: #090D16;
  --blue: #0284C7;
  --blue-hover: #0369A1;
  --cyan: #0EA5E9;
  --cyan-light: #E0F2FE;
  --teal: #0D9488;
  --teal-light: #CCFBF1;
  --emerald: #10B981;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --white: #FFFFFF;
  --gold: #D97706;
  --purple: #7C3AED;
  --red: #EF4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--slate-700);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--blue-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted { color: var(--slate-500); }
.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  max-width: 1400px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 56px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-dark {
  background-color: var(--navy);
  color: var(--slate-300);
}

.section-slate {
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--slate-500);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  max-width: 65px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  mix-blend-mode: multiply;
  margin-right: 2px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.06em;
  display: block;
}

.brand-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  color: #0284c7;
  display: block;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 290px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: var(--slate-50);
  color: var(--blue);
  border-left-color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--slate-300);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background-color: var(--cyan-light);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-blue {
  background-color: var(--cyan-light);
  color: var(--blue);
}

.badge-navy {
  background-color: rgba(15, 23, 42, 0.08);
  color: var(--navy);
}

.badge-teal {
  background-color: var(--teal-light);
  color: var(--teal);
}

.badge-gold {
  background-color: #FEF3C7;
  color: var(--gold);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 85% 20%, #0369A1 0%, #0F172A 60%, #080C14 100%);
  color: var(--white);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 960px;
}

.hero-tag {
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(120deg, #38BDF8, #2DD4BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Subpage Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
  color: var(--white);
  padding: 44px 0 48px;
  position: relative;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.page-hero p.lead {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 760px;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-400);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #7DD3FC;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-icon-blue { background: var(--cyan-light); color: var(--blue); }
.card-icon-teal { background: var(--teal-light); color: var(--teal); }
.card-icon-purple { background: #EDE9FE; color: var(--purple); }
.card-icon-gold { background: #FEF3C7; color: var(--gold); }
.card-icon-red { background: #FEE2E2; color: var(--red); }

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--slate-500);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  margin-top: auto;
}

.card-link:hover {
  gap: 10px;
}

/* Feature Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Callout Box */
.callout {
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blue);
  background: var(--slate-50);
  margin: 28px 0;
}

.callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.callout p {
  font-size: 0.95rem;
  color: var(--slate-600);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1050px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 640px;
  margin: 0 auto 32px;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate-800);
  background-color: var(--white);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--slate-400);
  padding: 80px 0 40px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 46px;
  width: auto;
  border-radius: 4px;
}

.footer-brand-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.1;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #38BDF8;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  line-height: 1.35;
  margin-top: 3px;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--slate-400);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.15rem; }
  .hero-lead { font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .nav-menu { display: none; } /* In real site would toggle; kept simple */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
