/* ========================================================================
   Afghan Translation Service - Corporate Design System (Blue Palette)
   ======================================================================== */

:root {
  --color-primary: #0b3558;
  --color-primary-dark: #082a45;
  --color-primary-light: #2b7dba;
  --color-primary-lighter: #62aee2;
  --color-primary-lightest: #dff1ff;
  --color-accent: #2b7dba;
  --color-accent-hover: #1f669b;
  --color-accent-subtle: #eef8ff;
  --color-accent-border: #c9e7fb;
  --color-warm: #2b7dba;
  --color-warm-light: #eef8ff;
  --color-warm-lighter: #f6fbff;
  --color-warm-border: #c9e7fb;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-accent: #eef8ff;
  --color-bg-warm: #f8fbfd;
  --color-bg-dark: #0b3558;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #475569;
  --color-text-lighter: #94a3b8;
  --color-text-on-dark: #f1f5f9;
  --color-text-on-dark-muted: #cbd5e1;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f7;
  --color-success: #059669;
  --color-error: #dc2626;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1140px;
  --container-narrow: 860px;
  --gap: 2rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(30, 58, 138, 0.05), 0 1px 3px rgba(30, 58, 138, 0.08);
  --shadow-md: 0 4px 8px rgba(30, 58, 138, 0.06), 0 2px 4px rgba(30, 58, 138, 0.05);
  --shadow-lg: 0 10px 25px rgba(30, 58, 138, 0.08), 0 4px 10px rgba(30, 58, 138, 0.05);
  --shadow-xl: 0 20px 40px rgba(30, 58, 138, 0.1);
  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: 0; }
h2 { font-size: clamp(1.625rem, 2.8vw, 2.125rem); letter-spacing: 0; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-lg { font-size: 1.1rem; line-height: 1.7; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-accent { color: var(--color-accent); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary-light);
  color: var(--color-white);
  border-color: var(--color-primary-light);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}
.btn-outline:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.site-header.scrolled {
  background: rgba(30, 58, 138, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-white);
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
  line-height: 1.25;
}

.logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  color: var(--color-primary-lightest);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 1.5rem; }

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

.nav-list a {
  color: var(--color-text-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

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

.nav-cta { margin-left: 0.5rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-accent { background: var(--color-bg-accent); }
.section-warm { background: var(--color-bg-warm); }

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warm);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 0.75rem; }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-dark .section-subtitle { color: var(--color-text-on-dark-muted); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.94) 0%,
    rgba(30, 58, 138, 0.82) 50%,
    rgba(201, 149, 46, 0.25) 100%
  );
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 149, 46, 0.12);
  border: 1px solid rgba(201, 149, 46, 0.25);
  color: var(--color-warm);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }

.hero p {
  color: var(--color-text-on-dark-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-trust-item { display: flex; flex-direction: column; }

.hero-trust-item .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.hero-trust-item .label {
  font-size: 0.8125rem;
  color: var(--color-text-on-dark-muted);
}

/* Hero (Inner Pages) */
.hero-inner {
  position: relative;
  padding: 8rem 0 4rem;
  background: var(--color-primary);
  overflow: hidden;
}

.hero-inner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-inner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.hero-inner .container { position: relative; z-index: 2; }

.hero-inner h1 { color: var(--color-white); margin-bottom: 0.75rem; }

.hero-inner p {
  color: var(--color-text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.7;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a { color: var(--color-text-on-dark-muted); }
.breadcrumbs a:hover { color: var(--color-primary-lighter); }
.breadcrumbs .sep { color: var(--color-text-lighter); }
.breadcrumbs .current { color: var(--color-warm); }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary-light);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

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

.card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.card-link {
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-warm);
}

.card-link:hover { color: var(--color-warm); }

.card-link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.card-link:hover::after { transform: translateX(4px); }

/* Dark Card */
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--color-text-on-dark);
}
.card-dark h3 { color: var(--color-white); }
.card-dark p { color: var(--color-text-on-dark-muted); }
.card-dark .card-icon { background: rgba(37, 99, 235, 0.15); color: var(--color-primary-lighter); }
.card-dark:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201, 149, 46, 0.3);
}

/* --- Services Home --- */
.services-home .card { text-align: center; padding: 2.5rem 2rem; }
.services-home .card-icon { margin: 0 auto 1.25rem; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-item { text-align: center; padding: 1.5rem; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary-light);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.feature-item p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-warm);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-on-dark-muted);
}

