/* ============================================================
   BY Recruiting — Design System
   ============================================================ */

/* --- Variables --- */
:root {
  --brand-primary: #1B2A4A;
  --brand-dark: #0F1A2E;
  --brand-accent: #3B6DD6;
  --brand-accent-hover: #2D5ABF;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0F1A2E;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --success: #059669;
  --error: #dc2626;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-primary);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

/* Orphan and widow control */
p, li, blockquote, figcaption, .section-sub, .page-hero-sub {
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

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

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section.bg-light { background: var(--bg-light); }
.section.bg-dark { background: var(--bg-dark); color: #fff; }

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-title.light { color: #fff; }

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-sub.light { color: rgba(255,255,255,0.7); }

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--bg-light);
  color: var(--brand-accent);
}

.nav-link.active {
  color: var(--brand-accent);
}

.btn-nav {
  background: var(--brand-primary);
  color: #fff !important;
  margin-left: 0.5rem;
}

.btn-nav:hover {
  background: var(--brand-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-primary);
  position: relative;
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-primary);
  position: absolute;
  transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- Hero --- */
.hero {
  background: var(--brand-primary);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-title {
  color: #fff;
  font-size: 3.25rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Page Hero */
.page-hero {
  background: var(--brand-primary);
  color: #fff;
  padding: 4rem 0 3rem;
}

.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero-sub { color: rgba(255,255,255,0.75); font-size: 1.15rem; }
.page-hero-sm { padding: 3rem 0 2rem; }

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.back-link:hover { color: #fff; }
.back-link-light { color: rgba(255,255,255,0.8); }
.back-link-light:hover { color: #fff; }

/* Hero with background image */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 42, 74, 0.88), rgba(27, 42, 74, 0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Page Hero with background image */
.page-hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0 4rem;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 42, 74, 0.85), rgba(27, 42, 74, 0.72));
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}
.btn-primary:hover {
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline:hover {
  background: var(--brand-primary);
  color: #fff;
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.bg-dark .btn-primary { background: var(--brand-accent); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--brand-accent);
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.75rem; }

.industry-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--brand-accent);
  transition: box-shadow var(--transition);
}

.industry-card:hover { box-shadow: var(--shadow-md); }
.industry-card h3 { margin-bottom: 0.5rem; }
.industry-card p { color: var(--text-secondary); margin-bottom: 0; }

/* --- Process Steps (Home mini) --- */
.process-steps-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.process-step-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-name {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Process Steps (Full page) --- */
.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
}

.process-step:last-child { margin-bottom: 0; }

.process-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.process-step-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* --- Service Blocks --- */
.service-block {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-roles {
  margin-top: 1.5rem;
}

.service-roles h4 {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.service-roles ul {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding-left: 0;
}

.service-roles li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-roles li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  position: absolute;
  left: 0;
  top: 0.7rem;
}

/* --- Industry Image Cards --- */
.industry-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.2);
  color: #fff;
}

.industry-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 74, 0.9) 0%, rgba(27, 42, 74, 0.3) 50%, rgba(27, 42, 74, 0.1) 100%);
  transition: background 0.3s ease;
}

.industry-image-card:hover .industry-image-overlay {
  background: linear-gradient(to top, rgba(27, 42, 74, 0.95) 0%, rgba(27, 42, 74, 0.4) 50%, rgba(27, 42, 74, 0.15) 100%);
}

.industry-image-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
}

