/* H1BWageCheck.com - U.S. Government-style design */

:root {
  --navy: #0a2240;
  --navy-light: #1a3a5c;
  --navy-mid: #0f2d4a;
  --blue: #1a56db;
  --blue-accent: #2563eb;
  --blue-light: #dbeafe;
  --red: #b31942;
  --red-dark: #8b1232;
  --red-light: #fce4ec;
  --white: #ffffff;
  --off-white: #f5f6f7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #047857;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ADA skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus {
  top: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; color: var(--blue-accent); }

/* Focus styles for ADA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
}

/* === TOP UTILITY BAR === */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: #fff; text-decoration: none; }

/* === MAIN NAV === */
nav {
  background: var(--navy);
  color: #fff;
  padding: 0 24px;
  border-bottom: 3px solid var(--red);
  position: relative;
  z-index: 100;
}
nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
nav .brand {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
nav .brand:hover { text-decoration: none; opacity: 0.95; }
nav .nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}
nav .nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 20px 18px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
nav .nav-links a:hover,
nav .nav-links a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--red);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 0;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

/* Flag canton close-up background */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/img/flag-hero.jpg') no-repeat right center;
  background-size: cover;
  z-index: 1;
}
/* Gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right,
    rgba(7,22,42,0.95) 0%,
    rgba(7,22,42,0.88) 32%,
    rgba(10,34,64,0.65) 58%,
    rgba(10,34,64,0.50) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
}
.hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.6em;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
  max-width: 620px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
}
.hero p {
  font-size: 1.15em;
  color: rgba(255,255,255,0.95);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Hero freshness badge */
.hero-fresh {
  margin-top: 20px;
  font-size: 0.85em;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.3px;
  font-style: italic;
  max-width: 540px;
}

/* === SEARCH BOX === */
.search-box {
  max-width: 540px;
  display: flex;
  gap: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-radius: 4px;
}
.search-box input {
  flex: 1;
  padding: 15px 20px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  border: 2px solid transparent;
  border-radius: 4px 0 0 4px;
  outline: none;
  background: rgba(255,255,255,0.97);
  color: var(--gray-900);
  transition: border-color var(--transition), background var(--transition);
}
.search-box input::placeholder { color: var(--gray-500); }
.search-box input:focus {
  background: #fff;
  border-color: var(--blue-accent);
}
.search-box button {
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
}
.search-box button:hover {
  background: var(--red-dark);
}
.search-box button:active {
  transform: scale(0.98);
}

/* === STATS BAR === */
.stats-bar {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-item {
  text-align: center;
  padding: 24px 32px;
  border-right: 1px solid var(--gray-200);
  flex: 1;
  min-width: 160px;
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-50); }
.stat-number {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8em;
  font-weight: 900;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.78em;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 4px;
}

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px;
}

/* === SECTION HEADINGS === */
h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8em;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}
h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.4em;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
  font-weight: 700;
  display: inline-block;
}
section h2 {
  display: block;
}
h3 {
  font-size: 1.1em;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-weight: 700;
}

/* Paragraph spacing in sections */
section p + p { margin-top: 12px; }

/* === TABLES === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.95em;
  border: 1px solid var(--gray-200);
}
thead {
  background: var(--navy);
  color: #fff;
}
th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-900);
}
tr:nth-child(even) { background: var(--gray-50); }
tr:hover { background: var(--blue-light); }
td.money, th.money { text-align: right; font-variant-numeric: tabular-nums; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: var(--navy); font-weight: 600; }
td a:hover { color: var(--blue); text-decoration: none; }

/* === CARDS GRID === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 24px;
  background: #fff;
  border-top: 3px solid var(--navy);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.card h3 { margin-bottom: 4px; color: var(--navy); }
.card .meta { font-size: 0.85em; color: var(--gray-500); margin-bottom: 8px; }
.card .wage { font-size: 1.4em; font-weight: 700; color: var(--green); }

/* === SUMMARY LIST === */
section ul { list-style: none; padding: 0; }
section ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
}
section ul li:last-child { border: none; }

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 0.85em;
  color: var(--gray-500);
  padding: 12px 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--blue); }

