/*
Theme Name: P3Mobility
Theme URI: https://www.p3mobility.com
Author: P3Mobility
Author URI: https://www.p3mobility.com
Description: Custom WordPress theme for P3Mobility — V2X software platforms and deployment advisory services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: p3mobility
*/

:root {
  --p3-blue: #27afd0;
  --p3-blue-dark: #168daf;
  --navy: #061f33;
  --navy-2: #082b44;
  --ink: #0a1b2a;
  --muted: #4a5a66;
  --line: #dce8ee;
  --soft: #f3f8fb;
  --soft-2: #eaf4f8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 43, 68, 0.10);
  --shadow-soft: 0 10px 24px rgba(8, 43, 68, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', Inter, Aptos, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.site-shell { min-height: 100vh; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,232,238,0.82);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.875rem; font-weight: 700; color: #102b40; }
.nav a { position: relative; opacity: .88; cursor: pointer; }
.nav a:hover, .nav a.active { color: var(--p3-blue-dark); opacity: 1; }
.nav .contact-nav {
  background: linear-gradient(135deg, var(--p3-blue), #168db4);
  color: white; padding: 11px 18px; border-radius: 11px; opacity: 1;
  box-shadow: 0 10px 22px rgba(39,175,208,.22);
}
.mobile-toggle { display: none; border: 0; background: var(--soft); border-radius: 10px; padding: 9px 10px; color: var(--navy); }
.mobile-toggle svg { display: block; }
main { overflow: hidden; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .12em; font-size: 0.75rem; font-weight: 800;
  color: var(--p3-blue-dark);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--p3-blue); border-radius: 3px; }
.h1 { font-size: clamp(3rem, 7.2vw, 5.75rem); line-height: .96; letter-spacing: -.065em; margin: 0 0 24px; font-weight: 800; }
.h2 { font-size: clamp(2.125rem, 4vw, 3.375rem); line-height: 1.02; letter-spacing: -.045em; margin: 12px 0 18px; font-weight: 800; }
.h3 { font-size: 1.5625rem; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
.lede { font-size: clamp(1.0625rem, 1.7vw, 1.375rem); color: #d7eaf2; margin: 0; max-width: 610px; }
.sublede { font-size: 1.125rem; color: var(--muted); max-width: 660px; margin: 0; }
.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 13px; padding: 15px 22px; font-weight: 800; font-size: 0.875rem;
  border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--p3-blue), #126faf); color: white; box-shadow: 0 18px 35px rgba(39,175,208,.28); }
.btn-secondary { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.48); }
.btn-light { background: white; color: var(--navy); border-color: rgba(17,49,73,.1); box-shadow: var(--shadow-soft); }
.btn-ghost { color: var(--p3-blue-dark); padding-left: 0; }
.hero {
  position: relative; min-height: calc(100vh - 76px); display: grid; align-items: stretch;
  background-image: linear-gradient(90deg, rgba(3,25,43,.96) 0%, rgba(3,25,43,.86) 37%, rgba(3,25,43,.32) 63%, rgba(3,25,43,.05) 100%), url('assets/bg/hero-bg.webp');
  background-size: cover; background-position: center right;
  color: white;
}
.hero::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    radial-gradient(circle at 19% 23%, rgba(39,175,208,.28), transparent 23%),
    linear-gradient(180deg, transparent 72%, rgba(255,255,255,.06));
}
.hero-inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: clamp(70px, 11vh, 145px) 24px 70px;
  display: flex; align-items: center; width: 100%;
}
.hero-copy { max-width: 680px; }
.hero-copy .eyebrow { color: #7ee6ff; margin-bottom: 18px; }
.hero-copy .eyebrow::before { background: #7ee6ff; }
.hero-kpis {
  position: absolute; right: 24px; bottom: 28px; z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px;
}
.hero-kpi {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px);
  padding: 16px 18px; border-radius: 16px; color: white;
}
.hero-kpi strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: #93eeff; margin-bottom: 5px; }
.hero-kpi span { display: block; font-size: 0.8125rem; color: #d6ebf2; }
.section { padding: 82px 0; }
.section-tight { padding: 54px 0; }
.section-soft { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.section-navy { background: var(--navy); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head .sublede { max-width: 520px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.card-pad { padding: 28px; }
.visual-card { min-height: 254px; display: grid; grid-template-rows: 1fr auto; }
.card-visual {
  min-height: 128px; background: linear-gradient(135deg, rgba(39,175,208,.18), rgba(6,31,51,.88)), var(--img, none);
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.card-visual::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(circle at 30% 38%, rgba(255,255,255,.30) 0 2px, transparent 3px), linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 48%, transparent 51%);
  opacity: .5;
}
.card h3 { margin: 0 0 9px; font-size: 1.25rem; line-height: 1.12; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(39,175,208,.10); color: var(--p3-blue-dark);
}
.icon svg { width: 25px; height: 25px; }
.what-card {
  display: grid; grid-template-columns: 1.1fr .9fr; min-height: 260px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-soft);
}
.what-card .card-pad { padding: 28px; }
.what-photo {
  background: linear-gradient(135deg, rgba(39,175,208,.18), rgba(6,31,51,.58)), var(--img);
  background-size: cover; background-position: center; position: relative;
}
.img-city { --img: url('assets/bg/pattern-bg-1.svg'); }
.img-team { --img: url('assets/bg/pattern-bg-2.svg'); }
.img-road { --img: url('assets/bg/pattern-bg-3.svg'); }
.platform-proof {
  background:
    radial-gradient(circle at 82% 22%, rgba(39,175,208,.18), transparent 28%),
    linear-gradient(135deg, #eff8fb 0%, #ffffff 58%, #eef8fb 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.platform-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 38px; align-items: center; }
.diagram {
  background: rgba(255,255,255,.78); border: 1px solid rgba(39,175,208,.28); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow-soft);
}
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.flow::before { content:''; position:absolute; left: 11%; right: 11%; top: 55px; border-top: 2px dashed rgba(6,31,51,.30); z-index:0; }
.flow-node { position: relative; z-index: 1; background: linear-gradient(180deg,#fff,#eff9fc); border: 1px solid rgba(39,175,208,.42); border-radius: 16px; padding: 18px 12px; min-height: 148px; text-align:center; }
.flow-node .mini-icon { width: 42px; height:42px; border-radius: 12px; margin: 0 auto 12px; display:grid; place-items:center; background: white; color: var(--p3-blue-dark); border:1px solid rgba(39,175,208,.38); }
.flow-node strong { display:block; font-size: 0.875rem; margin-bottom: 6px; }
.flow-node span { display:block; font-size: 0.75rem; color: var(--muted); line-height:1.35; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.proof { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-soft); }
.proof .icon { margin-bottom: 14px; }
.proof strong { display: block; line-height: 1.12; margin-bottom: 6px; }
.proof span { color: var(--muted); font-size: 0.8125rem; }
.product-card { padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-top { display:flex; gap: 16px; align-items:flex-start; }
.arrow-link { color: var(--p3-blue-dark); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; }
.projects-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 24px; border: 1px solid var(--line); overflow:hidden; background:white; box-shadow: var(--shadow-soft); }
.project-image { height: 190px; background: linear-gradient(135deg, rgba(6,31,51,.56), rgba(39,175,208,.18)), var(--img); background-size:cover; background-position:center; position:relative; display:flex; align-items:flex-end; padding: 20px; color:white; }
.project-image .project-mark { font-size: 2.125rem; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.project-body { padding: 22px; }
.project-body h3 { margin:0 0 8px; font-size: 1.1875rem; }
.news-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display:grid; grid-template-columns: 132px 1fr; gap: 16px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow: var(--shadow-soft); padding:12px; align-items:center; }
.news-img { height: 118px; border-radius:14px; background: linear-gradient(135deg, rgba(39,175,208,.28), rgba(6,31,51,.75)), var(--img); background-size:cover; background-position:center; }
.news-meta { font-size: 0.75rem; color: var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:800; margin-bottom:6px; }
.news-card h3 { font-size: 0.9375rem; line-height:1.25; margin:0 0 10px; }
.cta-band {
  margin: 18px 0 0; border-radius: 26px; overflow:hidden; background:
    radial-gradient(circle at 85% 18%, rgba(39,175,208,.38), transparent 28%),
    linear-gradient(135deg, #061f33, #063656 55%, #0a1f32);
  color:white; padding: 42px; display:flex; align-items:center; justify-content:space-between; gap:24px; position:relative;
}
.cta-band::after { content:''; position:absolute; top:0; right:0; bottom:0; left:0; background-image: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent); pointer-events:none; }
.cta-band h2 { margin:0; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height:1.05; letter-spacing:-.045em; max-width:720px; position:relative; z-index:1; }
.cta-band .btn { position:relative; z-index:1; }
.footer { background: #051a2b; color: #d4e8ef; padding: 52px 0 38px; }
.footer-grid { display:grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.1fr; gap:34px; }
.footer img { height: 38px; margin-bottom:16px; }
.footer p { margin:0; color:#b6ced7; font-size: 0.875rem; max-width:270px; }
.footer h4 { color:#fff; margin: 0 0 14px; font-size: 0.75rem; letter-spacing:.12em; text-transform:uppercase; }
.footer a { display:block; color:#d4e8ef; font-size: 0.875rem; margin: 8px 0; opacity:.88; }
.footer a:hover { color:#7ee6ff; }
.social { display:flex; gap:10px; margin-top:20px; }
.social a { width:34px; height:34px; border:1px solid rgba(255,255,255,.28); border-radius:50%; display:grid; place-items:center; font-weight:800; font-size: 0.75rem; color: #d4e8ef; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.social a:hover { border-color: var(--p3-blue); color: #7ee6ff; }
.page-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(39,175,208,.22), transparent 28%),
    linear-gradient(135deg, #061f33 0%, #0b3754 64%, #0b2538 100%);
  color: white; padding: 88px 0 64px; position:relative; overflow:hidden;
}
.page-hero::after { content:''; position:absolute; right:-8%; bottom:-42%; width:600px; height:600px; border:1px solid rgba(126,230,255,.18); border-radius:50%; }
.page-hero .container { position:relative; z-index:1; }
.page-hero p { color:#d7eaf2; max-width:680px; }
.breadcrumb { font-size: 0.75rem; letter-spacing:.12em; text-transform:uppercase; color:#7ee6ff; font-weight:800; margin-bottom: 18px; }
.split { display:grid; grid-template-columns: .92fr 1.08fr; gap: 42px; align-items:center; }
.mock-visual { min-height: 390px; border-radius: 28px; background-image: linear-gradient(135deg, rgba(39,175,208,.10), rgba(6,31,51,.30)), url('https://p3mobility.com/wp-content/uploads/2026/06/Gemini_Generated_Image_ffzviuffzviuffzv.png'); background-size: cover; background-position: center; background-repeat: no-repeat; border: 1px solid rgba(39,175,208,.25); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mock-visual::after { content:''; position:absolute; top: 24px; right: 24px; bottom: 24px; left: 24px; border:1px solid rgba(255,255,255,.35); border-radius:22px; opacity:.45; }
.detail-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:24px; }
.detail-card { padding:32px; border-radius:24px; border:1px solid var(--line); background:#fff; box-shadow: var(--shadow-soft); }
.detail-card h3 { font-size: 1.625rem; margin:0 0 12px; letter-spacing:-.04em; }
.tags { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.tag { font-size: 0.75rem; font-weight:800; color:#135f7d; background:#e8f7fb; border:1px solid rgba(39,175,208,.25); padding:7px 10px; border-radius:999px; }
.process { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; counter-reset: step; }
.step { counter-increment: step; background:#fff; border:1px solid var(--line); border-radius:22px; padding:26px; box-shadow: var(--shadow-soft); position:relative; }
.step::before { content: counter(step, decimal-leading-zero); display:block; color: var(--p3-blue-dark); font-weight:800; font-size: 0.8125rem; letter-spacing:.1em; margin-bottom:28px; }
.step h3 { font-size: 1.125rem; margin: 0 0 8px; }
.filter-bar { display:flex; gap: 10px; flex-wrap:wrap; margin-bottom: 30px; }
.filter-pill { background:#fff; border:1px solid rgba(39,175,208,.30); border-radius:999px; padding:10px 14px; font-size: 0.8125rem; font-weight:800; color: var(--ink); cursor:pointer; }
.filter-pill.active, .filter-pill.is-active { background: var(--p3-blue); color:#fff; border-color: var(--p3-blue); }
.contact-layout { display:grid; grid-template-columns: .86fr 1.14fr; gap:32px; align-items:start; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius:26px; padding:32px; box-shadow: var(--shadow); }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.field { display:flex; flex-direction:column; gap:8px; }
.field.full { grid-column:1/-1; }
label { font-size: 0.75rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#304d5e; }
input, textarea, select { border:1px solid var(--line); border-radius:14px; padding:13px 14px; background:#fbfdfe; color:var(--ink); }
textarea { min-height: 142px; resize:vertical; }
.mini-list { display:grid; gap:14px; margin-top:28px; }
.mini-item { display:flex; gap:14px; align-items:flex-start; }
.mini-dot { width:10px; height:10px; border-radius:50%; background: var(--p3-blue); margin-top:8px; box-shadow:0 0 0 5px rgba(39,175,208,.12); flex:0 0 auto; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display:none; position:absolute; top:72px; left:16px; right:16px; flex-direction:column; align-items:stretch; background:white; border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow: var(--shadow); }
  .nav.open { display:flex; }
  .nav a { padding:10px 4px; }
  .nav .contact-nav { text-align:center; padding:12px 18px; }
  .mobile-toggle { display:block; }
  .hero { min-height: 760px; background-position: 64% center; }
  .hero-inner { align-items:flex-start; padding-top: 86px; }
  .hero-kpis { position:relative; right:auto; bottom:auto; margin: -144px auto 28px; padding:0 24px; max-width:var(--max); grid-template-columns: repeat(3,1fr); }
  .cards-3, .cards-4, .projects-row, .news-row, .detail-grid, .leadership-grid, .process, .platform-grid, .split, .contact-layout { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .what-card { grid-template-columns:1fr; }
  .what-photo { min-height:140px; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 14px 16px; }
  .logo img { height: 32px; }
  .hero { min-height: 705px; background-position: 71% center; }
  .hero::before { content:''; position:absolute; top:0; right:0; bottom:0; left:0; background:linear-gradient(180deg, rgba(3,25,43,.65), rgba(3,25,43,.92)); }
  .hero-inner { padding: 78px 18px 48px; }
  .h1 { font-size: 3.125rem; }
  .h2 { font-size: 2.25rem; }
  .hero-kpis { grid-template-columns:1fr; margin-top:-105px; padding: 0 18px; }
  .container { padding:0 18px; }
  .section { padding:58px 0; }
  .cards-4, .proof-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns:1fr; }
  .flow::before { left:50%; right:auto; top:20px; bottom:20px; border-top:0; border-left:2px dashed rgba(6,31,51,.30); }
  .news-card { grid-template-columns:1fr; }
  .news-img { height:180px; }
  .cta-band { padding: 30px 22px; flex-direction:column; align-items:flex-start; }
  .footer-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
}
@media print { .header { position: static; } }

/* Iteration updates */
.hero-copy .h1, .hero-copy .lede { max-width: 680px; }
.platform-wide { grid-template-columns: 1fr !important; }
.platform-wide > div:first-child { width: 100%; }
.platform-wide .diagram { width: 100%; margin-top: 18px; padding: clamp(22px, 3vw, 36px); }
.platform-wide .flow { gap: clamp(14px, 2vw, 22px); }
.platform-wide .flow-node { min-height: 162px; }
.anti-spam .verification-box {
  display: flex; gap: 12px; align-items: center; min-height: 58px;
  background: #f6fbfd; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  color: #476171; font-size: 0.875rem; line-height: 1.35;
}
.anti-spam .verification-check {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(39,175,208,.13); color: var(--p3-blue-dark); font-weight: 900;
  border: 1px solid rgba(39,175,208,.36); flex: 0 0 auto;
}
.footer img { filter: none !important; }
@media (max-width: 900px) {
  .platform-wide .flow { grid-template-columns: 1fr 1fr; }
  .platform-wide .flow::before { display: none; }
}
@media (max-width: 620px) {
  .platform-wide .flow { grid-template-columns: 1fr; }
}

/* v4 refinements */
.what-photo.img-software-platforms { --img: url('assets/bg/pattern-bg-4.svg'); }
.what-photo.img-deployment-advisory { --img: url('assets/bg/pattern-bg-5.svg'); }
.what-photo.img-financial-solutions { --img: url('assets/bg/pattern-bg-6.svg'); }
.architecture-updated { grid-template-columns: .8fr 1.2fr; }
.flow-node { min-height: 168px; }
.flow-node span { text-transform: none; }
.project-map-section { padding-top: 44px; }
.project-map-split { gap: 28px; align-items: center; }
.map-card { background:#fff; border:1px solid rgba(39,175,208,.28); border-radius:24px; overflow:hidden; box-shadow: var(--shadow-soft); }
.map-card svg { width:100%; display:block; }
.state-node circle { fill:#27afd0; stroke:#fff; stroke-width:5; }
.state-node text { font: 700 17px Inter, Arial, sans-serif; fill:#061f33; }
.footprint-tags { margin-top: 20px; }
.news-filter-bar { margin-bottom: 28px; }
.news-grid-dynamic { align-items: stretch; }
.news-card img { width:100%; height:220px; object-fit:contain; display:block; border-radius:18px; margin-bottom:0; background:#eaf7fb; padding: 12px; }
.news-card .tag-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.news-card .tag-chip { display:inline-flex; align-items:center; border-radius:999px; padding:5px 10px; font-size: 0.75rem; font-weight:700; background:#eff8fb; color:#0b6f86; border:1px solid rgba(39,175,208,.25); }
.news-card .news-title-link { color:inherit; text-decoration:none; }
.news-card .news-title-link:hover, .news-card .news-title-link:focus { color: var(--p3-blue-dark); text-decoration: underline; text-underline-offset:4px; }
.empty-state { padding: 32px; border:1px dashed rgba(39,175,208,.45); border-radius:18px; background:#f7fcfe; color:var(--muted); text-align:center; }
.article-example-card p + p { margin-top: 12px; }
@media (max-width: 900px) { .architecture-updated, .project-map-split { grid-template-columns:1fr; } .flow { grid-template-columns:1fr; } .flow::before { display:none; } }

/* v5 updates */
.what-card .card-pad { display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.what-card .card-pad h3 { margin-top: auto; }
.what-photo.img-software-platforms { --img: url('assets/home/software-platforms.webp'); }
.what-photo.img-deployment-advisory { --img: url('assets/bg/section-photo-2.jpg'); }
.what-photo.img-financial-solutions { --img: url('assets/bg/section-photo-3.jpg'); }
.news-card .home-news-img { width: 132px; height: 118px; border-radius: 14px; object-fit: cover; display: block; margin: 0; background: #eaf7fb; }
@media (max-width: 900px) { .what-card .card-pad { min-height: 210px; } .news-card .home-news-img { width: 100%; height: 180px; } }

/* Home page project card images */
.home-project-card-1 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.56), rgba(39,175,208,.18)), url('assets/projects/Maricopa.jpeg'); background-size: cover; background-position: center; }
.home-project-card-2 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.56), rgba(39,175,208,.18)), url('assets/projects/AnnArbor.webp'); background-size: cover; background-position: center; }
.home-project-card-3 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.56), rgba(39,175,208,.18)), url('assets/projects/Oakland County.jpg'); background-size: cover; background-position: center; }
/* Projects page card images */
.projects-card-1 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.46), rgba(39,175,208,.12)), url('assets/projects/Maricopa.jpeg'); background-size: cover; background-position: center; }
.projects-card-2 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.46), rgba(39,175,208,.12)), url('assets/projects/AnnArbor.webp'); background-size: cover; background-position: center; }
.projects-card-3 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.46), rgba(39,175,208,.12)), url('assets/projects/Oakland County.jpg'); background-size: cover; background-position: center; }
.projects-card-4 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.46), rgba(39,175,208,.12)), url('assets/projects/Henry County.jpg'); background-size: cover; background-position: center; }
.projects-card-5 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.46), rgba(39,175,208,.12)), url('assets/projects/Beta District.jpg'); background-size: cover; background-position: center; }
.projects-card-6 .project-image { background: linear-gradient(135deg, rgba(6,31,51,.46), rgba(39,175,208,.12)), url('assets/projects/Oakland County.jpg'); background-size: cover; background-position: center; }
.map-card img.map-img { width: 100%; display: block; border-radius: 24px; }

/* News page card redesign */
.news-grid-dynamic .news-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line);
}
.news-grid-dynamic .news-card img {
  width: 100%; height: 200px; object-fit: contain; display: block;
  border-radius: 18px 18px 0 0; margin: 0; padding: 16px;
  background: #eaf7fb;
}
.news-grid-dynamic .news-card .news-meta,
.news-grid-dynamic .news-card h3,
.news-grid-dynamic .news-card .tag-list {
  padding: 0 16px;
}
.news-grid-dynamic .news-card .news-meta { margin-top: 14px; margin-bottom: 6px; }
.news-grid-dynamic .news-card h3 { margin-bottom: 8px; }
.news-grid-dynamic .news-card .tag-list { padding-bottom: 16px; }

/* About page */
.about-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.about-list li {
  position: relative; padding-left: 24px; font-size: 0.9375rem; color: var(--muted); line-height: 1.55;
}
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--p3-blue); box-shadow: 0 0 0 5px rgba(39,175,208,.12);
}
.about-team-visual {
  min-height: 390px; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(145deg, #082b44 0%, #0b3e5e 40%, #27afd0 100%);
  border: 1px solid rgba(39,175,208,.25); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.about-team-visual::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(39,175,208,.3), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.08), transparent 40%);
}
.about-team-visual::after {
  content: 'Team photo coming soon';
  position: relative; z-index: 1; color: rgba(255,255,255,.55);
  font-size: 0.875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 14px 24px; border-radius: 12px;
}

