/* ============================================================
   DEMDIO TECHNOLOGIES — Shared Stylesheet (v3)
   Brand palette sampled from the supplied Demdio logo/banner artwork.
   Upload to the site root (public_html/demdio-style.css).
   Changes vs v2: Google Fonts moved to <link> (no render-blocking @import),
   mobile navigation added, WCAG-AA text contrast, focus states,
   blog / whitepaper / article / table / FAQ / form-status components,
   inline styles removed from pages.
   ============================================================ */

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

:root {
  --navy:    #011634;
  --navy-mid:#0A2A5C;
  --accent:  #2888E0;   /* brand blue: decorative + text on navy only */
  --accent-lt:#5AA9F0;
  --accent-tx:#1A5FB4;   /* brand blue for TEXT on white/off-white (AA contrast) */
  --white:   #FFFFFF;
  --off:     #F2F6FB;
  --slate:   #4A5E7C;   /* AA on white and off-white */
  --border:  #D5E0EE;
  --text:    #10223F;
  --radius:  6px;
  --max:     1120px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
}

p + p { margin-top: 16px; }
a { color: var(--accent-tx); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--accent); color: var(--navy); padding: 10px 18px;
  font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header / nav ── */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 50px; width: auto; }
.site-logo:hover { text-decoration: none; }

.site-nav { display: flex; gap: 26px; list-style: none; align-items: center; }
.site-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: var(--navy) !important;
  padding: 8px 20px; border-radius: var(--radius); font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-lt); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white); border-radius: var(--radius); padding: 8px 12px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── Breadcrumbs ── */
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* ── Hero ── */
.hero { background: radial-gradient(ellipse at 78% 35%, #0B3A82 0%, #04224f 38%, #011634 72%); position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: ''; position: absolute; top: -60px; right: -80px; width: 520px; height: 520px;
  background: var(--accent); opacity: 0.07; transform: rotate(25deg); border-radius: 40px;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; right: 80px; width: 280px; height: 280px;
  background: var(--accent); opacity: 0.05; transform: rotate(25deg); border-radius: 30px;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero-art { border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); border: 1px solid rgba(90,169,240,0.35); width: 100%; height: auto; }

.hero-eyebrow {
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 580px; margin-bottom: 36px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary {
  display: inline-block; background: var(--accent); color: var(--navy);
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
  padding: 14px 32px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-1px); text-decoration: none; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--white);
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.05em;
  padding: 14px 32px; border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,0.45);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.hero-stats {
  display: flex; gap: 48px; margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.16); flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 36px; font-weight: 700; color: var(--accent); display: block; line-height: 1.1;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.75); display: block; margin-top: 2px; }

/* ── Trust bar ── */
.trust-bar { background: var(--off); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center; }
.trust-bar li { font-size: 13px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.trust-bar .icon { width: 18px; height: 18px; color: var(--accent-tx); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--off); }
.section-dark { background: var(--navy); }
.section-label {
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-tx); margin-bottom: 10px; display: block;
}
.section-title { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.section-lead { font-size: 17px; color: var(--slate); max-width: 660px; line-height: 1.7; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }

/* ── Icons ── */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Cards ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(15,30,54,0.10); transform: translateY(-3px); }
.service-card.featured { border-color: var(--accent); border-width: 2px; }
.service-icon {
  width: 48px; height: 48px; background: rgba(40,136,224,0.14); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent-tx);
}
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--slate); line-height: 1.65; }
.card-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-tx); }

/* ── PMaaS detail ── */
.pmaas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.phase { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.phase:last-child { border-bottom: none; }
.phase-num {
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 13px; font-weight: 700; color: var(--accent-tx); letter-spacing: 0.06em; min-width: 32px; padding-top: 3px;
}
.phase h3, .phase h4 { font-size: 17px; margin-bottom: 6px; }
.phase p { font-size: 14px; color: var(--slate); }

.pmaas-callout { background: var(--navy); border-radius: var(--radius); padding: 40px 36px; color: var(--white); }
.pmaas-callout h2, .pmaas-callout h3 { font-size: 24px; color: var(--white); margin-bottom: 14px; }
.pmaas-callout p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.7; }
.pmaas-callout a:not(.btn-primary) { color: var(--accent); }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li {
  font-size: 14px; color: rgba(255,255,255,0.9); padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; gap: 10px; align-items: flex-start;
}
.check-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.check-list.light li { color: var(--text); border-bottom-color: var(--border); }
.check-list.light li::before { color: var(--accent-tx); }

