/* ================================================
   MedQore Health Services — Rebrand Stylesheet
   Colors sourced directly from medqorehealth.com
   #622336 = maroon (topbar, headings, accents)
   #0086c4 = primary blue (nav, links, buttons)
   ================================================ */

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

:root {
  /* Exact brand colors from the live site */
  --maroon:      #622336;
  --maroon-dark: #4a1a28;
  --blue:        #0086c4;
  --blue-dark:   #006fa8;
  --blue-light:  #1890d7;

  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #F5F7FA;
  --gray-100:    #EEF1F5;
  --gray-200:    #D6DCE4;
  --gray-500:    #7A8899;
  --gray-700:    #3C4A5A;
  --gray-900:    #1A2433;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-label:   'Poppins', 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card:     0 4px 20px rgba(98, 35, 54, 0.08);
  --shadow-elevated: 0 8px 36px rgba(0, 134, 196, 0.16);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); line-height: 1.7; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(20px, 5vw, 60px); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.05rem; color: var(--gray-700); max-width: 700px; line-height: 1.85; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,134,196,0.30); }

.btn-maroon { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.btn-maroon:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); transform: translateY(-1px); }

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

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

/* ---- Top Bar — maroon, exactly matching live site ---- */
.topbar {
  background: var(--maroon);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-tags { display: flex; gap: 20px; }
.topbar-tags span { position: relative; padding-left: 14px; text-transform: capitalize; }
.topbar-tags span::before { content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.6); }
.topbar-right { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.topbar-contact { display: flex; align-items: center; gap: 16px; }
.topbar-contact a { color: rgba(255,255,255,0.92); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar-contact a:hover { color: var(--white); }
.topbar-social { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-social a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  transition: background 0.2s, color 0.2s;
}
.topbar-social a:hover { background: rgba(255,255,255,0.25); color: #fff; }
.topbar-social svg { width: 14px; height: 14px; }

/* ---- Header / Nav ---- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; background: var(--maroon); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--maroon); }
.logo-sub  { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 600; }

/* ---- Site Logo Image (actual PNG) ---- */
.site-logo-img {
  height: 56px;
  width: auto;
  display: block;
}
/* Footer logo: white bg pill so it pops on blue */
.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
}
.footer-logo-wrap .site-logo-img {
  height: 44px;
}
.footer-social {
  display: flex; gap: 10px; margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.25); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 16px; right: 16px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { flex-shrink: 0; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon); border-radius: 2px; transition: var(--transition); }

/* ---- Hero ---- */
.hero {
  background: #622336;
  color: var(--white);
  padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }

/* Centered hero variant (services, etc.) */
.hero-centered { text-align: center; }
.hero-centered .hero-content { max-width: 780px; margin: 0 auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .lead { margin-left: auto; margin-right: auto; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }

/* ---- Homepage Video Hero ---- */
.hero-bg {
  position: relative;
  padding: 0;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a0a10; /* fallback while video loads */
}

/* Full-bleed background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

/* Dark gradient overlay so text stays legible */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 3, 6, 0.88) 0%,
    rgba(50, 15, 26, 0.80) 50%,
    rgba(8, 3, 6, 0.50) 100%
  );
  z-index: 1;
}

/* Content sits above video + overlay */
.hero-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-bg .hero-inner {
  display: flex; align-items: center;
  padding: clamp(72px, 10vw, 110px) 0;
}
.hero-bg .hero-content { max-width: 660px; margin: 0; }
.hero-bg .hero-actions { justify-content: flex-start; }
.hero-bg .lead { margin: 0 0 36px; max-width: 560px; }

@media (max-width: 768px) {
  .hero-bg { min-height: 420px; }
  .hero-bg .hero-inner { padding: clamp(56px, 8vw, 80px) 0 clamp(40px, 6vw, 60px); }
  .hero-video-overlay {
    background: linear-gradient(to bottom,
      rgba(8,3,6,0.85) 0%,
      rgba(8,3,6,0.70) 100%
    );
  }
}
.hero-subtitle {
  display: block;
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 24px; font-size: clamp(1.4rem, 2.2vw, 2.05rem); line-height: 1.28; }
@media (min-width: 1100px) { .hero h1 { white-space: nowrap; } }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 720px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Inner Page Hero (consistent across all inner pages) ---- */
.inner-hero {
  background: #622336;
  color: var(--white);
  padding: clamp(52px, 7vw, 84px) 0;
  overflow: hidden;
  position: relative;
}
/* Concentric-ring accent — top right corner */
.inner-hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.10);
  pointer-events: none;
}
.inner-hero::after {
  content: '';
  position: absolute;
  right: 60px; top: 20px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.07);
  pointer-events: none;
}

