/* ==========================================================================
   STAFFERIN UNIFIED EDITORIAL THEME (Scout Motors + Lando Norris Inspired)
   Consistent Palette, Typography, Split Floating Pill Navbar & Framed Footer
   across every Stafferin public marketing & documentation page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600;700&family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Core Unified Tokens */
  --sc-white: #FFFFFF;
  --sc-offwhite: #F4F4ED;
  --sc-stone: #F3F1EE;
  --sc-sand: #EDE9E8;
  --sc-paper: #F9F8F6;
  --sc-ink: #1C1C1A;
  --sc-ink-deep: #010101;
  --sc-muted: #585856;
  --sc-subtle: #8A8985;
  --sc-orange: #FF5432;
  --sc-orange-dark: #E33E1D;
  --sc-slate: #11232F;
  --sc-border: #DCD7CF;

  --sc-font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sc-font-serif: 'Instrument Serif', Georgia, serif;
  --sc-font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --sc-font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Unify All Legacy Theme CSS Custom Properties Across Subpages */
  --primary: #FF5432;
  --primary-dark: #E33E1D;
  --primary-light: #FF785C;
  --primary-soft: #EDE9E8;
  --secondary: #11232F;
  --secondary-dark: #0B1820;
  --secondary-soft: #F3F1EE;
  --sky: #1C1C1A;
  --dark: #1C1C1A;
  --slate-700: #333330;
  --slate-600: #585856;
  --slate-500: #6E6D69;
  --border: #DCD7CF;
  --bg-soft: #F3F1EE;
  --bg-muted: #EDE9E8;
  --tc-main-color: #1C1C1A;
  --tc-blue: #FF5432;
  --tc-gradient-hover-color: linear-gradient(135deg, #FF5432, #E33E1D);
  --brand: #FF5432;
  --brand-2: #E33E1D;
  --brand-ink: #1C1C1A;
  --brand-soft: #EDE9E8;
  --blue: #FF5432;
  --indigo: #1C1C1A;
  --violet: #FF5432;
  --purple: #FF5432;
  --bd-primary: #FF5432;
  --bd-primary-dark: #E33E1D;
  --bd-primary-soft: #EDE9E8;
  --bd-primary-border: #DCD7CF;
  --bd-slate-900: #1C1C1A;
  --nav-primary: #FF5432;
  --nav-primary-dark: #E33E1D;
  --nav-text: #1C1C1A;
  --nav-border: rgba(28, 28, 26, 0.10);
}

/* ==================== BASE TYPOGRAPHY & SURFACE CONSISTENCY ==================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--sc-white) !important;
  color: var(--sc-ink) !important;
  font-family: var(--sc-font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.hero-title, .section-title, .bd-hero-title, .hero-title-blog {
  font-family: var(--sc-font-display) !important;
  color: var(--sc-ink-deep);
  letter-spacing: -0.03em;
}

a {
  transition: color 0.2s ease;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.sc-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sc-orange);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
}

#progress, #prog {
  background: var(--sc-orange) !important;
  box-shadow: none !important;
}

/* ==================== UNIFIED SPLIT FLOATING PILL NAVBAR ==================== */
.sc-nav-outer,
nav.navbar.sc-nav-outer {
  position: fixed !important;
  top: 16px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  z-index: 1090 !important;
  padding: 0 28px !important;
  pointer-events: none;
  display: block !important;
  transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-nav-outer nav.navbar {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: static !important;
}

.sc-nav-outer.scrolled,
nav.navbar.sc-nav-outer.scrolled {
  top: 10px !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sc-nav-bar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: auto;
}

.sc-nav-primary,
.sc-nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(28, 28, 26, 0.11);
  border-radius: 6px;
  box-shadow: 0 14px 32px -18px rgba(28, 28, 26, 0.24);
}

.sc-nav-primary {
  flex: 1 1 auto;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.sc-nav-primary::before,
.sc-nav-actions::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 2px;
  background: rgba(28, 28, 26, 0.22);
  transform: translateY(-50%);
}

.sc-nav-primary::before { left: 0; }
.sc-nav-actions::after { right: 0; }

.sc-nav-bridge {
  width: 18px;
  height: 3px;
  background: var(--sc-orange);
  flex-shrink: 0;
  margin: 0 -2px;
  z-index: 2;
  border-radius: 1px;
}

.sc-nav-actions {
  flex: 0 0 auto;
  padding: 0 10px 0 18px;
  gap: 10px;
}

.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sc-font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--sc-ink-deep) !important;
  text-decoration: none !important;
}

.sc-brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sc-orange);
  display: inline-block;
  flex-shrink: 0;
}

.sc-nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-nav-links a,
.sc-nav-login {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sc-ink) !important;
  padding: 0.42rem 0.55rem;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.sc-nav-links a:hover,
