/*
Theme Name: SEO Consultant Portfolio
Theme URI: https://mikepriceseo.com
Description: A modern personal-brand SEO consultant portfolio theme.
Version: 3.0
Author: SEO Pro
Text Domain: seo-consultant
*/

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-mid:    #2563eb;
  --blue-light:  #eff6ff;
  --blue-border: #bfdbfe;
  --blue-soft:   #dbeafe;
  --navy:        #0f2052;
  --text:        #111827;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --text-faint:  #9ca3af;
  --border:      #e5e7eb;
  --border-soft: #f3f4f6;
  --bg:          #ffffff;
  --bg-off:      #f9fafb;
  --bg-mid:      #f3f4f6;
  --sans:        'Plus Jakarta Sans', system-ui, sans-serif;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Grid background ───────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.blob {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.blob-1 { width: 500px; height: 500px; top: -100px; left: -150px; background: rgba(219,234,254,0.55); }
.blob-2 { width: 400px; height: 400px; top: 30%; right: -100px; background: rgba(209,250,229,0.4); }
.blob-3 { width: 350px; height: 350px; bottom: 10%; left: 20%; background: rgba(254,249,195,0.4); }

/* ── Layout ────────────────────────────────────────────────────────── */
.wrap        { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.5rem); position: relative; z-index: 1; }
.wrap-narrow { max-width: 760px;  margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.5rem); position: relative; z-index: 1; }
.container   { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.5rem); position: relative; z-index: 1; }

/* ── Nav ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-soft);
  border: 2px solid var(--blue-border);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar-init { font-size: 0.75rem; font-weight: 700; color: var(--blue); }
.nav-name { font-size: 0.92rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav-name span { color: var(--blue); }

.main-nav ul {
  display: flex; align-items: center; gap: 0.25rem;
}
.main-nav a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--text); background: var(--bg-off); }

.header-cta .btn {
  background: var(--blue);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.15s;
  border: none;
}
.header-cta .btn:hover { opacity: 0.88; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary, .btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--blue); color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600;
  padding: 0.75rem 1.6rem; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,86,219,0.3);
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover, .btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--bg); color: var(--text-mid);
  font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.75rem 1.6rem; border-radius: 10px;
  text-decoration: none; border: 1.5px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--blue-border); color: var(--text); }
.btn-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.btn-white {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; color: var(--navy);
  font-size: 0.9rem; font-weight: 700;
  padding: 0.8rem 1.75rem; border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: rgba(255,255,255,0.75);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.8rem 1.75rem; border-radius: 10px;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.2);
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(4rem,9vw,7rem) 0 clamp(3rem,6vw,5rem);
  text-align: center;
}
.hero-photo-wrap {
  display: inline-block; position: relative; margin-bottom: 1.75rem;
}
.hero-photo {
  width: 110px; height: 110px; border-radius: 26px;
  object-fit: cover; border: 3px solid var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue-border);
  display: block;
}
.hero-photo-placeholder {
  width: 110px; height: 110px; border-radius: 26px;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue-light));
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: var(--blue);
}
.hero-badge {
  position: absolute; bottom: -6px; right: -6px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 0.2rem 0.55rem;
  display: flex; align-items: center; gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.hero-badge-text { font-size: 0.66rem; font-weight: 600; color: var(--text-mid); white-space: nowrap; }

.hero h1 {
  font-size: clamp(2.4rem,6vw,4rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.035em; line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero h1 .highlight { color: var(--navy); }
.hero-tagline {
  font-size: clamp(1rem,2vw,1.2rem); font-weight: 400;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.hero-tagline strong { color: var(--blue); font-weight: 600; }
.hero-description {
  font-size: clamp(1rem,2vw,1.2rem); font-weight: 400;
  color: var(--text-muted); margin-bottom: 1.5rem;
}

.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.pill {
  font-size: 0.78rem; font-weight: 500;
  color: var(--blue); background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 0.3rem 0.85rem; border-radius: 20px;
  transition: background 0.15s;
}
.pill:hover { background: var(--blue-soft); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; }

/* Stats row */
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-width: 680px; margin: 0 auto;
}
.hero-stat { background: var(--bg); padding: 1.25rem 1rem; text-align: center; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.3rem; }
.hero-stat-num span { color: var(--blue); }
.hero-stat-label { font-size: 0.72rem; font-weight: 500; color: var(--text-faint); line-height: 1.4; }