/* ---- Inner Page Hero layout ---- */
.inner-hero > .container { position: relative; z-index: 1; }
.inner-hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
}
.inner-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 14px;
  font-family: var(--font-label);
}
.inner-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.38);
  border-radius: 2px;
}
.inner-hero h1, .inner-hero-content h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 560px;
}

.inner-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Deco cards (right column of inner-hero) ---- */
.inner-hero-deco {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 220px;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 1;
}
.deco-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.25s;
  cursor: default;
}
.deco-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateX(-4px);
}
.deco-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.deco-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.60);
  font-weight: 400;
}

@media (max-width: 820px) {
  .inner-hero-layout { grid-template-columns: 1fr; }
  .inner-hero-deco { display: none; }
  .inner-hero-actions { flex-direction: column; }
  .inner-hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* Legacy alias */
.page-hero { background: #622336; color: var(--white); padding: clamp(52px,7vw,84px) 0; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .lead { color: rgba(255,255,255,0.80); }

/* ---- Sections ---- */
.section    { padding: clamp(60px, 8vw, 100px) 0; }
.section-sm { padding: clamp(40px, 5vw, 65px) 0; }
.section-alt  { background: var(--off-white); }
.section-dark { background: var(--maroon); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-blue p { color: rgba(255,255,255,0.85); }

.section-header { margin-bottom: clamp(36px, 5vw, 60px); }
.section-header.centered { text-align: center; }
.section-header.centered .lead { margin-inline: auto; }
.section-header h2 { margin-bottom: 14px; }

.divider { width: 52px; height: 3px; background: linear-gradient(90deg, var(--maroon), var(--blue)); border-radius: 3px; margin-bottom: 18px; }
.divider.centered { margin-inline: auto; }

/* ---- Service Cards — 3-col grid with photo + text, matching live site layout ---- */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-5px); }
.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--maroon);
}
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-title {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 12px;
  line-height: 1.35;
}
.service-card-body p { font-size: 0.88rem; line-height: 1.7; color: var(--gray-700); }

/* ---- General Cards ---- */
.cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gray-100); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: var(--transition); }
.card:hover .card-icon { background: var(--maroon); }
.card:hover .card-icon svg { color: var(--white); }
.card-icon svg { width: 22px; height: 22px; color: var(--maroon); transition: var(--transition); }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p  { font-size: 0.9rem; line-height: 1.75; }

.card-dark { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
.card-dark h3 { color: var(--white); }
.card-dark p  { color: rgba(255,255,255,0.76); }
.card-dark .card-icon { background: rgba(255,255,255,0.12); }
.card-dark:hover { background: rgba(255,255,255,0.12); }

/* ---- Feature List ---- */
.feature-list { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--gray-700); line-height: 1.65; }
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--maroon);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- Stats Band ---- */
.stats-band { background: var(--blue); padding: clamp(36px, 4vw, 56px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--white); line-height: 1; display: block; }
.stat-label  { font-size: 0.78rem; color: rgba(255,255,255,0.80); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 7px; }

