/* ===========================
   Pemberton Data Solutions
   Professional B2B Consulting Site
   Phase 3 Rebuild
   =========================== */

/* --- Self-hosted Google Fonts (latin only) --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: optional;
  src: url(../fonts/opensans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: optional;
  src: url(../fonts/opensans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: optional;
  src: url(../fonts/opensans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: optional;
  src: url(../fonts/opensans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Custom Properties --- */
:root {
  --navy: #004E89;
  --navy-dark: #003461;
  --navy-darker: #00243F;
  --blue-accent: #2A6CB6;
  --blue-light: #E8F1FB;
  --blue-pale: #F3F8FD;
  --orange: #E07B2E;
  --orange-hover: #C86A22;
  --orange-light: #FEF3E8;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --success: #059669;
  --success-light: #D1FAE5;
  --danger: #DC2626;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.text-center { text-align: center; }

/* --- Content Blocks (replaces inline styles) --- */
.content-block {
  max-width: 720px;
  margin: 0 auto;
}
.content-block p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.content-block p:last-child { margin-bottom: 0; }

.content-note {
  text-align: center;
  color: var(--gray-600);
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.content-disclaimer {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.centered-cta {
  text-align: center;
  margin-top: 2rem;
}
.centered-cta p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.ai-callout {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
}
.ai-callout p {
  margin: 0;
  color: var(--gray-700);
}
.ai-callout strong {
  color: var(--navy);
}

.tier-section-heading { margin-top: 1.5rem; }

.page-header-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(224,123,46,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* --- Top Bar --- */
.top-bar {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--white); }

/* --- Header / Nav --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo:hover { opacity: 0.9; }

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-img-mobile {
  height: 36px;
  width: auto;
  display: none;
}

.footer-logo-img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-700);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active { color: var(--navy); }

.nav-cta {
  padding: 0.55rem 1.25rem !important;
}
.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(224,123,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-secondary-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 580px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,108,182,0.15) 0%, rgba(224,123,46,0.1) 50%, rgba(42,108,182,0.15) 100%);
  background-size: 200% 200%;
  animation: heroShimmer 6s ease infinite;
}
@keyframes heroShimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.placeholder-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.hero-dashboard-preview {
  width: 100%;
  border-radius: 6px;
  filter: blur(3.4px) brightness(0.75);
  -webkit-filter: blur(3.4px) brightness(0.75);
  pointer-events: none;
  user-select: none;
}
.placeholder-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.4;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--blue-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy);
  font-weight: 800;
}
.stat-item span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--gray-50);
}

/* --- Value Proposition Grid (Homepage) --- */
.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  border-top: 3px solid var(--orange);
  transition: all var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.value-card-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-light);
  border-radius: 12px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.value-card h3 { margin-bottom: 0.75rem; }
.value-card p { color: var(--gray-600); font-size: 0.95rem; }

/* --- Services Overview (Homepage) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.service-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card .btn { width: 100%; justify-content: center; }

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(224,123,46,0.3);
}

.process-step h3 { margin-bottom: 0.5rem; }
.process-step .step-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--orange);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.process-step p { color: var(--gray-600); font-size: 0.95rem; }

/* --- Manufacturing Focus Grid --- */
.mfg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mfg-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.mfg-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mfg-card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.mfg-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.mfg-card p { font-size: 0.85rem; color: var(--gray-500); }

/* --- Who We Serve --- */
.serve-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.serve-box {
  padding: 2rem;
  border-radius: var(--radius);
}
.serve-box.primary-focus {
  background: var(--blue-light);
  border: 1px solid var(--blue-accent);
}
.serve-box.also-serve {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.serve-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.serve-box ul {
  list-style: none;
}
.serve-box ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.95rem;
}
.serve-box.primary-focus ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}
.serve-box.also-serve ul li::before {
  content: '\2022';
  position: absolute;
  left: 0.25rem;
  color: var(--gray-500);
}

/* --- Social Proof / Results --- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--orange);
}
.result-card .result-stat {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.result-card .result-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.result-card .result-type {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-style: italic;
}

/* --- Remote Work Section --- */
.remote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.remote-section .remote-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-secondary-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
}

/* --- Services Page: Tier Details --- */
.tier-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.tier-card.featured-tier {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-md);
}

