/* ==========================================================================
   HUBCREW TALENT SOLUTIONS - DESIGN SYSTEM & STYLESHEET
   Signature Brand Palette: Crisp White Base (#FFFFFF) & Cobalt Blue (#0047AB)
   Typography: Fraunces (Headings/Brand), Inter (Body/UI)
   ========================================================================== */

:root {
  /* Box Sizing & Mobile Safe Area */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  /* Signature White & Cobalt Blue Palette */
  --bg: #FFFFFF;                      /* Pure crisp white base */
  --bg-subtle: #F6F8FC;               /* Clean soft icy-slate tint for alternating surfaces */
  --card: #FFFFFF;                    /* Crisp white cards */
  --card-hover: #FFFFFF;
  --ink: #0B132B;                     /* Deep midnight ink for razor-sharp typography */
  --ink-secondary: #2C3E55;           /* Rich readable slate text */
  --mut: #50607A;                     /* Muted slate for secondary labels and hints */
  --mut-light: #7E8DA4;               /* Light slate */
  
  /* Vibrant Cobalt Blue System */
  --cobalt: #0047AB;                  /* Official Cobalt Blue */
  --cobalt-hover: #003688;            /* Deep Cobalt Hover */
  --cobalt-light: rgba(0, 71, 171, 0.08); /* Subtle Cobalt tint for highlights & hover */
  --cobalt-border: rgba(0, 71, 171, 0.22);/* Soft Cobalt border */
  --cobalt-glow: 0 6px 20px rgba(0, 71, 171, 0.25);
  
  /* Compatibility aliases mapping to Cobalt Blue */
  --gold: var(--cobalt);
  --gold-hover: var(--cobalt-hover);
  --gold-light: var(--cobalt-light);
  --gold-border: var(--cobalt-border);
  --goldt: var(--cobalt);

  /* Crisp Modern Borders & Dividers */
  --line: #E2E8F0;
  --line-light: #F1F5F9;

  /* Header & Contrast Surfaces */
  --header-bg: rgba(255, 255, 255, 0.96);
  --navy: #0B132B;                    /* Deep contrast midnight navy for hero band & footer */
  --navy-light: #121D38;
  --onnavy: #FFFFFF;
  --onnavy-mut: #94A3B8;

  /* Status & Accents */
  --badge-live-bg: var(--cobalt);
  --badge-live-text: #FFFFFF;
  --badge-next-bg: rgba(0, 71, 171, 0.1);
  --badge-next-text: var(--cobalt);
  --success: #10B981;
  --success-bg: #ECFDF5;

  /* Elevation Shadows tuned for crisp white backgrounds */
  --shadow-sm: 0 2px 8px rgba(11, 19, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 19, 43, 0.06);
  --shadow-lg: 0 20px 48px rgba(11, 19, 43, 0.09);
  --shadow-cobalt: 0 6px 20px rgba(0, 71, 171, 0.25);
  --shadow-gold: var(--shadow-cobalt);

  /* Radii & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --tr-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-normal: 0.26s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--tr-normal), color var(--tr-normal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.3rem, 5.8vw, 3.8rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
  color: var(--ink-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr-fast), opacity var(--tr-fast);
}

ul {
  padding-left: 1.25em;
  margin: 0.6em 0;
}

li {
  margin: 0.35em 0;
  color: var(--ink-secondary);
}

/* Focus Outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.w {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main {
  flex: 1;
}

/* Page View Visibility */
.pg {
  display: none;
  padding-bottom: 72px;
  animation: fadeIn 0.28s ease-out;
}

.pg.on {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--tr-normal), border-color var(--tr-normal);
}

header .w {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 16px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.logo-mark-img {
  height: 40px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--tr-fast);
}

.logo:hover .logo-mark-img {
  transform: scale(1.04);
}

.logo-mark-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--ink);
  transition: transform var(--tr-fast);
}

.logo:hover .logo-mark-svg {
  transform: scale(1.05);
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-brandname {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.48rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cobalt);
}

.logo-accent {
  color: var(--cobalt);
}

.logo-tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: var(--mut);
  margin-top: 3px;
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-logo-lockup h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.footer-tagline-motto {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  margin: 2px 0 10px;
  font-style: italic;
}

/* Nav Menu */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mut);
  transition: all var(--tr-fast);
  position: relative;
}

nav a:hover {
  color: var(--cobalt);
  background: var(--cobalt-light);
}

nav a[aria-current="page"] {
  color: var(--cobalt);
  font-weight: 600;
}

nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--cobalt);
  border-radius: 2px;
}

/* Nav Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  padding: 10px 14px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.mobile-nav-drawer a[aria-current="page"] {
  background: var(--cobalt-light);
  color: var(--cobalt);
  font-weight: 600;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cobalt);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cobalt);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.btn:hover {
  background: var(--cobalt-hover);
  border-color: var(--cobalt-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cobalt);
}

.btn:active {
  transform: translateY(0);
}

.btn.o {
  background: #FFFFFF;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt);
  box-shadow: none;
}

.btn.o:hover {
  border-color: var(--cobalt);
  color: var(--cobalt-hover);
  background: var(--cobalt-light);
}

.btn.sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ==========================================================================
   Hero & Sections
   ========================================================================== */
.hero {
  padding: 64px 0 36px;
}

