/*
Theme Name:  MedResponse
Theme URI:   https://medresponse.dev
Description: Rapid Medical Coordination Platform — AI-powered emergency coordination theme.
Author:      MedResponse
Version:     1.0.0
License:     GPL v2 or later
Text Domain: medresponse
*/

/* ============================================================
   WORDPRESS CORE OVERRIDE — prevent WP global styles from
   boxing content into a narrow centred column
   ============================================================ */
:root {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.wp-site-blocks,
.wp-block-group.is-layout-constrained > *,
.is-layout-constrained > *,
.is-layout-flow > * {
  max-width: none !important;
}
.wp-site-blocks { padding: 0 !important; margin: 0 !important; }
body.wp-admin-bar-showing { margin-top: 0 !important; }


/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  --blue:       #055E9E;
  --blue-dark:  #044880;
  --blue-light: #1a78bb;
  --blue-pale:  rgba(5,94,158,0.12);
  --red:        #AE1C25;
  --red-dark:   #8d151d;
  --red-light:  #c9222d;
  --olive:      #3A3A3A;
  --olive-mid:  #555555;
  --olive-lt:   #888888;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --border:     rgba(5,94,158,0.14);
  --border-lt:  rgba(58,58,58,0.1);
  --radius-lg:  16px;
  --radius-pill:999px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Renner';
  src: url('https://fonts.cdnfonts.com/css/renner') format('woff2');
  font-weight: 300 700;
  font-style: normal;
}

html, body {
  height: 100%;
  font-family: 'Renner', 'Futura', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  color: var(--olive);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--red);
  border-radius: 1px;
}
.eyebrow.light { color: rgba(255,255,255,0.75); }
.eyebrow.light::before { background: rgba(255,255,255,0.5); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--olive);
  max-width: 540px;
}
.section-title strong { font-weight: 600; color: var(--blue); }
.section-title.white { color: white; }
.section-title.white strong { color: rgba(255,255,255,0.9); font-weight: 500; }

.section-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--olive-mid);
  max-width: 520px;
  margin-top: 1.25rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.section {
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   PULSE DOT
   ============================================================ */
@keyframes pulse-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-anim 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--red);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--blue);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
  font-family: inherit;
}
.btn-ghost:hover { opacity: 0.65; }

.btn-outline-white {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.08); }

.btn-outline-blue {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.btn-outline-blue:hover { background: var(--blue); color: white; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
}
.hero-video-wrap video,
.hero-video-wrap canvas {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Stronger overlay — more white space approach means big bold text against dark bg */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,20,40,0.78) 0%, rgba(5,40,80,0.55) 55%, rgba(3,20,40,0.80) 100%);
  z-index: 2;
}

/* ── HERO COPY ── */
.hero-copy {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-h1 {
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  max-width: 900px;
  letter-spacing: -0.03em;
}
.hero-h1 .accent      { color: #ffffff; font-weight: 600; }
.hero-h1 .red-accent  { color: #ffb3b6; }
.hero-h1 .blue-accent { color: #7bbde0; }

.hero-sub {
  margin-top: 2rem;
  color: rgba(255,255,255,0.75);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  max-width: 460px;
  font-weight: 300;
}

/* ── HERO BOTTOM CORNERS ── */
.hero-cta-bl {
  position: absolute;
  left: 2.5rem;
  bottom: 2.5rem;
  z-index: 10;
  max-width: 340px;
}
.hero-cta-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}
.hero-cta-label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero-cta-bl p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats-br {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 10;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-size: 1.9rem;
  font-weight: 300;
  color: white;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero-stat-num span { color: #7bbde0; }
.hero-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   ABOUT GRID — white background, spacious
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--border-lt);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 2px 16px rgba(5,94,158,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover { box-shadow: 0 6px 24px rgba(5,94,158,0.12); transform: translateY(-2px); }
.stat-card.red-card { border-left-color: var(--red); }
.stat-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon.red   { background: var(--red); }
.stat-card-icon.olive { background: var(--olive); }
.stat-card-icon svg   { width: 22px; height: 22px; }
.stat-card-content h3 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-card-content h3 strong { font-weight: 700; color: var(--blue); }
.stat-card-content p {
  font-size: 0.82rem;
  color: var(--olive-lt);
  line-height: 1.55;
  font-weight: 300;
}

/* ============================================================
   FEATURES — blue-dark background
   ============================================================ */
.features-bg {
  background: var(--blue);
  padding: 6rem 2.5rem;
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.25s, border-color 0.25s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.feature-card:first-child {
  grid-column: span 2;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}
.feature-icon.red   { background: rgba(174,28,37,0.25); }
.feature-icon.white { background: rgba(255,255,255,0.2); }
.feature-icon.olive { background: rgba(58,58,58,0.3); }
.feature-icon.lt    { background: rgba(255,255,255,0.15); }
.feature-icon svg   { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.feature-card p { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.7; font-weight: 300; }
.feature-card-main { flex: 1; }
.feature-card-visual { width: 190px; flex-shrink: 0; }
.response-time-display {
  background: rgba(174,28,37,0.2);
  border: 1px solid rgba(174,28,37,0.35);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.response-time-display .big-num {
  font-size: 3rem;
  font-weight: 200;
  color: #ffcccc;
  letter-spacing: -0.05em;
  line-height: 1;
}
.response-time-display .unit {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ============================================================
   WORKFLOW — white bg
   ============================================================ */
.workflow-section {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}
.workflow-steps::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-lt), var(--border-lt), var(--border-lt), transparent);
  z-index: 0;
}
.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(5,94,158,0.08);
}
.step-num.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(5,94,158,0.3);
}
.step-num.red-step { background: var(--red); color: white; border-color: var(--red); box-shadow: 0 4px 16px rgba(174,28,37,0.3); }
.workflow-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.workflow-step p { font-size: 0.78rem; color: var(--olive-lt); line-height: 1.65; font-weight: 300; }

/* ============================================================
   TESTIMONIAL — off-white strip
   ============================================================ */
.testimonial-band {
  background: var(--off-white);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  padding: 5rem 2.5rem;
}
.testimonial-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--blue);
  font-weight: 200;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}
.quote-text {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: var(--olive);
  letter-spacing: -0.02em;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.quote-avatar {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
}
.quote-author-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--olive); }
.quote-author-info span   { font-size: 0.78rem; color: var(--olive-lt); font-weight: 300; }

/* ============================================================
   CTA BANNER — olive/dark
   ============================================================ */
.cta-banner {
  background: var(--olive);
  padding: 6rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2,
.cta-banner p,
.cta-banner-btns,
.cta-content-layer {
  position: relative;
  z-index: 3;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.cta-banner h2 span { color: #7bbde0; font-weight: 500; }
.cta-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
  font-weight: 300;
}
.cta-banner-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  border-top: 3px solid var(--blue);
  padding: 3.5rem 2.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-brand span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); line-height: 1.7; font-weight: 300; }
.footer-links { display: flex; gap: 3.5rem; }
.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
  font-weight: 300;
}
.footer-col a:hover { color: white; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--blue);
  padding: 9rem 2.5rem 4.5rem;
  text-align: center;
  color: white;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.6); }