.sc-nav-links a.active {
  background: var(--sc-sand);
  color: var(--sc-ink-deep) !important;
}

.sc-nav-login:hover {
  color: var(--sc-orange) !important;
}

.sc-nav-toggle {
  width: 38px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(28, 28, 26, 0.10);
  background: var(--sc-stone);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sc-nav-toggle:hover {
  background: var(--sc-ink);
  border-color: var(--sc-ink);
}

.sc-nav-toggle span {
  width: 16px;
  height: 1.6px;
  background: var(--sc-ink);
  transition: background-color 0.2s ease;
}

.sc-nav-toggle:hover span {
  background: #FFFFFF;
}

.sc-drawer {
  max-width: 1280px;
  margin: 8px auto 0;
  background: #FFFFFF;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  box-shadow: 0 28px 60px -22px rgba(28, 28, 26, 0.28);
  padding: 24px 28px;
  display: none;
  pointer-events: auto;
}

.sc-drawer.open {
  display: block;
}

.sc-drawer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.sc-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sc-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sc-font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--sc-ink);
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sc-drawer-list a:hover {
  color: var(--sc-orange);
  border-bottom-color: var(--sc-orange);
}

.sc-drawer-tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--sc-border);
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.sc-drawer-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-drawer-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 16, 0.15) 0%, rgba(16, 18, 16, 0.80) 100%);
}

.sc-drawer-tile > div {
  position: relative;
  z-index: 2;
}

.sc-mono {
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc-orange);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 84, 50, 0.55);
  animation: scPulseDot 2.2s infinite;
}

@keyframes scPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 84, 50, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 84, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 84, 50, 0); }
}

/* ==================== UNIFIED SUBPAGE HERO, BUTTON & SURFACE HARMONIZATION ==================== */
.text-primary { color: var(--sc-orange) !important; }
.bg-primary { background-color: var(--sc-ink) !important; }
.border-primary { border-color: var(--sc-orange) !important; }

.form-control:focus,
.form-select:focus {
  border-color: var(--sc-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 84, 50, 0.14) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--sc-stone) !important;
  color: var(--sc-ink-deep) !important;
  box-shadow: none !important;
}

.sc-layout-main {
  padding-top: 84px;
  min-height: 70vh;
}

/* Force consistent palette across inline-styled AI Summary blocks & legacy style.css elements */
section#summary-2027 {
  background: var(--sc-stone) !important;
  border: 1px solid var(--sc-border) !important;
  border-left: 5px solid var(--sc-orange) !important;
  border-radius: 6px !important;
  color: var(--sc-ink) !important;
}

section#summary-2027 a {
  color: var(--sc-orange) !important;
}

header.hero .btn-ghost,
section.hero .btn-ghost {
  color: var(--sc-ink) !important;
  background: #FFFFFF !important;
  border: 1px solid var(--sc-border) !important;
}

.section-badge,
.icon-container .bi,
.contact .info-box i,
.pricing .btn-buy,
.blog .entry .entry-footer i,
.blog .blog-pagination {
  color: var(--sc-orange) !important;
}

.blog .entry .entry-content .read-more a,
.blog .blog-pagination li.active,
.blog .blog-pagination li:hover,
.contact .php-email-form button[type=submit],
.pricing .btn-buy:hover {
  background: var(--sc-orange) !important;
  border-color: var(--sc-orange) !important;
  color: #FFFFFF !important;
}

.pricing .btn-buy {
  border-color: var(--sc-orange) !important;
}

.info-icon.email,
.info-icon.demo {
  background: var(--sc-sand) !important;
  color: var(--sc-orange) !important;
}

.contact .info-box,
.contact .php-email-form {
  background: var(--sc-stone) !important;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
}

.cta-section,
.cta-band,
section.cta {
  background: var(--sc-slate) !important;
  color: #FFFFFF !important;
}

.back-to-top-btn,
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 84px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--sc-ink) !important;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  z-index: 1050;
}

.back-to-top-btn.visible,
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover,
.back-to-top:hover {
  background: var(--sc-orange) !important;
  transform: translateY(-2px);
}

