/* ============================================================
   SITE MEDICS — Global Stylesheet
   Palette: Navy / Royal Blue / Grey / Black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy-deep:   #0A1628;
  --navy-mid:    #0D2148;
  --navy-base:   #1A3460;
  --navy-light:  #1F4080;
  --royal:       #2557B7;
  --royal-bright:#3068D4;
  --royal-soft:  #4A82E8;
  --royal-pale:  #8BB8F5;
  --black:       #111111;
  --grey-90:     #1C1C1C;
  --grey-70:     #4A4A4A;
  --grey-50:     #6B6B6B;
  --grey-30:     #9A9A9A;
  --grey-15:     #C4C4C4;
  --grey-08:     #E8E8E8;
  --grey-04:     #F4F4F4;
  --white:       #FFFFFF;
  --font-main:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', monospace;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }

/* ── LAYOUT ── */
.inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ── NAVIGATION ── */
.site-nav {
  background: var(--navy-deep);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 34px;
  height: 34px;
}
.nav-logo-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo-text span { color: var(--royal-soft); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--royal);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--royal-bright); }

/* ── HERO — INDEX ── */
.hero-section {
  background: var(--navy-deep);
  padding: 80px 40px 72px;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(74,130,232,0.15);
  color: var(--royal-pale);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  border: 0.5px solid rgba(74,130,232,0.3);
  letter-spacing: 0.3px;
}
.hero-section h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-section h1 em {
  font-style: normal;
  color: var(--royal-soft);
}
.hero-section p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: var(--navy-deep);
  padding: 60px 40px;
}
.page-hero .inner { max-width: 1100px; }
.page-hero-tag {
  display: inline-block;
  background: rgba(74,130,232,0.15);
  color: var(--royal-pale);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 500;
  border: 0.5px solid rgba(74,130,232,0.3);
}
.page-hero h1 {
  font-size: 34px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--royal-pale); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--royal);
  color: var(--white);
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--royal-bright); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 0.5px solid rgba(255,255,255,0.25);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 400;
  transition: background var(--transition);
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); }
.btn-white {
  background: var(--white);
  color: var(--royal);
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: opacity var(--transition);
  display: inline-block;
  white-space: nowrap;
}
.btn-white:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  color: var(--royal);
  border: 1px solid var(--royal);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline:hover { background: var(--royal); color: var(--white); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy-mid);
  border-top: 0.5px solid rgba(255,255,255,0.06);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  padding: 28px 40px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 64px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 26px;
  font-weight: 500;
  color: var(--royal-soft);
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
  letter-spacing: 0.2px;
}

/* ── SECTION WRAPPERS ── */
.section-light  { background: var(--grey-04); padding: 72px 40px; }
.section-white  { background: var(--white);   padding: 72px 40px; }
.section-dark   { background: var(--navy-deep); padding: 72px 40px; }
.section-mid    { background: var(--grey-08);  padding: 56px 40px; }