.page-hero .eyebrow::before { background: var(--red); }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
}
.page-hero p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto; font-weight: 300; }

.entry-content {
  max-width: 780px;
  margin: 4rem auto;
  padding: 0 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--olive-mid);
  font-weight: 300;
}
.entry-content h2 { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.03em; color: var(--olive); margin: 2.5rem 0 0.75rem; }
.entry-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--blue); margin: 2rem 0 0.5rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content strong { font-weight: 600; color: var(--olive); }

/* ============================================================
   DIVIDER BAND — subtle brand stripe
   ============================================================ */
.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, var(--blue) 33%, var(--blue) 66%, var(--olive) 66%);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-pill, .nav-actions a { display: none; }
  /* Mobile: always solid — never transparent */
  .site-header {
    background: #055E9E !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .about-grid,
  .features-grid,
  .workflow-steps,
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-card:first-child { grid-column: span 1; flex-direction: column; }
  .feature-card-visual { width: 100%; }
  .hero-stats-br { gap: 1rem; right: 1.5rem; bottom: 1.5rem; }
  .hero-cta-bl { left: 1.5rem; bottom: 1.5rem; max-width: 280px; }
  .site-header { padding: 1rem 1.5rem; }
  .features-header { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
  .workflow-steps::after { display: none; }
  .about-grid { padding: 3rem 1.5rem; gap: 2.5rem; }
}

/* ============================================================
   HEADER — sticky, works on all pages
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s, padding .25s, box-shadow .25s, border-color .25s;
}
.site-header.scrolled {
  padding: 0.75rem 2.5rem;
  background: #055E9E;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
/* Logo area */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  line-height: 1;
}

/* Custom logo wrapper — WP outputs: div.nav-logo-custom > a.custom-logo-link > img.custom-logo */
.nav-logo-custom {
  display: block;
  font-size: 0;
  line-height: 0;
}
.nav-logo-custom a,
.nav-logo-custom a.custom-logo-link {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: 0 !important;
  outline-offset: 3px;
}
.nav-logo-custom img,
.nav-logo-custom a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: top !important;
}
.nav-logo-icon { width:32px;height:32px;background:var(--red);border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.nav-logo-text { font-size:1.2rem;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:white; }
.nav-logo-text sup { font-size:0.55rem;vertical-align:super; }
/* Nav pill */
.nav-pill { display:flex;align-items:center;background:rgba(255,255,255,0.12);border-radius:var(--radius-pill);padding:0.25rem 0.25rem 0.25rem 1.25rem;border:1px solid rgba(255,255,255,0.2); }
.nav-pill a { font-size:0.85rem;font-weight:500;letter-spacing:0.04em;color:rgba(255,255,255,0.85);padding:0.4rem 0.75rem;border-radius:var(--radius-pill);transition:all .2s; }
.nav-pill a:hover,.nav-pill a.current-menu-item { color:white;background:rgba(255,255,255,0.12); }
.nav-pill-btn { background:var(--red);color:white !important;font-weight:700 !important;font-size:0.8rem;letter-spacing:0.06em;text-transform:uppercase;padding:0.55rem 1.1rem !important;border-radius:var(--radius-pill);border:none;cursor:pointer;transition:background .2s;text-decoration:none; }
.nav-pill-btn:hover { background:var(--red-dark) !important; }
/* Nav actions */
.nav-actions { display:flex;align-items:center;gap:1.25rem; }
.nav-contact-link { font-size:0.85rem;font-weight:500;color:rgba(255,255,255,0.85);display:flex;align-items:center;gap:6px;transition:opacity .2s; }
.nav-contact-link:hover { opacity:.7; }
/* Burger */
.nav-burger { display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px; }
.nav-burger span { display:block;width:22px;height:2px;background:white;border-radius:2px;transition:all .25s; }
.nav-burger.is-open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity:0; }
.nav-burger.is-open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav { position:fixed;top:0;right:-100%;width:min(340px,90vw);height:100vh;background:var(--blue);z-index:200;transition:right .3s ease;overflow-y:auto; }
.mobile-nav.is-open { right:0; }
.mobile-nav-inner { padding:5rem 2rem 2rem; }
.mobile-nav-links a, .mobile-nav-links li a { display:block;font-size:1.1rem;font-weight:500;color:white;padding:0.85rem 0;border-bottom:1px solid rgba(255,255,255,0.12);letter-spacing:0.02em; }
.mobile-nav-links ul { list-style:none;padding:0;margin:0; }
.mobile-nav-overlay { position:fixed;inset:0;background:rgba(0,0,0,0);z-index:150;pointer-events:none;transition:background .3s; }
.mobile-nav-overlay.is-visible { background:rgba(0,0,0,0.5);pointer-events:auto; }

