/* ============================================
   Around The World Manpower Services, Inc.
   Design tokens
   ============================================ */
:root {
  --cream: #FAF6ED;
  --beige: #EFE4D2;
  --navy: #0B2A64;
  --navy-deep: #071B44;
  --red: #D40205;
  --green: #0F6615;
  --ink: #1C2230;
  --ink-soft: #4A5164;
  --line: #DED2B8;
  --white: #FFFFFF;

  --serif: 'Poppins', Arial, sans-serif;
  --sans: 'Inter', Arial, sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 0.4em;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--beige { background: var(--beige); }

/* ---------- Header / Nav (single row, Grander-style) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 237, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.brand .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
  line-height: 1.2;
  max-width: 165px;
  white-space: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  border-color: var(--red);
}

.nav-toggle { display: none; }

@media (max-width: 1140px) {
  .nav-links { display: none; }
  .header-ctas { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--navy);
    cursor: pointer;
  }
}

@media (min-width: 1141px) {
  .mobile-nav { display: none; }
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 520px; }
.mobile-nav a {
  display: block;
  padding: 15px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.mobile-nav a.active { color: var(--red); }
.mobile-nav .mobile-ctas {
  display: flex;
  gap: 10px;
  padding: 16px 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #b30204; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-flightpath {
  position: absolute;
  right: -60px;
  top: 30px;
  width: 420px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero h1 { max-width: 15ch; }

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-top: 18px;
}

.trust-strip {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.trust-strip strong { color: var(--navy); }

/* ---------- Chooser split ---------- */
.chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}

.chooser-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 34px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chooser-card:hover { box-shadow: 0 14px 34px rgba(11,42,100,0.09); transform: translateY(-2px); }

.chooser-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}

.chooser-card.for-worker .tag { background: rgba(212,2,5,0.1); color: var(--red); }
.chooser-card.for-partner .tag { background: rgba(11,42,100,0.09); color: var(--navy); }

.chooser-card p { margin-bottom: 22px; }

@media (max-width: 760px) {
  .chooser { grid-template-columns: 1fr; }
}

/* ---------- Grid / feature blocks ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 42px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.feature {
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.feature h3 { margin-bottom: 8px; }

.feature .num {
  font-family: var(--serif);
  color: var(--red);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Destination list ---------- */
.destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.dest-pill {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Stat row ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  margin-top: 8px;
}

.stat .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--navy);
  display: block;
  line-height: 1;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Quote / callout ---------- */
.callout {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 24px;
  margin: 36px 0;
}

.callout p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-style: italic;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding: 60px 0 30px;
  font-size: 0.92rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid a { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

/* ---------- Utility ---------- */
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 12px;
}
.max-txt { max-width: 66ch; }

/* ---------- v3 additions: FAQ, process steps ---------- */
.btn--sm { padding: 10px 18px; font-size: 0.82rem; }

.process-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  counter-reset: step;
}

.process-step {
  flex: 1 1 160px;
  padding: 22px 20px 22px 0;
  position: relative;
}

.process-step .step-num {
  font-family: var(--serif);
  color: var(--red);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.process-step h4 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.process-step p { font-size: 0.9rem; margin-bottom: 0; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.faq-item p { margin-bottom: 0; }

.faq-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
  margin: 48px 0 6px;
}
.faq-group-label:first-child { margin-top: 0; }

.audience-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 760px) {
  .audience-route { grid-template-columns: 1fr; }
  .process-track { flex-direction: column; }
  .process-step { padding-right: 0; }
}

.placeholder-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 10px;
  font-style: italic;
}

/* ---------- Photo frame ---------- */
.photo-frame {
  border: 6px solid var(--white);
  box-shadow: 0 18px 40px rgba(11,42,100,0.12);
  overflow: hidden;
  border-radius: 2px;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 12px;
  font-style: italic;
}

/* ---------- Photo strip (auto-scrolling marquee) ---------- */
.strip-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 20px 50px rgba(11,42,100,0.16);
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
}

.strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: strip-scroll 36s linear infinite;
}

.strip-carousel:hover .strip-track { animation-play-state: paused; }

.strip-item {
  flex: 0 0 auto;
  width: 300px;
  height: 220px;
  border-radius: 3px;
  overflow: hidden;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .strip-item { width: 200px; height: 150px; }
}

/* ---------- Native application/inquiry forms ---------- */
.app-form .field-help {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: -12px;
  margin-bottom: 16px;
}

.app-form .required-mark { color: var(--red); }

.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill { position: relative; }

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.radio-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.branch-section {
  display: none;
}

.branch-section.is-active {
  display: block;
}

.app-form .submit-error {
  display: none;
  background: rgba(212,2,5,0.08);
  border: 1px solid rgba(212,2,5,0.3);
  color: var(--red);
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.app-form .submit-error.is-visible { display: block; }

.form-success {
  text-align: center;
  padding: 20px 0;
}

.form-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none !important;
}
