/* =============================================================
   World Recruitment Center — "Global" Redesign (test variant #2)
   Design language: warm, approachable, human. Rounded shapes, soft
   shadows, flag-forward visuals. Built to be instantly understood
   by a first-time visitor with zero context.
   ============================================================= */

:root {
  --blue: #0B7FD1;
  --blue-dark: #075E9E;
  --blue-tint: #EAF5FE;
  --coral: #FF7A45;
  --coral-dark: #E9612D;
  --coral-tint: #FFEEE5;
  --ink: #0B1E33;
  --slate: #566274;
  --slate-light: #8B96A5;
  --line: #E7ECF2;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(11, 30, 51, 0.06);
  --shadow: 0 12px 32px rgba(11, 30, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 30, 51, 0.16);

  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: 15.5px; }

body {
  font-family: var(--font);
  color: var(--slate);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.18; color: var(--ink); letter-spacing: -0.015em; }
p { color: var(--slate); }
a { text-decoration: none; color: var(--blue); transition: all 0.25s var(--ease); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-tint); color: var(--blue-dark);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 8px 18px; border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eyebrow-pill.coral { background: var(--coral-tint); color: var(--coral-dark); }
.eyebrow-pill.on-dark { background: rgba(255,255,255,0.12); color: #BFE0FA; }

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: 2.1rem; margin-bottom: 16px; }
.section-desc { font-size: 1.02rem; color: var(--slate); line-height: 1.7; }

.text-white { color: #fff !important; }
.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: #fff; }
.text-dim { color: rgba(255,255,255,0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; font-family: var(--font); font-size: 0.92rem; font-weight: 700;
  border-radius: var(--radius-pill); cursor: pointer; border: 2px solid transparent;
  transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 69, 0.35); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 122, 69, 0.45); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.link-text { font-weight: 700; font-size: 0.92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.link-text:hover { color: var(--blue); }

/* ---------- Header ---------- */
.v2-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; background: rgba(255,255,255,0);
  transition: all 0.3s var(--ease);
}
.v2-header.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 11px 0; }
.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 50px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink); font-size: 0.88rem; font-weight: 600; position: relative; }
.nav-link:hover { color: var(--blue); }
.nav-link.active { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.lang-flags { display: flex; align-items: center; gap: 10px; }
.lang-flag { font-size: 1.1rem; opacity: 0.45; filter: grayscale(100%); transition: all 0.25s var(--ease); display: inline-flex; }
.lang-flag:hover { opacity: 0.8; filter: grayscale(0%); }
.lang-flag.active { opacity: 1; filter: grayscale(0%); }
.flag-icon { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); display: block; }
.lang-flag.beta-tab {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; opacity: 0.9; filter: none;
  border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 5px 11px; color: var(--slate);
}
.lang-flag.beta-tab:hover { border-color: var(--blue); color: var(--blue); }
.lang-flag.beta-tab.active { border-color: var(--coral); color: var(--coral-dark); background: var(--coral-tint); }

.mobile-header-controls { display: none; align-items: center; gap: 12px; }
.mobile-lang-flags { gap: 7px; }
.mobile-lang-flags .flag-icon { width: 18px; height: 13px; }
.mobile-menu-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.v2-hero {
  padding-top: 150px; padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 0.95fr; gap: 60px; align-items: center; }
.v2-hero-title { font-size: 3rem; line-height: 1.15; margin-bottom: 22px; }
.v2-hero-title .accent { color: var(--blue); }
.v2-hero-lede { font-size: 1.1rem; color: var(--slate); max-width: 520px; margin-bottom: 34px; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 44px; }

.hero-trust-row { display: flex; flex-wrap: wrap; gap: 28px; }
.trust-chip { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.trust-chip i { color: var(--coral); font-size: 1.2rem; }

/* World-sourcing orbit graphic */
.orbit-wrap { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; margin: 0 auto; }
.orbit-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1/1; border-radius: 50%;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: var(--shadow-lg); z-index: 3; padding: 10px;
}
.orbit-hub i { font-size: 1.8rem; margin-bottom: 6px; color: var(--coral); }
.orbit-hub span { font-size: 0.78rem; font-weight: 800; line-height: 1.25; }

.orbit-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 2px dashed rgba(11, 127, 209, 0.22); border-radius: 50%;
}
.orbit-ring.r1 { width: 100%; height: 100%; }

.orbit-flag {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  z-index: 2; transform: translate(-50%, -50%);
}
.orbit-flag img { width: 34px; height: 24px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.orbit-svg path {
  fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: 0.55;
  animation: dashflow 18s linear infinite;
}
@keyframes dashflow { to { stroke-dashoffset: -220; } }

.orbit-caption { text-align: center; font-size: 0.82rem; color: var(--slate-light); margin-top: 18px; font-weight: 600; }

/* ---------- What we do strip ---------- */
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.what-card {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 36px 30px;
  text-align: center; transition: all 0.3s var(--ease);
}
.what-card:hover { background: var(--blue-tint); transform: translateY(-6px); }
.what-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px;
}
.what-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.what-card p { font-size: 0.92rem; margin: 0; }