/* Push body down for fixed header */
/* hero padding managed by section itself */

/* ============================================================
   LOGO BAND (trust bar)
   ============================================================ */
.logo-band { background:white;border-bottom:1px solid var(--border-lt);padding:1.25rem 2.5rem; }
.logo-band-inner { max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:2.5rem;flex-wrap:wrap; }
.logo-band-label { font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.12em;color:var(--olive-lt);white-space:nowrap; }
.logo-band-item { font-size:0.82rem;font-weight:600;color:var(--olive-lt);padding:0.3rem 0.875rem;border:1px solid var(--border-lt);border-radius:6px;white-space:nowrap; }

/* ============================================================
   ABOUT GRID (home)
   ============================================================ */
.about-grid { display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:start;padding:6rem 2.5rem;max-width:1200px;margin:0 auto; }
.about-img-wrap { border-radius:16px;overflow:hidden;margin-bottom:1.5rem; }
.about-img-wrap img { width:100%;height:320px;object-fit:cover; }
.stat-cards-stack { display:flex;flex-direction:column;gap:1.25rem; }

/* ============================================================
   INNER HERO (all inner pages)
   ============================================================ */



.inner-hero-content { position:relative;z-index:2;max-width:1200px;margin:0 auto;width:100%;padding:0; }
.inner-hero-content .eyebrow.light { color:rgba(255,255,255,0.75); }
.inner-hero-content h1 { font-size:clamp(2.2rem,5vw,4rem);font-weight:200;letter-spacing:-0.04em;color:white;line-height:1.0;margin-bottom:1.25rem;max-width:700px; }
.inner-hero-content h1 strong { font-weight:700; }
.inner-hero-content p { font-size:1.05rem;color:rgba(255,255,255,0.7);max-width:580px;line-height:1.75;font-weight:300;margin-bottom:0; }
.inner-hero-content .hero-btns-wrap { display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem; }
/* Responsive */
@media(max-width:768px) {
  .inner-hero { padding:8rem 1.5rem 3.5rem; min-height:45vh; }
  .inner-hero-content h1 { font-size:clamp(1.8rem,6vw,2.8rem); }
}

/* ============================================================
   SPLIT SECTION
   ============================================================ */
.split-section { display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;padding:6rem 2.5rem;max-width:1200px;margin:0 auto; }
.split-img { width:100%;border-radius:16px;box-shadow:0 8px 40px rgba(5,94,158,0.12); }
.placeholder-map { background:var(--off-white);border:2px dashed var(--border-lt);border-radius:16px;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center; }
.placeholder-map-inner { text-align:center; }

/* ============================================================
   STAT PANEL (about story)
   ============================================================ */
.stat-panel { display:grid;grid-template-columns:1fr 1fr;gap:1.25rem; }
.stat-panel-item { background:var(--off-white);border:1px solid var(--border-lt);border-radius:12px;padding:1.5rem;text-align:center; }

/* ============================================================
   THREE / FOUR GRID
   ============================================================ */
.three-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem; }
.four-grid  { display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem; }
.two-grid   { display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem; }

/* ============================================================
   VALUE CARD
   ============================================================ */
.value-card { background:white;border-radius:16px;padding:2.25rem;border:1px solid var(--border-lt); }

/* ============================================================
   TEAM CARD
   ============================================================ */