/* --- Languages --- */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.lang-badge:hover {
  border-color: var(--color-warm);
  color: var(--color-warm);
  box-shadow: var(--shadow-sm);
}

.lang-badge-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--color-text-on-dark);
}
.lang-badge-dark:hover {
  border-color: var(--color-warm);
  background: rgba(201, 149, 46, 0.1);
  color: var(--color-warm);
}

.lang-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.lang-group-title:first-child { margin-top: 0; }

.section-dark .lang-group-title { color: var(--color-white); }

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,149,46,0.08) 0%, transparent 60%);
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 80%, rgba(37,99,235,0.08) 0%, transparent 50%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }

.cta-content h2 { color: var(--color-white); margin-bottom: 1rem; }

.cta-content p { color: var(--color-text-on-dark-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 2rem 0;
  background: var(--color-bg-accent);
  border-bottom: 1px solid var(--color-accent-border);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.trust-item .icon { color: var(--color-success); font-weight: 700; }

/* --- Testimonials --- */
.testimonial {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.testimonial-author { font-weight: 600; color: var(--color-primary); }
.testimonial-role { font-size: 0.875rem; color: var(--color-text-light); }

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.process-step { text-align: center; position: relative; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-warm-light);
  color: var(--color-warm);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-warm-border);
}

.process-step h4 { font-size: 1rem; margin-bottom: 0.5rem; }

.process-step p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Contact Form --- */
.contact-form { display: grid; gap: 1.5rem; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group .error-text {
  font-size: 0.8125rem;
  color: var(--color-error);
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: var(--color-error); }

.form-group.error .error-text { display: block; }

/* --- FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.faq-question:hover { color: var(--color-warm); }

.faq-toggle {
  font-size: 1.375rem;
  color: var(--color-warm);
  flex-shrink: 0;
  transition: transform var(--transition);
  font-weight: 300;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 1rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-dark .faq-item { border-color: rgba(255,255,255,0.1); }
.faq-dark .faq-question { color: var(--color-white); }
.faq-dark .faq-question:hover { color: var(--color-primary-lighter); }
.faq-dark .faq-answer p { color: var(--color-text-on-dark-muted); }

/* --- Page Content --- */
.page-content { padding: 4rem 0; }

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.625rem;
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.page-content p,
.page-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ul li { margin-bottom: 0.375rem; }

/* --- Content Split --- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-split-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.content-split h3 { margin-bottom: 0.75rem; }

.content-split p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-on-dark-muted);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo-text { margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a { color: var(--color-text-on-dark-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--color-primary-lighter); }

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact .icon { color: var(--color-primary-lighter); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-bottom a { color: var(--color-text-on-dark-muted); }
.footer-bottom a:hover { color: var(--color-primary-lighter); }

/* --- Legal Pages --- */
.legal-content { padding: 4rem 0; }

.legal-content h1 { margin-bottom: 0.5rem; }

.legal-content .last-updated {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.25rem; }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Icon SVG */
.icon-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-overlay.open { opacity: 1; }

/* Check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.check-list .check { color: var(--color-success); font-weight: 700; flex-shrink: 0; }

/* Highlight Box */
.highlight-box {
  background: var(--color-warm-light);
  border-left: 4px solid var(--color-warm);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.highlight-box p { margin-bottom: 0; font-size: 1rem; }

/* --- Seal / Certification badge --- */
.seal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-warm-light);
  color: var(--color-warm);
  border: 1px solid var(--color-warm-border);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

/* --- Two column feature detail --- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }

.feature-detail h3 { margin-bottom: 0.75rem; }
.feature-detail p { color: var(--color-text-light); line-height: 1.7; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .content-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-detail { grid-template-columns: 1fr; gap: 2rem; }
  .feature-detail.reverse { direction: ltr; }
}

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

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list { flex-direction: column; width: 100%; }
  .nav-list a { width: 100%; padding: 0.75rem 1rem; }
  .nav-cta { width: 100%; margin-left: 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .mobile-overlay.open { display: block; }

  .hero { min-height: 70vh; }
  .hero p { font-size: 1rem; }
  .hero-trust { gap: 1.25rem; }
  .hero-trust-item .number { font-size: 1.25rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-number { font-size: 2rem; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-section { padding: 3.5rem 0; }

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

  .hero-inner { padding: 6rem 0 3rem; }

  .trust-bar { padding: 1.5rem 0; }
  .trust-inner { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; }
}

/* --- Repositioned ATS homepage --- */
.section-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-intro .section-subtitle {
  margin: 0 auto;
}

.hero-repositioned {
  min-height: 86vh;
  background: #0b3558;
}

.hero-repositioned .hero-bg img {
  opacity: 0.24;
  filter: saturate(0.82) contrast(1.06);
}

.hero-repositioned .hero-overlay {
  background: linear-gradient(120deg, rgba(8, 42, 69, 0.94) 0%, rgba(11, 53, 88, 0.84) 58%, rgba(184, 92, 56, 0.52) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 4rem;
  align-items: center;
}

.hero-repositioned .hero-content {
  max-width: 760px;
}

.hero-repositioned h1 {
  max-width: 760px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.hero-panel-kicker,
.buyer-tag {
  color: var(--color-warm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-row {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}

.buyer-row strong,
.buyer-row span {
  display: block;
}

.buyer-row strong {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.buyer-row span {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-panel-metrics span {
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.75rem;
  text-align: center;
}

.hero-panel-metrics strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.15rem;
}

.buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.buyer-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.buyer-card-accent {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.buyer-card h3 {
  margin: 0.75rem 0 1rem;
}

.buyer-card p {
  color: var(--color-text-light);
}

.buyer-card .check-list {
  margin: 1.5rem 0;
}

.buyer-card-accent h3,
.buyer-card-accent p,
.buyer-card-accent .check-list li {
  color: var(--color-white);
}

.language-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.language-priority {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.language-priority:hover {
  border-color: var(--color-warm);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.language-priority strong {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.language-priority span {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.45;
}

.seo-roadmap {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

.seo-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-warm);
  background: var(--color-warm-light);
  color: var(--color-text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.roadmap-list {
  display: grid;
  gap: 1rem;
}

.roadmap-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: 1.25rem;
}

.roadmap-item strong,
.roadmap-item span {
  display: block;
}

.roadmap-item strong {
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.roadmap-item span {
  color: var(--color-text-light);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cta-section::before,
.cta-section::after {
  display: none;
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-panel {
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .hero-layout,
  .buyer-grid,
  .language-priority-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel-metrics {
    grid-template-columns: 1fr;
  }

  .section-intro {
    text-align: left;
    margin-bottom: 2rem;
  }

  .section-intro .section-subtitle {
    margin: 0;
  }
}

/* --- ATS homepage full redesign: light blue professional system --- */
:root {
  --color-primary: #0b3558;
  --color-primary-dark: #082a45;
  --color-primary-light: #2b7dba;
  --color-primary-lighter: #62aee2;
  --color-primary-lightest: #dff1ff;
  --color-accent: #2b7dba;
  --color-accent-hover: #1f669b;
  --color-accent-subtle: #eef8ff;
  --color-accent-border: #c9e7fb;
  --color-warm: #2b7dba;
  --color-warm-light: #eef8ff;
  --color-warm-lighter: #f6fbff;
  --color-warm-border: #c9e7fb;
  --color-bg-alt: #f6fbff;
  --color-bg-accent: #eef8ff;
  --color-bg-warm: #f8fbfd;
  --color-bg-dark: #0b3558;
  --color-text: #102033;
  --color-text-light: #506175;
  --color-border: #d9e7f2;
  --shadow-sm: 0 1px 2px rgba(11, 53, 88, 0.05), 0 1px 8px rgba(11, 53, 88, 0.06);
  --shadow-md: 0 12px 28px rgba(11, 53, 88, 0.1);
  --shadow-lg: 0 20px 46px rgba(11, 53, 88, 0.13);
  --shadow-xl: 0 28px 70px rgba(11, 53, 88, 0.18);
}

.ats-home {
  background: #ffffff;
  color: #102033;
}

.ats-home h1,
.ats-home h2,
.ats-home h3,
.ats-home h4 {
  color: #0b3558;
  letter-spacing: 0;
}

.ats-home .container {
  max-width: 1180px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.ats-header.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(201, 231, 251, 0.9);
  box-shadow: 0 1px 18px rgba(11, 53, 88, 0.06);
  backdrop-filter: blur(14px);
}

.ats-header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(11, 53, 88, 0.09);
}

.ats-header .logo-icon {
  background: #2b7dba;
  color: #ffffff;
  border-radius: 8px;
}

.ats-header .logo-text {
  color: #0b3558;
}

.ats-header .logo-text span {
  color: #5f7d99;
}

.ats-header .nav-list a {
  color: #36536e;
}

.ats-header .nav-list a:hover,
.ats-header .nav-list a.active {
  color: #0b3558;
  background: #eef8ff;
}

.ats-header .menu-toggle span {
  background: #0b3558;
}

.ats-home .btn {
  border-radius: 8px;
  min-height: 44px;
}

.ats-home .btn-primary {
  background: #2b7dba;
  border-color: #2b7dba;
  color: #ffffff;
}

.ats-home .btn-primary:hover {
  background: #1f669b;
  border-color: #1f669b;
}

.ats-home .btn-outline {
  border-color: #a8d5f4;
  color: #0b5f96;
  background: #ffffff;
}

.ats-home .btn-outline:hover {
  background: #eef8ff;
  color: #0b3558;
}

.ats-hero {
  position: relative;
  overflow: hidden;
  padding: 9.5rem 0 6.5rem;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.ats-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(43, 125, 186, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 125, 186, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black 0%, transparent 75%);
  pointer-events: none;
}

.ats-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 125, 186, 0.18), transparent 46%), linear-gradient(315deg, rgba(197, 229, 250, 0.72), transparent 42%);
  pointer-events: none;
}

.ats-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 4rem;
  align-items: center;
}

.ats-hero-copy {
  max-width: 770px;
}

.eyebrow {
  color: #2b7dba;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.ats-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 1.35rem;
  max-width: 820px;
}

.hero-lead {
  color: #40576f;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.72;
  max-width: 700px;
  margin-bottom: 2rem;
}

.ats-hero .hero-actions {
  margin-bottom: 2.4rem;
}

.hero-proof {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #c9e7fb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #53677c;
  font-size: 0.92rem;
}

.hero-proof strong {
  color: #0b3558;
}

.ats-quote-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #c9e7fb;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.ats-quote-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.ats-quote-panel p {
  color: #506175;
  line-height: 1.72;
  margin-bottom: 1.4rem;
}

.ats-quote-panel ul {
  display: grid;
  gap: 0.85rem;
}

.ats-quote-panel li {
  position: relative;
  padding-left: 1.45rem;
  color: #31475d;
  line-height: 1.55;
}

.ats-quote-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62aee2;
}

.ats-trust-strip {
  border-top: 1px solid #d9eaf8;
  border-bottom: 1px solid #d9eaf8;
  background: #ffffff;
}

.ats-trust-strip .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.ats-trust-strip span {
  padding: 1rem;
  color: #415a72;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
  border-left: 1px solid #e5f0f8;
}

.ats-trust-strip span:last-child {
  border-right: 1px solid #e5f0f8;
}

.ats-section {
  padding: 6rem 0;
}

.ats-section:nth-of-type(even) {
  background: #f6fbff;
}

.ats-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.ats-split.reverse-align {
  align-items: center;
}

.ats-split h2,
.ats-section-head h2,
.ats-cta h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.ats-split p,
.ats-section-head p,
.ats-cta p {
  color: #506175;
  font-size: 1.04rem;
  line-height: 1.78;
}

.ats-section-head {
  max-width: 780px;
  margin-bottom: 2.4rem;
}

.ats-section-head.narrow {
  max-width: 720px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ats-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.ats-service-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 1.5rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  box-shadow: 0 1px 0 rgba(11, 53, 88, 0.03);
}

.ats-service-card:hover {
  color: #102033;
  border-color: #8cc7ee;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-number {
  color: #2b7dba;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: auto;
}

.ats-service-card h3 {
  font-size: 1.22rem;
  margin: 2.25rem 0 0.65rem;
}

.ats-service-card p {
  color: #506175;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ats-language-section {
  background: #ffffff;
}

.ats-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ats-language-grid a {
  display: grid;
  gap: 0.45rem;
  min-height: 122px;
  padding: 1.25rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  color: #102033;
}

.ats-language-grid a:hover {
  color: #102033;
  border-color: #8cc7ee;
  box-shadow: var(--shadow-md);
}

.ats-language-grid strong {
  color: #0b3558;
  font-size: 1.2rem;
}

.ats-language-grid span {
  color: #5b6d7f;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ats-industry-list {
  display: grid;
  gap: 0.9rem;
}

.ats-industry-list div {
  padding: 1.2rem 1.35rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
}

.ats-industry-list strong,
.ats-industry-list span {
  display: block;
}

.ats-industry-list strong {
  color: #0b3558;
  margin-bottom: 0.3rem;
}

.ats-industry-list span {
  color: #506175;
  line-height: 1.55;
}

.ats-process-section {
  background: #ffffff;
}

.ats-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ats-process-grid div {
  padding: 1.4rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #f8fcff;
}

.ats-process-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #dff1ff;
  color: #0b5f96;
  font-weight: 800;
  margin-bottom: 1.3rem;
}

.ats-process-grid strong {
  display: block;
  color: #0b3558;
  margin-bottom: 0.45rem;
}

.ats-process-grid p {
  color: #506175;
  font-size: 0.93rem;
  line-height: 1.6;
}

.ats-cta {
  padding: 5rem 0;
  background: #eaf6ff;
  border-top: 1px solid #c9e7fb;
  border-bottom: 1px solid #c9e7fb;
}

.ats-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.ats-cta h2 {
  max-width: 760px;
}

.ats-cta p {
  max-width: 680px;
  margin-bottom: 0;
}

.ats-cta .cta-actions {
  justify-content: flex-end;
}

.ats-faq-section {
  background: #ffffff;
}

.ats-home .faq-list {
  max-width: 860px;
}

.ats-home .faq-item {
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #ffffff;
}

.ats-home .faq-question {
  padding: 1.15rem 1.25rem;
  color: #0b3558;
}

.ats-home .faq-answer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ats-home .faq-item.open .faq-answer {
  padding-top: 0;
  padding-bottom: 1.15rem;
}

.ats-footer.site-footer {
  background: #0b3558;
}

.ats-footer .footer-links a:hover,
.ats-footer .footer-bottom a:hover {
  color: #a8d5f4;
}

.ats-home .hero,
.ats-home .hero-repositioned,
.ats-home .buyer-section,
.ats-home .demand-section,
.ats-home .seo-roadmap,
.ats-home .services-home,
.ats-home .trust-bar,
.ats-home .cta-section {
  display: none;
}

@media (max-width: 1024px) {
  .ats-hero-grid,
  .ats-split,
  .ats-cta-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .ats-card-grid,
  .ats-language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ats-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ats-trust-strip .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ats-header .main-nav {
    background: #ffffff;
    border-bottom: 1px solid #c9e7fb;
  }

  .ats-hero {
    padding: 7.75rem 0 4.25rem;
  }

  .ats-hero h1 {
    font-size: 2.55rem;
  }

  .ats-section {
    padding: 4rem 0;
  }

  .ats-card-grid,
  .ats-language-grid,
  .ats-process-grid,
  .ats-trust-strip .container {
    grid-template-columns: 1fr;
  }

  .ats-trust-strip span {
    border-right: 1px solid #e5f0f8;
  }

  .ats-section-head.narrow {
    text-align: left;
  }

  .ats-cta .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .ats-hero h1 {
    font-size: 2.25rem;
  }

  .hero-proof,
  .ats-hero .hero-actions,
  .ats-cta .cta-actions {
    flex-direction: column;
  }

  .hero-proof span,
  .ats-hero .hero-actions .btn,
  .ats-cta .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- ATS header and wordmark refinement --- */
.ats-header .header-inner {
  height: 76px;
  gap: 1.5rem;
}

.ats-wordmark.logo {
  gap: 0.7rem;
  min-width: 286px;
  color: #0b3558;
}

.logo-monogram {
  font-size: 1.38rem;
  line-height: 1;
  font-weight: 800;
  color: #0b3558;
  letter-spacing: 0;
}

.logo-divider {
  width: 1px;
  height: 34px;
  background: #b8d8ee;
}

.logo-copy {
  display: grid;
  gap: 0.12rem;
  color: #0b3558;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.08;
  white-space: nowrap;
}

.logo-copy span {
  color: #68839a;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ats-header .logo-icon,
.ats-header .logo-text {
  display: none;
}

.ats-nav.main-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.ats-nav .nav-list {
  gap: 0.2rem;
  padding: 0.28rem;
  border: 1px solid #d5e8f7;
  border-radius: 999px;
  background: rgba(246, 251, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ats-nav .nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  color: #35556f;
  font-size: 0.86rem;
  font-weight: 650;
}

.ats-nav .nav-list a:hover,
.ats-nav .nav-list a.active {
  color: #0b3558;
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(11, 53, 88, 0.08);
}

.ats-nav .nav-cta {
  margin-left: 0;
  flex-shrink: 0;
}

.ats-nav .nav-cta .btn-sm {
  min-height: 42px;
  padding: 0.55rem 1rem;
  box-shadow: 0 8px 18px rgba(43, 125, 186, 0.18);
}

@media (max-width: 1100px) {
  .ats-wordmark.logo {
    min-width: 236px;
  }

  .logo-copy {
    font-size: 0.92rem;
  }

  .ats-nav .nav-list a {
    padding-left: 0.68rem;
    padding-right: 0.68rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 920px) {
  .ats-header .menu-toggle {
    display: flex;
  }

  .ats-header .main-nav {
    position: fixed;
    top: 76px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #c9e7fb;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.75rem);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
  }

  .ats-header .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .ats-nav .nav-list {
    display: grid;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .ats-nav .nav-list a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font-size: 0.95rem;
  }

  .ats-nav .nav-cta .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .ats-wordmark.logo {
    min-width: 0;
    gap: 0.55rem;
  }

  .logo-monogram {
    font-size: 1.18rem;
  }

  .logo-divider {
    height: 30px;
  }

  .logo-copy {
    font-size: 0.82rem;
  }

  .logo-copy span {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }
}

/* --- ATS capability and use-case refinement --- */
.ats-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ats-capability-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 1.45rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  box-shadow: 0 1px 0 rgba(11, 53, 88, 0.03);
}

.ats-capability-card.feature {
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
  border-color: #a8d5f4;
}

.ats-capability-card:hover {
  color: #102033;
  border-color: #8cc7ee;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ats-capability-card h3 {
  font-size: 1.18rem;
  margin: 2.15rem 0 0.65rem;
}

.ats-capability-card p {
  color: #506175;
  font-size: 0.95rem;
  line-height: 1.66;
}

.ats-use-case-section {
  background: #ffffff;
}

.ats-use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ats-use-grid div {
  padding: 1.45rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.ats-use-grid strong,
.ats-use-grid span {
  display: block;
}

.ats-use-grid strong {
  color: #0b3558;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.ats-use-grid span {
  color: #506175;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .ats-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ats-capability-grid,
  .ats-use-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ATS redesigned inner pages --- */
.ats-page {
  background: #ffffff;
  color: #102033;
}

.ats-page h1,
.ats-page h2,
.ats-page h3,
.ats-page h4 {
  color: #0b3558;
  letter-spacing: 0;
}

.ats-page .container {
  max-width: 1180px;
}

.ats-page-hero {
  padding: 9rem 0 4.75rem;
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
  border-bottom: 1px solid #d9e7f2;
}

.ats-page-hero .breadcrumbs {
  color: #5d7891;
  margin-bottom: 1.25rem;
}

.ats-page-hero .breadcrumbs a {
  color: #2b7dba;
}

.ats-page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 1rem;
}

.ats-page-hero p {
  max-width: 760px;
  color: #40576f;
  font-size: 1.16rem;
  line-height: 1.72;
}

.ats-page-section {
  padding: 5.5rem 0;
}

.ats-page-section.alt {
  background: #f6fbff;
}

.ats-page-head {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.ats-page-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ats-page-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.ats-page-head p {
  color: #506175;
  font-size: 1.04rem;
  line-height: 1.75;
}

.ats-panel-grid,
.ats-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ats-two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ats-panel,
.ats-link-panel {
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
  padding: 1.45rem;
  box-shadow: 0 1px 0 rgba(11, 53, 88, 0.03);
}

.ats-link-panel {
  display: grid;
  gap: 0.55rem;
  color: #102033;
}

.ats-link-panel:hover {
  color: #102033;
  border-color: #8cc7ee;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ats-panel h3,
.ats-link-panel h3 {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}

.ats-panel p,
.ats-link-panel p,
.ats-panel li {
  color: #506175;
  line-height: 1.66;
  font-size: 0.96rem;
}

.ats-panel ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.ats-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ats-tag-row a,
.ats-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #c9e7fb;
  border-radius: 999px;
  background: #ffffff;
  color: #0b5f96;
  font-weight: 650;
  font-size: 0.9rem;
}

.ats-tag-row a:hover {
  background: #eef8ff;
  color: #0b3558;
}

.ats-page-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: center;
}

.ats-quiet-note {
  padding: 1.2rem 1.35rem;
  border: 1px solid #c9e7fb;
  border-radius: 8px;
  background: #eef8ff;
  color: #40576f;
  line-height: 1.7;
}

.ats-page-cta {
  padding: 4.5rem 0;
  background: #eaf6ff;
  border-top: 1px solid #c9e7fb;
}

.ats-page-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.ats-page-cta h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.ats-page-cta p {
  color: #506175;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .ats-panel-grid,
  .ats-three-grid,
  .ats-two-grid,
  .ats-page-split,
  .ats-page-cta-inner {
    grid-template-columns: 1fr;
  }
}

/* --- ATS contact/resources/legal/local pages --- */
.ats-form-panel {
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ats-contact-details {
  display: grid;
  gap: 1rem;
}

.ats-contact-details div {
  padding: 1.25rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #f8fcff;
}

.ats-contact-details strong,
.ats-contact-details span {
  display: block;
}

.ats-contact-details strong {
  color: #0b3558;
  margin-bottom: 0.35rem;
}

.ats-contact-details span {
  color: #506175;
  line-height: 1.6;
}

.ats-legal-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.ats-legal-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.ats-legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.ats-legal-body p,
.ats-legal-body li {
  color: #506175;
  line-height: 1.75;
}

.ats-legal-body ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.75rem 0 1rem;
}

.ats-local-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ats-local-proof div {
  padding: 1rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
}

.ats-local-proof strong {
  display: block;
  color: #0b3558;
  margin-bottom: 0.3rem;
}

.ats-local-proof span {
  color: #506175;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .ats-local-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ats-local-proof {
    grid-template-columns: 1fr;
  }
}

/* --- ATS homepage markets section --- */
.ats-markets-section {
  background: #f6fbff;
}

.ats-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.ats-market-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: 1px solid #d5e8f7;
  border-radius: 8px;
  background: #ffffff;
  color: #0b3558;
  font-weight: 700;
}

.ats-market-grid a::after {
  content: '\2192';
  color: #2b7dba;
  font-weight: 800;
}

.ats-market-grid a:hover {
  color: #0b3558;
  border-color: #8cc7ee;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .ats-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ats-market-grid {
    grid-template-columns: 1fr;
  }
}

.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }


/* --- ATS footer restructure --- */
.ats-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(150px, 0.7fr));
  gap: 2.25rem;
  align-items: start;
}

.ats-footer-brand .logo-text {
  margin-bottom: 1rem;
}

.ats-footer-brand p {
  max-width: 460px;
}

.ats-footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.ats-footer-phone {
  color: #dff1ff;
  font-weight: 700;
  font-size: 0.92rem;
}

.ats-footer-phone:hover {
  color: #ffffff;
}

.ats-footer-languages {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ats-footer-languages .footer-heading {
  margin-bottom: 0.85rem;
}

.ats-footer-languages nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ats-footer-languages a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(168, 213, 244, 0.26);
  border-radius: 999px;
  color: #dff1ff;
  background: rgba(255,255,255,0.04);
  font-size: 0.86rem;
  font-weight: 650;
}

.ats-footer-languages a:hover {
  color: #ffffff;
  border-color: rgba(168, 213, 244, 0.58);
  background: rgba(255,255,255,0.08);
}

.ats-footer .footer-bottom {
  margin-top: 0;
  border-top: 0;
}

@media (max-width: 960px) {
  .ats-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .ats-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .ats-footer-main {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .ats-footer-languages nav {
    gap: 0.45rem;
  }

  .ats-footer-languages a {
    font-size: 0.84rem;
  }
}


/* --- Contact form containment fix --- */
.ats-page-split > * {
  min-width: 0;
}

.ats-form-panel,
.contact-form,
.form-row,
.form-group {
  min-width: 0;
}

.form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ats-form-panel + .ats-contact-details {
  align-self: start;
}

@media (min-width: 921px) {
  .ats-form-panel:has(.contact-form) {
    width: 100%;
  }

  .ats-page-split:has(.ats-form-panel) {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ats-form-panel {
    padding: 1.15rem;
  }
}


@media (min-width: 921px) {
  .ats-contact-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
  }
}


.ats-support-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ats-support-strip a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ats-support-strip strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.ats-support-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ats-support-strip a:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .ats-support-strip {
    grid-template-columns: 1fr;
  }
}
