/* ============================================================
   OUTSOURCING PAGE — 500K RHYTHM + OVERRIDES (SCOPED)
   File: outsourcing.css
   Scope: body.outsourcing-page only
   Notes:
   - styles.css enforces big section padding with !important
   - We override those rules here to control spacing precisely
============================================================ */

/* ---------- Page tokens ---------- */
body.outsourcing-page{
  --meed-navy: #071A2F;
  --meed-green: #00B46E;
  --meed-gray: #F4F7FB;

  --shadow-soft: 0 10px 30px rgba(7, 26, 47, 0.10);
  --shadow-card: 0 12px 34px rgba(7, 26, 47, 0.12);

  /* Premium rhythm */
  --sec-y: 62px;
  --sec-y-tight: 46px;

  --title-size: 34px;
  --subtitle-size: 17px;

  /* Title rhythm */
  --title-gap: 16px;     /* title → underline */
  --sub-gap: 30px;       /* subtitle → content */

  /* Underline (make it visible in your screenshot sections) */
  --dash-w: 74px;
  --dash-h: 4px;
  --dash-mt: 14px;

  --card-radius: 18px;
  --card-pad: 26px;
  --grid-gap: 22px;
}

/* ============================================================
   CRITICAL OVERRIDES vs global styles.css
============================================================ */
body.outsourcing-page section{
  padding-top: var(--sec-y) !important;
  padding-bottom: var(--sec-y) !important;
}

body.outsourcing-page .meed-section{
  width: 100%;
  padding: var(--sec-y) 24px !important;
  box-sizing: border-box;
}

body.outsourcing-page .meed-section.section-tight{
  padding: var(--sec-y-tight) 24px !important;
}

body.outsourcing-page .section-gray{ background: var(--meed-gray); }
body.outsourcing-page .section-white{ background: #fff; }

/* Global divider margins can create “mystery gaps” */
body.outsourcing-page .section-divider,
body.outsourcing-page .section-divider-premium{
  height: 1px !important;
  background: linear-gradient(to right, transparent, rgba(7,26,47,0.12), transparent) !important;
  margin: 0 !important;
  border: 0 !important;
}

/* ============================================================
   TITLES + SUBTITLES (500k rhythm)
============================================================ */
body.outsourcing-page .meed-title{
  text-align: center;
  font-size: var(--title-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--meed-navy);
  margin: 0 0 var(--title-gap);
  position: relative;
}

/* Stronger underline everywhere (fixes Industries + FAQ “can’t see dash”) */
body.outsourcing-page .meed-title::after{
  content: "";
  width: var(--dash-w);
  height: var(--dash-h);
  display: block;
  margin: var(--dash-mt) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--meed-green), rgba(0,180,110,0.22)) !important;
  box-shadow: 0 10px 22px rgba(0,180,110,0.10);
}

body.outsourcing-page .meed-subtitle{
  text-align: center;
  max-width: 860px;
  margin: 0 auto var(--sub-gap);
  font-size: var(--subtitle-size);
  line-height: 1.6;
  color: rgba(7,26,47,0.72);
}

/* Title-only sections need slightly more room so underline reads intentional */
body.outsourcing-page .meed-title + .premium-card-grid,
body.outsourcing-page .meed-title + .workflow-grid,
body.outsourcing-page .meed-title + .two-col-list,
body.outsourcing-page .meed-title + .faq-list{
  margin-top: 20px;
}

/* ============================================================
   CREDIBILITY PANEL (20+ Years…)
   500K treatment: structural credential strip (not a promo pill)
============================================================ */
body.outsourcing-page .credibility-panel.out-credibility{
  max-width: 1040px;
  margin: -54px auto 0 !important;     /* keep the hero overlap, but cleaner */
  padding: 18px 34px !important;

  border-radius: 14px;
  background:
    radial-gradient(900px 360px at 50% 0%,
      rgba(255,255,255,0.10),
      transparent 62%),
    linear-gradient(180deg,
      rgba(7,26,47,0.96),
      rgba(6,23,42,0.96));

  /* 500k = more “architectural” than “glowy card” */
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 18px 46px rgba(7,26,47,0.16);
  overflow: hidden;

  text-align: center !important;
}

/* subtle “credential rail” line — reads premium, not loud */
body.outsourcing-page .credibility-panel.out-credibility::after{
  content:"";
  position:absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(0,180,110,0.55),
    transparent);
  opacity: 0.55;
  pointer-events: none;
}

body.outsourcing-page .credibility-panel.out-credibility p{
  margin: 0;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;

  color: rgba(255,255,255,0.90);
  font-size: 15.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;              /* $500k: calm precision */
}

/* only emphasize the credential, not the whole sentence */
body.outsourcing-page .credibility-panel.out-credibility .credibility-emphasis{
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 900px){
  body.outsourcing-page .credibility-panel.out-credibility{
    margin-top: -46px !important;
    padding: 16px 18px !important;
  }
}

/* ============================================================
   CARD GRIDS
============================================================ */
body.outsourcing-page .premium-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
  max-width: 1180px;
  margin: 0 auto;
}