.section-header { text-align: center; margin-bottom: 52px; }
.tag-light {
  display: inline-block;
  background: rgba(37,87,183,0.08);
  color: var(--royal);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 500;
  border: 0.5px solid rgba(37,87,183,0.18);
  letter-spacing: 0.3px;
}
.tag-dark {
  display: inline-block;
  background: rgba(74,130,232,0.15);
  color: var(--royal-pale);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 500;
  border: 0.5px solid rgba(74,130,232,0.25);
  letter-spacing: 0.3px;
}
.section-header h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  color: var(--navy-deep);
}
.section-header h2.on-dark { color: var(--white); }
.section-header p {
  font-size: 16px;
  color: var(--grey-50);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-header p.on-dark { color: rgba(255,255,255,0.5); }

/* ── SERVICE CARDS (index) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 0.5px solid var(--grey-08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
  display: block;
}
.service-card:hover {
  border-color: var(--grey-15);
  transform: translateY(-2px);
}
.service-card.featured { border: 1.5px solid var(--royal); }
.svc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.svc-icon-wrap.navy { background: var(--navy-mid); }
.svc-icon-wrap.grey { background: var(--grey-08); border: 0.5px solid var(--grey-15); }
.svc-icon-wrap svg { width: 26px; height: 26px; }
.svc-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.badge-royal { background: rgba(37,87,183,0.1); color: var(--navy-base); border: 0.5px solid rgba(37,87,183,0.2); }
.badge-grey  { background: var(--grey-08); color: var(--grey-70); border: 0.5px solid var(--grey-15); }
.service-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--navy-deep);
}
.service-card > p {
  font-size: 14px;
  color: var(--grey-50);
  line-height: 1.7;
  margin-bottom: 18px;
}
.svc-features li {
  font-size: 13px;
  color: var(--grey-70);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.svc-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--royal);
  flex-shrink: 0;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--royal);
  font-weight: 500;
  margin-top: 18px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 8px; }

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 0.5px;
  background: rgba(255,255,255,0.12);
}
.process-step { text-align: center; padding: 0 16px; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
}
.step-num.active {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}
.process-step h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--white);
}
.process-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
}

/* ── TECH GRID ── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tech-list { display: flex; flex-direction: column; gap: 22px; }
.tech-item { display: flex; gap: 16px; align-items: flex-start; }
.tech-dot {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-08);
  border: 0.5px solid var(--grey-15);
}
.tech-dot svg { width: 18px; height: 18px; }
.tech-item h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--navy-deep);
}
.tech-item p { font-size: 14px; color: var(--grey-50); line-height: 1.65; }

/* ── DETAIL CONTENT (sub-pages) ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.detail-grid.reverse { }
.detail-content h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.detail-content p {
  font-size: 15px;
  color: var(--grey-50);
  line-height: 1.75;
  margin-bottom: 18px;
}
.check-list li {
  font-size: 14px;
  color: var(--grey-70);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 0.5px solid var(--grey-08);
}
.check-list li:last-child { border-bottom: none; }
.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37,87,183,0.1);
  border: 0.5px solid rgba(37,87,183,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg { width: 10px; height: 10px; }

/* ── INFO CARDS ── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.info-card {
  background: var(--white);
  border: 0.5px solid var(--grey-08);
  border-radius: var(--radius-md);
  padding: 24px;
}
.info-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.info-card p { font-size: 13px; color: var(--grey-50); line-height: 1.65; }
.info-card .card-num {
  font-size: 22px;
  font-weight: 500;
  color: var(--royal);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

/* ── TWO-COL FEATURE LIST ── */
.feature-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.feature-item {
  background: var(--grey-04);
  border: 0.5px solid var(--grey-08);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.feature-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 5px;
}
.feature-item p { font-size: 13px; color: var(--grey-50); line-height: 1.6; }

/* ── VISUAL PANEL (side graphics) ── */
.visual-panel {
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 0.5px solid rgba(74,130,232,0.15);
}
.visual-panel svg { width: 100%; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--royal);
  border-radius: var(--radius-lg);
  padding: 52px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.cta-band h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.cta-band p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  line-height: 1.65;
}

/* ── CONTACT FORM ── */
.contact-form {
  background: var(--white);
  border: 0.5px solid var(--grey-08);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--grey-70); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 0.5px solid var(--grey-15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--royal); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  border-top: 0.5px solid rgba(255,255,255,0.07);
}
.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 40px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.footer-brand-logo span {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}
.footer-brand-logo span em {
  font-style: normal;
  color: var(--royal-soft);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 220px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.07);
  padding: 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.28);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.19s; }
.fade-up-4 { animation-delay: 0.26s; }

/* ── UTILITY ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.divider { height: 0.5px; background: var(--grey-08); margin: 32px 0; }
.text-center { text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid,
  .detail-grid,
  .tech-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .inner, .nav-inner, .hero-section, .page-hero,
  .section-light, .section-white, .section-dark, .section-mid { padding-left: 24px; padding-right: 24px; }
  .feature-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-section h1 { font-size: 30px; }
  .info-cards { grid-template-columns: 1fr; }
  .stats-inner { gap: 32px; flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
}
