/* IQ Jobs – shared styles */

:root {
  --blue-primary: #1697f6;
  --blue-dark: #1867c0;
  --blue-light: #aeddff;
  --orange: #f95120;
  --dark: #0b1215;
  --dark-secondary: #3a4a52;
  --gray: #dce3ec;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --max-width: 800px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin: 16px 0 40px;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(22, 151, 246, 0.07);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--blue-primary);
  background: #ebf6ff;
}

.header-nav a[aria-current="page"] {
  color: var(--blue-primary);
  font-weight: 700;
}

.header-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.header-brand {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-secondary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

/* ── Hamburger ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition:
    transform 0.22s,
    opacity 0.22s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero banner ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue-primary) 100%
  );
  color: var(--white);
  padding: 52px 24px 44px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-hero .last-updated {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ── Main content ────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── About page ──────────────────────────────────────── */
.about-lead {
  font-size: 1.1rem;
  color: var(--dark-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--dark-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 20px rgba(22, 151, 246, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--dark-secondary);
  line-height: 1.6;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 48px;
}

.stat-item {
  background: var(--white);
  padding: 24px 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: -1px;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--dark-secondary);
  margin-top: 4px;
}

.lang-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 32px;
}

.lang-badge {
  background: #ebf6ff;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--blue-light);
}

.mission-block {
  background: var(--white);
  border: 1px solid var(--gray);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 0 0 48px;
}

.mission-block p {
  font-size: 1rem;
  color: var(--dark-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

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

.download-strip {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  color: var(--white);
  margin-bottom: 24px;
}

.download-strip h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-strip p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.btn-white:hover {
  opacity: 0.9;
}

/* contact strip (about page CTA) */
.contact-strip {
  background: linear-gradient(135deg, var(--orange), #fd873a);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.contact-strip h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-strip p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 18px;
}

.contact-strip a {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.contact-strip a:hover {
  opacity: 0.9;
}

/* ── Policy / Terms prose ────────────────────────────── */
.toc {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--dark-secondary);
  margin-bottom: 14px;
}

.toc ol {
  margin: 0 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 32px;
}

.toc ol li {
  font-size: 0.88rem;
}

.toc ol a {
  color: var(--blue-primary);
  text-decoration: none;
}

.toc ol a:hover {
  text-decoration: underline;
}

.prose section {
  margin-bottom: 44px;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.prose h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0 8px;
}

.prose p {
  margin-bottom: 12px;
  color: var(--dark-secondary);
}
.prose ul {
  margin: 10px 0 12px 22px;
  color: var(--dark-secondary);
}
.prose ul li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--blue-primary);
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
}

.prose .highlight-box {
  background: #ebf6ff;
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.95rem;
  color: var(--dark-secondary);
}

.prose .warning-box {
  background: #fff4ef;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.95rem;
  color: var(--dark-secondary);
}

.prose .acknowledgment {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.2px;
  margin-top: 40px;
}

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

.summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.93rem;
  color: var(--dark-secondary);
}

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

.summary-list .check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Contact page ────────────────────────────────────── */
.contact-hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 32px 0 48px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow 0.2s;
}

.contact-card:hover {
  box-shadow: 0 4px 16px rgba(22, 151, 246, 0.1);
}

.contact-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--dark-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.contact-card a {
  font-size: 0.88rem;
  color: var(--blue-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card .hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  color: var(--dark-secondary);
  padding: 4px 0;
  border-bottom: 1px solid #f0f4f8;
}

.contact-card .hours-row:last-child {
  border-bottom: none;
}

.contact-card .hours-row span:first-child {
  font-weight: 600;
  color: var(--dark);
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 16px 0;
}

.steps-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.94rem;
  color: var(--dark-secondary);
}

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

.steps-list li::before {
  content: counter(step-counter);
  background: var(--blue-primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 48px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
}

.faq-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.faq-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-card ul li {
  font-size: 0.87rem;
  color: var(--dark-secondary);
  padding: 6px 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-card ul li:last-child {
  border-bottom: none;
}

.faq-card ul li::before {
  content: "›";
  color: var(--blue-primary);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 48px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  text-align: center;
}

.social-link:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(22, 151, 246, 0.1);
}

.social-icon {
  font-size: 1.2rem;
}

.response-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 40px;
  font-size: 0.9rem;
}

.response-table th {
  background: var(--blue-dark);
  color: white;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.response-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray);
  color: var(--dark-secondary);
}

.response-table tr:nth-child(even) td {
  background: #f0f7ff;
}

.info-section {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.info-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-section p {
  font-size: 0.93rem;
  color: var(--dark-secondary);
  margin-bottom: 10px;
}

.info-section ul {
  margin: 8px 0 8px 20px;
  color: var(--dark-secondary);
  font-size: 0.93rem;
}

.info-section ul li {
  margin-bottom: 5px;
}

.email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.9rem;
}

.email-row:last-child {
  border-bottom: none;
}

.email-row .label {
  font-weight: 600;
  color: var(--dark);
  min-width: 160px;
  flex-shrink: 0;
}

.email-row a {
  color: var(--blue-primary);
  text-decoration: none;
}

.email-row a:hover {
  text-decoration: underline;
}

.divider {
  height: 1px;
  background: var(--gray);
  margin: 40px 0;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--blue-light);
}

/* ── Responsive ──────────────────────────────────────── */

/* Tablet: tighten nav link padding */
@media (max-width: 760px) {
  .header-nav a {
    padding: 6px 8px;
    font-size: 0.82rem;
  }
}

/* Mobile: hamburger + dropdown nav */
@media (max-width: 620px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 16px 16px;
    z-index: 99;
    gap: 2px;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: normal;
    width: 100%;
  }
}

/* Small screens */
@media (max-width: 520px) {
  .page-hero {
    padding: 36px 20px 32px;
  }

  main {
    padding: 32px 16px 60px;
  }

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

  .stat-value {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  /* Grids go single column */
  .feature-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  /* Email rows stack vertically */
  .email-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .email-row .label {
    min-width: unset;
  }

  /* Acknowledgment smaller text */
  .prose .acknowledgment {
    font-size: 0.85rem;
    padding: 20px;
  }

  /* Info section heading wraps */
  .info-section h2 {
    flex-wrap: wrap;
  }

  /* Mission and highlight boxes */
  .mission-block,
  .prose .highlight-box,
  .prose .warning-box {
    padding: 16px;
  }

  /* Download/contact strips */
  .download-strip,
  .contact-strip {
    padding: 24px 20px;
  }

  /* TOC compact */
  .toc {
    padding: 16px 20px;
  }
}