.team-card { text-align:center; }
.team-photo { width:80px;height:80px;border-radius:50%;object-fit:cover;margin:0 auto 1rem; }
.team-avatar { width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;font-size:1.1rem;font-weight:700;color:white;letter-spacing:0.04em; }
.team-name { font-size:0.95rem;font-weight:700;color:var(--olive);margin-bottom:3px; }
.team-role { font-size:0.72rem;font-weight:700;color:var(--blue);letter-spacing:0.08em;text-transform:uppercase;margin-bottom:6px; }
.team-bio  { font-size:0.78rem;color:var(--olive-lt);line-height:1.55;font-weight:300; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position:relative;padding-left:2.5rem;border-left:2px solid rgba(255,255,255,0.18); }
.timeline-item { position:relative;margin-bottom:2.5rem;padding-left:1.5rem; }
.timeline-dot { position:absolute;left:-2.05rem;top:5px;width:12px;height:12px;border-radius:50%;background:var(--red);border:2px solid white; }
.timeline-year { font-size:0.7rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:rgba(255,255,255,0.45);margin-bottom:4px; }
.timeline-title { font-size:1rem;font-weight:700;color:white;margin-bottom:6px; }
.timeline-desc { font-size:0.85rem;color:rgba(255,255,255,0.55);line-height:1.7;font-weight:300; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { display:flex;justify-content:center;gap:0;background:var(--blue);border-bottom:1px solid rgba(255,255,255,0.1); }
.stats-band-item { flex:1;text-align:center;padding:2rem 1.5rem;border-right:1px solid rgba(255,255,255,0.1); }
.stats-band-item:last-child { border-right:none; }
.stats-band-num { font-size:2rem;font-weight:200;color:white;letter-spacing:-0.04em;line-height:1; }
.stats-band-lbl { font-size:0.75rem;color:rgba(255,255,255,0.55);margin-top:5px;text-transform:uppercase;letter-spacing:0.08em;font-weight:600; }

/* ============================================================
   FEATURE CARD LIGHT (inner pages)
   ============================================================ */
.feature-card-light { background:white;border:1px solid var(--border-lt);border-radius:16px;padding:2rem;transition:border-color .2s,transform .2s,box-shadow .2s; }
.feature-card-light:hover { border-color:var(--blue);transform:translateY(-2px);box-shadow:0 8px 28px rgba(5,94,158,0.1); }
.feature-card--wide { grid-column:span 2;display:flex;gap:2.5rem;align-items:center;background:rgba(255,255,255,0.18);border-color:rgba(255,255,255,0.3); }

/* ============================================================
   SERVICES CARDS (home)
   ============================================================ */
.services-cards { display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem; }
.service-card { display:flex;flex-direction:column;background:white;border:1px solid var(--border-lt);border-radius:16px;padding:2rem;text-decoration:none;color:inherit;transition:border-color .2s,transform .2s,box-shadow .2s; }
.service-card:hover { border-color:var(--blue);transform:translateY(-4px);box-shadow:0 12px 36px rgba(5,94,158,0.12); }
.service-card-icon { width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem; }
.service-card h3 { font-size:1rem;font-weight:700;color:var(--olive);margin-bottom:0.5rem; }
.service-card p { font-size:0.83rem;color:var(--olive-lt);line-height:1.7;font-weight:300;flex:1; }
.service-card-link { margin-top:1.25rem;font-size:0.83rem;font-weight:700;color:var(--blue);letter-spacing:0.03em; }

/* ============================================================
   BLOG GRID
   ============================================================ */
.blog-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem; }
.blog-grid--full { grid-template-columns:repeat(3,1fr); }
.blog-card { background:white;border:1px solid var(--border-lt);border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s; }
.blog-card:hover { transform:translateY(-3px);box-shadow:0 10px 32px rgba(5,94,158,0.1); }
.blog-card-img { aspect-ratio:16/9;overflow:hidden;background:var(--off-white); }
.blog-card-img img { width:100%;height:100%;object-fit:cover;transition:transform .35s; }
.blog-card:hover .blog-card-img img { transform:scale(1.04); }
.blog-card-img--placeholder { display:flex;align-items:center;justify-content:center; }
.blog-card-body { padding:1.5rem; }
.blog-card-meta { display:flex;align-items:center;gap:0.75rem;margin-bottom:0.75rem; }
.blog-card-date { font-size:0.75rem;color:var(--olive-lt);font-weight:400; }
.blog-card-cat { font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;background:var(--blue-pale);color:var(--blue);padding:2px 8px;border-radius:4px; }
.blog-card h3 { font-size:0.95rem;font-weight:700;color:var(--olive);margin-bottom:0.5rem;line-height:1.4; }
.blog-card h3 a { color:inherit;text-decoration:none;transition:color .2s; }
.blog-card h3 a:hover { color:var(--blue); }
.blog-card p { font-size:0.82rem;color:var(--olive-lt);line-height:1.65;font-weight:300; }
.blog-card-cta { display:inline-block;margin-top:1rem;font-size:0.82rem;font-weight:700;color:var(--blue);letter-spacing:0.03em; }
.blog-pagination { margin-top:3rem;text-align:center; }
.blog-pagination .nav-links { display:inline-flex;gap:0.5rem; }
.blog-pagination .page-numbers { display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--border-lt);font-size:0.85rem;color:var(--olive-mid);transition:all .2s; }
.blog-pagination .page-numbers.current,.blog-pagination .page-numbers:hover { background:var(--blue);color:white;border-color:var(--blue); }

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group { display:flex;flex-direction:column;gap:0.4rem;margin-bottom:1rem; }
.form-group label { font-size:0.8rem;font-weight:700;color:var(--olive);letter-spacing:0.03em; }
.form-group .req { color:var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  padding:0.75rem 1rem;border:1.5px solid var(--border-lt);border-radius:8px;font-size:0.9rem;color:var(--olive);background:white;font-family:inherit;transition:border-color .2s,box-shadow .2s;width:100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color:var(--blue);box-shadow:0 0 0 3px rgba(5,94,158,0.12);outline:none; }
.form-group textarea { min-height:120px;resize:vertical; }

/* ============================================================
   FOOTER BRAND COLUMN
   ============================================================ */
.footer-brand-col { max-width:280px; }
.footer-about { font-size:0.82rem;color:rgba(255,255,255,0.42);line-height:1.7;font-weight:300;margin-top:0.75rem; }

/* ============================================================
   CTA OVERLAY (when bg image is set)
   ============================================================ */
.cta-overlay { position:absolute;inset:0;background:rgba(58,58,58,0.85); }

/* ============================================================
   TESTIMONIAL PHOTO
   ============================================================ */
