/* ========================================
   ELINMED — SHARED DESIGN SYSTEM
   Clean, clinical-luxe aesthetic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0d2340;
  --blue: #1a4a8a;
  --sky: #3b82c4;
  --teal: #0ea5a0;
  --teal-light: #e0f4f3;
  --cream: #faf9f6;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f6;
  --gray-300: #c8cdd8;
  --gray-500: #7a8299;
  --gray-700: #3f4659;
  --gray-900: #1a1f2e;
  --red-soft: #fff5f5;
  --red-border: #e57373;
  --gold: #c9a96e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(13,35,64,0.08);
  --shadow-md: 0 4px 24px rgba(13,35,64,0.12);
  --shadow-lg: 0 8px 40px rgba(13,35,64,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 22px; height: 22px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.logo-text span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--gray-50);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.25rem !important;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text { color: white; font-size: 1.4rem; }
.footer-brand .logo-text span { color: var(--teal); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; }
.footer-brand .contact-info { margin-top: 1.25rem; font-size: 0.875rem; }
.footer-brand .contact-info p { margin-bottom: 0.25rem; }
.footer-brand .contact-info a { color: var(--teal); text-decoration: none; }

.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* ---- EMERGENCY BANNER ---- */
.emergency-banner {
  background: var(--red-soft);
  border-bottom: 1px solid #fca5a5;
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: #b91c1c;
}

.emergency-banner strong { font-weight: 600; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.btn-teal {
  background: var(--teal);
  color: white;
}
.btn-teal:hover {
  background: #0d908b;
  transform: translateY(-1px);
}

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

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ---- SECTION UTILITIES ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm { padding: 3rem 0; }

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

.section-cream {
  background: var(--cream);
}

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

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title.light { color: white; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

.section-subtitle.light { color: rgba(255,255,255,0.7); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---- DIVIDER ---- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.divider.center { margin: 1.25rem auto; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