/* ---- Two Column ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: center; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }
.content-block h2 { margin-bottom: 16px; }
.content-block p  { margin-bottom: 14px; }

.visual-box {
  background: #f4f6f8;
  border: 1px solid #e0e4ea;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: var(--gray-900);
  position: relative;
  overflow: hidden;
}
.visual-box::after { display: none; }
.visual-box h3 { color: var(--gray-900); margin-bottom: 18px; font-size: 1.35rem; }

/* ---- CTA Band ---- */
.cta-band {
  background: #1e2a38;
  padding: clamp(56px, 7vw, 90px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before { display: none; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,0.78); margin-bottom: 32px; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Services Page Banners ---- */
.services-banner { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.services-banner img { width: 100%; height: auto; display: block; }

/* ---- Infographic side-by-side grid ---- */
.infographic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.infographic-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.infographic-item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .infographic-grid { grid-template-columns: 1fr; }
}

/* ---- Team Card ---- */
.team-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 40px; display: flex; gap: 36px; align-items: flex-start; box-shadow: var(--shadow-card); }
.team-avatar-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid var(--maroon); }
.team-info h3 { margin-bottom: 4px; }
.team-title { font-size: 0.8rem; color: var(--maroon); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-label); margin-bottom: 10px; }
.team-creds  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cred-tag { background: var(--gray-100); color: var(--maroon); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.07em; padding: 4px 10px; border-radius: 100px; font-family: var(--font-label); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 19px; height: 19px; color: var(--maroon); }
.contact-detail h4 { font-size: 0.82rem; color: var(--gray-500); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 0.93rem; color: var(--gray-900); font-weight: 500; }
.contact-detail a:hover { color: var(--blue); }
.contact-form-box { background: var(--off-white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 36px; }
.contact-form-box h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-700); letter-spacing: 0.04em; margin-bottom: 7px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 3px;
  font-family: var(--font-body); font-size: 0.88rem; color: var(--gray-900);
  background: var(--white); transition: var(--transition); appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,134,196,0.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.76rem; color: var(--gray-500); margin-top: 14px; }

/* ---- Service Plans Page ---- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.plan-card { background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-md); padding: 36px 32px; position: relative; transition: var(--transition); }
.plan-card:hover { border-color: var(--blue); box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.plan-card.featured { border-color: var(--maroon); background: linear-gradient(160deg, var(--maroon-dark), var(--maroon)); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--maroon); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 16px; border-radius: 100px; white-space: nowrap; font-family: var(--font-label); }
.plan-name { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; color: var(--maroon); margin-bottom: 6px; }
.plan-card.featured .plan-name { color: var(--white); }
.plan-subtitle { font-size: 0.82rem; color: var(--blue); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-200); font-family: var(--font-label); }
.plan-card.featured .plan-subtitle { color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.18); }
.plan-features { list-style: none; padding: 0; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }
.plan-card.featured .plan-features li { color: rgba(255,255,255,0.85); }
.plan-features li::before { content: '✚'; color: var(--maroon); font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.plan-card.featured .plan-features li::before { color: rgba(255,255,255,0.70); }

/* ---- Cert Row ---- */
.cert-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--gray-200); margin-top: 36px; }
.cert-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
.cert-badge { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 0.75rem; font-weight: 700; color: var(--maroon); letter-spacing: 0.07em; text-transform: uppercase; }

