/* ============================================================
   Celly Mobile Dialysis — Brand CSS (Celly Health Ecosystem)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --orange: #E8713A;
  --orange-hover: #D4632F;
  --orange-light: #FDF0E9;
  --orange-pale: #FFF8F3;
  --navy: #0B1838;
  --navy-mid: #162850;
  --navy-light: #2D4170;
  --teal: #2A8B84;
  --teal-light: #E8F5F4;
  --green: #1D7C3F;
  --green-light: #E7F5EC;
  --purple: #6B3FA0;
  --purple-light: #F0EAF8;
  --g50: #F9FAFB;
  --g100: #F3F4F6;
  --g200: #E5E7EB;
  --g300: #D1D5DB;
  --g400: #9CA3AF;
  --g500: #6B7280;
  --g600: #4B5563;
  --g700: #374151;
  --g800: #1F2937;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--g800);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.9375rem; font-weight: 500; }

p { color: var(--g700); line-height: 1.7; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-hover); }

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

ul { list-style: none; }

/* ── Layout ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-bg { background: var(--bg); }
.section-navy { background: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Section Tag (.stag) ── */
.stag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.stag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.stag span {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Outfit', sans-serif;
}
.stag-light::before { background: rgba(255,255,255,0.5); }
.stag-light span { color: rgba(255,255,255,0.7); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-sm  { padding: 10px 22px; font-size: 14px; }
.btn-md  { padding: 14px 32px; font-size: 15px; }
.btn-lg  { padding: 18px 40px; font-size: 16px; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); color: #fff; opacity: 1; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-light); color: #fff; opacity: 1; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--g200); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); opacity: 1; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; opacity: 1; }
.btn-teal { background: var(--teal); color: #fff; }

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--g100);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.card-body { padding: 24px; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}
.badge-orange { background: var(--orange); color: #fff; }
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-teal   { background: var(--teal-light); color: var(--teal); }
.badge-gray   { background: var(--g100); color: var(--g600); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--g200);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--g800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--teal); }
.form-control::placeholder { color: var(--g400); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
}
.site-nav .container {
  width: 100%;
  display: flex;
  align-items: center;
}
.site-nav.scrolled { border-bottom-color: var(--g100); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nav-logo-text span { color: var(--orange); }
.nav-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--g500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--g700);
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--orange);
  background: var(--orange-light);
}
.nav-link svg { transition: transform 0.2s; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Dropdowns */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border: 1px solid var(--g100);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(11,24,56,0.12);
  padding: 8px;
  /* Invisible top extension so cursor doesn't lose hover between trigger and menu */
  margin-top: 0;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  /* Show instantly, hide with 150ms delay so cursor has time to reach menu */
  transition: opacity 0.15s 150ms, transform 0.15s 150ms;
  z-index: 100;
}
/* Pseudo-element bridge fills the gap between nav link and dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px;
  background: transparent;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.15s 0ms, transform 0.15s 0ms;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g700);
  border-radius: 10px;
  transition: all 0.15s;
}
.nav-dropdown a:hover { background: var(--orange-light); color: var(--orange); }
.nav-dropdown-icon {
  width: 28px;
  height: 28px;
  background: var(--g100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--g600);
}
/* Icon SVGs match link text color */
.nav-dropdown-icon svg { stroke: var(--g600) !important; }
.nav-dropdown a:hover .nav-dropdown-icon { background: rgba(232,113,58,0.12); }
.nav-dropdown a:hover .nav-dropdown-icon svg { stroke: var(--orange) !important; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Nav */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto; /* always pushes to far right regardless of what's hidden */
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

#mobile-menu-toggle { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
}
#mobile-menu-toggle:checked ~ .mobile-nav { display: flex; }
#mobile-menu-toggle:checked ~ .site-nav .bar1 { transform: rotate(45deg) translate(5px, 5px); }
#mobile-menu-toggle:checked ~ .site-nav .bar2 { opacity: 0; }
#mobile-menu-toggle:checked ~ .site-nav .bar3 { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-close {
  width: 36px;
  height: 36px;
  background: var(--g100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}
