/* ============================================================
   Abstraction Advisors — Shared Styles
   Consolidated stylesheet for the WordPress theme.
   Contains the original shared.css + all page-specific styles
   from the static HTML files (index, services, blog, about,
   article pages).
   ============================================================ */

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

:root {
  --bg:        #060d1c;
  --bg2:       #0b1628;
  --card:      #0f1d35;
  --border:    #1c2f50;
  --blue:      #2563EB;
  --blue-lt:   #60a5fa;
  --blue-dim:  #1a3a6e;
  --text:      #e8f0ff;
  --muted:     #7a95c0;
  --white:     #ffffff;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; opacity: 0; background: var(--bg); }
html.page-ready { opacity: 1; transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1); }
html.page-exit  { opacity: 0; transition: opacity 0.28s ease; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  height: 72px;
  background: rgba(6,13,28,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s ease, background 0.3s ease, transform 0.35s ease;
}
nav .logo img { height: 44px; display: block; }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #1d4ed8 !important; color: var(--white) !important; }
nav.nav-scrolled { height: 60px; background: rgba(6,13,28,0.98); }
nav.nav-hidden { transform: translateY(-100%); }

/* WordPress admin bar offset */
.admin-bar nav { top: 32px; }
@media (max-width: 782px) { .admin-bar nav { top: 46px; } }

/* Active nav indicator */
nav ul a.active { color: var(--white); position: relative; }
nav ul a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
}

/* WordPress nav menu structure compatibility */
nav .nav-links li {
  list-style: none;
}
nav .nav-links .current-menu-item > a,
nav .nav-links .current_page_item > a {
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-brand img { height: 40px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; max-width: 260px; }
footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer ul a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}
footer ul a:hover { color: var(--blue-lt); padding-left: 4px; }
.footer-contact li { color: var(--text); font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-contact a:hover { color: var(--blue-lt); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: 1.4rem; }
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-lt);
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
}
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.75; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 0.8rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { box-shadow: 0 6px 24px rgba(37,99,235,0.2); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 6px 28px rgba(37,99,235,0.35); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue-lt); color: var(--blue-lt); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 6rem 4rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; position: relative; }

/* ============================================================
   DIVIDER
   ============================================================ */
hr.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover, .hero-stat:hover, .testimonial:hover, .detail-card:hover, .value-card:hover, .team-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-dim);
  box-shadow: 0 12px 40px rgba(37,99,235,0.08);
}

/* ============================================================
   MOBILE NAV TOGGLE
   ============================================================ */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; transition: 0.3s;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.will-reveal[data-reveal="left"] { transform: translateX(-32px); }
.will-reveal[data-reveal="right"] { transform: translateX(32px); }
.will-reveal[data-reveal="scale"] { transform: scale(0.94); }
.will-reveal[data-reveal="fade"] { transform: none; }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   PROCESS / WHY / SERVICE HOVERS
   ============================================================ */
.process-step { transition: background 0.25s ease; }
.process-step:hover { background: rgba(37,99,235,0.04); }

.service-icon, .service-icon-lg { transition: border-color 0.25s, background 0.25s; }
.service-card:hover .service-icon,
.service-section:hover .service-icon-lg {
  border-color: var(--blue);
  background: rgba(37,99,235,0.08);
}
.service-icon svg, .service-icon-lg svg {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.service-card:hover .service-icon svg { transform: rotate(10deg) scale(1.1); }

.why-list li { transition: padding-left 0.25s ease; }
.why-list li:hover { padding-left: 0.5rem; }

.approach-points li { transition: padding-left 0.25s ease; }
.approach-points li:hover { padding-left: 0.5rem; }

/* ============================================================
   HERO STAT FLOAT (HOMEPAGE)
   ============================================================ */
@keyframes float-up {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-stat:nth-child(2) { animation: float-up 5s ease-in-out 0s infinite; }
.hero-stat:nth-child(3) { animation: float-up 5s ease-in-out 0.8s infinite; }
.hero-stat:nth-child(4) { animation: float-up 5s ease-in-out 1.6s infinite; }

/* ============================================================
   FEATURED ARTICLE / ARTICLE CARD HOVERS (BLOG)
   ============================================================ */
.featured-article {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.featured-article:hover {
  box-shadow: 0 0 0 1px var(--blue), 0 16px 48px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.article-card {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.1);
}

/* ============================================================
   ============================================================
   PAGE-SPECIFIC STYLES
   (Originally in <style> tags inside each HTML file)
   ============================================================
   ============================================================ */

/* ===========================================================
   HOMEPAGE ─ HERO
   =========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(37,99,235,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; letter-spacing: -0.01em; }

@keyframes hero-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-content .eyebrow { animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-content h1       { animation: hero-fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.hero-body             { animation: hero-fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero-actions          { animation: hero-fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both; }

.hero h1 em {
  font-style: italic;
  color: var(--blue-lt);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform-origin: left;
  animation: hero-line 0.9s cubic-bezier(0.16,1,0.3,1) 1.1s both;
}
.hero-body {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.hero-stat:first-child { grid-column: span 2; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.hero-stat-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.hero-stat-bar span { display: block; height: 100%; background: var(--blue); border-radius: 2px; }

/* ===========================================================
   HOMEPAGE ─ EXEC SIGNALS
   =========================================================== */
.exec-signals { background: var(--bg2); }
.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.signal-card {
  background: var(--bg2);
  padding: 2.25rem 2rem;
}
.signal-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 1rem;
}
.signal-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.signal-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}
.signal-card .signal-detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.signal-card .signal-detail strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ===========================================================
   HOMEPAGE ─ PROCESS
   =========================================================== */
.process { background: var(--bg); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.process-step {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-num::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--white); }
.process-step p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.process-step ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.process-step ul li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.process-step ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--blue-dim);
}