.testi-photo { width:80px;height:80px;border-radius:50%;object-fit:cover;margin:0 auto 1.5rem;border:3px solid var(--blue); }

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 1024px) {
  .three-grid, .four-grid { grid-template-columns:repeat(2,1fr); }
  .services-cards, .blog-grid, .blog-grid--full { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 960px) {
  .nav-pill { display:none; }
  .nav-burger { display:flex; }
  .nav-contact-link { display:none; }
  .about-grid, .split-section, .two-grid { grid-template-columns:1fr; }
  .feature-card--wide { flex-direction:column; }

  .stats-band { flex-wrap:wrap; }
  .stats-band-item { flex:1 1 50%;border-right:none;border-bottom:1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 640px) {
  .three-grid, .four-grid, .services-cards, .blog-grid, .blog-grid--full { grid-template-columns:1fr; }
  .site-header { padding:0.75rem 1.25rem; }
  .stats-band-item { flex:1 1 100%; }
}

/* Hero padding fix */
/* hero padding managed by section itself */

/* ============================================================
   LOGO — strip WordPress default anchor padding/margin
   ============================================================ */
.nav-logo-custom { line-height: 0; }
.nav-logo-custom a.custom-logo-link,
.custom-logo-link {
  display: block;
  padding: 0;
  margin: 0;
  line-height: 0;
  border: none;
  outline-offset: 2px;
}
.nav-logo-custom img,
.custom-logo-link img,
.custom-logo {
  display: block;
  height: auto;
  padding: 0;
  margin: 0;
  border: none;
}

/* Footer logo — same reset + white invert */
.footer-logo-wrap { line-height: 0; margin-bottom: 1rem; }
.footer-logo-wrap a.custom-logo-link {
  display: block;
  padding: 0;
  margin: 0;
  line-height: 0;
}
.footer-logo-wrap img,
.footer-logo-wrap .custom-logo {
  display: block;
  height: auto;
  padding: 0;
  margin: 0;
  filter: brightness(0) invert(1);
}

/* Footer contact lines */
.footer-contact-line {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-contact-line:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   SECTION SPLIT — image left or right alongside content
   ============================================================ */
.section-split {
  padding: 6rem 2.5rem;
}
.section-split-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
/* Reversed = image on LEFT, text on right */
.section-split-inner--reversed {
  direction: rtl;
}
.section-split-inner--reversed > * {
  direction: ltr;
}
.section-split-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section-split-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 40px rgba(5,94,158,0.12);
}
.section-split-media--cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .section-split-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }
  .section-split-inner--reversed {
    direction: ltr;
  }
  .section-split { padding: 3.5rem 1.5rem; }
}

/* ============================================================
   ANIMATIONS & GLOBAL EFFECTS
   ============================================================ */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn    { from { opacity:0; transform:scale(0.88); } to { opacity:1; transform:scale(1); } }