.mobile-cta { margin-bottom: 24px; }
.mobile-cta a { display: block; text-align: center; }

.mobile-nav-links { flex: 1; }
.mobile-nav-links > li { border-bottom: 1px solid var(--g100); }
.mobile-nav-links > li > a,
.mobile-nav-links > li > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.mobile-nav-links > li > a:hover { color: var(--orange); }

.mobile-accordion-toggle { display: none; }
.mobile-accordion-content {
  display: none;
  padding-bottom: 12px;
}
.mobile-accordion-toggle:checked ~ .mobile-accordion-content { display: block; }
.mobile-accordion-content a {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  color: var(--g600);
  border-left: 2px solid var(--g200);
  margin-bottom: 4px;
}
.mobile-accordion-content a:hover { color: var(--orange); border-color: var(--orange); }

.mobile-nav-footer {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--g100);
}
.mobile-nav-footer p { font-size: 13px; color: var(--g500); margin-bottom: 4px; }
.mobile-nav-footer a { font-size: 15px; font-weight: 600; color: var(--navy); }

/* Body padding for fixed nav */
body { padding-top: 72px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,24,56,0.62) 50%, rgba(11,24,56,0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}
.hero-content h1 { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; margin-bottom: 20px; }
.hero-content h1 span { color: var(--orange); }
.hero-content p { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero stats bar */
.hero-stats {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 20px 0;
}
.hero-stat-item { padding: 16px 12px; }
.hero-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,24,56,0.9) 60%, rgba(11,24,56,0.6));
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-content .stag { margin-bottom: 10px; }
.page-hero-content h1 { color: #fff; margin-bottom: 10px; }
.page-hero-content p { color: rgba(255,255,255,0.7); max-width: 560px; }
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.6); }
.breadcrumb-nav a:hover { color: var(--orange); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* ── Checkmark list ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--g700);
}
.check-list li .check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Service Cards ── */
.service-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--g100);
  padding: 28px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: var(--orange-light);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 { font-size: 16px; margin: 0; }
.service-card p { font-size: 14px; color: var(--g500); flex: 1; margin: 0; }
.service-card a.learn-more { font-size: 13px; font-weight: 600; color: var(--orange); }

/* ── Article Cards (Education) ── */
.article-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--g100);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.article-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
}
.article-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.article-card-body h3 { font-size: 16px; line-height: 1.35; }
.article-card-body h3 a { color: var(--navy); }
.article-card-body h3 a:hover { color: var(--orange); }
.article-card-body p { font-size: 14px; color: var(--g500); flex: 1; margin: 0; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; }

/* ── Values Grid ── */
.value-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--g100);
  padding: 28px;
  transition: all 0.3s;
  text-align: center;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--g500); margin: 0; }

/* ── Two-col feature section ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy-mid);
  padding: 56px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 { color: var(--white); font-size: 1.75rem; }
.cta-banner h2 span { color: var(--orange); }
.cta-banner p { color: rgba(255,255,255,0.65); font-size: 15px; margin: 8px 0 0; }
.cta-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── Who We Serve cards ── */
.serve-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--g100);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s;
}
.serve-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.serve-card-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.serve-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.serve-card-body p { font-size: 14px; color: var(--g500); margin: 0; }

/* ── Contact form section ── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--g100);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text h4 { font-size: 13px; color: var(--g500); font-weight: 500; margin-bottom: 2px; }
.contact-info-text p, .contact-info-text a { font-size: 15px; font-weight: 600; color: var(--navy); margin: 0; }
.contact-info-text a:hover { color: var(--orange); }

/* ── Footer ── */
.site-footer { background: var(--navy); }

.footer-cta {
  background: var(--navy-mid);
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-cta h2 { color: var(--white); font-size: 1.5rem; }
.footer-cta h2 span { color: var(--orange); }
.footer-cta p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 6px 0 0; }

