/* ==========================================================================
   CrownCare Medical Center - Master Design System & Core Styles
   Location: No 20 Amufie Road, Ogrute, Igbo-Eze North, Enugu State, Nigeria
   Contact: +234 903 214 7569 (Offorma Apeh) | info@CrownCareMedicalCenter.com
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --primary: #0A4D40;
  --primary-dark: #062E26;
  --primary-light: #0D6E5C;
  --primary-lighter: #108E77;
  --primary-tint: #E8F5F2;
  --primary-tint-subtle: #F2FAF8;
  
  --secondary-gold: #D4AF37;
  --gold-light: #F9E79F;
  --gold-dark: #A67C1E;
  
  --navy: #0E2A47;
  --navy-dark: #091B2E;
  --navy-light: #1E3A5F;
  
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --border-light: #E2E8F0;
  --border-emerald: #C6E9E0;
  --border-gold: #F3E5AB;
  
  --status-emergency: #DC2626;
  --status-emergency-bg: #FEF2F2;
  --status-success: #16A34A;
  --status-success-bg: #F0FDF4;
  --status-whatsapp: #25D366;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(10, 77, 64, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 77, 64, 0.08), 0 2px 4px -2px rgba(10, 77, 64, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 77, 64, 0.08), 0 4px 6px -4px rgba(10, 77, 64, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(10, 77, 64, 0.1), 0 8px 10px -6px rgba(10, 77, 64, 0.06);
  --shadow-card: 0 12px 30px -10px rgba(14, 42, 71, 0.08);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.25);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Utility & Layout Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

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

.section-bg-alt {
  background-color: var(--primary-tint-subtle);
  border-top: 1px solid var(--border-emerald);
  border-bottom: 1px solid var(--border-emerald);
}

.section-bg-dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: var(--text-white);
}

.section-bg-dark p {
  color: #CBD5E1;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--primary-tint);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid var(--border-emerald);
}

.badge-tag.gold {
  background-color: #FEF9C3;
  color: var(--gold-dark);
  border-color: #FDE047;
}

.badge-tag.white {
  background-color: rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.875rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(10, 77, 64, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 77, 64, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #E5C158 0%, var(--secondary-gold) 100%);
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #F5D77F 0%, #D4AF37 100%);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

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

.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--navy);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--status-whatsapp);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-emergency {
  background-color: var(--status-emergency);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-emergency:hover {
  background-color: #B91C1C;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

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

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

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

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

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .section {
    padding: 3.75rem 0;
  }
}