/* ---- Footer ---- */
.site-footer { background: var(--blue); color: rgba(255,255,255,0.82); padding: clamp(48px,6vw,80px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-name { color: var(--white); }
/* Logo mark on blue bg: transparent bg, white icon outline */
.footer-brand .logo-mark {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
}
.footer-brand p { font-size: 0.86rem; line-height: 1.8; max-width: 260px; color: rgba(255,255,255,0.80); }
.footer-col h5 { color: var(--white); font-family: var(--font-label); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.86rem; color: rgba(255,255,255,0.72); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { font-size: 0.86rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; color: rgba(255,255,255,0.80); }
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: rgba(255,255,255,0.60); }
.footer-contact-item span { color: rgba(255,255,255,0.80); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.footer-tagline { font-size: 0.76rem; letter-spacing: 0.07em; color: rgba(255,255,255,0.50); }
.footer-bottom a:hover { color: #fff !important; text-decoration: underline; }
/* Logo sub text color in footer */
.site-footer .logo-sub { color: rgba(255,255,255,0.60); }

/* ---- Challenge / Resilience two-box section ---- */
.challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-elevated); }
.challenge-box { padding: clamp(36px,5vw,60px); }
.challenge-box.dark { background: #1a0a10; }
.challenge-box.blue { background: var(--blue); }
.challenge-box .box-eyebrow { font-family: var(--font-label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 10px; display: block; }
.challenge-box h3 { color: #fff; font-size: clamp(1.15rem,2vw,1.5rem); margin-bottom: 20px; line-height: 1.3; }
.challenge-box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.challenge-box ul li { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; }
.challenge-box ul li::before { content: '→'; color: rgba(255,255,255,0.45); flex-shrink: 0; font-weight: 700; }
.challenge-box.blue ul li::before { color: rgba(255,255,255,0.6); }
@media (max-width: 680px) { .challenge-grid { grid-template-columns: 1fr; } }

/* ---- Service Card Slider (3-per-slide) ---- */
.scs-wrapper { position: relative; }
.scs-viewport { overflow: hidden; border-radius: var(--radius-md); width: 100%; }
.scs-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.scs-slide { flex: 0 0 100%; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; box-sizing: border-box; }
.scs-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.scs-prev, .scs-next {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--gray-700);
}
.scs-prev:hover, .scs-next:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.scs-prev svg, .scs-next svg { width: 18px; height: 18px; }
.scs-dots { display: flex; gap: 8px; }
.scs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-200); border: none; cursor: pointer; padding: 0; transition: var(--transition); }
.scs-dot.active { background: var(--maroon); transform: scale(1.2); }
@media (max-width: 760px) { .scs-slide { grid-template-columns: 1fr; } }

/* ---- Certification Logo Slider (marquee) ---- */
.cert-logos-section { background: var(--off-white); padding: 36px 0; overflow: hidden; }
.cert-logos-label { text-align: center; font-family: var(--font-label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 28px; }
.cert-logos-track-wrap { overflow: hidden; }
.cert-logos-track {
  display: flex; gap: 60px; align-items: center;
  animation: logoScroll 18s linear infinite;
  width: max-content;
}
.cert-logos-track:hover { animation-play-state: paused; }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cert-logo-item { flex-shrink: 0; height: 64px; display: flex; align-items: center; }
.cert-logo-item img { height: 100%; width: auto; object-fit: contain; filter: grayscale(30%); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.cert-logo-item img:hover { filter: none; opacity: 1; }

/* ---- Service Framework (services page tabs) ---- */
.sf-wrapper { display: grid; grid-template-columns: 340px 1fr; gap: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-elevated); min-height: 480px; }
.sf-tabs { background: #1a0a10; display: flex; flex-direction: column; }
.sf-tab {
  padding: 22px 32px;
  border: none; background: transparent;
  text-align: left; cursor: pointer;
  border-left: 4px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  display: flex; align-items: center; gap: 14px;
}
.sf-tab:hover { background: rgba(255,255,255,0.06); }
.sf-tab.active { background: rgba(255,255,255,0.10); border-left-color: var(--blue); }
.sf-tab-num { font-family: var(--font-label); font-size: 0.7rem; color: rgba(255,255,255,0.35); font-weight: 700; flex-shrink: 0; width: 20px; }
.sf-tab.active .sf-tab-num { color: var(--blue); }
.sf-tab-label { font-family: var(--font-label); font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; text-align: left; }
.sf-tab.active .sf-tab-label { color: #fff; }
.sf-panels { background: var(--white); position: relative; min-height: 480px; }
.sf-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0;
  background: var(--white);
  overflow: hidden;
}
.sf-panel.active {
  display: flex;
  position: relative;
  inset: auto;
}
.sf-panel-img { width: 100%; height: 260px; object-fit: cover; display: block; flex-shrink: 0; }
.sf-panel-body { padding: 32px 36px; flex: 1; }
.sf-panel-body .eyebrow { margin-bottom: 10px; }
.sf-panel-body h3 { margin-bottom: 14px; font-size: 1.3rem; color: var(--gray-900); }
.sf-panel-body p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 12px; }
.sf-panel-body .btn { margin-top: 16px; }
@media (max-width: 820px) {
  .sf-wrapper { grid-template-columns: 1fr; }
  .sf-tabs { flex-direction: row; overflow-x: auto; background: #1a0a10; }
  .sf-tab { border-left: none; border-bottom: 4px solid transparent; padding: 16px 20px; white-space: nowrap; }
  .sf-tab.active { border-bottom-color: var(--blue); background: rgba(255,255,255,0.10); }
  .sf-panel-img { height: 200px; }
}

/* ---- Light Two-Box (Challenge / Resilience) ---- */
.light-two-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.light-box { border-radius: var(--radius-md); padding: clamp(32px,4vw,52px); }
.light-box.challenge { background: var(--off-white); border: 1.5px solid var(--gray-200); border-left: 4px solid var(--maroon); }
.light-box.resilience { background: #eef6fb; border: 1.5px solid #c5dff0; border-left: 4px solid var(--blue); }
.light-box .eyebrow { margin-bottom: 8px; }
.light-box h3 { margin-bottom: 14px; color: var(--gray-900); font-size: clamp(1.1rem,1.8vw,1.35rem); }
.light-box p { font-size: 0.95rem; line-height: 1.8; color: var(--gray-700); }
@media (max-width: 640px) { .light-two-box { grid-template-columns: 1fr; } }

/* ---- Pillar Cards (large circles, no card box) ---- */
.pillars-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 48px; }
.pillar-card { text-align: center; background: transparent; padding: 0; }
.pillar-circle-lg { width: min(340px, 100%); height: auto; aspect-ratio: 1 / 1; margin: 0 auto 28px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.14)); transition: transform .35s ease, filter .35s ease; cursor: pointer; }
.pillar-card:hover .pillar-circle-lg { transform: scale(1.10); filter: drop-shadow(0 18px 40px rgba(0,0,0,0.24)); }
.pillar-circle-lg img { width: 100%; height: 100%; object-fit: contain; }
.pillar-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--maroon); margin-bottom: 14px; }
.pillar-card p { font-size: 1rem; line-height: 1.85; color: var(--gray-700); max-width: 320px; margin: 0 auto; }
@media (max-width: 900px) { .pillars-cards { grid-template-columns: 1fr; gap: 52px; } .pillar-circle-lg { width: 280px; height: 280px; } }