.industry-image-content h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.industry-image-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.industry-image-link {
  color: var(--brand-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.industry-image-card:hover .industry-image-link {
  opacity: 1;
  transform: translateY(0);
}

/* Home page smaller variant */
.industry-image-card-sm {
  min-height: 200px;
}

.industry-image-card-sm .industry-image-content {
  padding: 1.25rem;
}

.industry-image-card-sm .industry-image-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* --- Industry Detail Page --- */
.industry-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.industry-detail-main h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.industry-detail-main h2:first-child {
  margin-top: 0;
}

.industry-detail-main p {
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.role-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}

.industry-cta-block {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.industry-cta-block h3 {
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
}

.industry-cta-block p {
  margin-bottom: 1.25rem;
}

.industry-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sidebar-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-card h4 {
  color: var(--brand-primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.sidebar-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.sidebar-industries {
  background: transparent;
  border: none;
  padding: 0;
}

.sidebar-industry-link {
  display: block;
  padding: 0.4rem 0;
  color: var(--brand-accent);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-industry-link:last-child {
  border-bottom: none;
}

.sidebar-industry-link:hover {
  color: var(--brand-primary);
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  letter-spacing: 2px;
}

.team-photo-placeholder.team-photo-sm {
  width: 100px;
  height: 100px;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.team-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: 1rem;
  color: var(--brand-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}

/* --- Differentiators (home page) --- */
.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.diff-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-light);
}

.diff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.diff-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* --- Expand/Collapse (details/summary) --- */
.expand-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.expand-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-accent);
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.expand-details summary::-webkit-details-marker { display: none; }

.expand-details summary::before {
  content: '+';
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.expand-details[open] summary::before {
  content: '\2212';
}

.expand-details summary:hover {
  color: var(--brand-primary);
}

.expand-content {
  padding-top: 0.75rem;
  animation: expandFade 0.25s ease;
}

.expand-content h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.expand-content h4:first-child {
  margin-top: 0;
}

.expand-content ul {
  padding-left: 1.25rem;
  margin: 0;
}

.expand-content ul li {
  font-size: 0.9rem;
  padding: 0.2rem 0;
  color: var(--text-secondary);
}

@keyframes expandFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Service Card --- */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex-grow: 1;
}

/* --- Feature List --- */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-detail {
  margin-top: 1.5rem;
}

.contact-detail h4 {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.contact-detail p { margin-bottom: 0; }

/* --- Contact Tabs --- */
.contact-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.contact-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-align: center;
}

.contact-tab:hover {
  color: var(--brand-primary);
}

.contact-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-accent);
}

.contact-panel {
  display: none;
}

.contact-panel.active {
  display: block;
}

.contact-panel-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.contact-panel-inner h2 {
  margin-bottom: 0.75rem;
}

.contact-panel-inner > p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-panel-inner .form {
  text-align: left;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.required { color: var(--error); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(59,109,214,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Select Dropdown --- */
.form-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(59,109,214,0.1);
}

/* --- File Upload Zone --- */
.file-upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--brand-accent);
  background: rgba(59,109,214,0.03);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.file-upload-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.file-upload-link {
  color: var(--brand-accent);
  font-weight: 600;
}

.file-upload-hint {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.file-upload-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.file-name {
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.file-remove:hover { color: var(--error); }

/* --- Engagement Card --- */
.engagement-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.engagement-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.engagement-item:last-child { border-bottom: none; }

.engagement-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.engagement-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.engagement-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Alerts --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

/* --- Success Panel --- */
.success-panel {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8fafb;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.success-panel .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  line-height: 1;
}

.success-panel h2,
.success-panel h3 {
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
}

.success-panel .success-message {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.success-panel .success-next-steps {
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.success-panel .success-next-steps h4 {
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.success-panel .success-next-steps ol {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 0;
}

.success-panel .success-next-steps ol li {
  counter-increment: steps;
  padding: 0.5rem 0 0.5rem 2.25rem;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.success-panel .success-next-steps ol li + li {
  border-top: 1px solid #f1f5f9;
}

.success-panel .success-next-steps ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-panel .success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.success-panel-compact {
  padding: 2rem 1.25rem;
}

.success-panel-compact .success-icon {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.success-panel-compact .success-message {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --- Job Cards --- */
.jobs-list {
  display: grid;
  gap: 1rem;
}

/* --- Careers Layout --- */
.careers-layout {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.careers-filters {
  position: sticky;
  top: 100px;
}

.filter-heading {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--bg-white);
  color: var(--text-primary);
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--brand-accent);
}

.filter-clear {
  width: 100%;
  margin-top: 0.5rem;
}

.jobs-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 0;
}

.careers-sidebar {
  position: sticky;
  top: 100px;
}

.careers-cta-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.careers-cta-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.careers-cta-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.job-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.job-card-title {
  font-size: 1.2rem;
  color: var(--brand-primary);
  margin-bottom: 0;
}

.job-card-type {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-accent);
  background: rgba(59,109,214,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.job-card-company {
  font-weight: 600;
  color: var(--brand-primary);
}

.job-card-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.job-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Job Detail --- */
.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.job-meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.job-meta-item {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.job-section {
  margin-bottom: 2rem;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
}

.job-body {
  line-height: 1.7;
}

.job-body ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.job-body ul li {
  padding: 0.25rem 0;
  line-height: 1.6;
}

.job-body p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.apply-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 96px;
}

.apply-card h3 { margin-bottom: 1.5rem; }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state h2 { margin-bottom: 1rem; }
.empty-state p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* --- Legal Content --- */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

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

.footer-tagline {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
  padding: 0 !important;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  display: inline !important;
  padding: 0 !important;
}

.footer-contact-item span {
  line-height: 1.4;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--brand-accent);
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  left: -0.5rem;
  font-size: 3rem;
  color: var(--brand-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.15rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Service Model Cards --- */
.service-model {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.service-model:hover {
  box-shadow: var(--shadow-md);
}

.service-model h3 {
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.service-best-for {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.service-best-for h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.service-best-for ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.service-best-for li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-best-for li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- Resume CTA --- */
.resume-cta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.resume-cta h3 {
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.resume-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* --- Industry Tags --- */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.industry-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(59, 109, 214, 0.08);
  color: var(--brand-accent);
  border: 1px solid rgba(59, 109, 214, 0.2);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}

.industry-tag:hover {
  background: rgba(59, 109, 214, 0.15);
  border-color: var(--brand-accent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .industry-image-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .job-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 0.75rem 0; }
  .btn-nav { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  /* Hero */
  .hero { padding: 4rem 0 3rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-value { font-size: 1.35rem; }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-photo-placeholder.team-photo-sm { width: 80px; height: 80px; font-size: 1.25rem; }
  .industry-image-grid { grid-template-columns: 1fr; }
  .industry-image-card { min-height: 220px; }
  .industry-image-card-sm { min-height: 180px; }
  .industry-detail-grid { grid-template-columns: 1fr; }
  .industry-cta-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .service-roles ul { columns: 1; }
  .form-row { grid-template-columns: 1fr; }

  .careers-layout { grid-template-columns: 1fr; }
  .careers-filters { position: static; display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .careers-filters .filter-group { flex: 1 1 calc(50% - 0.75rem); min-width: 140px; margin-bottom: 0; }
  .filter-heading { width: 100%; }
  .filter-clear { flex: 0 0 auto; width: auto; }
  .careers-sidebar { position: static; }
  .differentiators-grid { grid-template-columns: 1fr; }
  .diff-card h3 { white-space: normal; }
  .team-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-photo-placeholder { width: 140px; height: 140px; font-size: 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .resume-cta { padding: 2rem 1.5rem; }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .process-steps-row { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .contact-tabs { flex-direction: column; border-bottom: none; gap: 0; }
  .contact-tab { border-bottom: 1px solid var(--border); border-left: 3px solid transparent; margin-bottom: 0; text-align: left; }
  .contact-tab.active { border-left-color: var(--brand-accent); border-bottom-color: var(--border); }
}
