/*
Theme Name: 360Solutions Medical Billing
Theme URI: https://360solutions.dev
Author: 360Solutions
Description: Custom WordPress theme for 360Solutions Medical Billing — precision revenue cycle management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 360solutions
Tags: medical, billing, healthcare, elementor
*/

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  --primary:    #084050;
  --primary-md: #0a5a72;
  --primary-lt: #0e7a99;
  --tint-1:     #e8f4f7;
  --tint-2:     #d0eaf1;
  --tint-3:     #b5dde8;
  --bg:         #f4f9fb;
  --white:      #ffffff;
  --text:       #0d2b35;
  --body:       #3d6070;
  --muted:      #7a99a8;
  --border:     #ddeef3;
  --shadow-sm:  0 2px 12px rgba(8,64,80,0.07);
  --shadow-md:  0 8px 32px rgba(8,64,80,0.11);
  --shadow-lg:  0 20px 60px rgba(8,64,80,0.15);
  --r:          14px;
  --font-head:  'Playfair Display', serif;
  --font-body:  'Plus Jakarta Sans', sans-serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint-1); border: 1px solid var(--tint-3);
  color: var(--primary); font-family: var(--font-body); font-size: 12px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
}

h1.ph, .ph {
  font-family: var(--font-head); font-size: clamp(36px,4.5vw,60px);
  font-weight: 800; line-height: 1.08; color: var(--text); margin-top: 16px;
}
h1.ph em, .ph em { font-style: normal; color: var(--primary); }

h2.st, .st {
  font-family: var(--font-head); font-size: clamp(28px,3.5vw,44px);
  font-weight: 800; line-height: 1.1; color: var(--text); margin-top: 14px;
}
h2.st em, .st em { font-style: normal; color: var(--primary); }

p.ss, .ss {
  color: var(--body); font-size: 17px; line-height: 1.75;
  max-width: 600px; margin-top: 14px;
}

section { padding: 80px 0; }
.s-head { margin-bottom: 52px; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-p {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff; font-family: var(--font-body);
  font-weight: 700; font-size: 15px; padding: 15px 32px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(8,64,80,0.22);
}
.btn-p:hover { background: var(--primary-md); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(8,64,80,0.3); }

.btn-o {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--primary); font-family: var(--font-body);
  font-weight: 600; font-size: 15px; padding: 14px 30px; border-radius: 10px;
  text-decoration: none; border: 2px solid var(--primary); cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-o:hover { background: var(--primary); color: #fff; }

.btn-wh {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; color: var(--primary); font-family: var(--font-body);
  font-weight: 700; font-size: 15px; padding: 15px 32px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn-wh:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }

.btn-who {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: white; font-family: var(--font-body);
  font-weight: 600; font-size: 15px; padding: 14px 30px; border-radius: 10px;
  text-decoration: none; border: 2px solid rgba(255,255,255,.4); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-who:hover { background: rgba(255,255,255,.12); border-color: white; }

/* CSS chevron arrow — replaces &#8594; / → in buttons */
.btn-arr {
  display: inline-flex; align-items: center; flex-shrink: 0;
  width: 14px; height: 14px; margin-left: 6px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); border-radius: 1px;
}
.other-arrow::after {
  content: ''; display: inline-block;
  width: 9px; height: 9px; margin-left: 6px; vertical-align: middle;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(8,64,80,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 90px; max-width: 1180px; margin: 0 auto; padding: 0 28px;
}
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: 24px;
  color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 38px; height: 38px; background: var(--primary); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: white; }

/* Primary nav menu (wp_nav_menu output) */
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links > li > a, .nav-links > li > .nav-drop-toggle {
  color: var(--body); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: color .2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li > .nav-drop-toggle:hover { color: var(--primary); }
.nav-links > li > a.active { font-weight: 700; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav-drop-toggle {
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--body); font-size: 14px; font-weight: 600; text-decoration: none;
}
.nav-chevron {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease; flex-shrink: 0;
}
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%); background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(8,64,80,0.13);
  min-width: 240px; list-style: none; padding: 8px; z-index: 200;
  flex-direction: column; gap: 2px;
}
.nav-dropdown:hover .nav-drop-menu { display: flex; }
.nav-drop-menu li a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--body); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-drop-menu li a:hover { background: var(--tint-1); color: var(--primary); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }

.mobile-menu {
  display: none; flex-direction: column; background: white;
  border-top: 1px solid var(--border); padding: 20px 28px 28px; gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--body); font-size: 15px; text-decoration: none; font-weight: 500; }
