/* ============================================================
   TALENT FRONTIERS — GLOBAL DESIGN SYSTEM
   Version 2.0 | Premium Job Portal & Staffing Platform
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --navy:        #0A1628;
  --navy-mid:    #112240;
  --navy-light:  #1E3A5F;
  --gold:        #F5A623;
  --gold-dark:   #D4891A;
  --gold-light:  #FFC85A;
  --white:       #FFFFFF;
  --off-white:   #F8F9FC;
  --light-gray:  #F1F3F8;

  /* Neutral Grays */
  --gray-100: #F1F3F8;
  --gray-200: #E2E6EF;
  --gray-300: #C8CFDE;
  --gray-400: #8A94A6;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success:  #10B981;
  --warning:  #F59E0B;
  --error:    #EF4444;
  --info:     #3B82F6;

  /* Typography */
  --font-primary:   'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-secondary: 'Inter', -apple-system, sans-serif;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.06);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.10), 0 2px 6px rgba(10,22,40,0.06);
  --shadow-lg:  0 10px 40px rgba(10,22,40,0.12), 0 4px 12px rgba(10,22,40,0.08);
  --shadow-xl:  0 24px 64px rgba(10,22,40,0.16);
  --shadow-gold: 0 8px 32px rgba(245,166,35,0.3);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.4s ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { color: var(--gray-600); line-height: 1.75; }

.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray-500); }
.text-muted  { color: var(--gray-400); }

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 12px 20px;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm { padding: 10px 20px; font-size: var(--text-xs); }
.btn-lg { padding: 18px 36px; font-size: var(--text-base); }
.btn-xl { padding: 20px 44px; font-size: var(--text-lg); font-weight: 800; }
.btn-full { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-sm { padding: var(--space-6); }
.card-lg { padding: var(--space-10); }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-gold    { background: rgba(245,166,35,0.12); color: var(--gold-dark); }
.badge-navy    { background: rgba(10,22,40,0.08); color: var(--navy); }
.badge-success { background: rgba(16,185,129,0.1); color: #059669; }
.badge-error   { background: rgba(239,68,68,0.1); color: #DC2626; }
.badge-info    { background: rgba(59,130,246,0.1); color: #2563EB; }
.badge-new     { background: var(--gold); color: var(--navy); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: var(--transition-fast);
}
.tag:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition-fast);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}

.form-control::placeholder { color: var(--gray-400); }

.form-control-lg {
  padding: 16px 20px;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
}

.form-check label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.5;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--space-1);
}

.input-group {
  display: flex;
  gap: var(--space-3);
}

.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-left: 44px;
}

.input-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

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

.navbar-logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.navbar-logo-text span { color: var(--gold); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: var(--gray-100);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.75) 50%, rgba(10,22,40,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 { color: var(--white); margin-bottom: var(--space-6); }
.hero p  { color: rgba(255,255,255,0.82); font-size: var(--text-lg); margin-bottom: var(--space-8); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.trust-item svg { color: var(--gold); flex-shrink: 0; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ============================================================
   PAGE HERO (non-fullscreen)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.7); }

/* ============================================================
   JOB CARDS
   ============================================================ */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.job-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.job-card-header {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}

.job-title a:hover { color: var(--gold); }

.company-name {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 500;
}

.job-salary {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.job-card-footer {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   CANDIDATE CARDS
   ============================================================ */
.candidate-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
  text-align: center;
  position: relative;
}

.candidate-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.candidate-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto var(--space-4);
  overflow: hidden;
  border: 3px solid var(--gray-100);
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.candidate-title {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.candidate-rate {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--success);
  margin-bottom: var(--space-4);
}

.verified-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: var(--navy);
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
}

.pricing-card:hover:not(.featured) {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 32px;
  background: var(--gold);
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-name {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.pricing-price {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.04em;
}

.pricing-card.featured .pricing-price { color: var(--white); }
.pricing-card.featured h3 { color: var(--white); }
.pricing-card.featured p { color: rgba(255,255,255,0.7); }

.pricing-period {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-6);
}

.pricing-features {
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.8); }

.pricing-feature svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pricing-card.featured .pricing-feature svg { color: var(--gold); }

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.04em;
}

.stat-number span { color: var(--gold); }

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.4;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.2);
  color: #065F46;
}