/* Marquee */
.marquee-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-off); padding: 0.65rem 0;
  overflow: hidden; white-space: nowrap; margin: 3rem 0 0;
}
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 2rem;
  display: inline-flex; align-items: center; gap: 2rem;
}
.marquee-item::after { content: '\00B7'; font-size: 1rem; opacity: 0.3; }

/* ── Section layout ────────────────────────────────────────────────── */
.section { padding: clamp(4rem,8vw,7rem) 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-light); border: 1px solid var(--blue-border);
  padding: 0.3rem 0.75rem; border-radius: 20px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.7rem,3.5vw,2.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1.15;
  margin-bottom: 0.85rem;
}
.section-sub {
  font-size: 1rem; font-weight: 400;
  color: var(--text-muted); line-height: 1.75;
  max-width: 500px;
}

/* Section tag (legacy compat) */
.section-tag { display: none; }
.section-header { text-align: center; max-width: 540px; margin: 0 auto 2.5rem; }
.section-header .section-label { justify-content: center; }
.section-header .section-sub { margin: 0 auto; }

/* ── Services ──────────────────────────────────────────────────────── */
.section-services, .services { background: var(--bg-off); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.services-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer; display: block; text-decoration: none; color: inherit;
}
.service-card:hover {
  box-shadow: var(--shadow-lg); border-color: var(--blue-border);
  transform: translateY(-2px);
}
.service-icon {
  width: 40px; height: 40px;
  background: var(--blue-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.2rem;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--blue); stroke-width: 1.75; fill: none; }
.service-card h3, .service-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.45rem; }
.service-card p, .service-desc { font-size: 0.84rem; font-weight: 400; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.service-tag {
  font-size: 0.68rem; font-weight: 500;
  color: var(--blue); background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 0.15rem 0.5rem; border-radius: 4px;
}
.service-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--blue); font-weight: 600; font-size: 0.84rem;
  transition: gap 0.15s;
}
.service-link:hover { gap: 8px; }

/* ── Industries ────────────────────────────────────────────────────── */
.section-industries { background: var(--bg); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.industries-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }

.industry-list { margin-top: 1.5rem; list-style: none; }
.industry-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: padding-left 0.18s; gap: 1rem;
}
.industry-row:hover { padding-left: 0.4rem; }
.industry-row:hover .industry-name { color: var(--blue); }
.industry-name { font-size: 0.95rem; font-weight: 500; color: var(--text-mid); transition: color 0.15s; }
.industry-meta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.industry-vol { font-size: 0.72rem; font-weight: 600; color: var(--text-faint); }
.industry-kd {
  font-size: 0.66rem; font-weight: 700;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 0.15rem 0.45rem; border-radius: 4px;
}

