/* =====================================================
   MedTechISO - Main Stylesheet
   Brand Colors: Deep Navy #0A1628, Medical Blue #1E5FA8, 
   Accent Teal #00B4A6, Light Gray #F5F7FA, White #FFFFFF
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

/* ===================== CSS VARIABLES ===================== */
:root {
  --navy: #0A1628;
  --navy-mid: #112240;
  --blue: #1E5FA8;
  --blue-light: #2D7DD2;
  --teal: #00B4A6;
  --teal-light: #00CFC0;
  --white: #FFFFFF;
  --light-bg: #F5F7FA;
  --light-bg2: #EDF2FB;
  --text-dark: #1A2340;
  --text-mid: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;

  /* ---- Type Scale (5 levels, base 16px) ----
     xs   = 0.75rem  (12px) — badges, tiny labels only
     sm   = 0.8125rem (13px) — meta, timestamps, captions
     base = 0.9375rem (15px) — all card & body text
     md   = 1rem      (16px) — card headings, nav, buttons
     lg   = 1.1rem    (17.6px) — section subtitles, lead text
  ---- */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1rem;
  --text-lg:   1.1rem;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

p { color: var(--text-mid); }

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

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

ul { list-style: none; }

/* ===================== UTILITY CLASSES ===================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

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

.text-center { text-align: center; }

.text-teal { color: var(--teal); }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }

.tag {
  display: inline-block;
  background: rgba(0, 180, 166, 0.1);
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 95, 168, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 95, 168, 0.45);
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

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

.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 180, 166, 0.35);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 166, 0.45);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar.solid {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

/* ---- Logo image replacing MI initials ---- */
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 2px;
  flex-shrink: 0;
}

/* ---- Consultant profile photo (about page card) ---- */
.apc-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--teal);
  box-shadow: 0 4px 20px rgba(0, 180, 166, 0.3);
}
.apc-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---- Contact card avatar photo ---- */
.ci-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--teal);
  box-shadow: 0 2px 12px rgba(0, 180, 166, 0.25);
}
.ci-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---- LinkedIn post card avatar photo ---- */
.lp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.lp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-title {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.nav-logo-sub {
  font-size: var(--text-xs);
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-mid);
  padding: 16px 24px;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
  padding: 12px 16px;
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.mobile-nav-cta {
  margin-top: 8px;
  background: var(--teal);
  color: white !important;
  text-align: center;
  font-weight: 600;
}

/* ===================== PAGE HEADER BANNER ===================== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0D2147 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30,95,168,0.25) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 50%, rgba(0,180,166,0.15) 0%, transparent 70%);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-header p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
  padding-left: 6px;
}

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
}

.footer-contact-item i {
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--teal); }

/* ===================== CARDS ===================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 95, 168, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30,95,168,0.1), rgba(0,180,166,0.1));
  color: var(--blue);
}

/* ===================== DIVIDER ===================== */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 2px;
  margin: 16px auto 32px;
}

.divider-left { margin: 16px 0 32px; }

/* ===================== BADGE STRIP ===================== */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 95, 168, 0.08);
  color: var(--blue);
  border: 1px solid rgba(30, 95, 168, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.badge i { font-size: 0.75rem; color: var(--teal); }

/* ===================== GRID HELPERS ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

/* Intersection Observer driven animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .section-padding { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 120px 24px 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: var(--text-base); }
}