/* ===========================================================
   HOMEPAGE ─ SERVICES GRID
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}
.service-card:hover { background: var(--card); }
.service-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--blue-lt); fill: none; stroke-width: 1.5; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.65rem; color: var(--white); }
.service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.service-card .exec-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--blue-lt);
  opacity: 0.75;
  line-height: 1.5;
  font-style: italic;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-lt);
  text-decoration: none;
  margin-top: 1.25rem;
  letter-spacing: 0.04em;
  position: relative;
}
.service-link:hover { color: var(--white); }

/* ===========================================================
   HOMEPAGE ─ FAILURE MODES
   =========================================================== */
.failure { background: var(--bg2); }
.failure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.failure-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.failure-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(37,99,235,0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.failure-icon svg { width: 16px; height: 16px; stroke: var(--blue-lt); fill: none; stroke-width: 1.5; }
.failure-item h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.failure-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ===========================================================
   HOMEPAGE ─ WHY US
   =========================================================== */
.why { background: var(--bg); }
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.why-list { list-style: none; }
.why-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.why-list li:first-child { border-top: 1px solid var(--border); }
.why-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--blue-dim);
  line-height: 1;
  min-width: 2rem;
  padding-top: 0.15rem;
}
.why-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.why-text span { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.why-aside .card { margin-bottom: 1.5rem; }
.why-aside blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--blue);
}
.why-aside cite {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===========================================================
   HOMEPAGE ─ CTA SECTION
   =========================================================== */
.cta-section {
  text-align: center;
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(37,99,235,0.1) 0%, transparent 70%);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--muted); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.75; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-detail {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.cta-detail-item {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-detail-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  display: block;
}

/* ===========================================================
   ABOUT PAGE & SERVICES PAGE ─ PAGE HERO
   =========================================================== */
.page-hero {
  padding: 10rem 4rem 6rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
}
.page-hero h1 { margin-bottom: 0; }
.page-hero .lead { font-size: 1.05rem; }

/* ===========================================================
   ABOUT PAGE ─ MISSION / VALUES / APPROACH / TEAM
   =========================================================== */
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.mission h2 { margin-bottom: 1rem; }
.mission p { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.95rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.value-card {
  background: var(--bg2);
  padding: 2rem;
}
.value-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.65rem; }
.value-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.value-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.6rem;
}

.approach { background: var(--bg2); }
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.approach-points { list-style: none; margin-top: 2rem; }
.approach-points li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}
.approach-points li:first-child { border-top: 1px solid var(--border); }
.ap-icon {
  width: 32px; height: 32px; min-width: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.ap-icon svg { width: 16px; height: 16px; stroke: var(--blue-lt); fill: none; stroke-width: 1.5; }
.ap-text strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.ap-text span { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.team-intro { max-width: 640px; margin-bottom: 3rem; }
.team-intro h2 { margin-bottom: 1rem; }
.team-intro p { color: var(--muted); }

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  max-width: 500px;
}
.team-card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.team-card-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 1.25rem;
}
.team-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ===========================================================
   SERVICES PAGE ─ SERVICE SECTIONS / DELIVERABLES / DETAIL CARDS / FAQ
   =========================================================== */
.service-section {
  padding: 5rem 4rem;
  scroll-margin-top: 80px;
}
.service-section:nth-child(even) { background: var(--bg2); }

.service-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.service-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 1rem;
}
.service-layout h2 { margin-bottom: 1rem; }
.service-layout .lead { margin-bottom: 1.5rem; font-size: 1rem; }
.service-layout p { color: var(--muted); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1rem; }

.deliverables { list-style: none; }
.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text);
}
.deliverables li:first-child { border-top: 1px solid var(--border); }
.deliverables li::before {
  content: '';
  display: block;
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 0.5rem;
}

.detail-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.detail-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.detail-card p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.6; }

.service-icon-lg {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon-lg svg { width: 28px; height: 28px; stroke: var(--blue-lt); fill: none; stroke-width: 1.5; }

/* FAQ */
.faq-section { background: var(--bg2); }
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--white); }
.faq-q-icon { font-size: 1.2rem; color: var(--blue-lt); flex-shrink: 0; transition: transform 0.3s; }
.faq-a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding-bottom: 0;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.25rem; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }

/* CTA band on inner pages */
.cta-band {
  padding: 6rem 4rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--muted); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===========================================================
   BLOG / INSIGHTS ARCHIVE
   =========================================================== */
