/*
Theme Name: PEO Metrics
Version: 2.5
Description: Clean light theme for PEO Metrics
Author: BryghtWeb
Text Domain: peocomp
*/

/* ─── Google Fonts ─────────────────────────────────────────────── */
/* Fonts loaded via wp_enqueue_style() in functions.php for non-blocking performance */

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --teal:      #0891B2;
  --teal-dk:   #0E7490;
  --teal-lt:   #F0F9FF;
  --teal-mid:  #E0F2FE;
  --teal-ring: rgba(8,145,178,.15);

  --navy:      #1E3A5F;

  --ink:       #111827;
  --ink-70:    #374151;
  --ink-40:    #9CA3AF;
  --ink-15:    #F3F4F6;

  --stone:     #F9F7F4;
  --white:     #FFFFFF;
  --border:    #E5E7EB;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);

  --amber:     #F59E0B;
  --green:     #059669;
  --red:       #DC2626;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --r-sm:   .5rem;
  --r-md:   .75rem;
  --r-lg:   1rem;
  --r-xl:   1.5rem;
  --r-2xl:  2rem;

  /* Layout */
  --max:     1200px;
  --max-wide: 1400px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-70);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ─── Utility ────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: .8rem 1.6rem;
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dk); border-color: var(--teal-dk); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-lt); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--teal-lt); border-color: var(--teal-lt); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--r-xl); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-mid);
  padding: .3rem .7rem;
  border-radius: 100px;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-70);
  max-width: 560px;
  line-height: 1.7;
}

.pill-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-70);
}
.pill-check svg { color: var(--teal); flex-shrink: 0; }

/* ─── Animations ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 72px;
}
.site-logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none !important; }
.site-custom-logo { height: 44px; width: auto; max-width: none; display: block; object-fit: contain; }

.site-logo {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none !important;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.site-logo span { color: var(--teal); }
.header-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.header-nav a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-70);
  padding: .5rem .75rem;
  border-radius: var(--r-md);
  text-decoration: none !important;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--ink); background: var(--ink-15); }
.header-cta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: .5rem;
  flex-shrink: 0;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  padding: 5rem 1.5rem 6rem;       /* extra bottom padding clears sticky CTA */
  flex-direction: column;
  gap: .5rem;
  /* Allow vertical scroll when the menu (with Industries dropdown expanded
     to 18+ items) exceeds viewport height. iOS momentum scroll enabled. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     /* prevents page-behind from scrolling */
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  padding: .875rem 1rem;
  border-radius: var(--r-lg);
  text-decoration: none !important;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { background: var(--stone); }
.mobile-nav .btn { margin-top: 1rem; text-align: center; justify-content: center; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 8rem 0 5rem;
  background: var(--stone);
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(8,145,178,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(8,145,178,.05) 0%, transparent 60%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-70);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-70);
}
.trust-item svg { color: var(--teal); }

/* Hero Visual */
.hero-visual { position: relative; }
.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dash-title {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
}
.dash-badge {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  background: #D1FAE5;
  padding: .2rem .5rem;
  border-radius: 100px;
}
.dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.kpi-card {
  background: var(--stone);
  border-radius: var(--r-lg);
  padding: .875rem;
}
.kpi-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-40);
  margin-bottom: .25rem;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
}
.kpi-change {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--green);
  margin-top: .125rem;
}
.peo-list { display: flex; flex-direction: column; gap: .5rem; }
.peo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--stone);
  border-radius: var(--r-md);
  padding: .625rem .875rem;
}
.peo-rank {
  font-size: .75rem;
  font-weight: 800;
  color: var(--ink-40);
  width: 1.25rem;
  text-align: center;
}
.peo-name {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}
.peo-score {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--teal);
}
.score-bar {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
  transition: width 1s ease;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: .875rem 1.125rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

/* ─── Logos ──────────────────────────────────────────────────────── */
.logos-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.logos-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 1.75rem;
}
.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}
.logo-item {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink-40);
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* ─── How It Works ────────────────────────────────────────────────── */
.how-section {
  padding: 5rem 0;
  background: var(--white);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header .section-sub { margin: .75rem auto 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
}
.step-card {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  background: var(--white);
  transition: background .2s;
}
.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--stone); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 800;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.step-text {
  font-size: .875rem;
  color: var(--ink-70);
  line-height: 1.6;
}

