/* ==========================================================================
   Mapol Inc. — corporate stylesheet
   Palette and type benchmarked against market access / HEOR leaders
   (IQVIA, EVERSANA, Lumanity, Trinity). Restrained, flat, professional.
   Edit the :root variables to rebrand the whole site at once.
   ========================================================================== */

:root {
  /* Brand palette — aligned to Mapol Brand Design Standards (Feb 2026):
     primary blue #1175BB, dark navy #062C46, teal accent #0E8585. */
  --ink:        #062C46;   /* primary dark — headers, hero, footer (brand navy) */
  --navy:       #0a3a5c;   /* secondary dark */
  --blue:       #1175BB;   /* primary action / links (brand blue) */
  --blue-dark:  #0d5d96;
  --teal:       #0E8585;   /* sparing accent only (brand teal) */
  --maple:      #CE1126;   /* Canadian maple-red accent — used sparingly for pop */
  --text:       #1A1A2E;
  --slate:      #4a5568;
  --slate-2:    #5f6a7d;   /* darkened to pass WCAG AA on soft-gray backgrounds */
  --line:       #e3e7ee;
  --bg:         #ffffff;
  --bg-soft:    #f5f7fa;
  --bg-ink-soft:#0a3a5c;

  --radius:     3px;
  --radius-sm:  2px;
  --shadow:     0 1px 2px rgba(6,44,70,.04), 0 8px 24px rgba(6,44,70,.07);
  --shadow-lg:  0 12px 40px rgba(6,44,70,.11);
  --maxw:       1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Accessibility ---------- */
/* Visible keyboard focus on all interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Skip-to-content link — visible only when focused */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 3px;
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.45em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); text-transform: capitalize; }
h3 { font-size: 1.15rem; }
.lead { font-size: 1.16rem; color: var(--slate); max-width: 62ch; }
.eyebrow--lg { font-size: 1.25rem; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow.light { color: #6fd0d8; }

/* ---------- Buttons (square-ish, corporate — not pills) ---------- */
.btn { font-family: var(--font); display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.96rem; cursor: pointer; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); }

/* ---------- Header / nav ---------- */
/* Gradient brand accent across the top of the sticky header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-top: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-logo { height: 58px; width: auto; }
.footer-brand .brand-logo--invert { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: 0.93rem; position: relative; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-links a.nav-social { display: inline-flex; align-items: center; justify-content: center; color: var(--blue); padding: 2px; }
.nav-links a.nav-social:hover { color: var(--blue-dark); }
.nav-links a.nav-social svg { width: 20px; height: 20px; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-head { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.section-head .lead { margin: 0 auto; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Hero (flat, solid — no gradient mesh) ---------- */
.hero { background: linear-gradient(125deg, #0056A6 0%, #004A8E 100%); color: #fff; padding: 74px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; transform: rotate(15deg); }
.hero::before { content: ""; position: absolute; right: -40px; bottom: -160px; width: 360px; height: 360px; border: 1px solid rgba(111,208,216,.18); border-radius: 6px; transform: rotate(15deg); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1.caps { text-transform: uppercase; letter-spacing: 0.035em; max-width: none; font-size: clamp(1.9rem, 3.6vw, 2.85rem); white-space: nowrap; }
@media (max-width: 700px) {
  .footer-sub-row { flex-direction: column; align-items: center; }
  .footer-sub-row .ppe-tagline { text-align: center; }
  .footer-sub-logo { margin: 10px auto 4px; }
  .footer-sub-logo img { margin: 0 auto; }
}
@media (max-width: 900px) { .hero h1.caps { white-space: normal; font-size: clamp(1.9rem, 4.4vw, 2.85rem); } }
.hero { font-family: var(--font-heading); }
.hero .hero-sub { color: #6fd0d8; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; margin: -6px 0 18px; letter-spacing: -0.01em; }
.hero .lead { color: rgba(255,255,255,.74); }
.hero .kicker { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: #6fd0d8; border-left: 2px solid var(--teal); padding-left: 12px; margin-bottom: 24px; }

/* "Patented Payer Experience" credential badge */
.cred-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); background: rgba(17,117,187,.08); border: 1px solid rgba(17,117,187,.22); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.cred-badge svg { width: 16px; height: 16px; flex: none; }
.cred-badge.on-dark { color: #8df0f7; background: rgba(111,208,216,.16); border-color: rgba(111,208,216,.55); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
.hero-stats .stat { min-width: 120px; }
.hero-stats .stat .num { font-size: 2.1rem; font-weight: 800; color: #6fd0d8; }
.hero-stats .stat .lbl { color: rgba(255,255,255,.66); font-size: 0.88rem; }

/* Two-column hero with graphic */
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-viz { width: 100%; }
.hero-viz img { width: 100%; height: auto; }

/* ---------- Image layouts ---------- */
.graphic-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Fade hint on the right edge of horizontal scrollers (mobile). Add .scroll-fade to a wrapper around the scroller; js/content.js toggles .has-overflow / .at-end. */
.scroll-fade { position: relative; }
.scroll-fade::after { content: ""; position: absolute; top: 1px; bottom: 1px; right: 1px; width: 56px; background: linear-gradient(to left, #fff 20%, rgba(255,255,255,0)); pointer-events: none; opacity: 0; transition: opacity .2s ease; }
@media (max-width: 680px) { .scroll-fade.has-overflow:not(.at-end)::after { opacity: 1; } }
.graphic-wrap img { width: 100%; height: auto; }
.graphic-wrap .journey-graphic { min-width: 560px; } /* keep labels legible; scrolls on narrow screens */
.media-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.media-figure figcaption { color: var(--slate-2); font-size: 0.85rem; margin-top: 10px; }

/* Full-width photo band */
.band { background: var(--bg-soft); }
.band .band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Styled photo placeholders (swap in real photos later) */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--bg-soft); border: 1.5px dashed #c6cfdd; border-radius: 0;
  color: var(--slate-2); padding: 28px; min-height: 240px;
}
.photo-slot svg { width: 30px; height: 30px; color: #9aa6ba; }
.photo-slot .ps-label { font-weight: 600; color: var(--slate); font-size: 0.95rem; }
.photo-slot .ps-dim { font-size: 0.8rem; color: var(--slate); }
.photo-slot.ratio-16x9 { aspect-ratio: 16/9; min-height: 0; }
.photo-slot.ratio-4x3 { aspect-ratio: 4/3; min-height: 0; }
.photo-slot.ratio-1x1 { aspect-ratio: 1/1; min-height: 0; }
.photo-slot.on-dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.photo-slot.on-dark .ps-label { color: #fff; }
.photo-slot.on-dark svg { color: rgba(255,255,255,.6); }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-card .photo-slot { margin-bottom: 14px; }
.team-card .headshot { aspect-ratio: 1/1; width: 100%; height: auto; object-fit: cover; border-radius: 0; margin-bottom: 14px; box-shadow: var(--shadow); display: block; }
/* Monogram headshot placeholders (swap in real 600×600 photos later) */
.team-card .avatar { aspect-ratio: 1/1; width: 100%; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 14px; color: #fff; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: 0.03em; background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%); box-shadow: var(--shadow); user-select: none; }
.team-card:nth-child(3n+2) .avatar { background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%); }
.team-card:nth-child(3n) .avatar { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); }
.team-card h3 { font-size: 1.02rem; margin: 0 0 2px; }
.team-card .role { color: var(--blue); font-weight: 600; font-size: 0.86rem; margin-bottom: 10px; }
.team-card .bio { color: var(--slate); font-size: 0.88rem; text-align: left; line-height: 1.55; }

/* Strategic partners */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.partner-card img { max-height: 56px; max-width: 80%; object-fit: contain; }
.partner-card .partner-name { font-weight: 600; color: var(--slate); font-size: 0.92rem; }
.partner-card--placeholder { background: var(--bg-soft); border: 1.5px dashed #c6cfdd; min-height: 140px; }
.partner-card--placeholder svg { width: 26px; height: 26px; color: #9aa6ba; }

/* MAES stacked-panel layout */
.maes-branch { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 34px; border-top: 3px solid var(--blue); }
.maes-branch:nth-child(2) { border-top-color: var(--teal); }
.maes-branch:nth-child(2) .maes-items li svg { color: var(--teal); background: rgba(14,133,133,.10); }
.maes-branch .branch-head { margin-bottom: 18px; }
.maes-branch .branch-head h2 { font-size: 1.35rem; margin: 0 0 4px; }
.maes-branch .branch-desc { color: var(--slate); font-size: 1rem; margin: 0; }
.maes-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.maes-items--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.maes-items li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.maes-items li:hover { border-color: #cfd6e2; box-shadow: var(--shadow); transform: translateY(-2px); }
.maes-items li svg { width: 40px; height: 40px; padding: 9px; flex: none; color: var(--blue); background: rgba(17,117,187,.10); border-radius: 3px; margin-top: 0; }
.maes-items li strong { font-family: var(--font-heading); color: var(--ink); display: block; font-size: 1.1rem; margin-bottom: 3px; }
.maes-items li span { color: var(--slate-2); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: border-color .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.card:hover { border-color: #cfd6e2; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 3px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%); color: #fff; margin-bottom: 18px; box-shadow: 0 6px 16px rgba(17,117,187,.22); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); margin: 0 0 14px; font-size: 0.96rem; }
.card .more { font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; align-self: flex-start; padding-top: 14px; }
.card .more svg { width: 15px; height: 15px; }
/* Card with a full-width banner strip instead of a small icon */
.card--banner { padding: 0; overflow: hidden; }
.card--banner .card-banner { width: 100%; height: 110px; display: block; }
.card--banner .card-body { padding: 22px 30px 28px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split .panel { border-radius: var(--radius); padding: 44px; color: #fff; min-height: 300px; background: var(--navy); display: flex; flex-direction: column; justify-content: center; gap: 14px; border-left: 3px solid var(--teal); }
.split .panel .kpi { font-size: 1.7rem; font-weight: 700; line-height: 1.25; color: #fff; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { padding: 9px 0 9px 32px; position: relative; color: var(--slate); }
.check-list li svg { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; color: var(--blue); }
.check-list.tight li { padding-top: 4px; padding-bottom: 4px; }
.check-list.tight li svg { top: 7px; }

/* ---------- Events ---------- */
.events-list { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 24px; }
.event:hover { border-color: #cfd6e2; }
.event .date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.event .date .mon { color: var(--blue); font-weight: 700; font-size: 0.78rem; letter-spacing: .04em; }
.event .date .day { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.event .meta { color: var(--slate-2); font-size: 0.88rem; }
.event .tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* ---------- Insights (LinkedIn-style feed) ---------- */
/* Insights: cards stretch to fill the row — 1 item spans full width, 2 split 50/50,
   3 split into thirds, then wrap. Auto-fit handles all screen sizes (no fixed breakpoints needed). */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; justify-items: center; }
.post { display: flex; flex-direction: column; width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.post:hover { border-color: #cfd6e2; box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--bg-soft); }
.post .body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post .kind { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin-bottom: 8px; }
.post h3 { font-size: 1.05rem; margin-bottom: 8px; }
.post p { color: var(--slate); font-size: 0.92rem; margin: 0 0 16px; }
.post .post-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.post .date { color: var(--slate-2); font-size: 0.82rem; }
.post .post-actions { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.post .ln { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; }
.post .ln svg { width: 16px; height: 16px; }

/* ---------- Infographics gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Horizontal-scroll variant: row of fixed-width tiles, swipe/scroll for more */
.gallery--scroll { display: flex; overflow-x: auto; gap: 22px; padding-bottom: 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.gallery--scroll .tile { flex: 0 0 320px; scroll-snap-align: start; }
.gallery--scroll::-webkit-scrollbar { height: 8px; }
.gallery--scroll::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 4px; }
.gallery--scroll::-webkit-scrollbar-thumb { background: #c6cfdd; border-radius: 4px; }
@media (max-width: 680px) { .gallery--scroll .tile { flex-basis: 270px; } }
.tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.tile:hover { border-color: #cfd6e2; box-shadow: var(--shadow); }
.tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--bg-soft); }
.tile .cap { padding: 16px 18px; }
.tile .cap h3 { font-size: 1rem; margin-bottom: 4px; }
.tile .cap p { color: var(--slate-2); font-size: 0.85rem; margin: 0; }

/* ---------- CTA band (solid, flat) ---------- */
.cta-band { border-radius: var(--radius); padding: 44px; text-align: center; color: #fff; background: linear-gradient(125deg, #0056A6 0%, #004A8E 100%); border-top: 3px solid var(--maple); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.78); margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--slate); border-top: 1px solid var(--line); }
.site-footer > .container { padding-top: 24px; padding-bottom: 20px; }
.footer-main { background: var(--slate); color: rgba(255,255,255,.75); padding: 40px 0 30px; }
.footer-sub { background: #fff; color: var(--slate); padding: 4px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; align-items: start; }
.site-footer h4 { color: var(--ink); font-size: 1.1rem; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--slate); font-size: 0.9rem; }
.site-footer a:hover { color: var(--ink); }
.footer-brand .brand { color: var(--ink); margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; margin: 0 0 10px; line-height: 1.5; }
.footer-main h4 { color: #fff; }
.footer-main a { color: rgba(255,255,255,.75); }
.footer-main a:hover { color: #fff; }
.footer-main .brand { color: #fff; }
.footer-sub-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.footer-sub-row .ppe-tagline { text-align: right; flex-shrink: 0; padding: 0; }
.footer-sub-row .footer-bottom { border: 0; margin: 0; padding: 0; flex: 1; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 14px; align-self: center; }
.footer-sub-logo { flex-shrink: 0; }
.footer-sub-logo img { height: 56px; width: auto; display: block; }
.ppe-tagline { text-align: center; padding: 22px 0 4px; }
.ppe-tagline img { max-height: 54px; width: auto; display: inline-block; background: #fff; padding: 6px 11px; border-radius: 3px; }
.ppe-ph-line { display: none; font-size: 0.82rem; font-weight: 600; letter-spacing: .04em; color: var(--slate-2); border: 1.5px dashed rgba(6,44,70,.25); border-radius: 999px; padding: 8px 18px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; font-size: 0.84rem; }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { width: 36px; height: 36px; border-radius: 3px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; }

/* ---------- Page hero (subpages) ---------- */
.serif-hero { font-family: var(--font-heading); }
.page-hero { background: linear-gradient(120deg, #0056A6 0%, #004A8E 100%); color: #fff; padding: 52px 0; }
.page-hero h1 { color: #fff; }
.page-hero .hero-sub { color: #6fd0d8; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; margin: -6px 0 18px; letter-spacing: -0.01em; max-width: 48ch; }
.page-hero .lead { color: rgba(255,255,255,.74); max-width: 80ch; }
.page-hero .hero-sub.oneline { white-space: nowrap; font-size: clamp(1.05rem, 1.85vw, 1.38rem); max-width: none; }
@media (max-width: 480px) { .page-hero .hero-sub.oneline { white-space: normal; } }
@media (max-width: 700px) { .lead-break { display: none; } }
.team-card .li-link { display: inline-flex; vertical-align: middle; margin: -2px 0 0 7px; color: var(--blue); }
.team-card .li-link svg { width: 16px; height: 16px; }
.team-card .li-link:hover { color: var(--blue-dark); }

/* ---------- Misc ---------- */
.muted { color: var(--slate); }
.center { text-align: center; }
.empty-note { color: var(--slate-2); font-style: italic; }
code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

/* ---------- Services page — horizontal icon cards, equal height per row ---------- */
#strategy .grid, #data .grid, #engagement .grid { align-items: stretch; }
#strategy .card, #data .card, #engagement .card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px;
  align-content: start; padding: 26px;
}
#strategy .card .icon, #data .card .icon, #engagement .card .icon {
  grid-row: 1 / span 2; align-self: start; margin: 0;
  width: 56px; height: 56px; border-radius: 3px;
  box-shadow: 0 10px 22px rgba(17,117,187,.30);
}
#strategy .card .icon svg, #data .card .icon svg, #engagement .card .icon svg {
  width: 30px; height: 30px; stroke-width: 2.2;
}
#strategy .card h3, #data .card h3, #engagement .card h3 { grid-column: 2; align-self: start; margin: 0 0 8px; }
#strategy .card p, #data .card p, #engagement .card p { grid-column: 2; margin: 0; }
#strategy .card .more, #data .card .more, #engagement .card .more { grid-column: 2; margin-top: 12px; padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .hero-grid, .band .band-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-viz { max-width: 440px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 681px) { .nav-links .menu-login { display: none; } }
@media (max-width: 680px) {
  .nav { height: 72px; position: relative; justify-content: flex-end; }
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .brand-logo { height: 40px; }
  .nav-cta .btn-primary { display: none; }
  .nav-links .menu-login a { font-weight: 700; color: var(--blue); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .maes-items--row { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 70px 1fr; }
  .event .tag { display: none; }
  .hero-stats { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 58px 0; }
  .cta-band { padding: 38px 26px; }
}