.alert-warning {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
  color: #92400E;
}

.alert-error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: #991B1B;
}

.alert-info {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  color: #1E40AF;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  max-width: 760px;
}

.search-bar .form-control {
  border: none;
  box-shadow: none;
  background: transparent;
  font-size: var(--text-base);
  padding: 12px 16px;
}

.search-bar .form-control:focus {
  box-shadow: none;
  border: none;
}

.search-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.dashboard-sidebar {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  min-height: 500px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
}

.sidebar-role {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-3);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.sidebar-nav a.active {
  background: rgba(245,166,35,0.2);
  color: var(--gold);
}

.sidebar-nav svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.stat-card-value {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.04em;
}

.stat-card-label {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-top: var(--space-4);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.filter-section {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--gray-100);
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--gray-600);
  transition: var(--transition-fast);
}

.filter-option:hover { color: var(--navy); }

.filter-option input { accent-color: var(--navy); }

.filter-count {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ============================================================
   RANGE SLIDER
   ============================================================ */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   STEP PROCESS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--navy) 100%);
  z-index: 0;
}

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

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.step-item:first-child .step-number { background: var(--gold); color: var(--navy); }

.step-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-base);
  cursor: pointer;
}

.industry-card:hover {
  border-color: var(--gold);
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover .industry-icon { background: rgba(245,166,35,0.2); color: var(--gold); }
.industry-card:hover .industry-name { color: var(--white); }
.industry-card:hover .industry-count { color: rgba(255,255,255,0.6); }

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--navy);
  transition: var(--transition-base);
}

.industry-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  transition: var(--transition-base);
}

.industry-count {
  font-size: var(--text-xs);
  color: var(--gray-400);
  transition: var(--transition-base);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: var(--space-8); font-size: var(--text-lg); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition-base);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-8);
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition-fast);
  text-align: center;
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }

  .navbar-nav { display: none; }
  .nav-toggle { display: flex; }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: var(--space-1);
  }

  .navbar-actions .btn-outline { display: none; }

  .hero { min-height: auto; padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12); }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .search-divider { display: none; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .cta-section { padding: var(--space-10) var(--space-6); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}


/* ============================================================
   HEADER / LOGO / FOOTER FIXES — v1.0.1
   Aligns PHP markup with the design system, improves mobile menu,
   and keeps the logo readable in both header and footer.
   ============================================================ */
.navbar-inner {
  min-height: var(--nav-height);
}

.navbar-logo {
  min-width: 180px;
  text-decoration: none;
}

.navbar-logo img,
.navbar-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 46px;
  object-fit: contain;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0;
}

.navbar-nav a,
.navbar-nav .nav-link {
  text-decoration: none;
}

.navbar-actions .btn-sm {
  padding: 9px 16px;
}

.nav-toggle {
  border: 0;
  background: transparent;
}

.nav-toggle:focus-visible,
.navbar-nav a:focus-visible,
.navbar-actions a:focus-visible {
  outline: 3px solid rgba(245,166,35,0.55);
  outline-offset: 3px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(130px, 1fr));
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 230px;
}

.footer-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 54px;
  object-fit: contain;
}

.footer-tagline,
.footer-offices p {
  color: rgba(255,255,255,0.62);
}

.footer-offices {
  margin-top: var(--space-4);
}

.footer-offices p {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

.footer-social a.social-btn {
  text-decoration: none;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

@media (max-width: 1180px) {
  .navbar-inner {
    gap: var(--space-4);
  }

  .navbar-logo {
    min-width: 150px;
  }

  .navbar-logo img,
  .navbar-logo .custom-logo {
    max-width: 180px;
  }

  .nav-link {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-actions .btn-sm {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .navbar-actions .btn-ghost,
  .navbar-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    min-width: 0;
  }

  .navbar-logo img,
  .navbar-logo .custom-logo {
    max-width: 165px;
    max-height: 42px;
  }

  .navbar-nav.open {
    align-items: stretch;
  }

  .navbar-nav.open li,
  .navbar-nav.open a {
    width: 100%;
  }

  .navbar-nav.open .nav-link,
  .navbar-nav.open a {
    display: block;
    padding: 13px 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .navbar-actions {
    display: none;
  }

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