.tier-header h3 { margin-bottom: 0.5rem; }
.tier-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.tier-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.tier-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.tier-meta {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}
.tier-meta strong { color: var(--navy); }
.tier-header .btn { margin-top: 0.5rem; }

.tier-includes h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.includes-list li {
  padding: 0.45rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.93rem;
}
.includes-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* --- Stacked tier layout (Tier 1 & 2) --- */
.tier-card.tier-card-stacked {
  grid-template-columns: 1fr 2fr;
}
.tier-card.tier-card-stacked .tier-includes {
  position: sticky;
  top: 6rem;
  align-self: start;
}

/* --- Tier 3 Sub-tiers (Bronze/Silver/Gold) --- */
.subtier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.subtier-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.subtier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.subtier-card.popular {
  border: 2px solid var(--orange);
  position: relative;
}
.subtier-card.popular::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.subtier-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.subtier-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.subtier-hours {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.subtier-features {
  text-align: left;
}
.subtier-features li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.88rem;
}
.subtier-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- Training Add-Ons --- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.training-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
}
.training-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.training-card .training-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.training-card p {
  color: var(--gray-600);
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
}
.training-card .training-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}

/* --- Standalone & Add-On Services --- */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 700px;
}
.comparison-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
}
.comparison-table thead th:first-child {
  text-align: left;
}
.comparison-table tbody td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-700);
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--gray-800);
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover {
  background: var(--gray-50);
}
.comparison-table .highlight-col {
  background: var(--orange-light);
}
.comparison-table thead th.highlight-col {
  background: var(--orange);
  color: var(--white);
}

/* --- Working Outside Manufacturing --- */
.outside-mfg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.outside-mfg-list ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.95rem;
}
.outside-mfg-list ul li::before {
  content: '\2022';
  position: absolute;
  left: 0.25rem;
  color: var(--orange);
  font-weight: 700;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--navy); }

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--orange);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-text h2 { margin-bottom: 1rem; }
.about-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.about-text p strong { color: var(--gray-800); }
.about-text ul {
  margin-bottom: 1rem;
}
.about-text ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
}
.about-text ul li::before {
  content: '\2022';
  position: absolute;
  left: 0.25rem;
  color: var(--orange);
  font-weight: 700;
}

/* --- Differentiators Grid --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.diff-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  transition: all var(--transition);
}
.diff-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.diff-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.diff-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* --- Credentials --- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.credential-box {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.credential-box h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.credential-box ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.93rem;
}
.credential-box ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* --- Certification Badge Card (About page, under headshot) --- */
.cert-badge-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--blue-pale);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  overflow: hidden;
  max-height: 64px;
}
.cert-badge-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
}
.cert-badge-img {
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px;
  max-height: 40px;
}
.cert-badge-text {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.3;
  font-family: var(--font-heading);
}
.cert-badge-text strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
}

/* --- Microsoft Certified stat item (homepage stats bar) --- */
.stat-item-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cert-stat-badge {
  margin-bottom: 0.25rem;
}
.stat-item-cert span {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.form-group .required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group .error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.3rem;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
}
.form-group.has-error .error-msg { display: block; }

.form-success {
  display: none;
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--success);
  font-weight: 600;
}
.form-success.visible { display: block; }

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.sidebar-card p,
.sidebar-card a {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.sidebar-card a { color: var(--blue-accent); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.contact-detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-serve-list {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.footer-serve-list strong {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5rem;
}
.footer-serve-list span {
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Page Header (interior pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* --- Services Section Jump Nav --- */
.section-jump-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 72px; /* below sticky header (header-inner height) */
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.section-jump-nav .container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.section-jump-nav .container::-webkit-scrollbar { display: none; }
.section-jump-nav a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: var(--transition);
}
.section-jump-nav a:hover {
  color: var(--navy);
  background: var(--blue-light);
}
.section-jump-nav a.active {
  color: var(--white);
  background: var(--navy);
}

/* --- LinkedIn icon in footer --- */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: var(--transition);
}
.footer-social-link:hover { color: var(--white); }
.footer-social-link svg { flex-shrink: 0; }

/* --- ROI Calculator --- */
.calculator-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
}
.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--orange);
}

.calc-result {
  background: var(--orange-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result .result-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}
.calc-result .result-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}
.calc-result .result-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 0;
}
.legal-content ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
  line-height: 1.7;
}
.legal-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 0.25rem;
  color: var(--gray-400);
}
.legal-content a {
  color: var(--blue-accent);
}