.blog-section { padding: 5rem 4rem; }
.blog-inner { max-width: 1200px; margin: 0 auto; }

/* Featured */
.featured-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.featured-article:hover { border-color: var(--blue); }
.featured-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 1rem;
  display: block;
}
.featured-article h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  color: var(--white);
}
.featured-article p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.featured-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.5rem;
  letter-spacing: 0.04em;
}
.featured-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-key-points h4 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.featured-key-points ul { list-style: none; }
.featured-key-points li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.featured-key-points li::before {
  content: '—';
  color: var(--blue);
  flex-shrink: 0;
}

/* Article grid (blog index) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--blue); }
.article-tag {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 0.75rem;
  display: block;
}
.article-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.article-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.article-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* Section separator label */
.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Newsletter */
.newsletter-section {
  background: var(--bg2);
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
}
.newsletter-form input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 0.8rem 1.25rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--blue); }
.newsletter-form input::placeholder { color: var(--muted); }

/* ===========================================================
   SINGLE ARTICLE TEMPLATE (single.php)
   Used by every WordPress post — matches model-drift.html etc.
   =========================================================== */
.article-hero {
  padding: 10rem 4rem 5rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.article-meta-row .tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-lt);
  background: rgba(37,99,235,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

.article-body {
  padding: 5rem 4rem;
  background: var(--bg);
}
.article-inner {
  max-width: 720px;
  margin: 0 auto;
}
.article-inner p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.article-inner h2 {
  font-size: 1.65rem;
  color: var(--white);
  margin: 3rem 0 1rem;
  line-height: 1.2;
}
.article-inner h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}
.article-inner strong { color: var(--text); }

.article-inner ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.article-inner ul li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}
.article-inner ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--blue-lt);
}

.article-inner ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}
.article-inner ol li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.article-inner blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
}

.article-inner a {
  color: var(--blue-lt);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-dim);
  transition: border-color 0.2s, color 0.2s;
}
.article-inner a:hover {
  color: var(--white);
  border-color: var(--blue);
}

.article-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.article-inner code {
  background: var(--card);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--blue-lt);
  border: 1px solid var(--border);
}

.article-inner pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
.article-inner pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

/* Callout block — use <div class="callout"><p>…</p></div> in posts */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.callout p { margin: 0; font-size: 0.95rem; }

.article-divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Build/Buy/Configure 3-col card layout */
.option-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.option-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.option-card .label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-lt);
  display: block;
  margin-bottom: 0.6rem;
}
.option-card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.option-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Data Readiness 2-col card layout */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.score-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.score-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.score-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Prioritize use cases — matrix table */
.matrix {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
}
.matrix-row {
  display: grid;
  grid-template-columns: 2fr 1fr 3fr;
  border-bottom: 1px solid var(--border);
}
.matrix-row:last-child { border-bottom: none; }
.matrix-row.header { background: var(--card); }
.matrix-cell {
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-right: 1px solid var(--border);
}
.matrix-cell:last-child { border-right: none; }
.matrix-row.header .matrix-cell {
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* Related-Reading section */
.related-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem;
}
.related-inner {
  max-width: 720px;
  margin: 0 auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--blue); }
.related-card .tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-lt);
  display: block;
  margin-bottom: 0.6rem;
}
.related-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0;
}

/* ===========================================================
   PAGINATION (archive.php / index.php)
   =========================================================== */
.nav-links.pagination,
.navigation.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.navigation.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  /* override the nav-links UL styles — these aren't menu items */
  position: static;
  background: none;
  border: none;
  padding: 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.page-numbers:hover { border-color: var(--blue); color: var(--blue-lt); }
.page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.page-numbers.dots {
  background: none;
  border: none;
  color: var(--muted);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  /* Homepage */
  .hero { padding: 6rem 1.5rem 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .signals-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-right: none; border-top: 1px solid var(--border); }
  .process-step:nth-child(4) { border-top: 1px solid var(--border); }
  .services-grid { grid-template-columns: 1fr; }
  .failure-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cta-section { padding: 5rem 1.5rem; }

  /* Page hero (about, services, blog) */
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* About */
  .mission-layout, .approach-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid { grid-template-columns: 1fr; }

  /* Services */
  .service-section { padding: 4rem 1.5rem; }
  .service-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-cards { grid-template-columns: 1fr; }

  /* Blog */
  .blog-section { padding: 3rem 1.5rem; }
  .featured-article { grid-template-columns: 1fr; padding: 2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 3rem 1.5rem; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }

  /* Single article */
  .article-hero { padding: 8rem 1.5rem 3rem; }
  .article-body { padding: 3rem 1.5rem; }
  .related-section { padding: 3rem 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }

  /* Inline-article cards */
  .option-cards { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .matrix-row { grid-template-columns: 1fr; }

  /* CTA bands */
  .cta-band { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 4rem 1.5rem; }
  footer { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}


nav .logo img,
nav .custom-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}
nav.nav-scrolled .logo img,
nav.nav-scrolled .custom-logo {
  height: 36px !important;
}
.footer-brand img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}