.footer-body { padding: 56px 0 32px; }

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

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 16px 0 20px;
}
.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-logo-text span { color: var(--orange); }
.footer-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.social-links { display: flex; gap: 8px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-link:hover { background: var(--orange); }
.social-link svg { fill: rgba(255,255,255,0.6); }
.social-link:hover svg { fill: #fff; }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.5;
}
.footer-contact-item a { color: rgba(255,255,255,0.5); }
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }
.footer-legal a:hover { color: var(--orange); }

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
}
#back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 12px;
  opacity: 0;
  transition: all 0.3s;
  color: #fff;
}
#back-to-top.visible a { opacity: 1; }
#back-to-top a:hover { background: var(--orange-hover); }
#back-to-top a::after {
  content: '';
  width: 10px;
  height: 10px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg) translateY(2px);
}

/* ── Info callouts ── */
.callout {
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 16px;
}
.callout-info    { background: var(--teal-light); border: 1px solid rgba(42,139,132,0.2); }
.callout-success { background: var(--green-light); border: 1px solid rgba(29,124,63,0.2); }
.callout-warning { background: var(--orange-light); border: 1px solid rgba(232,113,58,0.2); }

/* ── Content page ── */
.content-body h2 {
  font-size: 1.25rem;
  color: var(--teal);
  margin-top: 32px;
  margin-bottom: 10px;
}
.content-body h2:first-child { margin-top: 0; }
.content-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.content-body ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.content-body ul li::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.content-body strong { color: var(--navy); }
.content-body img { border-radius: 14px; margin: 20px 0; }
.content-body img.float-right { float: right; margin: 0 0 20px 24px; max-width: 320px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up    { animation: fadeUp 0.6s ease-out both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }

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

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }

  .nav-links, .nav-actions { display: none !important; }
  .nav-mobile-toggle { display: flex !important; }
  .nav-inner {
    justify-content: space-between !important;
    gap: 0 !important;
  }
  .nav-inner > a { flex-shrink: 0; }

  .hero { min-height: auto; }
  .hero-content { padding: 56px 0 40px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { justify-content: center; }

  .hero-stats-inner { grid-template-columns: 1fr 1fr; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.reverse { direction: ltr; }

  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }

  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .serve-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}

/* ── Article sidebar responsive ── */
@media (max-width: 900px) {
  .container [style*="grid-template-columns: 1fr 280px"] {
    display: block !important;
  }
  .container [style*="grid-template-columns: 1fr 280px"] > aside {
    margin-top: 40px;
  }
}

/* ── Services grid responsive override ── */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr !important; }
}

/* ── Content body img float reset on mobile ── */
@media (max-width: 640px) {
  .content-body img.float-right {
    float: none !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
  }
}

/* ── Login dropdown (right-aligned) ── */
.nav-item.login-item .nav-dropdown {
  left: auto !important;
  right: 0 !important;
  transform: translateY(6px) !important;
}
.nav-item.login-item:hover .nav-dropdown {
  transform: translateY(8px) !important;
}

/* ── Team Cards (Celly Health leadership style) ── */
.team-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--g200);
  box-shadow: 0 2px 12px rgba(11,24,56,0.06);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;  /* inner padding so photo doesn't touch card edge */
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,24,56,0.1);
}
.team-card-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 12px; /* 4 rounded corners — photo sits inside card with its own rounding */
  background: var(--g100);
}
.team-card-body {
  padding: 20px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.team-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 2px;
}
.team-card-org {
  font-size: 12px;
  color: var(--g500);
  margin-bottom: 14px;
}
.team-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.team-card-link:hover { color: var(--orange-hover); gap: 7px; }

/* Team grid — 4 columns desktop, 2 tablet, 1 mobile */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .team-grid { grid-template-columns: 1fr; } }

/* ── Individual bio page ── */
.bio-photo {
  border-radius: 18px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 32px rgba(11,24,56,0.1);
}
.bio-credential {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  background: var(--bg);
  border: 1px solid var(--g100);
  border-radius: 8px;
  padding: 6px 12px;
}
.bio-credentials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

/* ── Bio page responsive ── */
.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.bio-grid-wide {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) {
  .bio-grid, .bio-grid-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bio-photo {
    max-width: 260px !important;
    margin: 0 auto;
    display: block;
  }
}

/* ── Locations grid responsive ── */
@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr !important;
  }
}