/* --- Case Studies Hub Page --- */
.cs-hub-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cs-hub-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(224,123,46,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cs-hub-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cs-hub-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cs-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cs-filter-bar .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cs-filter-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-right: 0.25rem;
}
.cs-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.cs-filter-btn:hover {
  color: var(--navy);
  background: var(--blue-light);
  border-color: var(--blue-accent);
}
.cs-filter-btn.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.cs-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.cs-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}
.cs-card-body {
  padding: 2rem 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-card-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-accent);
  background: var(--blue-light);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.cs-card-logo {
  height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.cs-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.cs-card-metric {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}
.cs-card-metric-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.cs-card-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition), color var(--transition);
}
.cs-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cs-card-link:hover {
  color: var(--orange-hover);
  gap: 0.65rem;
}
.cs-card-link svg {
  transition: transform var(--transition);
}

/* --- Individual Case Study Page --- */
.cs-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(224,123,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cs-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cs-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.cs-hero .btn {
  margin-top: 0.5rem;
}

.cs-snapshot {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.cs-snapshot-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.cs-snapshot-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.cs-snapshot-row:last-of-type {
  border-bottom: none;
}
.cs-snapshot-label {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.cs-snapshot-value {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}
.cs-snapshot-metrics {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.cs-snapshot-metric-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.2;
}
.cs-snapshot-metric-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
}

/* Case Study Body Sections */
.cs-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cs-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.cs-section:last-child {
  border-bottom: none;
}
.cs-section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.cs-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
}
.cs-section p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.cs-section p:last-child {
  margin-bottom: 0;
}
.cs-section .cs-source-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}

/* Key Stat Callout */
.cs-callout {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}
.cs-callout-stat {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.cs-callout-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* KPI Metrics Row */
.cs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.cs-kpi-item {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  border-top: 3px solid var(--orange);
}
.cs-kpi-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.cs-kpi-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Screenshot Placeholder */
.cs-screenshot-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cs-screenshot-placeholder p {
  color: var(--gray-500);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* Case Study Bottom CTA */
.cs-bottom-cta {
  background: var(--orange);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cs-bottom-cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cs-bottom-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cs-bottom-cta .btn {
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
}
.cs-bottom-cta .btn:hover {
  background: var(--gray-100);
  color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Case Study Disclaimer */
.cs-disclaimer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* --- Dashboard Image Lightbox --- */
.cs-lightbox-img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.cs-lightbox-img:hover {
  opacity: 0.9;
}
.cs-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cs-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cs-lightbox-overlay img {
  max-width: 95%;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.cs-lightbox-caption {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-align: center;
  max-width: 80%;
  pointer-events: none;
}
.cs-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.cs-lightbox-close:hover {
  opacity: 1;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .value-prop-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .process-grid::before { display: none; }
  .mfg-grid { grid-template-columns: repeat(2, 1fr); }
  .serve-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .remote-section { grid-template-columns: 1fr; }
  .tier-card { grid-template-columns: 1fr; }
  .tier-card.tier-card-stacked { grid-template-columns: 1fr; }
  .subtier-grid { grid-template-columns: 1fr; max-width: 400px; margin: 2rem auto 0; }
  .training-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .addon-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .outside-mfg { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; }
  .diff-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cs-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .cs-hero-inner { grid-template-columns: 1fr; }
  .cs-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; }
  .nav-links .btn { margin-top: 0.5rem; }

  .mobile-toggle { display: block; }

  .logo-img { display: none; }
  .logo-img-mobile { display: block; }
  .footer-logo-img { display: block; height: 28px; }

  .hero { padding: 3rem 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section { padding: 3rem 0; }
  .mfg-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .calc-form { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .section-jump-nav { top: 72px; }
  .section-jump-nav a { font-size: 0.72rem; padding: 0.35rem 0.65rem; }

  .cs-hub-hero { padding: 3rem 0 2.5rem; }
  .cs-filter-bar { top: 72px; }
  .cs-hero { padding: 2.5rem 0; }
  .cs-snapshot-metrics { grid-template-columns: 1fr; gap: 0.75rem; }
  .cs-kpi-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cs-callout { padding: 1.5rem; }
  .cs-section { padding: 2.5rem 0; }
}