.mobile-menu .mobile-sub-link { padding-left: 12px; }
.mobile-menu .btn-p { color: #fff; }
.mobile-section-toggle { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; color: var(--body); background: none; border: none; width: 100%; padding: 0; cursor: pointer; }
.mobile-section-toggle:hover { color: var(--primary); }
.mobile-chevron { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .2s ease; flex-shrink: 0; }
.mobile-section-toggle.open .mobile-chevron { transform: rotate(180deg); }
.mobile-sub-group { display: none; flex-direction: column; gap: 12px; padding-left: 4px; }
.mobile-sub-group.open { display: flex; }

/* =====================================================
   HERO (homepage)
   ===================================================== */
.hero {
  display: flex; align-items: center;
  position: relative; overflow: hidden; background: var(--white);
}
.hero-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; padding-top: 100px; }
.hero-content .pill { margin-bottom: 28px; }
.hero-title {
  font-family: var(--font-head); font-size: clamp(40px,4.8vw,64px);
  font-weight: 800; line-height: 1.07; letter-spacing: -.02em;
  color: var(--text); margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--primary); }
.hero-desc { color: var(--body); font-size: 18px; line-height: 1.75; margin-bottom: 38px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--body); font-size: 13px; font-weight: 600; }
.trust-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

/* Hero visual cards */
.hero-visual { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px 28px; box-shadow: var(--shadow-md); animation: fadeUp .6s ease both;
}
.hero-card:nth-child(1) { animation-delay: .3s; }
.hero-card:nth-child(2) { animation-delay: .45s; }
.hero-card:nth-child(3) { animation-delay: .6s; }
.hc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hc-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--tint-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; color: var(--primary);
}
.hc-icon svg { width: 22px; height: 22px; }
.hc-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hc-val { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.hc-bar { height: 6px; background: var(--tint-2); border-radius: 100px; overflow: hidden; }
.hc-bar-fill { height: 100%; background: var(--primary); border-radius: 100px; }
.hc-bar-fill.ab { animation: barFill 1.4s ease .8s both; }
@keyframes barFill { from { width: 0 !important; } }
.hc-row { display: flex; justify-content: space-between; align-items: center; }
.hc-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hc-badge { background: #e8f7f0; color: #0a7a4a; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; border: 1px solid #b5e8d0; }
.hc-steps { display: flex; flex-direction: column; gap: 10px; }
.hc-step { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--body); }
.hc-step-num {
  width: 26px; height: 26px; border-radius: 6px; background: var(--primary);
  color: white; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hc-step-num.done { background: #0a7a4a; }

/* Hero BG decorations */
.hero-crosses { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.h-cross { position: absolute; animation: floatUp 9s ease-in-out infinite; }
.h-cross:nth-child(2) { animation-delay: -4s; }
.h-cross:nth-child(3) { animation-delay: -7s; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* =====================================================
   MARQUEE / SPECIALTY TICKER
   ===================================================== */
.ticker {
  background: var(--white); overflow: hidden; white-space: nowrap;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative;
}
.ticker-inner {
  max-width: 1180px; margin: 0 auto; overflow: hidden;
  position: relative; padding: 0 28px;
}
.ticker-inner::before, .ticker-inner::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ticker-inner::before { left: 0; background: linear-gradient(to right, var(--white), rgba(255,255,255,0)); }
.ticker-inner::after  { right: 0; background: linear-gradient(to left,  var(--white), rgba(255,255,255,0)); }
.ticker-track { display: inline-flex; gap: 36px; animation: ticker 55s linear infinite; padding: 10px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.spec-badge {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(8,64,80,0.06);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 6px; transition: transform .3s ease, box-shadow .3s ease;
}
.spec-badge:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 10px 28px rgba(8,64,80,0.14); }
.spec-ico {
  width: 36px; height: 36px; stroke: var(--primary); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.spec-lbl {
  font-family: var(--font-body); font-size: 9px; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: .03em;
  text-align: center; white-space: normal; line-height: 1.15;
  max-width: 104px; word-break: break-word; hyphens: auto;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================
   SERVICES GRID
   ===================================================== */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.svc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 32px; transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--tint-3); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--tint-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px; border: 1px solid var(--tint-2); color: var(--primary);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.svc-card p  { font-size: 14px; color: var(--body); line-height: 1.7; }

/* =====================================================
   WORKFLOW
   ===================================================== */
.workflow { background: var(--white); }
.wf-wrap { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.wf-row { display: grid; grid-template-columns: repeat(4,1fr); }
.wf-row + .wf-row { border-top: 1px solid var(--border); }
.wf-step {
  padding: 32px 28px; border-right: 1px solid var(--border);
  position: relative; transition: background .2s;
}
.wf-step:last-child { border-right: none; }
.wf-step:hover { background: var(--tint-1); }
.wf-num {
  width: 36px; height: 36px; border-radius: 8px; background: var(--primary);
  color: white; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.wf-step h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.wf-step p  { font-size: 13px; color: var(--body); line-height: 1.6; }

/* =====================================================
   STATS
   ===================================================== */
.stats-section { background: var(--primary); padding: 80px 0; }
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,0.12); border-radius: 18px; overflow: hidden;
}
.stat-box { padding: 48px 32px; text-align: center; background: var(--primary); transition: background .2s; }
.stat-box:hover { background: var(--primary-md); }
.stat-val { font-family: var(--font-head); font-size: 54px; font-weight: 800; color: white; line-height: 1; display: block; }
.stat-suf { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: rgba(255,255,255,.55); }
.stat-label { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 10px; font-weight: 600; max-width: 140px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* =====================================================
   EMR / COMPATIBILITY
   ===================================================== */
.emr-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 32px 24px; display: flex; align-items: center; justify-content: center;
  min-height: 110px; transition: box-shadow .25s, border-color .25s, transform .2s;
}
.emr-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); transform: translateY(-3px); }
.emr-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.emr-pill {
  background: var(--tint-1); border: 1px solid var(--tint-2); border-radius: 100px;
  padding: 7px 18px; font-size: 13px; color: var(--primary); font-weight: 600;
  transition: background .2s, border-color .2s;
}
.emr-pill:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* =====================================================
   PARTNER STRIP
   ===================================================== */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.partner-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s, border-color .2s;
}
.partner-badge:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); border-color: var(--primary); }

/* =====================================================
   COMPARE TABLE
   ===================================================== */
.compare { background: var(--bg); }
.cw { background: var(--white); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
table.ct { width: 100%; border-collapse: collapse; }
table.ct thead th { padding: 20px 28px; font-size: 13px; font-weight: 700; text-align: left; border-bottom: 2px solid var(--border); }
table.ct thead .th-us   { background: var(--tint-1); color: var(--primary); border-bottom: 2px solid var(--primary); }
table.ct thead .th-them { background: #fafafa; color: var(--muted); }
table.ct thead .th-cat  { background: white; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; width: 180px; }
table.ct tbody tr:nth-child(even) td     { background: #fafcfd; }
table.ct tbody tr:nth-child(even) .td-us { background: #f0f9fc; }
table.ct td { padding: 18px 28px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.ct .td-cat  { color: var(--muted); font-weight: 600; font-size: 13px; }
table.ct .td-them { color: var(--body); font-style: italic; background: #fafafa; }
table.ct .td-us   { color: var(--text); font-weight: 500; background: var(--tint-1); }
table.ct .td-us::before { content: '✓ '; color: var(--primary); font-weight: 800; }

/* =====================================================
   SPECIALTIES PILLS
   ===================================================== */
.spec-section { background: var(--white); }
.spec-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-pill {
  background: var(--tint-1); border: 1px solid var(--tint-2); border-radius: 100px;
  padding: 8px 18px; font-size: 13px; color: var(--primary); font-weight: 600;
  transition: background .2s, box-shadow .2s; cursor: default;
}
.spec-pill:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(8,64,80,0.2); }

/* =====================================================
   WHY CARDS
   ===================================================== */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 36px; display: flex; gap: 22px;
  transition: box-shadow .25s, border-color .25s;
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); }
.why-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px;
  background: var(--tint-1); border: 1px solid var(--tint-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-card p  { font-size: 14px; color: var(--body); line-height: 1.7; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-section { background: var(--white); }
.faq-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--border); background: white; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: var(--font-body); font-size: 16px; font-weight: 600;
  text-align: left; gap: 20px; transition: background .2s;
}
.faq-q:hover { background: var(--tint-1); }
.faq-arrow {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint-1); border: 1px solid var(--tint-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: transform .3s ease, background .2s, color .2s;
}
.faq-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--primary); color: white; border-color: var(--primary); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s;
  color: var(--body); font-size: 15px; line-height: 1.8; padding: 0 28px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 28px 24px; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section { background: var(--primary); text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.cta-pat {
  position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-ecg { position: absolute; bottom: 0; left: 0; right: 0; opacity: .06; pointer-events: none; }
.cta-c { position: relative; z-index: 1; }
.cta-c h2 { font-family: var(--font-head); font-size: clamp(34px,4vw,54px); font-weight: 800; color: white; line-height: 1.1; margin: 16px auto 20px; }
.cta-c p { color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.7; max-width: 540px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.45); }
.cta-badges { display: flex; gap: 20px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.cta-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: 8px 18px; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600;
}
.cta-badge::before { content: '✓  '; font-weight: 800; }

/* =====================================================
   FOOTER
   ===================================================== */
footer { background: var(--text); padding: 64px 0 32px; }
.fg { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.fb .logo { color: white; margin-bottom: 16px; }
.fb p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 280px; margin-top: 12px; }
.fc-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.fc-links a {
  color: rgba(255,255,255,.55); font-size: 14px; text-decoration: none;
  transition: color .2s; display: flex; align-items: center; gap: 10px;
}
.fc-links svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; color: #0fb8d8; opacity: .95; }
.fc-links a:hover { color: white; }
.fcol h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fcol a { color: rgba(255,255,255,.55); font-size: 14px; text-decoration: none; transition: color .2s; }
.fcol a:hover { color: white; }
.fb-bot {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.fb-bot p { font-size: 13px; color: rgba(255,255,255,.3); }
.fsoc { display: flex; gap: 10px; }
.fs {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.fs svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.fs:hover { background: var(--primary-lt); color: white; border-color: rgba(255,255,255,.2); transform: translateY(-2px); }

/* =====================================================
   PAGE HERO (service & specialty pages)
   ===================================================== */
.page-hero {
  background: var(--white);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  padding-top: 120px !important;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 80% 50%, rgba(8,64,80,0.06) 0%, transparent 70%);
}
.page-hero-ecg { position: absolute; bottom: 0; left: 0; right: 0; opacity: .07; pointer-events: none; }
.ph-cross { position: absolute; animation: floatUp 9s ease-in-out infinite; pointer-events: none; }
.ph-cross:nth-child(2) { animation-delay: -4s; }
.ph-cross:nth-child(3) { animation-delay: -7s; }
.page-hero-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; z-index: 1; padding-top: 40px; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint-1); border: 1px solid var(--tint-3);
  color: var(--primary); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.ph-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.ph-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.ph-stat-val { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; }
.ph-stat-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.ph-visual {
  background: var(--tint-1); border: 1px solid var(--tint-2); border-radius: 20px;
  padding: 36px; display: flex; flex-direction: column; gap: 16px;
}
.ph-vis-icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; font-size: 0; margin-bottom: 8px;
}
.ph-vis-icon svg {
  width: 40px; height: 40px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ph-vis-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.ph-vis-sub { font-size: 14px; color: var(--body); }
.ph-checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ph-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--body); }
.ph-check-dot {
  width: 22px; height: 22px; border-radius: 6px; background: var(--primary);
  color: white; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* =====================================================
   HOW IT WORKS (service pages)
   ===================================================== */
.hw-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.hw-step {
  display: flex; gap: 28px; padding: 32px 36px; border-bottom: 1px solid var(--border);
  background: var(--white); transition: background .2s; align-items: flex-start;
}
.hw-step:last-child { border-bottom: none; }
.hw-step:hover { background: var(--tint-1); }
.hw-step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary); color: white; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
}
.hw-step h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.hw-step p  { font-size: 14px; color: var(--body); line-height: 1.7; }

/* =====================================================
   BENEFITS GRID (service pages)
   ===================================================== */
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.benefit-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px; transition: box-shadow .25s, transform .2s; position: relative; overflow: hidden;
}
.benefit-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.benefit-card:hover::after { transform: scaleX(1); }
.benefit-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 14px;
  font-size: 0; border: 1px solid transparent;
}
.benefit-icon svg {
  width: 28px; height: 28px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.benefit-card h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.benefit-card p  { font-size: 14px; color: var(--body); line-height: 1.65; }

/* =====================================================
   OTHER SERVICES (related services grid)
   ===================================================== */
.other-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.other-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; text-decoration: none; transition: box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.other-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); }
.other-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--tint-1); color: var(--primary); font-size: 0;
}
.other-icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.other-card h4   { font-size: 15px; font-weight: 700; color: var(--text); }
.other-card p    { font-size: 13px; color: var(--body); line-height: 1.6; }
.other-arrow     { font-size: 14px; color: var(--primary); font-weight: 700; margin-top: 4px; }