/* Team grid */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 18px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.team-card:hover, .team-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--p3-blue);
}
.team-card:focus-visible { outline: 3px solid var(--p3-blue); outline-offset: 2px; }
.team-initials {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(39,175,208,.15), rgba(6,31,51,.08));
  border: 2px solid rgba(39,175,208,.25);
  display: grid; place-items: center; font-weight: 800; font-size: 1.125rem; color: var(--p3-blue-dark);
}
.team-card h3 { font-size: 0.9375rem; margin: 0 0 4px; line-height: 1.2; }
.team-card-title { font-size: 0.75rem; color: var(--p3-blue-dark); font-weight: 700; line-height: 1.3; }
/* Bio modal */
.bio-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(6,31,51,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.bio-overlay.is-open { opacity: 1; visibility: visible; }
.bio-modal {
  background: #fff; border-radius: 24px; padding: 36px 32px; max-width: 560px; width: 100%;
  box-shadow: 0 24px 80px rgba(6,31,51,.25); position: relative;
  max-height: 80vh; overflow-y: auto;
  transform: translateY(20px); transition: transform .25s ease;
}
.bio-overlay.is-open .bio-modal { transform: translateY(0); }
.bio-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--soft);
  display: grid; place-items: center; cursor: pointer; font-size: 1.125rem; color: var(--muted);
  transition: background .15s ease;
}
.bio-close:hover { background: var(--line); }
.bio-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.bio-header .team-initials { margin: 0; flex: 0 0 auto; }
.bio-header h3 { font-size: 1.25rem; margin: 0 0 2px; }
.bio-header .team-card-title { font-size: 0.8125rem; }
.bio-text { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }
.bio-text p { margin: 0 0 12px; }
.bio-text p:last-child { margin-bottom: 0; }
.bio-linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--p3-blue-dark); font-weight: 800; font-size: 0.875rem; text-decoration: none; }
.bio-linkedin:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bio-modal { padding: 28px 20px; border-radius: 18px; }
}

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--p3-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 100;
  background: var(--p3-blue); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 8px; font-weight: 800; font-size: 0.875rem;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.btn { min-height: 44px; }
.filter-pill { min-height: 44px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
