/* ============================================================
   SMARTCARE FM SERVICES — GLOBAL CSS
   Shared vars, resets, typography, nav, footer, utilities
   ============================================================ */

/* ── Google Fonts import (placed here, referenced everywhere) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand palette (from SmartCare FM logo) */
  --navy:        #1A3660;
  --navy-dark:   #0F2340;
  --navy-mid:    #1D4275;
  --navy-light:  #244680;
  --teal:        #2A8B76;
  --teal-light:  #37A88F;
  --teal-pale:   #E6F5F2;
  --teal-glow:   #7DE8D4;

  /* Neutrals */
  --white:       #FFFFFF;
  --gray-50:     #F5F7FA;
  --gray-100:    #EEF1F6;
  --gray-200:    #D9DFE9;
  --gray-300:    #B8C2D4;
  --gray-400:    #8C96A8;
  --gray-500:    #64748B;
  --gray-600:    #4A5568;
  --gray-700:    #2D3748;
  --gray-800:    #1E2A3B;
  --gray-900:    #111827;

  /* Typography */
  --font-head:   'Poppins', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Shadows */
  --shadow-xs:   0 1px 4px rgba(26,54,96,0.06);
  --shadow-sm:   0 2px 8px rgba(26,54,96,0.08);
  --shadow-md:   0 4px 20px rgba(26,54,96,0.12);
  --shadow-lg:   0 8px 40px rgba(26,54,96,0.16);
  --shadow-xl:   0 16px 60px rgba(26,54,96,0.20);

  /* Radii */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Layout */
  --max-w:     1280px;
  --nav-h:     72px;
}

/* ── Reset ── */
*, *::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);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Section spacing ── */
.section { padding: var(--sp-24) 0; }
.section-sm { padding: var(--sp-16) 0; }

/* ── Section labels ── */
.section-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: var(--sp-4);
}

.section-tag--light {
  background: rgba(42,139,118,0.2);
  color: var(--teal-glow);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.section-title--light { color: var(--white); }

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 580px;
}

.section-sub--light { color: rgba(255,255,255,0.72); }

.section-head { margin-bottom: var(--sp-12); }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,139,118,0.35);
}

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

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

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

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

.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── Backgrounds ── */
.bg-white   { background: var(--white); }
.bg-gray    { background: var(--gray-50); }
.bg-navy    { background: var(--navy); }
.bg-dark    { background: var(--navy-dark); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-teal   { color: var(--teal); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--gray-500); }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-auto { margin-top: auto; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: var(--sp-3);
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ── Cards (base) ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: all var(--t-base);
}
.card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Icon box ── */
.icon-box {
  width: 54px;
  height: 54px;
  background: var(--teal-pale);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background var(--t-base);
}
.card:hover .icon-box { background: var(--teal); }

/* ── KPI / stat chip ── */
.kpi-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.kpi-chip .kpi-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.kpi-chip .kpi-num span { color: var(--teal-glow); }
.kpi-chip .kpi-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform var(--t-base), box-shadow var(--t-base);
  color: white;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ── Page hero banner (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1D5A7A 100%);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.page-hero h1 span { color: var(--teal-glow); }
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto var(--sp-6);
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: var(--sp-5);
}
.breadcrumb a { color: var(--teal-glow); }
.breadcrumb span { opacity: 0.4; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: var(--r-xl);
  padding: 60px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-10);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--white);
  max-width: 460px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.cta-banner-actions {
  display: flex;
  gap: var(--sp-4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Responsive helpers ── */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-5); }
  .section { padding: var(--sp-16) 0; }
  .cta-banner { padding: 48px 40px; }
}

@media (max-width: 768px) {
  .section { padding: var(--sp-12) 0; }
  .section-sub { font-size: 15px; }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .cta-banner h2 { max-width: 100%; }
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-banner-actions .btn { justify-content: center; }
  .whatsapp-fab { width: 52px; height: 52px; font-size: 24px; bottom: 20px; right: 20px; }
}