.hero p {
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--mut);
  margin-top: 14px;
  max-width: 66ch;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--goldt);
  margin-bottom: 14px;
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.sec {
  padding: 52px 0;
}

.sec-title-wrap {
  margin-bottom: 28px;
}

.sec-title-wrap p {
  color: var(--mut);
  margin-top: 6px;
  font-size: 1.05rem;
}

/* Grid & Cards */
.g {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.c {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
  display: flex;
  flex-direction: column;
}

.c:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.c h3 {
  margin-bottom: 0.4em;
  color: var(--ink);
}

.c p {
  color: var(--mut);
  margin: 0 0 0.8em;
  font-size: 0.95rem;
  line-height: 1.55;
}

.c p:last-child {
  margin-bottom: 0;
}

/* Card Header with Badges */
.c-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink);
}

.c-meta b {
  color: var(--ink);
}

/* Dark Band / Corridor Callout */
/* Dark Band / Corridor Callout */
.band {
  background: linear-gradient(135deg, #071530 0%, #003688 100%);
  color: #FFFFFF;
  padding: 56px 0;
  border-radius: var(--radius-lg);
  margin: 48px 0 16px;
  border: 1px solid rgba(0, 71, 171, 0.35);
  box-shadow: var(--shadow-md);
}

.band h2 {
  color: #FFFFFF;
}

.band p {
  color: #FFFFFF;
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 60ch;
}

.band .btn {
  background: #FFFFFF;
  color: var(--cobalt);
  border-color: #FFFFFF;
}

.band .btn:hover {
  background: #F0F4FA;
  color: var(--cobalt-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.band-corridors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.band-corridor-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Badges & Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.tag.n {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
}

.tag.live {
  background: var(--badge-live-bg);
  color: var(--badge-live-text);
  border-color: var(--badge-live-bg);
}

/* ==========================================================================
   Interactive Lifecycle Picker
   ========================================================================== */
.lc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin: 32px 0 16px;
  position: relative;
  overflow: hidden;
}

.lc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0047AB, #2563EB);
}

.lc-header {
  margin-bottom: 18px;
}

.lc-header h2 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.lc-header p {
  color: var(--mut);
  margin: 0;
  font-size: 0.98rem;
}

/* The 6-Stage Grid Track */
.trk {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 22px 0 16px;
}

.trk-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  cursor: pointer;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: all var(--tr-fast);
  position: relative;
}

.trk-btn:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  transform: translateY(-2px);
}

.trk-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mut);
  opacity: 0.7;
}

.trk-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

/* In-range selected stages */
.trk-btn.in {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
}

.trk-btn.in .trk-num {
  color: #BFDBFE;
  opacity: 1;
}

/* Start / End Boundary Indicators */
.trk-btn.start-stage,
.trk-btn.end {
  box-shadow: inset 0 -4px #1D4ED8, 0 4px 14px rgba(0, 71, 171, 0.35);
}

/* Scope Output Card */
.out {
  background: var(--bg-subtle);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 18px;
  transition: background var(--tr-normal);
}

.out-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.out-detail {
  font-size: 0.92rem;
  color: var(--mut);
}

.out-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--cobalt-light);
  color: var(--cobalt);
  margin-right: 8px;
}

/* ==========================================================================
   Tables & Comparisons
   ========================================================================== */
.sc {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--card);
  margin-top: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  background: var(--cobalt);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--cobalt-light);
}

/* Highlighted Row for Hubcrew */
tr.hb td {
  background: rgba(0, 71, 171, 0.08) !important;
  font-weight: 600;
  color: var(--ink);
  border-top: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
}

tr.hb td:first-child {
  position: relative;
  font-weight: 700;
  color: var(--cobalt);
}

/* ==========================================================================
   Stages Step List ("How We Work")
   ========================================================================== */
.st {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.st:first-child {
  padding-top: 8px;
}

.st:last-child {
  border-bottom: none;
}

.st i {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold);
  grid-row: span 2;
  font-style: normal;
  line-height: 1;
}

.st h3 {
  margin: 0;
  font-size: 1.25rem;
}

.st p {
  margin: 0;
  color: var(--mut);
  font-size: 0.98rem;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 16px 0 6px;
  color: var(--ink);
}

label:first-child {
  margin-top: 0;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.note {
  background: var(--card);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--mut);
  margin-bottom: 24px;
}

.contact-aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-aside-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.contact-aside-card p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-size: 0.92rem;
}

.contact-meta-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

#ok {
  min-height: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--navy);
  color: var(--onnavy);
  padding: 48px 0 36px;
  font-size: 0.92rem;
  border-top: 2px solid var(--cobalt);
  margin-top: auto;
}

footer .w {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 420px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--onnavy);
  margin: 0 0 6px;
}

.footer-brand p {
  color: var(--onnavy-mut);
  font-size: 0.88rem;
  margin: 4px 0;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--onnavy-mut);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--tr-fast);
}

.footer-nav a:hover {
  color: #60A5FA;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--onnavy-mut);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .w {
    min-height: 60px;
  }
  
  nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .trk {
    grid-template-columns: repeat(3, 1fr);
  }

  .trk-btn {
    min-height: 70px;
  }

  .lc {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .trk {
    grid-template-columns: repeat(2, 1fr);
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