/* =====================================================
   SPECIALTY GRID ITEM  (home + specialties page)
   Replaces inline onmouseover/onmouseout handlers
   ===================================================== */
.spec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background .2s;
  cursor: default;
}
.spec-item:hover { background: var(--tint-1); }
/* Remove right border on last column */
.spec-item:nth-child(4n) { border-right: none; }

/* Clickable specialty items — have a dedicated detail page */
a.spec-item-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
a.spec-item-link:hover { background: var(--tint-1); border-color: var(--tint-3); }
a.spec-item-link:hover .spec-item span:first-of-type { color: var(--primary); font-weight: 700; }
.spec-arrow {
  margin-left: auto;
  font-size: 14px;
  color: inherit;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
a.spec-item-link:hover .spec-arrow { opacity: 1; transform: translateX(3px); }
.spec-item svg {
  flex-shrink: 0;
  width: 44px; height: 44px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.spec-item span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

/* Hero trust strip */
.contact-trust-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; max-width: 800px; margin: 40px auto 0;
}
.cts-item { background: var(--bg); padding: 22px 18px; text-align: center; }
.cts-val { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }
.cts-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 5px; line-height: 1.4; }

/* Two-column layout */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 52px; align-items: start; }
.contact-info-col { display: flex; flex-direction: column; gap: 20px; }