/* ---------- How it works ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding: 34px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; margin: 0; }
.step-arrow { display: none; }

/* ---------- Audience cards ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.audience-card {
  border-radius: var(--radius-lg); padding: 46px 40px; position: relative; overflow: hidden;
}
.audience-card.employers { background: var(--ink); color: #fff; }
.audience-card.candidates { background: var(--blue-tint); }
.audience-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.audience-card.employers h3 { color: #fff; }
.audience-card p.lede { font-size: 0.98rem; margin-bottom: 28px; max-width: 380px; }
.audience-card.employers p.lede { color: rgba(255,255,255,0.72); }
.audience-check { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.audience-check div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.audience-card.employers .audience-check div { color: #fff; }
.audience-check i { color: var(--coral); }

/* ---------- Countries (flag grid) ---------- */
.flag-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.flag-chip {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 9px 16px 9px 10px; font-size: 0.86rem; font-weight: 700; color: var(--ink);
}
.flag-chip .em { font-size: 1.15rem; display: inline-flex; }
.flag-chip .em img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); display: block; }

.regions-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.region-chip {
  background: var(--coral-tint); color: var(--coral-dark); font-size: 0.82rem; font-weight: 800;
  padding: 7px 16px; border-radius: var(--radius-pill);
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { padding: 6px 0; }
.why-icon { color: var(--blue); font-size: 1.6rem; margin-bottom: 14px; }
.why-card h4 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Footer CTA ---------- */
.cta-band {
  background: var(--blue); border-radius: var(--radius-lg); padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1rem; margin: 0; max-width: 460px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--coral-tint); color: var(--coral-dark); }

.v2-footer { background: #fff; padding: 80px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-size: 0.88rem; margin-bottom: 16px; color: var(--ink); }
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: var(--slate); }
.footer-tag { font-size: 0.85rem; color: var(--slate-light); margin: 14px 0 20px; display: block; }
.copyright { font-size: 0.8rem; color: var(--slate-light); }
.contact-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.88rem; }
.contact-line i { color: var(--blue); }

.portal-link-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; background: var(--bg-soft); border-radius: var(--radius); margin-top: 18px; color: var(--ink);
}
.portal-link-box:hover { background: var(--blue-tint); }
.portal-link-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.portal-link-title { font-size: 0.94rem; font-weight: 700; color: var(--ink); }
.portal-link-icon { color: var(--blue); font-size: 1.15rem; }

.social-row { display: flex; gap: 14px; }
.social-link { color: var(--slate); font-size: 1.15rem; }
.social-link:hover { color: var(--blue); }
.social-link-disabled { color: var(--line); }

.bot-bar { padding-top: 24px; text-align: center; }
.bot-bar-logo { height: 46px; margin-bottom: 18px; }
.bot-bar-text { font-size: 0.78rem; color: var(--slate-light); max-width: 820px; margin: 0 auto 12px; line-height: 1.6; }
.bot-bar-contact { font-size: 0.78rem; color: var(--slate); }

.beta-banner { background: var(--ink); color: rgba(255,255,255,0.85); text-align: center; font-size: 0.8rem; padding: 10px 16px; }
.beta-banner a { color: #FFC9AD; font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal-up { opacity: 0; transform: translateY(26px); transition: all 0.7s var(--ease); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-26px); transition: all 0.7s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(26px); transition: all 0.7s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.35s var(--ease); }
.modal.active { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(11, 30, 51, 0.65); backdrop-filter: blur(4px); }
.modal-container { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(0.98); transition: all 0.35s var(--ease); margin: 20px; }
.modal.active .modal-container { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; background: var(--bg-soft); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--slate); }
.modal-close:hover { background: var(--coral); color: #fff; }
.modal-content { padding: 44px; }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-header p { font-size: 0.9rem; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.92rem; background: var(--bg-soft);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-status { text-align: center; padding: 30px 0; }
.form-status i { font-size: 2.8rem; color: var(--blue); margin-bottom: 14px; display: block; }
.form-status h3 { font-size: 1.2rem; margin-bottom: 8px; }
.form-status p { font-size: 0.9rem; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .what-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .v2-hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 70px 0; }
  .logo-img { height: 38px; }
  .v2-hero .eyebrow-pill { display: none; }
  .hero-trust-row .trust-chip:first-child { display: none; }
  .v2-hero { padding-top: 88px; padding-bottom: 50px; }
  .hero-grid { gap: 32px; }
  .v2-hero-title { font-size: 2rem; margin-bottom: 16px; }
  .v2-hero-lede { font-size: 1rem; margin-bottom: 22px; }
  .hero-cta-row { margin-bottom: 26px; }
  .hero-trust-row { gap: 12px 20px; }
  .orbit-wrap { max-width: 300px; }
  .orbit-caption { margin-top: 12px; font-size: 0.76rem; }
  .what-grid, .why-grid, .steps-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 30px; flex-direction: column; text-align: center; }
  .cta-band p { max-width: none; }
  .mobile-header-controls { display: flex; }
  .header-actions .lang-flags { display: none; }
  .main-nav {
    position: fixed; top: 0; left: -100%; width: 84%; max-width: 320px; height: 100vh;
    background: #fff; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; box-shadow: 0 0 40px rgba(0,0,0,0.15); transition: left 0.3s var(--ease);
  }
  .main-nav.active { left: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 22px; }
  .header-actions { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-cta-row { flex-wrap: wrap; gap: 16px; }
  .hero-trust-row { flex-wrap: wrap; gap: 16px 22px; }
  .audience-card { padding: 34px 26px; }
}

@media (max-width: 576px) {
  .modal-content { padding: 28px 20px; }
  .orbit-flag { width: 46px; height: 46px; font-size: 1.3rem; }
  .orbit-flag img { width: 26px; height: 18px; }
  .beta-banner { font-size: 0.72rem; line-height: 1.5; }
}