/* ── Pillars ── */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.pillar { text-align: center; padding: 28px 20px; }
.pillar-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; background: rgba(40,136,224,0.14);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-tx);
}
.pillar h3, .pillar h4 { font-size: 18px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--slate); }

/* ── Comparison table ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 14px; letter-spacing: 0.04em; }
.compare tbody th { background: var(--off); color: var(--navy); font-weight: 600; width: 22%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: none; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 72px; align-items: start; }
.values-stack { display: flex; flex-direction: column; gap: 20px; }
.value-item { padding: 22px 26px; background: var(--off); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.value-item h3, .value-item h4 { font-size: 17px; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--slate); }
.pullquote { margin-top: 32px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--off); border-radius: 0 var(--radius) var(--radius) 0; }
.pullquote p { font-size: 16px; font-style: italic; color: var(--navy); }
.pullquote footer { margin-top: 10px; font-size: 13px; color: var(--slate); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.fact { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-tx); margin-bottom: 6px; }
.fact dd { font-size: 15px; color: var(--navy); font-weight: 500; }

/* ── Careers ── */
.open-roles { display: flex; flex-direction: column; gap: 16px; }
.role-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.role-card:hover { border-color: var(--accent); }
.role-card h3 { font-size: 18px; }
.role-meta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; background: var(--off); color: var(--slate); padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.apply-btn { white-space: nowrap; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,30,54,0.72); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 40px 36px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--slate); line-height: 1; padding: 6px; }
.modal-close:hover { color: var(--navy); }
.modal-role-title { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-tx); margin-bottom: 6px; display: block; }
.modal h2 { font-size: 26px; margin-bottom: 24px; }
.modal .contact-form { gap: 16px; }
.file-note { font-size: 12px; color: var(--slate); margin-top: 4px; }
.form-group input[type="file"] { padding: 10px 14px; background: var(--off); cursor: pointer; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--slate); }
.form-status { display: none; border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-top: 12px; }
.form-status.error { display: block; background: #fff3f3; border: 1px solid #f5c0c0; color: #a52a1e; }
.form-status.ok { display: block; background: #effaf1; border: 1px solid #b7e1be; color: #1d6a2d; }

/* ── Contact / forms ── */
.contact-grid { display: grid; grid-template-columns: 2fr 1.4fr; gap: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit; font-size: 15px; color: var(--text); background: var(--white);
  border: 1.5px solid #9aa6ba; border-radius: var(--radius); padding: 12px 16px; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); outline: 3px solid rgba(40,136,224,0.55); outline-offset: 0; }
.form-group textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { text-align: center; margin-top: 12px; font-size: 13px; color: var(--slate); }
.btn-block { width: 100%; }

.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact-block { background: var(--off); border-radius: var(--radius); padding: 28px 24px; }
.contact-block.dark { background: var(--navy); color: var(--white); }
.contact-block h2, .contact-block h3 { font-size: 19px; margin-bottom: 14px; }
.contact-block.dark h2, .contact-block.dark h3 { color: var(--white); }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; color: var(--slate); }
.contact-block.dark .contact-detail { color: rgba(255,255,255,0.82); }
.contact-block.dark a { color: var(--accent); font-weight: 600; font-size: 15px; }
.contact-detail .icon { color: var(--accent); margin-top: 3px; }
.contact-detail small { display: block; font-size: 13px; }
address { font-style: normal; }

/* ── FAQ ── */
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary {
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 18px; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-tx); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; font-size: 15px; color: var(--slate); }

/* ── Page hero ── */
.page-hero { background: var(--navy); padding: 60px 0 52px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -40px; right: -60px; width: 320px; height: 320px; background: var(--accent); opacity: 0.06; transform: rotate(25deg); border-radius: 30px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); color: var(--white); margin-bottom: 14px; max-width: 820px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 680px; }