/* Info cards */
.ci-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 20px; display: flex; gap: 16px; align-items: flex-start;
  transition: box-shadow .2s, border-color .2s;
}
.ci-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); }
.ci-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--tint-1); border: 1px solid var(--tint-2);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.ci-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ci-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ci-body p, .ci-body a { font-size: 14px; color: var(--body); text-decoration: none; line-height: 1.6; display: block; }
.ci-body a:hover { color: var(--primary); }
.ci-body strong { color: var(--primary); }

/* Form card */
.contact-form-col .form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.contact-form-col .form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--primary);
}
.form-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.form-card-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.form-card-icon svg { width: 26px; height: 26px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form-col .form-card h3 {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: var(--text); margin-bottom: 4px; line-height: 1.2;
}
.contact-form-col .form-sub { font-size: 14px; color: var(--body); margin: 0; }
.contact-form-col .form-note {
  font-size: 12px; color: var(--muted); text-align: center;
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Two-column row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Field group */
.form-group {
  display: block; margin-bottom: 18px;
}
.form-group > label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text); letter-spacing: .02em; margin-bottom: 7px;
}
.form-group > label span { color: #e05252; }

/* Input / select / textarea — same as contact.html .form-control */
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,64,80,.08);
  background: var(--white);
}
.form-control::placeholder { color: var(--muted); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237a99a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
textarea.form-control { resize: vertical; min-height: 100px; max-height: 200px; }

/* Submit button */
.form-submit {
  width: 100%; padding: 16px;
  background: var(--primary); color: white;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border: none; border-radius: 10px; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(8,64,80,.22); margin-top: 8px;
  display: block; box-sizing: border-box;
}
.form-submit:hover {
  background: var(--primary-md); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(8,64,80,.3);
}

/* Inline field error */
.form-control.cf7-field-error {
  border-color: #e05252 !important;
  box-shadow: 0 0 0 3px rgba(224,82,82,.1) !important;
  background: #fff8f8 !important;
}
.form-group.has-error > label { color: #e05252; }
.form-group.has-error > label span { color: #e05252; }

/* Inline field error message */
.field-error-msg { font-size: 12px; color: #e05252; margin-top: 3px; display: block; }
.field-error { font-size: 12px; color: #e05252; margin-top: 4px; display: block; min-height: 0; }
.form-group.has-error .form-control { border-color: #e05252 !important; box-shadow: 0 0 0 3px rgba(224,82,82,.1) !important; background: #fff8f8 !important; }

/* Top error banner */
.form-error-banner {
  background: #fdf3f3; border: 1px solid #f5c6c6; color: #c03030;
  border-radius: 10px; padding: 12px 16px; font-size: 14px;
  margin-bottom: 20px; font-weight: 500;
}

/* HIPAA acceptance row */
.form-hipaa { margin-bottom: 18px; }
.form-hipaa.has-error .hipaa-label span { color: #e05252; }
.form-hipaa.has-error { outline: 2px solid #e05252; border-radius: 8px; padding: 6px 8px; }
.hipaa-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--body); line-height: 1.55; cursor: pointer; font-weight: 400;
}
.hipaa-label input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--primary); cursor: pointer;
}

/* Success state */
.form-success {
  text-align: center; padding: 40px 20px;
}
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success h4 {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
}
.form-success p { font-size: 15px; color: var(--body); line-height: 1.6; }

/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Office grid */
.office-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 640px; }
.office-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px; position: relative; overflow: hidden;
}
.office-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--primary);
}
.office-card h4 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.office-detail {
  display: flex; gap: 12px; margin-bottom: 12px;
  font-size: 14px; color: var(--body); align-items: flex-start;
}
.office-detail svg { width: 16px; height: 16px; stroke: var(--primary-lt); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.office-detail a { color: var(--body); text-decoration: none; transition: color .2s; }
.office-detail a:hover { color: var(--primary); }
.office-map { margin-top: 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }

/* Responsive */
@media (max-width: 960px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-trust-strip { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-trust-strip { grid-template-columns: 1fr 1fr; }
  .contact-form-col .form-card { padding: 24px 18px; }
  .ci-card { padding: 18px 16px; }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp .65s ease both; }
.hero-content .pill         { animation-delay: .05s; }
.hero-content .hero-title   { animation-delay: .15s; }
.hero-content .hero-desc    { animation-delay: .25s; }
.hero-content .hero-actions { animation-delay: .35s; }
.hero-content .hero-trust   { animation-delay: .45s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* --- Tablet (≤960px) --- */
@media (max-width: 960px) {
  .container { padding: 0 20px; }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 0 0 48px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(32px,5vw,48px); }
  .hero-desc  { font-size: 16px; }

  /* Sections — !important overrides inline style="padding:80px 0" on templates */
  section { padding: 60px 0 !important; }
  .s-head { margin-bottom: 36px; text-align: center; }
  .cta-section { padding: 72px 0 !important; }

  /* Grids */
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .wf-row         { grid-template-columns: 1fr 1fr; }
  .stats-row      { grid-template-columns: 1fr 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .benefits-grid  { grid-template-columns: 1fr 1fr; }
  .other-grid     { grid-template-columns: 1fr 1fr; }
  .fg             { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Page hero (service pages) */
  .page-hero { padding: 120px 0 40px !important; }
  .page-hero-wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .ph-visual { display: none; }
  .ph-stats  { grid-template-columns: repeat(3,1fr); }

  /* Specialties grid */
  .spec-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .spec-item:nth-child(2n) { border-right: none; }

  /* Workflow border fix on 2-col */
  .wf-step { border-right: 1px solid var(--border); }
  .wf-step:nth-child(2n) { border-right: none; }
  .wf-step:last-child    { border-right: none; }
}

/* --- Large phone (≤700px) --- */
@media (max-width: 700px) {
  .emr-card-grid { grid-template-columns: 1fr 1fr !important; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .fg { grid-template-columns: 1fr; }
}

/* --- Mobile (≤600px) --- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  /* Nav */
  .nav-inner { height: 80px; padding: 0 16px; }
  .page-content-wrap { padding-top: 0; }

  /* Typography */
  h1.ph, .ph { font-size: clamp(28px,7.5vw,40px); }
  h2.st, .st { font-size: clamp(24px,6.5vw,34px); }
  p.ss, .ss  { font-size: 15px; }
  .hero-title { font-size: clamp(28px,7vw,40px); }
  .hero-desc  { font-size: 15px; margin-bottom: 28px; }

  /* Sections — !important overrides inline style="padding:80px 0" on templates */
  section { padding: 48px 0 !important; }
  .cta-section { padding: 56px 0 !important; }
  .s-head { margin-bottom: 28px; }

  /* Hero */
  .hero { padding: 0 0 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions .btn-p,
  .hero-actions .btn-o { width: 100%; justify-content: center; }

  /* CTA buttons */
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-wh,
  .cta-btns .btn-who { width: 100%; max-width: 320px; justify-content: center; }

  /* Grids → single column */
  .services-grid  { grid-template-columns: 1fr; }
  .wf-row         { grid-template-columns: 1fr; }
  .stats-row      { grid-template-columns: 1fr 1fr; }
  .benefits-grid  { grid-template-columns: 1fr; }
  .other-grid     { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .fg             { grid-template-columns: 1fr; }

  /* Workflow */
  .wf-step { border-right: none; }

  /* Stats */
  .stat-val  { font-size: 40px; }
  .stat-suf  { font-size: 24px; }
  .stat-box  { padding: 32px 16px; }

  /* Page hero */
  .page-hero { padding: 110px 0 32px !important; }
  .page-hero-wrap { padding-top: 40px; }
  .ph-stats  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-stat-val { font-size: 24px; }
  .page-hero-wrap > div > div[style*="flex"] { flex-direction: column; }

  /* Compare table — horizontal scroll */
  .cw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.ct { font-size: 13px; min-width: 520px; }
  table.ct td, table.ct th { padding: 12px 14px; }

  /* FAQ */
  .faq-q { padding: 18px 16px; font-size: 14px; }
  .faq-a { padding: 0 16px; }
  .faq-item.open .faq-a { padding: 0 16px 18px; }

  /* Footer */
  .fb-bot { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Specialties */
  .spec-grid-4 { grid-template-columns: 1fr 1fr; }
  .spec-item   { border-right: none !important; padding: 18px 14px; }
  .spec-item svg { width: 32px; height: 32px; }
  .spec-item span { font-size: 12px; }

  /* EMR pills */
  .emr-card-grid { grid-template-columns: 1fr !important; }

  /* Specialty pages — how-we-work steps */
  .hw-step { padding: 24px 20px; gap: 16px; }
  .hw-step-num { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }

  /* Specialty pages — CPT + Denial panels */
  .spec-cpt-row { padding: 12px 16px; }
  .denial-item  { padding: 12px 14px; }

  /* Dashboard KPIs */
  .dash-kpi-val { font-size: 26px; }
  .dash-panel   { padding: 20px 16px; }
}

/* =====================================================
   TESTIMONIALS  (homepage social proof)
   ===================================================== */
.testimonials-section { background: var(--bg); padding: 80px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 8px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 28px 28px; position: relative; transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); transform: translateY(-3px); }
.t-quote-mark {
  font-family: var(--font-head); font-size: 56px; line-height: 1; color: var(--tint-3);
  position: absolute; top: 14px; right: 22px; opacity: .85;
}
.t-quote { color: var(--text); font-size: 14.5px; line-height: 1.75; margin-bottom: 22px; flex-grow: 1; }
.t-meta { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--border); }
.t-avatar {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px; letter-spacing: .5px;
}
.t-info { line-height: 1.4; }
.t-name { font-weight: 700; font-size: 14px; color: var(--text); }
.t-role { font-size: 12px; color: var(--body); margin-top: 2px; }
.t-loc { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* =====================================================
   CASE STUDIES
   ===================================================== */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.case-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--tint-3); }
.case-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px; font-size: 0;
}
.case-icon svg {
  width: 26px; height: 26px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.case-tag {
  font-size: 11px; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.case-card h4 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 18px; }
.case-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: var(--bg); border-radius: 10px; margin-bottom: 16px; }
.case-stat { text-align: center; }
.case-stat-val { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.case-stat-lbl { font-size: 11px; color: var(--body); margin-top: 4px; line-height: 1.3; }
.case-arrow { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: auto; }

/* Case studies full page — single full card rows */
.case-full-list { display: flex; flex-direction: column; gap: 24px; }
.case-full {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start;
}
.case-full-meta .case-icon { width: 64px; height: 64px; border-radius: 14px; }
.case-full-meta .case-icon svg { width: 32px; height: 32px; }
.case-full-meta h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.3; margin: 16px 0 10px; }
.case-full-tag { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.case-full-body h5 { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; margin-top: 14px; }
.case-full-body h5:first-child { margin-top: 0; }
.case-full-body p { font-size: 14px; color: var(--body); line-height: 1.75; }
.case-full-results { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; padding: 20px; background: var(--bg); border-radius: 12px; }
.case-full-results .case-stat-val { font-size: 20px; }

/* =====================================================
   TEAM ROLES  (About page)
   ===================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.team-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 22px; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.team-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); transform: translateY(-2px); }
.team-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 14px; font-size: 0;
}
.team-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.team-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.team-card p  { font-size: 13px; color: var(--body); line-height: 1.7; }

/* =====================================================
   TRANSITION FEARS  (How Switching Works page)
   ===================================================== */
.fear-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.fear-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px;
}
.fear-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0;
}
.fear-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fear-q { font-weight: 700; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.fear-a { font-size: 13.5px; color: var(--body); line-height: 1.7; }

/* =====================================================
   BLOG  (basic styling)
   ===================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--tint-1), var(--tint-2)); display: flex; align-items: center; justify-content: center; }
.blog-card-img svg { width: 56px; height: 56px; stroke: var(--primary); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.blog-card-body { padding: 22px 22px 24px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-cat { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.blog-card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 13px; color: var(--body); line-height: 1.65; flex-grow: 1; margin-bottom: 14px; }
.blog-card-meta { font-size: 11.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }

/* ── SINGLE POST / ARTICLE ───────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.article-body { min-width: 0; }
.article-content { font-size: 16px; color: var(--body); line-height: 1.85; }
.article-content h2 { font-family: var(--font-head); font-size: clamp(20px,2.5vw,28px); font-weight: 800; color: var(--text); margin: 48px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--tint-2); }
.article-content h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text); margin: 36px 0 10px; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 0 0 20px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content blockquote { border-left: 4px solid var(--primary); margin: 32px 0; padding: 16px 24px; background: var(--tint-1); border-radius: 0 12px 12px 0; font-style: italic; color: var(--text); }
.article-author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-top: 56px; }
.article-nav-link { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; text-decoration: none; transition: border-color .2s; }
.article-nav-link:hover { border-color: var(--primary); }
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-cta { background: linear-gradient(135deg, var(--primary), var(--primary-lt)); border-radius: 18px; padding: 28px 24px; }
.sidebar-related { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-related-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; padding: 10px; border-radius: 10px; transition: background .2s; }
.sidebar-related-item:hover { background: var(--tint-1); }
.sidebar-related-icon { width: 32px; height: 32px; background: var(--tint-1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } }
@media (max-width: 600px) { .article-content h2 { font-size: 20px; } .article-author-box { flex-direction: column; } }

/* ── REPORTING DASHBOARD SECTION ─────────────────────── */
.dash-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.dash-panel { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 28px 28px 24px; box-shadow: var(--shadow-sm); }
.dash-panel-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.dash-panel-title svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; }
.dash-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }
.dash-kpi { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.dash-kpi::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 14px 14px 0 0; }
.dash-kpi.green::after { background: #2a7a5f; }
.dash-kpi.amber::after { background: #c47d1a; }
.dash-kpi.red::after   { background: #c14a4a; }
.dash-kpi-val { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.dash-kpi-lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.dash-kpi-delta { font-size: 11px; font-weight: 700; color: #2a7a5f; background: #e8f3ee; border-radius: 100px; padding: 2px 8px; display: inline-block; margin-top: 8px; }
.dash-kpi-delta.down { color: #c14a4a; background: #fae9e9; }
.dash-bar-row { display: flex; flex-direction: column; gap: 14px; }
.dash-bar-item { display: flex; flex-direction: column; gap: 6px; }
.dash-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--body); }
.dash-bar-label span:last-child { font-weight: 700; color: var(--text); }
.dash-bar-track { height: 8px; background: var(--bg); border-radius: 100px; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 100px; background: var(--primary); transition: width .6s ease; }
.dash-bar-fill.amber { background: #c47d1a; }
.dash-bar-fill.red   { background: #c14a4a; }
.dash-ar-grid { display: flex; gap: 10px; align-items: flex-end; height: 120px; }
.dash-ar-bar { flex: 1; border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; justify-content: center; position: relative; cursor: default; }
.dash-ar-bar span { font-size: 10px; font-weight: 700; color: white; padding-bottom: 6px; }
.dash-ar-labels { display: flex; gap: 10px; margin-top: 8px; }
.dash-ar-labels div { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }
.dash-payer-row { display: flex; flex-direction: column; gap: 10px; }
.dash-payer-item { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.dash-payer-name { width: 110px; flex-shrink: 0; color: var(--body); font-size: 12px; }
.dash-payer-bar-wrap { flex: 1; height: 8px; background: var(--bg); border-radius: 100px; overflow: hidden; }
.dash-payer-rate { width: 48px; text-align: right; font-weight: 700; font-size: 12px; color: var(--text); }
.dash-screen-wrap { background: #0d1117; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,.25); }
.dash-screen-bar { background: #1c2128; padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-screen-body { padding: 24px; }
@media (max-width: 960px) { .dash-wrap { grid-template-columns: 1fr; } .dash-kpi-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .dash-kpi-row { grid-template-columns: repeat(2,1fr); } }

@media (max-width: 960px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .case-grid        { grid-template-columns: 1fr 1fr; }
  .case-full        { grid-template-columns: 1fr; }
  .case-full-results { grid-template-columns: repeat(2,1fr); }
  .team-grid        { grid-template-columns: 1fr 1fr; }
  .fear-grid        { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .case-grid        { grid-template-columns: 1fr; }
  .team-grid        { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr; }
}

/* =====================================================
   CREDENTIALING PAGE — unique sections
   ===================================================== */
.cred-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.cred-timeline::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.cred-step { display: flex; gap: 28px; padding: 28px 0; position: relative; }
.cred-step:last-child { padding-bottom: 0; }
.cred-num { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: white; font-family: var(--font-head); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(8,64,80,.25); }
.cred-body { padding-top: 12px; }
.cred-body h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cred-body p { font-size: 14px; color: var(--body); line-height: 1.7; }
.cred-time { display: inline-flex; align-items: center; gap: 6px; background: var(--tint-1); border: 1px solid var(--tint-2); color: var(--primary); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 100px; margin-right: 6px; vertical-align: middle; }

.payer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.payer-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px; text-align: center; transition: box-shadow .2s, border-color .2s, transform .2s; }
.payer-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-3); transform: translateY(-2px); }
.payer-icon { font-size: 28px; margin-bottom: 8px; }
.payer-card h5 { font-size: 13px; font-weight: 700; color: var(--text); }

.compare-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.compare-col-head { padding: 18px 24px; font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.compare-col-head.bad  { background: #fff5f5; color: #c0392b; border-bottom: 2px solid #f5c6c6; }
.compare-col-head.good { background: var(--tint-1); color: var(--primary); border-bottom: 2px solid var(--tint-3); }
.compare-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--body); }
.compare-row:last-child { border-bottom: none; }
.compare-row .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.cred-process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

@media (max-width: 900px) {
  .payer-grid { grid-template-columns: repeat(2,1fr); }
  .compare-2col { grid-template-columns: 1fr; }
  .cred-process-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .payer-grid { grid-template-columns: repeat(2,1fr); }
}

/* =====================================================
   SPECIALTY LANDING PAGE — CPT TABLE + DENIAL LIST
   ===================================================== */
/* Two-column CPT + Denial side-by-side layout */
.spec-intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .spec-intel-grid { grid-template-columns: 1fr; gap: 48px; } }

.spec-cpt-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); }
.spec-cpt-row { display: grid; grid-template-columns: 220px 1fr; align-items: baseline; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.spec-cpt-row:last-child { border-bottom: none; }
.spec-cpt-code { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--primary); background: var(--tint-1); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.spec-cpt-desc { font-size: 14px; color: var(--body); line-height: 1.6; }

.denial-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.denial-item { display: flex; align-items: flex-start; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.denial-dot { width: 10px; height: 10px; border-radius: 50%; background: #c14a4a; flex-shrink: 0; margin-top: 5px; }
.denial-item p { margin: 0; font-size: 14px; color: var(--body); line-height: 1.6; }

/* Specialties page — featured deep-dive cards */
.spec-featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.spec-featured-card { display: flex; align-items: flex-start; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--text); transition: box-shadow .2s, border-color .2s; }
.spec-featured-card:hover { border-color: var(--primary-lt); box-shadow: 0 4px 20px rgba(8,64,80,.1); }
.spec-featured-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spec-featured-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spec-featured-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.spec-featured-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.spec-featured-card > div { flex: 1; }
.spec-featured-arrow { font-size: 18px; color: var(--primary-lt); align-self: center; flex-shrink: 0; transition: transform .2s; }
.spec-featured-card:hover .spec-featured-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .spec-featured-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .spec-featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .spec-cpt-row { grid-template-columns: 1fr; gap: 6px; }
  .spec-cpt-code { display: inline-block; }
}

/* =====================================================
   WORDPRESS CORE OVERRIDES
   ===================================================== */
.wp-block-image img { max-width: 100%; height: auto; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }

/* Push page content below fixed nav */
.page-content-wrap { padding-top: 0; }

/* Elementor full-width support */
.elementor-section-boxed > .elementor-container { max-width: 1180px; }

/* =====================================================
   ARCHIVE / CATEGORY PAGES
   ===================================================== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.archive-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}
.archive-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.archive-card-img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--tint-1);
}
.archive-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.archive-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.archive-card:hover .archive-card-img img { transform: scale(1.04); }
.archive-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.archive-card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.archive-card-title a {
  color: inherit;
  text-decoration: none;
}
.archive-card-title a:hover { color: var(--primary); }
.archive-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.archive-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s;
}
.archive-card-read:hover { gap: 10px; }
.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.archive-page-item a,
.archive-page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  transition: background .2s, border-color .2s, color .2s;
}
.archive-page-item a:hover { background: var(--tint-1); border-color: var(--primary-lt); }
.archive-page-item .current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
@media (max-width: 960px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .archive-grid { grid-template-columns: 1fr; }
}