@keyframes pulse-ring { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.18);opacity:0.6;} }
@keyframes heartbeat  { 0%,100%{transform:scaleY(1);} 15%{transform:scaleY(2.5);} 30%{transform:scaleY(0.8);} 45%{transform:scaleY(2);} 60%{transform:scaleY(0.9);} }
@keyframes dash       { to { stroke-dashoffset: 0; } }
@keyframes float      { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes shimmer    { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
@keyframes countUp    { from{opacity:0;transform:translateY(10px) scale(0.9);} to{opacity:1;transform:translateY(0) scale(1);} }

.reveal { opacity:0; }
.reveal.visible { animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-left.visible { animation: fadeInLeft 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-right.visible { animation: fadeInRight 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-scale.visible { animation: scaleIn 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-delay-1 { animation-delay: 0.1s !important; }
.reveal-delay-2 { animation-delay: 0.2s !important; }
.reveal-delay-3 { animation-delay: 0.3s !important; }
.reveal-delay-4 { animation-delay: 0.4s !important; }
.reveal-delay-5 { animation-delay: 0.5s !important; }

/* ============================================================
   FEATURES GRID — REDESIGNED
   ============================================================ */
.features-bg {
  position: relative;
  overflow: hidden;
}
.features-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.features-inner { position: relative; z-index: 1; }

.features-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.3s, border-color 0.3s;
  cursor: default;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.feat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.28); }
.feat-card:hover::before { transform: translateX(100%); }
.feat-card--accent { background: rgba(174,28,37,0.2); border-color: rgba(174,28,37,0.4); grid-column: span 2; display: flex; gap: 2.5rem; align-items: center; }
.feat-card--accent:hover { background: rgba(174,28,37,0.28); }
.feat-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.feat-card-icon.red   { background: rgba(174,28,37,0.3); }
.feat-card-icon.blue  { background: rgba(255,255,255,0.15); }
.feat-card-icon.teal  { background: rgba(80,200,200,0.2); }
.feat-card-icon.olive { background: rgba(180,180,130,0.2); }
.feat-card h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.6rem; }
.feat-card p  { font-size: 0.83rem; color: rgba(255,255,255,0.6); line-height: 1.7; font-weight: 300; }
.feat-card-body { flex: 1; }
.feat-card-stat {
  flex: 0 0 160px;
  background: rgba(174,28,37,0.25);
  border: 1px solid rgba(174,28,37,0.4);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}
.feat-card-stat .big-num { font-size: 2.5rem; font-weight: 200; color: #ffcccc; letter-spacing: -0.05em; line-height: 1; }
.feat-card-stat .unit    { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

@media(max-width:900px) {
  .features-grid-new { grid-template-columns: 1fr 1fr; }
  .feat-card--accent  { grid-column: span 2; }
}
@media(max-width:600px) {
  .features-grid-new { grid-template-columns: 1fr; }
  .feat-card--accent  { grid-column: span 1; flex-direction: column; }
}

/* ============================================================
   HOW IT WORKS — ANIMATED HEARTBEAT
   ============================================================ */
.workflow-section { padding: 6rem 2.5rem; max-width: 1200px; margin: 0 auto; }

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
}

/* SVG heartbeat line */
.workflow-line-wrap {
  position: absolute;
  top: 0;               /* top of the bubble row */
  left: calc(12.5% + 23px);
  right: calc(12.5% + 23px);
  height: 46px;         /* matches bubble height */
  pointer-events: none;
  z-index: 0;
}
.workflow-line-svg { width: 100%; height: 100%; overflow: visible; }
.workflow-line-base {
  fill: none;
  stroke: rgba(5,94,158,0.2);
  stroke-width: 2;
}
.workflow-line-pulse {
  fill: none;
  stroke: #AE1C25;
  stroke-width: 2.5;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: dash 2.4s cubic-bezier(0.4,0,0.2,1) infinite;
  filter: drop-shadow(0 0 4px rgba(174,28,37,0.7));
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.step-bubble {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 12px rgba(5,94,158,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
.step-bubble:nth-child(1) { animation-delay: 0s; }
.workflow-step:nth-child(2) .step-bubble { animation-delay: 0.6s; }
.workflow-step:nth-child(3) .step-bubble { animation-delay: 1.2s; }
.workflow-step:nth-child(4) .step-bubble { animation-delay: 1.8s; }
.step-bubble.active { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 4px 20px rgba(5,94,158,0.35); }
.step-bubble.red    { background: var(--red);  color: white; border-color: var(--red);  box-shadow: 0 4px 20px rgba(174,28,37,0.35); }

.workflow-step h4 { font-size: 0.9rem; font-weight: 700; color: var(--olive); margin-bottom: 0.5rem; }
.workflow-step p  { font-size: 0.78rem; color: var(--olive-lt); line-height: 1.65; font-weight: 300; }

@media(max-width:768px) {
  .workflow-track { grid-template-columns: repeat(2,1fr); }
  .workflow-line-wrap { display: none; }
}
@media(max-width:480px) {
  .workflow-track { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS — MULTI-CARD SLIDER
   ============================================================ */
.testimonials-section {
  background: var(--off-white);
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  overflow: hidden;
}
.testimonials-header { text-align: center; margin-bottom: 3.5rem; }

.testi-slider-wrap { position: relative; overflow: hidden; }
.testi-slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.testi-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 2px 20px rgba(5,94,158,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(5,94,158,0.1); }
.testi-card-quote { font-size: 2.5rem; line-height: 1; color: var(--blue); opacity: 0.3; font-weight: 200; margin-bottom: 0.5rem; }
.testi-card-text  { font-size: 0.9rem; line-height: 1.75; color: var(--olive); font-weight: 300; margin-bottom: 1.75rem; font-style: italic; }
.testi-card-author { display: flex; align-items: center; gap: 12px; }
.testi-card-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.testi-card-avatar-ph {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: white; flex-shrink: 0;
}
.testi-card-name  { font-size: 0.88rem; font-weight: 700; color: var(--olive); }
.testi-card-role  { font-size: 0.75rem; color: var(--olive-lt); }
.testi-card-stars { color: #f59e0b; font-size: 0.75rem; margin-bottom: 0.75rem; letter-spacing: 2px; }

.testi-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem;
}
.testi-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border-lt);
  background: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive); transition: all 0.2s;
}
.testi-btn:hover { background: var(--blue); border-color: var(--blue); color: white; }
.testi-dots { display: flex; gap: 6px; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-lt); cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.testi-dot.active { background: var(--blue); transform: scale(1.3); }

@media(max-width:900px) { .testi-card { flex: 0 0 calc(50% - 0.75rem); } }
@media(max-width:600px) { .testi-card { flex: 0 0 100%; } }

/* ============================================================
   SERVICE PAGES
   ============================================================ */
.service-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 5rem;
  overflow: hidden;
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.service-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,94,158,0.3) 0%, rgba(5,94,158,0.85) 100%);
  z-index: 1;
}
.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.service-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.5rem;
}
.service-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.service-hero h1 strong { font-weight: 600; }
.service-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.service-hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 1rem;
}
.service-hero-stat { border-left: 2px solid rgba(255,255,255,0.3); padding-left: 1.25rem; }
.service-hero-stat-num { font-size: 2rem; font-weight: 200; color: white; letter-spacing: -0.04em; }
.service-hero-stat-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; }

.service-section { padding: 6rem 2.5rem; }
.service-section-inner { max-width: 1200px; margin: 0 auto; }

.service-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.benefit-card {
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(5,94,158,0.1); border-color: rgba(5,94,158,0.2); }
.benefit-card:hover::after { transform: scaleX(1); }
.benefit-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.benefit-card h3 { font-size: 1rem; font-weight: 700; color: var(--olive); margin-bottom: 0.6rem; }
.benefit-card p  { font-size: 0.84rem; color: var(--olive-lt); line-height: 1.7; }

.service-process {
  background: var(--off-white);
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border-lt);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
}
.process-step {
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.process-step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(5,94,158,0.08); }
.process-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  animation: pulse-ring 2.8s ease-in-out infinite;
}
.process-step-num.red { background: var(--red); }
.process-step h4 { font-size: 0.9rem; font-weight: 700; color: var(--olive); margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.78rem; color: var(--olive-lt); line-height: 1.6; }

.service-cta {
  background: var(--blue);
  padding: 6rem 2.5rem;
  text-align: center;
}
.service-cta h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 200; letter-spacing: -0.03em; color: white; margin-bottom: 1rem; }
.service-cta p  { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; font-size: 1rem; }

@media(max-width:900px) {
  .service-benefits-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
  .service-benefits-grid, .process-steps { grid-template-columns: 1fr; }
  .service-hero { min-height: 60vh; }
  .service-hero-stats { flex-direction: column; gap: 1.5rem; }
}