/* ─── Features ─────────────────────────────────────────────────────── */
.features-section {
  padding: 5rem 0;
  background: var(--stone);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--teal-lt);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 1rem;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.feature-text {
  font-size: .875rem;
  color: var(--ink-70);
  line-height: 1.65;
}

/* ─── Split Section ──────────────────────────────────────────────── */
.split-section {
  padding: 5rem 0;
  background: var(--white);
}
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-inner.reverse { direction: rtl; }
.split-inner.reverse > * { direction: ltr; }
.split-label { margin-bottom: .625rem; }
.split-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: .875rem;
}
.split-text {
  font-size: 1rem;
  color: var(--ink-70);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.split-checks {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.75rem;
}
.split-visual {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── PEO Metrics Compare Table ────────────────────────────────────────── */
.compare-section {
  padding: 5rem 0;
  background: var(--stone);
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--white);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.compare-table th {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-40);
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--stone);
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child { border-radius: 1.25rem 0 0 0; }
.compare-table th:last-child { border-radius: 0 1.25rem 0 0; }
.compare-table th.highlight {
  background: var(--teal-lt);
  color: var(--teal);
}
.compare-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--stone); }
.compare-table td.highlight { background: var(--teal-lt); }
.compare-table td.feature-label {
  font-weight: 600;
  color: var(--ink);
}
.check-yes { color: var(--teal); }
.check-partial { color: var(--amber); }
.check-no { color: var(--ink-40); }

/* ─── Stats ────────────────────────────────────────────────────────── */
.stats-section {
  padding: 4rem 0;
  background: var(--navy);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .375rem;
}
.stat-label {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

/* ─── Testimonials ────────────────────────────────────────────────── */
.testimonials-section {
  padding: 5rem 0;
  background: var(--white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
}
.testimonial-stars {
  display: flex;
  gap: .25rem;
  color: var(--amber);
  margin-bottom: 1rem;
  font-size: .9375rem;
}
.testimonial-quote {
  font-size: .9375rem;
  color: var(--ink-70);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
}
.testimonial-role {
  font-size: .8125rem;
  color: var(--ink-40);
}

/* ─── Blog ─────────────────────────────────────────────────────────── */
.blog-section {
  padding: 5rem 0;
  background: var(--stone);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none !important;
  color: inherit;
  display: block;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-thumb {
  background: var(--teal-lt);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 2rem;
  overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.5rem; }
.blog-cat {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: .5rem;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -.015em;
  margin-bottom: .5rem;
}
.blog-excerpt {
  font-size: .875rem;
  color: var(--ink-70);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--ink-40);
  font-weight: 600;
}

/* ─── CTA Band ──────────────────────────────────────────────────────── */
.cta-band {
  padding: 5rem 0;
  background: var(--navy);
  background-image: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(8,145,178,.2) 0%, transparent 65%);
  text-align: center;
}
.cta-band .section-title { color: var(--white); }
.cta-band .section-sub {
  color: rgba(255,255,255,.65);
  margin: 1rem auto 2rem;
}
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--ink-70);
  line-height: 1.65;
  margin: .875rem 0 1.25rem;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .875rem;
  color: var(--ink-70);
  text-decoration: none !important;
  transition: color .15s;
}
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--ink-40);
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: var(--ink-40); text-decoration: none !important; }
.footer-legal a:hover { color: var(--teal); }