/* About card */
.about-card {
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.about-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.about-photo {
  width: 60px; height: 60px; border-radius: 14px;
  object-fit: cover; border: 2px solid var(--blue-border); flex-shrink: 0;
}
.about-photo-placeholder {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: var(--blue);
  flex-shrink: 0; border: 2px solid var(--blue-border);
}
.about-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.about-role { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.about-body { font-size: 0.88rem; font-weight: 400; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.5rem; }
.about-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-fact-num { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; margin-bottom: 0.15rem; }
.about-fact-num span { color: var(--blue); }
.about-fact-label { font-size: 0.72rem; font-weight: 500; color: var(--text-faint); }

.avail-block {
  margin-top: 1rem; background: var(--bg);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-sm); padding: 1.25rem;
  display: flex; align-items: flex-start; gap: 0.85rem;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; margin-top: 0.35rem; }
.avail-title { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.avail-desc { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); line-height: 1.6; }
.avail-link { font-size: 0.78rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.avail-link:hover { text-decoration: underline; }

/* ── Process ───────────────────────────────────────────────────────── */
.section-process, .process { background: var(--bg-off); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.process-header { text-align: center; max-width: 540px; margin: 0 auto 3rem; }
.process-header .section-sub { margin: 0 auto; }

.process-steps, .process-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
.step-card, .process-step {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  position: relative; text-align: left;
}
.step-card::before, .process-step::before {
  content: ''; position: absolute; top: 0; left: 1.75rem; right: 1.75rem;
  height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.step-card:hover::before, .process-step:hover::before { opacity: 1; }
.step-num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--blue); text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.step-num-badge, .step-number {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--blue-light); border: 1px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800; color: var(--blue);
  margin: 0;
}
.process-step .step-number { margin-bottom: 1rem; }
.step-title, .process-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.step-desc, .process-step p { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); line-height: 1.65; }

/* ── Why cards ─────────────────────────────────────────────────────── */
.section-why { background: var(--bg); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.5rem; }
.why-card {
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.why-card:hover { box-shadow: var(--shadow); border-color: var(--blue-border); }
.why-card-icon {
  width: 36px; height: 36px;
  background: var(--blue-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
}
.why-card-icon svg { width: 18px; height: 18px; stroke: var(--blue); stroke-width: 2; fill: none; }
.why-card-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.why-card-desc { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); line-height: 1.65; }

/* ── Quick links ───────────────────────────────────────────────────── */
.section-links { background: var(--bg-off); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.links-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 2.5rem; }
.link-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  text-align: center; text-decoration: none; color: inherit; display: block;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.link-card:hover {
  box-shadow: var(--shadow-lg); border-color: var(--blue-border);
  transform: translateY(-3px);
}
.link-card-icon {
  width: 48px; height: 48px;
  background: var(--blue-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.link-card-icon svg { width: 22px; height: 22px; stroke: var(--blue); stroke-width: 1.75; fill: none; }
.link-card-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.link-card-desc { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); line-height: 1.6; }

/* ── CTA ───────────────────────────────────────────────────────────── */
.cta-section, .section-cta {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(4rem,8vw,6rem) 0;
  text-align: center;
  position: relative; overflow: hidden; z-index: 1;
}
.cta-section::before, .section-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-inner, .cta-content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(147,197,253,1);
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25);
  padding: 0.3rem 0.75rem; border-radius: 20px;
  margin-bottom: 1.25rem;
}
.cta-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.cta-section h2, .section-cta h2 {
  font-size: clamp(1.75rem,4vw,3rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: #fff; line-height: 1.15;
  margin-bottom: 0.85rem;
}
.cta-section p, .section-cta p, .cta-content p {
  font-size: 1rem; font-weight: 400;
  color: rgba(255,255,255,0.55);
  max-width: 480px; margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-actions, .cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ── Page hero (inner pages) ───────────────────────────────────────── */
.page-hero {
  padding: clamp(4rem,8vw,6rem) 0 clamp(2rem,4vw,3rem);
  text-align: center;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
}

.page-hero-sub {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

.breadcrumbs {
  font-size: 0.78rem; color: var(--text-faint); margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* ── About page ────────────────────────────────────────────────────── */
.about-content {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 48px; align-items: start;
}
.about-image {
  background: linear-gradient(135deg, var(--blue-soft), var(--blue-light));
  border-radius: var(--radius); height: 400px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--blue-border);
}
.about-image .placeholder-icon { font-size: 4rem; opacity: 0.2; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { font-size: 1rem; margin-bottom: 1rem; color: var(--text-mid); }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.skill-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--blue-light);
  border-radius: var(--radius-sm); font-size: 0.88rem;
  font-weight: 500; color: var(--navy);
  border: 1px solid var(--blue-border);
}
.skill-item::before {
  content: '\2713'; color: var(--blue); font-weight: 700; font-size: 0.8rem;
}

/* ── Contact page ──────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--bg-off);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.contact-info-card:hover { border-color: var(--blue-border); }
.contact-info-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: var(--radius-sm); background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-info-text h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.contact-info-text p { font-size: 0.88rem; margin: 0; color: var(--text-muted); }

.audit-info-box {
  margin-top: 20px; padding: 20px;
  background: var(--blue-light); border-radius: var(--radius-sm);
  border: 1px solid var(--blue-border);
}
.audit-info-box h3 { color: var(--blue); margin-bottom: 8px; font-size: 0.9rem; }
.audit-info-box ul { color: var(--text-mid); font-size: 0.85rem; line-height: 2; }

.contact-form {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.contact-form h3 { font-weight: 700; margin-bottom: 20px; font-size: 1.05rem; color: var(--navy); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; color: var(--text);
  transition: border-color 0.15s; background: var(--bg-off);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Results / case study cards ────────────────────────────────────── */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.result-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.result-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-border); transform: translateY(-2px); }
.result-image {
  height: 140px; background: var(--navy);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.result-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; background: var(--blue);
  border-radius: 4px; font-size: 0.68rem; font-weight: 600;
  color: #fff; z-index: 1; letter-spacing: 0.04em; text-transform: uppercase;
}
.result-body { padding: 20px; }
.result-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.result-body h3 a { color: var(--navy); transition: color 0.15s; }
.result-body h3 a:hover { color: var(--blue); }
.result-body p { font-size: 0.84rem; margin-bottom: 14px; color: var(--text-muted); }
.result-metrics { display: flex; gap: 10px; }
.result-metric { text-align: center; flex: 1; padding: 8px; background: var(--bg-off); border-radius: var(--radius-sm); }
.result-metric .number { font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.result-metric .label { font-size: 0.68rem; color: var(--text-faint); margin-top: 2px; }

/* ── Testimonials ──────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow); border-color: var(--blue-border); }
.testimonial-text { font-size: 0.9rem; line-height: 1.75; color: var(--text-mid); margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-soft); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-weight: 700; font-size: 0.8rem;
}
.author-info .name { font-weight: 700; color: var(--navy); font-size: 0.85rem; }
.author-info .role { font-size: 0.75rem; color: var(--text-faint); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-off); border-top: 1px solid var(--border);
  padding: 2.5rem 0; position: relative; z-index: 1;
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.footer-brand-name span { color: var(--blue); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; }
.footer-nav a { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); padding: 0.3rem 0.7rem; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.footer-nav a:hover { color: var(--blue); background: var(--blue-light); }
.footer-copy { font-size: 0.75rem; color: var(--text-faint); }

/* ── TOC block ─────────────────────────────────────────────────────── */
.toc-block {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
}
.toc-block h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
  border: none;
  padding: 0;
}
.toc-block ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 2rem;
}
.toc-block li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.toc-block li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.6;
  min-width: 1.4em;
}
.toc-block a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.toc-block a:hover {
  color: var(--blue);
}