/* ---- Pillar Circles (legacy, kept for compat) ---- */
.pillars-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.pillar-circle { width: 260px; height: 260px; flex-shrink: 0; }
.pillar-circle img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   RESPONSIVE — COMPREHENSIVE MOBILE-FIRST
   ============================================================ */

/* ---- Large tablet (1024px) ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 36px; }
  /* Pillar circles: fluid width so 3 always fit */
  .pillar-circle-lg { width: min(280px, 100%); height: auto; aspect-ratio: 1 / 1; }
  /* Plan rows: stack at tablet */
  .plan-row { grid-template-columns: 1fr !important; }
  .plan-features-panel { padding: 32px 28px; }
  .features-grid { grid-template-columns: 1fr !important; }
  .feat-item:nth-child(even) { padding-left: 0 !important; border-left: none !important; border-bottom: 1px solid #f0f2f5 !important; }
  /* Pillar card grid — allow it to breathe */
  .pillars-cards { gap: 28px; }
}

/* ---- Small tablet / mobile landscape (768px) ---- */
@media (max-width: 768px) {

  /* Topbar: compact single row */
  .topbar .container { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 8px; flex-wrap: nowrap; }
  .topbar-right { width: 100%; justify-content: space-between; align-items: center; }
  .topbar-contact { flex-wrap: nowrap; gap: 12px; }
  .topbar-social { margin-left: 0; gap: 6px; }
  .topbar-social a { width: 26px; height: 26px; }

  /* Mobile navigation overlay */
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 0;
    background: var(--white); z-index: 200;
    padding: 84px 24px 48px; align-items: flex-start;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .main-nav.open .nav-links a {
    font-size: 1.15rem; padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    display: block; width: 100%;
    min-height: 44px; /* touch target */
  }
  .main-nav.open .nav-cta { margin-top: 32px; width: 100%; }
  .main-nav.open .nav-cta .btn { width: 100%; justify-content: center; padding: 15px 24px; }

  /* Hamburger sits ABOVE the nav overlay */
  .menu-toggle { display: flex; }
  .menu-toggle[aria-expanded="true"] { position: relative; z-index: 201; }

  /* Homepage hero video */
  .hero-bg { min-height: 400px; }
  .hero-bg .hero-inner { padding: clamp(52px, 8vw, 72px) 0 clamp(40px, 6vw, 56px); }
  .hero-video-overlay {
    background: linear-gradient(to bottom, rgba(8,3,6,0.88) 0%, rgba(8,3,6,0.72) 100%);
  }
  .hero h1 { white-space: normal; font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.3; }
  .hero-bg .hero-content { max-width: 100%; }
  .hero-bg .lead { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Inner page banners */
  .inner-hero { padding: clamp(40px, 6vw, 64px) 0; }
  .inner-hero-layout { grid-template-columns: 1fr; }
  .inner-hero-deco { display: none; }
  .inner-hero h1, .inner-hero-content h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); max-width: 100%; }
  .inner-hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .inner-hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Sections */
  .section    { padding: clamp(48px, 7vw, 72px) 0; }
  .section-sm { padding: clamp(32px, 5vw, 52px) 0; }

  /* Two-column → single */
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.flip { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-cards-grid { grid-template-columns: 1fr; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Team card */
  .team-card { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; }
  .team-creds { justify-content: center; }
  .team-avatar-photo { width: 120px; height: 120px; }

  /* Pillar circles: single column */
  .pillars-cards { grid-template-columns: 1fr; gap: 40px; }
  .pillar-circle-lg { width: min(280px, 72vw); height: auto; aspect-ratio: 1 / 1; }

  /* CTA band */
  .cta-band { padding: clamp(48px, 7vw, 72px) 0; }
  .cta-band-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-band-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Service plans */
  .plan-ident { padding: 32px 24px; }
  .plan-ident .plan-num { font-size: 3rem; }
  .features-grid { grid-template-columns: 1fr !important; }
  .feat-item:nth-child(even) { padding-left: 0 !important; border-left: none !important; border-bottom: 1px solid #f0f2f5 !important; }
  .value-pillars { flex-direction: column; }
  .value-pillar { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .value-pillar:last-child { border-bottom: none; }

  /* Challenge/resilience boxes */
  .challenge-grid { grid-template-columns: 1fr; }
  .light-two-box { grid-template-columns: 1fr; }

  /* Service framework tabs */
  .sf-wrapper { grid-template-columns: 1fr; }
  .sf-tabs {
    flex-direction: row; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .sf-tabs::-webkit-scrollbar { display: none; }
  .sf-tab {
    border-left: none; border-bottom: 3px solid transparent;
    padding: 14px 18px; white-space: nowrap;
    min-height: 52px; flex-shrink: 0;
  }
  .sf-tab.active { border-bottom-color: var(--blue); }
  .sf-panel-img { height: 200px; }
  .sf-panel-body { padding: 24px 20px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Service card slider — 1 card visible on tablet */
  .scs-slide { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---- Small mobile (560px) ---- */
@media (max-width: 560px) {
  /* Tighter container */
  .container { padding-inline: 16px; }

  /* Topbar: phone number + social only */
  .topbar-contact a:last-child { display: none; }
  .topbar-social svg { width: 13px; height: 13px; }

  /* Hero */
  .hero-bg { min-height: 360px; }
  .hero h1 { font-size: clamp(1.3rem, 6vw, 1.75rem); }
  .hero-bg .lead { font-size: 0.95rem; }
  .hero-actions .btn { max-width: 100%; font-size: 0.85rem; }

  /* Inner hero */
  .inner-hero-actions .btn { max-width: 100%; }
  .inner-hero h1, .inner-hero-content h1 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { max-width: 100%; }
  .footer-brand p { max-width: 100%; }

  /* Pillar circles */
  .pillar-circle-lg { width: min(220px, 72vw); }

  /* Service card slider: 1 card */
  .scs-slide { grid-template-columns: 1fr; gap: 14px; }
  .service-card-img { height: 180px; }

  /* Plan rows */
  .plan-ident { padding: 24px 18px; }
  .plan-features-panel { padding: 24px 18px; }
  .plan-ident h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); }

  /* Service framework panel */
  .sf-panel-img { height: 180px; }

  /* Challenge boxes */
  .challenge-box { padding: clamp(28px, 5vw, 44px); }

  /* Custom note (service plans page) */
  .custom-note { flex-direction: column; gap: 14px; padding: 24px 18px; }

  /* Light boxes */
  .light-box { padding: clamp(24px, 5vw, 36px); }

  /* CTA band */
  .cta-band-actions .btn { max-width: 100%; font-size: 0.85rem; }

  /* Cert logos */
  .cert-logo-item { height: 48px; }

  /* Team card */
  .team-card { padding: 24px 16px; }
  .team-avatar-photo { width: 100px; height: 100px; }

  /* Contact form */
  .contact-form-box { padding: 24px 18px; }

  /* Section header */
  .section-header { margin-bottom: clamp(28px, 4vw, 44px); }
}

/* ---- Extra small (400px) ---- */
@media (max-width: 400px) {
  .container { padding-inline: 14px; }
  .topbar-social { display: none; }
  .pillar-circle-lg { width: min(180px, 72vw); }
  .hero h1 { font-size: clamp(1.2rem, 6vw, 1.55rem); }
  .site-logo-img { height: 44px; }
  .nav-cta .btn { font-size: 0.8rem; padding: 10px 18px; }
  .scs-prev, .scs-next { width: 36px; height: 36px; }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