body.outsourcing-page .premium-card{
  background: #fff;
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  border: 1px solid rgba(7,26,47,0.08);
  box-shadow: var(--shadow-soft);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s cubic-bezier(.16,1,.3,1), border-color .22s ease;
}

body.outsourcing-page .premium-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0,180,110,0.22);
}

body.outsourcing-page .premium-card h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--meed-navy);
}

body.outsourcing-page .premium-card p{
  margin: 0;
  color: rgba(7,26,47,0.72);
  font-size: 15.5px;
  line-height: 1.55;
}

body.outsourcing-page .premium-card-grid.five-pillars{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ============================================================
   CORE SERVICES LIST
============================================================ */
body.outsourcing-page .two-col-list{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px 32px;
}

body.outsourcing-page .two-col-list ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

body.outsourcing-page .two-col-list li{
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15.5px;
  color: rgba(7,26,47,0.78);
  border-bottom: 1px solid rgba(7,26,47,0.06);
}

body.outsourcing-page .two-col-list li:last-child{ border-bottom: none; }

body.outsourcing-page .two-col-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--meed-green);
  box-shadow: 0 0 0 6px rgba(0,180,110,0.12);
}

/* ============================================================
   WORKFLOW GRID
============================================================ */
body.outsourcing-page .workflow-grid{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

body.outsourcing-page .workflow-card{
  background: #fff;
  border-radius: var(--card-radius);
  padding: 24px 26px;
  border: 1px solid rgba(7,26,47,0.08);
  box-shadow: var(--shadow-soft);
}

body.outsourcing-page .workflow-card h3{
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--meed-navy);
}

body.outsourcing-page .workflow-card p{
  margin: 0;
  color: rgba(7,26,47,0.72);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   MEED vs INTERNAL HIRE
   Fix: overspaced subtitle/body vs other sections + restore underline
============================================================ */
body.outsourcing-page .compare-section{
  padding: var(--sec-y) 24px !important;
  background: #fff;
}

body.outsourcing-page .outsourcing-container{
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

body.outsourcing-page .compare-section .section-title{
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--meed-navy) !important;
  margin: 0 0 14px !important;
  display: inline-block;
  position: relative;
}

/* Green underline restored + matches new dash thickness */
body.outsourcing-page .compare-section .section-title::after{

  content: "";
  width: var(--dash-w);
  height: var(--dash-h);
  display: block;
  margin: var(--dash-mt) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--meed-green), rgba(0,180,110,0.22)) !important;
  box-shadow: 0 10px 22px rgba(0,180,110,0.10);
}

/* ✅ FIX: reduce the “overspaced” feel on this one section only */
body.outsourcing-page .compare-section .section-subtitle{
  text-align: center !important;
  max-width: 860px;
  margin: 0 auto 24px !important; /* was too large vs other sections */
  color: rgba(7,26,47,0.72) !important;
  font-size: 17px !important;
  line-height: 1.6;
}

body.outsourcing-page .compare-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(7,26,47,0.10);
  box-shadow: 0 18px 52px rgba(7,26,47,0.14);
  background: #fff;
  text-align: left;
}

body.outsourcing-page .compare-header{
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  padding: 16px 18px;
  background: linear-gradient(180deg, #071A2F, #06172A);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.outsourcing-page .compare-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  padding: 16px 18px;
  border-top: 1px solid rgba(7,26,47,0.08);
  font-size: 15px;
  color: rgba(7,26,47,0.78);
}

body.outsourcing-page .compare-grid > div:nth-child(1){
  color: rgba(7,26,47,0.88);
  font-weight: 700;
}
body.outsourcing-page .compare-grid > div:nth-child(2){
  color: rgba(7,26,47,0.84);
}
body.outsourcing-page .compare-grid > div:nth-child(3){
  color: rgba(7,26,47,0.70);
}

/* ============================================================
   DASHBOARD
============================================================ */
body.outsourcing-page .dashboard-wrapper{
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px;
}

body.outsourcing-page .dashboard-image{
  display: block;
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(7,26,47,0.08);
  box-shadow: 0 22px 64px rgba(7,26,47,0.18);
}

/* ============================================================
   FAQ (Title underline visibility + spacing)
============================================================ */
body.outsourcing-page .faq-list{
  max-width: 980px;
  margin: 0 auto;
}

body.outsourcing-page .faq-item{
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(7,26,47,0.10);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  position: relative;
}

body.outsourcing-page .faq-question{
  margin: 0;
  padding-right: 34px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--meed-navy);
  line-height: 1.35;
}

body.outsourcing-page .faq-item::after{
  content: "+";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(7,26,47,0.70);
  background: rgba(7,26,47,0.04);
  border: 1px solid rgba(7,26,47,0.08);
  transition: transform .18s ease, background .18s ease;
}

body.outsourcing-page .faq-answer{
  margin: 10px 0 0;
  color: rgba(7,26,47,0.72);
  font-size: 15.5px;
  line-height: 1.6;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .26s ease, opacity .20s ease;
}

body.outsourcing-page .faq-item.open::after{
  content: "–";
  background: rgba(0,180,110,0.10);
  border-color: rgba(0,180,110,0.25);
  color: var(--meed-green);
}