/* ==================== UNIFIED SUBPAGE HERO, BUTTON & SURFACE HARMONIZATION ==================== */
.pricing-hero,
.blog-hero,
.contact-hero,
section.hero,
header.hero,
.guide-hero,
.bd-page-wrap,
.hero-section {
  background: linear-gradient(180deg, var(--sc-stone) 0%, #FFFFFF 100%) !important;
  color: var(--sc-ink) !important;
  border-bottom: 1px solid var(--sc-border) !important;
  padding-top: 118px !important;
}

header.hero h1,
header.hero p,
header.hero .lede,
header.hero .sub {
  color: var(--sc-ink) !important;
}

header.hero .blob,
.blog-hero .hero-orb,
section.hero .blob {
  display: none !important;
}

.hero-badge,
.section-label,
.eyebrow,
.kick,
.hero-eyebrow,
.blog-hero .hero-eyebrow {
  background: var(--sc-sand) !important;
  border: 1px solid var(--sc-border) !important;
  color: var(--sc-slate) !important;
  font-family: var(--sc-font-mono) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  border-radius: 2px !important;
}

.hero-title span,
.hero-title-blog .gradient-text,
.gt,
.text-gradient {
  background: none !important;
  -webkit-text-fill-color: var(--sc-orange) !important;
  color: var(--sc-orange) !important;
}

.btn-primary,
.btn-hero-primary,
.btn-plan-primary,
.bd-btn-primary,
.cta-btn,
button[type="submit"].btn-primary,
.pricing-cta .btn-primary,
.btn-submit {
  background: var(--sc-orange) !important;
  border-color: var(--sc-orange) !important;
  color: #FFFFFF !important;
  border-radius: 2px !important;
  font-family: var(--sc-font-mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-hero-primary:hover,
.btn-plan-primary:hover,
.bd-btn-primary:hover,
.btn-submit:hover {
  background: var(--sc-ink) !important;
  border-color: var(--sc-ink) !important;
  color: #FFFFFF !important;
}

.btn-hero-secondary,
.btn-outline-primary {
  border-color: var(--sc-border) !important;
  color: var(--sc-ink) !important;
  border-radius: 2px !important;
  font-family: var(--sc-font-mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-hero-secondary:hover,
.btn-outline-primary:hover {
  background: var(--sc-ink) !important;
  border-color: var(--sc-ink) !important;
  color: #FFFFFF !important;
}

.currency-btn.active {
  background: var(--sc-ink) !important;
  color: #FFFFFF !important;
}

.plan-card.recommended,
.bd-booking-shell,
.calc-panel,
.feature-box:hover {
  border-color: var(--sc-ink) !important;
}

.step .n,
.flow-card .n,
.bd-step-dot.active {
  background: var(--sc-orange) !important;
  border-color: var(--sc-orange) !important;
  color: #FFFFFF !important;
}

.bd-hero-title span {
  color: var(--sc-orange) !important;
}

/* Range sliders & checkboxes */
input[type="range"] {
  accent-color: var(--sc-orange);
}

/* ==================== UNIFIED FRAMED TRAVERTINE/OAK FOOTER ==================== */
footer.sc-footer-frame {
  padding: 28px !important;
  background-color: #DCD4C8 !important;
  background-image: url('/assets/img/editorial/footer-trim.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  color: var(--sc-ink) !important;
  border: 0 !important;
  margin-top: 0 !important;
}

.sc-footer-card {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--sc-white);
  border-radius: 6px;
  padding: 44px 42px 30px;
  box-shadow: 0 28px 60px -24px rgba(28, 28, 26, 0.28);
}

.sc-footer-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--sc-border);
}

.sc-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
}

.sc-footer-nav a {
  font-family: var(--sc-font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--sc-ink);
  text-decoration: none;
}

.sc-footer-nav a:hover {
  color: var(--sc-orange);
}

.sc-footer-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  padding-top: 28px;
  align-items: end;
}

.sc-footer-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sc-footer-tile {
  display: block;
  text-decoration: none;
  color: var(--sc-ink);
}

.sc-footer-tile-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.sc-footer-tile-head strong {
  font-family: var(--sc-font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.sc-footer-tile-img {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--sc-border);
}

.sc-footer-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-footer-cta-block h3 {
  font-family: var(--sc-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.sc-footer-wide-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--sc-sand);
  color: var(--sc-ink) !important;
  font-family: var(--sc-font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.sc-footer-wide-btn:hover {
  background: var(--sc-orange);
  color: #FFFFFF !important;
}

.sc-footer-meta {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--sc-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--sc-muted);
}

.sc-footer-socials {
  display: flex;
  gap: 8px;
}

.sc-footer-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--sc-border);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-ink);
  text-decoration: none;
}

.sc-footer-socials a:hover {
  background: var(--sc-ink);
  border-color: var(--sc-ink);
  color: #FFFFFF;
}

/* ==================== RESPONSIVE UNIFIED CHROME ==================== */
@media (max-width: 960px) {
  .sc-nav-links {
    display: none;
  }
  .sc-nav-outer,
  nav.navbar.sc-nav-outer {
    padding: 0 12px !important;
  }
  .sc-drawer-grid,
  .sc-footer-top,
  .sc-footer-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sc-footer-tiles,
  .sc-footer-nav {
    grid-template-columns: 1fr;
  }
  footer.sc-footer-frame {
    padding: 14px !important;
  }
  .sc-footer-card {
    padding: 26px 20px;
  }
}