/* ── Page info bar ─────────────────────────────────────────────────── */
.page-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-info strong {
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 540px) {
  .toc-block ol { grid-template-columns: 1fr; }
}

/* ── Article / long-form content ───────────────────────────────────── */
.article-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin: 3rem 0 1rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.article-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.5rem; }
.article-content h4 { font-size: 0.95rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.article-content p { font-size: 1.02rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 1.25rem; }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--blue-mid); }

.article-content ul, .article-content ol { padding-left: 0; margin: 0.75rem 0 1.5rem; list-style: none; }
.article-content li {
  font-size: 1rem; line-height: 1.75; color: var(--text-mid);
  padding: 0.4rem 0 0.4rem 1.6rem; position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.article-content li:last-child { border-bottom: none; }
.article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 0.85em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); opacity: 0.5;
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter); position: absolute; left: 0; top: 0.45rem;
  font-size: 0.72rem; font-weight: 700; color: var(--blue); opacity: 0.8;
}

.article-content .key-terms {
  background: var(--bg-off); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: var(--radius-sm);
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.article-content .key-terms dt { font-weight: 700; color: var(--navy); margin-top: 1rem; font-size: 0.92rem; }
.article-content .key-terms dt:first-child { margin-top: 0; }
.article-content .key-terms dd { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; margin-left: 0; padding-left: 1rem; border-left: 2px solid var(--blue-border); margin-top: 0.25rem; }

.article-content .info-box {
  background: var(--bg-off); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: var(--radius-sm);
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.article-content .info-box h3 { margin-top: 0; color: var(--blue); }

.article-content .callout-warning {
  background: #fef9e7; border: 1px solid #f5e6a3;
  border-left: 3px solid #d4a017; border-radius: var(--radius-sm);
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.article-content .callout-warning h4 { color: #7a5c00; margin-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-content .callout-warning p { margin-bottom: 0; }

.article-content .pricing-table,
.article-content .timeline-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.88rem; }
.article-content .pricing-table thead,
.article-content .timeline-table thead { background: var(--navy); }
.article-content .pricing-table th,
.article-content .timeline-table th { color: #fff; font-weight: 600; padding: 12px 16px; text-align: left; font-size: 0.8rem; letter-spacing: 0.04em; }
.article-content .pricing-table td,
.article-content .timeline-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); line-height: 1.6; }
.article-content .pricing-table tbody tr:nth-child(even),
.article-content .timeline-table tbody tr:nth-child(even) { background: var(--bg-off); }
.article-content .timeline-table td:first-child { font-weight: 700; color: var(--blue); white-space: nowrap; width: 130px; }

.article-content .pull-quote { border-left: 3px solid var(--navy); padding: 0.75rem 0 0.75rem 1.5rem; margin: 2.5rem 0; }
.article-content .pull-quote p { font-size: 1.1rem; font-style: italic; color: var(--navy); margin-bottom: 0; }

.article-content .faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.article-content .faq-item:first-of-type { border-top: 1px solid var(--border); }
.article-content .faq-item h3 { margin-top: 0; font-size: 1rem; }

.article-content .cta-block {
  text-align: center; padding: clamp(2rem, 5vw, 3rem);
  background: var(--navy); border-radius: var(--radius);
  margin: 3rem 0 1rem; position: relative; overflow: hidden;
}
.article-content .cta-block::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.article-content .cta-block h2 { color: #fff; border: none; padding: 0; margin: 0 0 0.85rem; position: relative; }
.article-content .cta-block p { color: rgba(255,255,255,0.55); font-size: 0.95rem; max-width: 520px; margin: 0 auto 1.5rem; position: relative; }
.article-content .cta-block .btn { position: relative; }

.article-content .numbered-list { list-style: none; counter-reset: item; padding-left: 0; }
.article-content .numbered-list li { counter-increment: item; padding-left: 2.5rem; margin-bottom: 0.75rem; }
.article-content .numbered-list li::before { content: counter(item); position: absolute; left: 0; top: 0.45rem; font-weight: 700; color: var(--blue); font-size: 0.72rem; }

.article-content .intro-text { margin-bottom: 2rem; }
.article-content .intro-text p { font-size: 1.1rem; line-height: 1.85; color: var(--text-muted); }

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fu  { animation: fadeUp 0.6s ease both; }
.fu1 { animation-delay: 0.05s; }
.fu2 { animation-delay: 0.15s; }
.fu3 { animation-delay: 0.25s; }
.fu4 { animation-delay: 0.35s; }
.fu5 { animation-delay: 0.45s; }
.fu6 { animation-delay: 0.55s; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: 1fr 1fr; }
  .industries-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .section { padding: clamp(3rem,6vw,4rem) 0; }

  .main-nav {
    display: none; position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 12px; border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: 10px 16px; }
  .mobile-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }

  .services-grid, .results-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps, .process-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr 1fr; }

  .about-content, .contact-grid { grid-template-columns: 1fr; }
  .about-image { height: 240px; }
  .form-row { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; text-align: center; }

  .cta-actions, .cta-buttons { flex-direction: column; align-items: center; }
  .skills-grid { grid-template-columns: 1fr; }

  .article-content .pricing-table,
  .article-content .timeline-table { display: block; overflow-x: auto; }
  .article-content .timeline-table td:first-child { white-space: normal; width: auto; }
  .article-content .info-box, .article-content .key-terms, .article-content .callout-warning { padding: 1.25rem; }
}

@media (max-width: 440px) {
  .process-steps, .process-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
}