/* === TWO COLUMN === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: var(--blue-light); color: #1e40af; }
.badge-red { background: var(--red-light); color: var(--red-dark); }

/* === INFO SECTION === */
.info-section {
  background: var(--off-white);
  border-left: 4px solid var(--navy);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}
.info-section h2 {
  border-bottom: none;
  display: inline-block;
  margin-bottom: 12px;
}
.info-section p { color: var(--gray-700); line-height: 1.8; }
.info-section p + p { margin-top: 12px; }

/* === VIEW ALL LINKS === */
.view-all {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid var(--red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85em;
  transition: color var(--transition), border-color var(--transition);
}
.view-all:hover {
  color: var(--red);
  text-decoration: none;
  border-bottom-color: var(--red-dark);
}

/* === FOOTER === */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 0;
  margin-top: 0;
  font-size: 0.9em;
}
.footer-top {
  border-top: 4px solid var(--red);
  background: var(--navy-mid);
  padding: 40px 40px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
footer strong {
  color: #fff;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 12px;
}
footer a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  background: rgba(0,0,0,0.15);
  padding: 20px 40px;
}
.footer-bottom .footer-inner {
  flex-direction: row;
  align-items: center;
}
footer .disclaimer {
  font-size: 0.8em;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 800px;
}

/* === SEARCH RESULTS PAGE === */
.search-results { min-height: 400px; }
.search-result-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--gray-50); padding-left: 8px; }
.search-result-item h3 { margin-bottom: 4px; }
.search-result-item .meta { font-size: 0.85em; color: var(--gray-500); }

/* === LOADING SPINNER === */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === DATA SOURCE BADGE === */
.data-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 0.8em;
  color: var(--gray-700);
  font-weight: 600;
}
.data-source::before {
  content: '\2605';
  color: var(--navy);
}

/* === SELECTION STYLING === */
::selection {
  background: var(--navy);
  color: #fff;
}

/* === SMOOTH SCROLL === */
html { scroll-behavior: smooth; }

/* === PRINT === */
@media print {
  .top-bar, nav, .hero-bg, .hero::before, footer, .search-box, .skip-link { display: none !important; }
  .hero { background: #fff !important; color: #000 !important; min-height: auto !important; }
  .hero h1 { color: #000 !important; text-shadow: none !important; }
  .hero p { color: #333 !important; text-shadow: none !important; }
  body { font-size: 12pt; }
  a { color: #000; }
  table { border: 1px solid #999; }
  th { background: #eee !important; color: #000 !important; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8em; }
  .hero-content { padding: 36px 20px; }
  .hero-fresh { font-size: 0.8em; }
  .search-box {
    flex-direction: column;
    box-shadow: none;
  }
  .search-box input { border-radius: 4px; border: 2px solid rgba(255,255,255,0.3); }
  .search-box button { border-radius: 4px; margin-top: 8px; }
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 16px; }
  .stat-item:last-child { border-bottom: none; }
  .stat-number { font-size: 1.4em; }
  table { font-size: 0.85em; border: none; }
  th, td { padding: 8px 8px; }
  nav .nav-inner { flex-direction: column; padding: 12px 0; gap: 8px; }
  nav .nav-links { flex-wrap: wrap; gap: 0; justify-content: center; }
  nav .nav-links a { padding: 10px 12px; font-size: 13px; }
  .container { padding: 24px 16px; }
  .top-bar { display: none; }
  .info-section { padding: 20px; }
  footer .footer-inner { flex-direction: column; gap: 20px; }
  .footer-top { padding: 24px 20px; }
  .footer-bottom { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5em; }
  .hero p { font-size: 1em; }
  .stat-number { font-size: 1.2em; }
  nav .brand { font-size: 18px; }
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
}