/* Contact page responsive */
@media (max-width: 768px) {
  .contact-body-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .contact-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Nav dropdown (Services) ── */
.nav-pill .menu-item-has-children {
  position: relative;
}
.nav-pill .menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.65rem;
  margin-left: 4px;
  opacity: 0.7;
}
.nav-pill .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.16);
  padding: 0.6rem;
  min-width: 220px;
  z-index: 200;
  list-style: none;
  margin: 0;
  border: 1px solid rgba(5,94,158,0.08);
}
.nav-pill .sub-menu li { margin: 0; padding: 0; }
.nav-pill .sub-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.83rem;
  color: var(--olive) !important;
  background: transparent !important;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
.nav-pill .sub-menu a:hover {
  background: var(--blue-pale) !important;
  color: var(--blue) !important;
}
.nav-pill .menu-item-has-children:hover .sub-menu,
.nav-pill .menu-item-has-children:focus-within .sub-menu {
  display: block;
  animation: fadeInUp 0.18s ease forwards;
}

/* Mobile dropdown */
.mobile-nav-links .menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-links .menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.6;
}
.mobile-nav-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  display: none;
}
.mobile-nav-links .menu-item-has-children.is-open .sub-menu { display: block; }
.mobile-nav-links .sub-menu a {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  opacity: 0.75;
}

/* ============================================================
   INNER PAGE FIXES
   ============================================================ */

/* Inner hero — left-aligned content, gradient background, full-width */
.inner-hero {
  position: relative;
  padding: 9rem 2.5rem 5rem;
  overflow: hidden;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Eyebrow inside hero */
.inner-hero .eyebrow.light,
.inner-hero .eyebrow {
  color: rgba(255,255,255,0.8);
}
.inner-hero .eyebrow::before {
  background: rgba(255,255,255,0.5);
}

/* Split section full width wrapper */
.split-section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Stats band responsive */
@media (max-width: 600px) {
  .stats-band { flex-direction: column; }
  .stats-band-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats-band-item:last-child { border-bottom: none; }
}

/* Feature grid on inner pages */
.inner-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.inner-features-grid .feature-card-light {
  animation: none;
}
@media (max-width: 600px) {
  .inner-features-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .three-grid, .four-grid { grid-template-columns: 1fr; }
  .inner-hero { padding: 8rem 1.5rem 3.5rem; min-height: 45vh; }
}

/* Testimonial band inner page variant */
.testimonial-band {
  background: var(--off-white);
  padding: 5rem 2.5rem;
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
}
.testimonial-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: white;
  padding: 5rem 2.5rem;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.contact-detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive-lt);
  margin-bottom: 3px;
}
.contact-detail-value {
  font-size: 0.9rem;
  color: var(--olive);
  line-height: 1.6;
}
.contact-detail-value a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-detail-value a:hover { color: var(--blue-dark); }

.contact-form-card {
  background: var(--off-white);
  border: 1px solid var(--border-lt);
  border-radius: 20px;
  padding: 2.5rem;
}
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
.contact-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-row-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .contact-section { padding: 3rem 1.25rem; }
  .contact-form-card { padding: 1.75rem 1.25rem; }
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

/* Filter bar */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border-lt);
  background: white;
  color: var(--olive-mid);
  text-decoration: none;
  transition: all 0.2s;
}
.blog-filter-pill:hover,
.blog-filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.blog-filter-count {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.7rem;
}
.blog-filter-pill.active .blog-filter-count,
.blog-filter-pill:hover .blog-filter-count { background: rgba(255,255,255,0.25); }

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: 24px;
  overflow: hidden;
}
.blog-featured-img {
  display: block;
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
}
.blog-featured-cat,
.blog-index-cat {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--red);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.blog-featured-body { padding: 2.5rem 2.5rem 2.5rem 0; }
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--olive-lt);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.blog-meta-dot { color: var(--border-lt); }
.blog-featured-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--olive);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.blog-featured-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.blog-featured-title a:hover { color: var(--blue); }
.blog-featured-excerpt {
  font-size: 0.92rem;
  color: var(--olive-mid);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s;
}
.blog-read-more:hover { gap: 10px; }

/* Blog grid */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}
.blog-index-card {
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.blog-index-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(5,94,158,0.1);
}
.blog-index-card-img {
  display: block;
  height: 210px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}
.blog-index-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-index-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--olive-lt);
  margin-bottom: 0.6rem;
}
.blog-index-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.blog-index-card-body h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.blog-index-card-body h3 a:hover { color: var(--blue); }
.blog-index-card-body p {
  font-size: 0.83rem;
  color: var(--olive-mid);
  line-height: 1.7;
  flex: 1;
}
.blog-index-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-lt);
}
.blog-author-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--olive-mid);
  font-weight: 500;
}
.blog-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-read-more-sm {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-read-more-sm:hover { color: var(--blue-dark); }

/* Pagination */
.blog-pager { margin-top: 1rem; display: flex; justify-content: center; }
.blog-pager .nav-links { display: flex; align-items: center; gap: 0.4rem; }
.blog-pager .page-numbers {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.5rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--border-lt);
  font-size: 0.85rem; font-weight: 600; color: var(--olive);
  text-decoration: none; transition: all 0.2s; background: white;
}
.blog-pager .page-numbers:hover,
.blog-pager .page-numbers.current {
  background: var(--blue); border-color: var(--blue); color: white;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 5rem 2rem;
}
.blog-empty svg { display: block; margin: 0 auto 1.25rem; opacity: 0.3; }
.blog-empty h3 { font-size: 1.25rem; font-weight: 700; color: var(--olive); margin-bottom: 0.5rem; }
.blog-empty p  { color: var(--olive-lt); margin-bottom: 2rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 4rem;
  overflow: hidden;
}
.post-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: 100%;
}
.post-hero-cats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.post-hero-cat {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}
.post-hero-cat:hover { background: rgba(255,255,255,0.3); }
.post-hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.post-hero-author {
  display: flex;
  align-items: center;
  gap: 7px;
}
.post-author-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
}
.post-meta-sep { color: rgba(255,255,255,0.3); }