/* ── CTA band ── */
.cta-band { background: var(--accent); padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); margin-bottom: 12px; }
.cta-band p { font-size: 16px; color: var(--navy); margin: 0 auto 28px; max-width: 640px; }
.btn-dark {
  display: inline-block; background: var(--navy); color: var(--white);
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
  padding: 14px 36px; border-radius: var(--radius); border: none; cursor: pointer; transition: background 0.2s; margin: 4px 6px;
}
.btn-dark:hover { background: var(--navy-mid); text-decoration: none; color: var(--white); }

/* ── Blog / whitepapers ── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.post-card:hover { box-shadow: 0 8px 32px rgba(15,30,54,0.10); }
.post-card-art { background: var(--navy); height: 140px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.post-card-art .icon { width: 44px; height: 44px; }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12px; color: var(--slate); letter-spacing: 0.04em; margin-bottom: 8px; }
.post-card h2, .post-card h3 { font-size: 20px; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a { color: var(--navy); }
.post-card p { font-size: 14px; color: var(--slate); flex: 1; }
.badge { display: inline-block; background: var(--off); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border); }
.empty-state { background: var(--white); border: 1.5px dashed #9aa6ba; border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.empty-state h2, .empty-state h3 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--slate); max-width: 560px; margin: 0 auto 20px; }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 28px; margin: 44px 0 14px; }
.article h3 { font-size: 21px; margin: 30px 0 10px; }
.article p { font-size: 17px; margin-top: 16px; }
.article ul, .article ol { margin: 16px 0 0 22px; font-size: 17px; }
.article li { margin-top: 8px; }
.article .lede { font-size: 20px; color: var(--slate); }
.article-meta { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 8px; }
.toc { background: var(--off); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-top: 28px; }
.toc h2 { font-size: 15px; margin: 0 0 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { margin: 0 0 0 20px; font-size: 15px; }
.callout { background: var(--off); border-left: 3px solid var(--accent); padding: 18px 22px; margin-top: 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; font-size: 16px; }

/* ── Legal ── */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { margin: 12px 0 0 22px; }

/* ── Footer ── */
.site-footer { background: var(--navy); padding: 56px 0 28px; color: rgba(255,255,255,0.75); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand .site-logo img { height: 56px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 300px; }
.footer-col h2 { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address { font-size: 14px; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.7); }
.footer-bottom a { color: rgba(255,255,255,0.85); }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; letter-spacing: 0.05em; }
}
@media (max-width: 900px) {
  .pmaas-grid, .about-grid, .contact-grid, .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .role-card { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-header .container { position: relative; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 3px solid var(--accent);
  }
  .site-nav.open { display: flex; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
  .site-nav li:last-child a { margin-top: 14px; text-align: center; border-bottom: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 28px; }
  .modal { padding: 32px 22px; }
}

/* ── v4 additions ── */
.cred-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.cred { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.cred .icon { color: var(--accent-tx); width: 28px; height: 28px; }
.cred strong { display: block; font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; color: var(--navy); font-size: 17px; line-height: 1.2; }
.cred span { font-size: 13px; color: var(--slate); }
.fine-print { font-size: 12px; color: var(--slate); margin-top: 18px; max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px 26px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--slate); }
.step .phase-num { display: block; margin-bottom: 10px; }
.case-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 30px 32px; }
.case-card h2, .case-card h3 { font-size: 24px; margin-bottom: 10px; }
.case-card p { color: var(--text); }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.turnstile-box { min-height: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* figures */
.figure{margin:0 0 28px}.figure img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--border)}
.figure figcaption{font-size:13px;color:var(--slate);margin-top:8px}
.container > .figure:first-child{margin-top:32px}

/* links inside running text must not rely on colour alone (WCAG) */
p a:not(.btn-primary):not(.btn-dark):not(.card-link), li a, .fine-print a, .form-note a { text-decoration: underline; text-underline-offset: 2px; }
.site-nav a, .footer-col a, .breadcrumb a, .post-card h3 a, .role-card h3 a { text-decoration: none; }