body.outsourcing-page .faq-item.open .faq-answer{
  max-height: 220px;
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px){
  body.outsourcing-page{
    --sec-y: 54px;
    --title-size: 28px;
    --sub-gap: 26px;
    --card-pad: 22px;
    --dash-w: 66px;
  }

  body.outsourcing-page .compare-header,
  body.outsourcing-page .compare-grid{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.outsourcing-page .compare-header{ text-align: left; }

  body.outsourcing-page .credibility-panel.out-credibility{
    margin-top: -48px !important;
    padding: 16px 18px !important;
  }
}

@media (max-width: 520px){
  body.outsourcing-page{
    --sec-y: 46px;
  }

  body.outsourcing-page .two-col-list{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.outsourcing-page .faq-item{
    padding: 16px 16px;
  }
}
/* ============================================================
   OUTSOURCING — FINAL 500K MICRO-POLISH (SINGLE SOURCE OF TRUTH)
   Keep this block LAST in the file.
============================================================ */

/* 1) CONTEXT BAR (pill under credibility) */
body.outsourcing-page .service-contextbar{
  padding: 18px 24px !important;
  background: transparent !important;
}

body.outsourcing-page .service-contextbar-inner{
  max-width: 980px !important;
  margin: 0 auto !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 26px rgba(7,26,47,0.08) !important;
}

body.outsourcing-page .service-contextbar .context-text{
  text-align: center !important;
  display: inline-block;
}

body.outsourcing-page .service-contextbar a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,180,110,0.55);
}

body.outsourcing-page .service-contextbar a:hover{
  border-bottom-color: rgba(0,180,110,0.95);
}

/* 2) HERO TYPO RHYTHM */
body.outsourcing-page .page-hero h1{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

body.outsourcing-page .page-hero .hero-supporting-copy{
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* 3) TITLE DASH MICRO-BOOST (only once) */
body.outsourcing-page .meed-title::after{
  opacity: 1 !important;
  filter: saturate(1.05);
  box-shadow: 0 12px 26px rgba(0,180,110,0.12);
}

/* 4) SECTION RHYTHM — prevent tightness under underline */
body.outsourcing-page .meed-title + .premium-card-grid,
body.outsourcing-page .meed-title + .workflow-grid,
body.outsourcing-page .meed-title + .two-col-list,
body.outsourcing-page .meed-title + .faq-list,
body.outsourcing-page .meed-title + .dashboard-wrapper{
  margin-top: 22px !important;
}

/* 5) CREDIBILITY PANEL — FINAL (single definition) */
body.outsourcing-page .credibility-panel.out-credibility{
  max-width: 1000px !important;
  margin: -44px auto 0 !important;
  padding: 16px 28px !important;

  border-radius: 12px !important;
  text-align: center !important;
  overflow: hidden;

  background:
    radial-gradient(900px 360px at 50% 0%,
      rgba(255,255,255,0.10),
      transparent 62%),
    linear-gradient(180deg,
      rgba(7,26,47,0.96),
      rgba(6,23,42,0.96)) !important;

  border: 1px solid rgba(255,255,255,0.10) !important;
  border-bottom-color: rgba(0,180,110,0.22) !important;

  box-shadow: 0 12px 30px rgba(7,26,47,0.14) !important;
  position: relative;
}

/* subtle institutional “credential rail” */
body.outsourcing-page .credibility-panel.out-credibility::before{
  content:"";
  position:absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(to right,
    transparent,
    rgba(0,180,110,0.55),
    transparent);
  opacity: 0.55;
  pointer-events: none;
}

body.outsourcing-page .credibility-panel.out-credibility p{
  margin: 0 !important;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;

  color: rgba(255,255,255,0.88) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);

  font-size: 15.25px !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em !important;
}

/* if you still have <strong> in HTML */
body.outsourcing-page .credibility-panel.out-credibility strong{
  color: #ffffff !important;
}

/* if you used .credibility-emphasis span in HTML */
body.outsourcing-page .credibility-panel.out-credibility .credibility-emphasis{
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* 6) PREMIUM CARD MICRO-POLISH */
body.outsourcing-page .premium-card{
  box-shadow: 0 10px 26px rgba(7,26,47,0.10) !important;
}

body.outsourcing-page .premium-card:hover{
  box-shadow: 0 16px 40px rgba(7,26,47,0.14) !important;
}

/* 7) FAQ hover polish */
body.outsourcing-page .faq-item{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.outsourcing-page .faq-item:hover{
  transform: translateY(-1px);
  border-color: rgba(0,180,110,0.18);
  box-shadow: 0 14px 34px rgba(7,26,47,0.12);
}

/* 8) MOBILE polish */
@media (max-width: 520px){
  body.outsourcing-page .service-contextbar{
    padding: 14px 14px !important;
  }

  body.outsourcing-page .service-contextbar-inner{
    border-radius: 18px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.outsourcing-page .service-contextbar .context-text{
    text-align: left !important;
    display: block;
  }

  body.outsourcing-page .credibility-panel.out-credibility{
    margin-top: -40px !important;
    padding: 15px 16px !important;
  }
}