/* ─── Page Inner ────────────────────────────────────────────────────── */
.page-hero {
  padding: 7rem 0 4rem;
  background: var(--stone);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .section-label { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--ink-70);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Contact ────────────────────────────────────────────────────────── */
.contact-section {
  padding: 5rem 0;
  background: var(--white);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-promises { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-promise {
  display: flex;
  gap: 1rem;
}
.promise-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--teal-lt);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.promise-text strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}
.promise-text span {
  font-size: .875rem;
  color: var(--ink-70);
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: .375rem;
}
.contact-form-card p {
  font-size: .875rem;
  color: var(--ink-70);
  margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--stone);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-ring);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: .5rem; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-notice {
  font-size: .8rem;
  color: var(--ink-40);
  text-align: center;
  margin-top: .875rem;
}
.form-success {
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: none;
}
.form-success.show { display: block; }

/* ─── Blog Archive / Single ──────────────────────────────────────── */
.archive-section {
  padding: 4rem 0 5rem;
  background: var(--stone);
}
.archive-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.sidebar-widget .btn { width: 100%; justify-content: center; margin-top: .75rem; }

.single-article {
  background: var(--white);
  padding: 6.5rem 0 5rem;
}
.single-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: start;
}
.article-header { margin-bottom: 2rem; }
.article-cats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .875rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .875rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--ink-40);
  font-weight: 600;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-70);
}
/* Section-break styling: each H2 gets visual separation so the long article
   body reads like the alternating-section hub pages instead of one flat
   wall of text. The first H2 (or one right after an intro) doesn't get the
   break since it's already at the top of the article body. */
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 3.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.article-content > h2:first-child,
.article-content > h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 .75rem;
}
.article-content h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 .5rem;
}
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content p:first-of-type {
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.7;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: .5rem;
  line-height: 1.7;
}
.article-content li::marker {
  color: var(--teal);
  font-weight: 700;
}
.article-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.article-content a:hover {
  text-decoration-thickness: 2px;
}
.article-content strong, .article-content b {
  color: var(--ink);
  font-weight: 700;
}
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--stone);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--ink);
  font-style: normal;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: .9375rem;
}
.article-content th {
  background: var(--ink);
  color: var(--white);
  padding: .875rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
}
.article-content td {
  padding: .875rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.article-content tr:nth-child(even) td { background: var(--stone); }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}