/* Post body layout */
.post-body-wrap {
  background: white;
}
.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Sidebar */
.post-sidebar-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.post-share-box,
.post-progress-box {
  background: var(--off-white);
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  padding: 1.25rem;
}
.post-share-label,
.post-progress-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive-lt);
  margin-bottom: 0.75rem;
}
.post-share-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.post-share-btn {
  display: block;
  padding: 0.45rem 0.875rem;
  border-radius: 7px;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}
.post-share-btn:hover { opacity: 0.85; }
.post-progress-track {
  height: 5px;
  background: var(--border-lt);
  border-radius: 999px;
  overflow: hidden;
}
.post-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 999px;
  transition: width 0.1s linear;
}
.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s;
}
.post-back-btn:hover { gap: 2px; }

/* Content column */
.post-featured-img {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
}
.post-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}
.post-entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--olive-mid);
}
.post-entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}
.post-entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--olive);
  margin: 2rem 0 0.75rem;
}
.post-entry-content p { margin-bottom: 1.25rem; }
.post-entry-content ul,
.post-entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-entry-content li { margin-bottom: 0.4rem; }
.post-entry-content blockquote {
  border-left: 4px solid var(--blue);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--off-white);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--olive);
}
.post-entry-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
}
.post-entry-content a { color: var(--blue); text-decoration: underline; }
.post-entry-content code {
  background: var(--off-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-entry-content pre {
  background: #1a1a2e;
  color: #e8e8f0;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-lt);
}
.post-tags-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive-lt);
}
.post-tag {
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-lt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive-mid);
  text-decoration: none;
  transition: all 0.2s;
}
.post-tag:hover { background: var(--blue); border-color: var(--blue); color: white; }

/* Author card */
.post-author-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--border-lt);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.post-author-avatar { flex-shrink: 0; }
.post-author-photo {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  display: block;
}
.post-author-name { font-size: 1rem; font-weight: 700; color: var(--olive); }
.post-author-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.post-author-bio { font-size: 0.85rem; color: var(--olive-mid); line-height: 1.65; margin: 0; }

/* Post nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.post-nav-item {
  background: white;
  border: 1.5px solid var(--border-lt);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.post-nav-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.post-nav-next { text-align: right; }
.post-nav-dir {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive-lt);
  margin-bottom: 6px;
}
.post-nav-next .post-nav-dir { justify-content: flex-end; }
.post-nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1.4;
}

/* Related posts */
.post-related {
  background: var(--off-white);
  border-top: 1px solid var(--border-lt);
  padding: 5rem 2.5rem;
}
.post-related-inner { max-width: 1100px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 260px; }
  .blog-featured-body { padding: 1.75rem; }
  .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .post-hero { min-height: 50vh; padding: 0 1.5rem 3rem; }
}
@media (max-width: 600px) {
  .blog-page-wrap { padding: 2.5rem 1.25rem 4rem; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-hero-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .post-related { padding: 3rem 1.25rem; }
  .post-related .blog-index-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION BACKGROUND — video or image (mr_section_bg helper)
   ============================================================ */

/* The wrap fills the entire parent section */
.section-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video inside the wrap */
.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Colour overlay on top of video/image */
.section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Every section using mr_section_bg must be position:relative ──
   Content layers sit at z-index 3+, above bg-wrap(0) and bg-overlay(1) ── */

/* Home hero */
.hero                    { position: relative; overflow: hidden; }
.hero-overlay            { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* All hero content wrapped in .hero-content-layer */
.hero-content-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  pointer-events: none; /* re-enabled on children */
}
.hero-content-layer > * { pointer-events: auto; }
.hero-copy               { position: relative; z-index: 3; }
.hero-cta-bl             { position: absolute; left: var(--gutter, 2.5rem); bottom: 2.5rem; z-index: 3; }
.hero-stats-br           { position: absolute; right: var(--gutter, 2.5rem); bottom: 2.5rem; z-index: 3; display:flex; gap:1.75rem; align-items:center; }

/* Inner hero pages */
.inner-hero              { position: relative; overflow: hidden; }
.inner-hero-content      { position: relative; z-index: 3; }
.inner-hero .brand-stripe { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; }

/* Service hero (new service pages) */
.service-hero            { position: relative; overflow: hidden; }
.service-hero-content    { position: relative; z-index: 3; }

/* Features section */
.features-bg             { position: relative; overflow: hidden; }
.features-inner          { position: relative; z-index: 3; }

/* CTA banner */
.cta-banner              { position: relative; overflow: hidden; }
.cta-content-layer       { position: relative; z-index: 3; }
.cta-banner .reveal      { position: relative; z-index: 3; }
.section-split-cta .section-split-inner { position: relative; z-index: 3; }

/* ============================================================
   MR-MEDIA-WRAP — image or video in content sections
   ============================================================ */
.mr-media-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(5,94,158,0.12);
}
.mr-media-img {
  width: 100%;
  height: auto;
  display: block;
}
.mr-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
  border-radius: inherit;
}
/* When used inside section-split-media, the wrap fills the column */
.section-split-media .mr-media-wrap {
  height: 100%;
  min-height: 320px;
}
.section-split-media .mr-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Split-img-wrap (for inner pages) */
.split-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(5,94,158,0.12);
}