.article-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--border);
}
.article-content code {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .125rem .375rem;
  font-size: .875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-cta {
  background: var(--teal-lt);
  border: 1px solid var(--teal-mid);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}
.article-cta p {
  font-size: .9375rem;
  color: var(--ink-70);
  margin-bottom: 1rem;
}
.article-cta .btn {
  margin: 0 auto;
}

/* ─── Author Box ─────────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.author-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info { flex: 1; min-width: 0; }
.author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}
.author-bio {
  font-size: .875rem;
  color: var(--ink-70);
  line-height: 1.65;
  margin: 0;
}

/* ─── Sticky Sidebar ────────────────────────────────────────────────── */
.sticky-sidebar { position: sticky; top: 5.5rem; }

/* ─── Solutions ────────────────────────────────────────────────────── */
.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.solution-block:last-child { border-bottom: none; }
.solution-block:nth-child(even) .solution-content { order: 2; }
.solution-block:nth-child(even) .solution-visual { order: 1; }
.solution-num {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: .75rem;
}
.solution-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: .875rem;
}
.solution-text {
  font-size: 1rem;
  color: var(--ink-70);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.solution-outcomes {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.solution-visual {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── Sticky Mobile CTA ──────────────────────────────────────────── */
.mobile-sticky-cta { display: none; opacity: 0; transition: opacity .25s ease; }
.mobile-sticky-cta.visible { opacity: 1; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card:nth-child(2) { border-right: none; }
  .step-card:nth-child(1), .step-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .split-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-visual { min-height: 200px; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .archive-inner { grid-template-columns: 1fr; }
  .single-inner { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .sticky-sidebar { display: none; }
  .solution-block { grid-template-columns: 1fr; gap: 2rem; }
  .solution-block:nth-child(even) .solution-content { order: 0; }
  .solution-block:nth-child(even) .solution-visual { order: 0; }
}

@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 6rem 0 3rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--border); }
  .step-card:last-child { border-bottom: none; }

  /* Profile cards — fix scrunched tag label */
  .split-visual .profile-tag {
    white-space: normal;
    text-align: center;
    flex-shrink: 0;
    max-width: 120px;
  }

  /* Compare tables — reduce padding, smaller font + horizontal scroll
     wrapper so 3-col tables with long text don't overflow viewport.
     Inline-styled <td> padding in page-hub.php is overridden via !important. */
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;            /* bleed to viewport edges so the scroll feels native */
    padding: 0 1rem;
  }
  .compare-table { font-size: .8rem; min-width: 540px; }
  .compare-table th { padding: .75rem .875rem !important; font-size: .7rem; }
  .compare-table td { padding: .75rem .875rem !important; }

  /* Hub stats bar — collapse from N-cols to 2-cols.
     Inline grid-template-columns:repeat(N,1fr) is overridden via !important. */
  .hub-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  /* Hub "Why us" metric grid — same 2-col collapse */
  .hub-whyus-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  /* Advisor card — stack avatar above text, center alignment, lighter padding */
  .hub-advisor-card {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 1.5rem 1.25rem !important;
    gap: 1.25rem !important;
    justify-items: center;
  }
  .hub-advisor-card img,
  .hub-advisor-card > div:first-child {
    margin: 0 auto;
  }

  /* About page principles grid — single column on mobile */
  .principles-grid { grid-template-columns: 1fr !important; }

  /* CTA band button — full width centered */
  .cta-band .btn { width: 100%; max-width: 340px; text-align: center; justify-content: center; }
  .cta-band { padding: 3rem 1.5rem; }

  /* Sticky mobile CTA — visible class added by JS after scrolling past hero */
  .mobile-sticky-cta {
    display: block;
    pointer-events: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .75rem 1rem 1.25rem;
    background: var(--white);
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    z-index: 999;
  }
  .mobile-sticky-cta.visible { pointer-events: auto; }
  .mobile-sticky-cta .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: .9rem 1.6rem;
  }
  body { padding-bottom: 4.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; max-width: 320px; }

  /* Profile cards — stack avatar/name/tag vertically on very small screens */
  .split-visual [style*="display:flex"][style*="align-items:center"] {
    flex-wrap: wrap;
    gap: .5rem;
  }

  /* Tighter table on very small screens */
  .compare-table { font-size: .75rem; }
  .compare-table th { padding: .6rem .625rem !important; }
  .compare-table td { padding: .6rem .625rem !important; }

  /* Hub hero stats — shrink the giant stat value type so 2-col fits */
  .hub-stats-grid > div > div:first-child { font-size: 1.5rem !important; }

  /* Hub stats label — tighten line-height for two-line labels on narrow */
  .hub-stats-grid > div > div:last-child { font-size: .75rem !important; line-height: 1.35 !important; }

  /* Why-us metric value — slightly smaller to avoid wrap */
  .hub-whyus-grid > div > div:first-child { font-size: 1.75rem !important; }

  /* Breadcrumb at very narrow widths — wrap nicely with smaller font */
  .peo-breadcrumbs { font-size: .75rem; padding: .65rem 0; }
  .peo-breadcrumbs .rank-math-breadcrumb p { line-height: 1.5; }
}

/* ── Hide ONLY duplicate plugin breadcrumb shells, NOT the theme's
       Rank Math breadcrumb wrapped in .peo-breadcrumbs ──
   The old rule hid `.rank-math-breadcrumb` site-wide, which silently
   nuked the visible breadcrumb trail we rebuilt in inc/schema-rank-math.php.
   We still hide standalone plugin shells that some Yoast / generic
   themes inject outside our intended location. */
.yoast-breadcrumb,
#breadcrumbs.breadcrumbs-plain,
.breadcrumb.wpseo-breadcrumb {
  display: none !important;
}

/* Hide reCAPTCHA v3 badge — attribution in form notice per Google TOS */
.grecaptcha-badge { visibility: hidden !important; }
