/* ============================================================
   Rxind — Premium International HR & Executive Search
   Design system
   ============================================================ */

:root {
  /* Palette — premium navy + gold */
  --color-primary: #0b1f4d;      /* deep navy */
  --color-primary-dark: #06122f;
  --color-primary-light: #2a4a8f;
  --color-gold: #c9a24b;         /* champagne gold */
  --color-gold-dark: #a9812f;
  --color-gold-light: #e4c987;
  --color-accent: #c9a24b;       /* alias -> gold */
  --color-accent-dark: #a9812f;
  --color-ink: #0c1424;          /* near-black text */
  --color-body: #3a4256;         /* body text */
  --color-muted: #7a8296;
  --color-line: #e7e3d9;         /* warm hairline */
  --color-bg: #ffffff;
  --color-bg-soft: #faf9f6;      /* warm off-white */
  --color-bg-alt: #f3f1ea;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #d97706;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;

  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 36, 0.05);
  --shadow: 0 10px 34px rgba(12, 20, 36, 0.09);
  --shadow-lg: 0 30px 64px rgba(12, 20, 36, 0.16);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-dark); }

h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--alt { background: var(--color-bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 14px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: var(--color-gold); vertical-align: middle; margin: 0 10px;
}
.section-head p { color: var(--color-muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(11,31,77,0.25); }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,31,77,0.32); }
.btn--accent { background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold)); color: #3a2c07; box-shadow: 0 8px 22px rgba(201,162,75,0.35); }
.btn--accent:hover { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); color: #2a1f04; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold-dark); background: var(--color-bg-soft); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-bg-alt); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--color-ink); letter-spacing: 0.01em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem;
  font-family: var(--font-display); box-shadow: 0 6px 16px rgba(11,31,77,0.25);
}
.brand span b { color: var(--color-gold-dark); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--color-body); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--color-gold); transition: width var(--transition); }
.nav a:hover, .nav a.is-active { color: var(--color-primary); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-ink); margin: 4px auto; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(201,162,75,0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(201,162,75,0.10), transparent 55%),
    linear-gradient(155deg, #0b1f4d 0%, #06122f 100%);
  color: #e8ecf5;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none; opacity: 0.6;
}
.hero__inner { padding: 104px 0 116px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.22rem; color: #c4cee2; max-width: 560px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,75,0.14); border: 1px solid rgba(201,162,75,0.4);
  padding: 7px 16px; border-radius: 999px; font-size: 0.82rem; color: var(--color-gold-light); margin-bottom: 22px; letter-spacing: 0.04em;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__stats { display: flex; gap: 44px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats .stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: #fff; }
.hero__stats .stat span { color: #97a4c0; font-size: 0.88rem; letter-spacing: 0.03em; }

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,162,75,0.25);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-search { display: grid; gap: 12px; }
.hero-search label { color: #d5dcec; font-size: 0.85rem; font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--color-ink); }
.field .hint { font-size: 0.8rem; color: var(--color-muted); }
input, select, textarea {
  font-family: inherit; font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid var(--color-line);
  border-radius: var(--radius-sm); background: #fff; color: var(--color-ink);
  transition: border var(--transition), box-shadow var(--transition); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(47,107,216,0.15);
}
textarea { resize: vertical; min-height: 120px; }
.field .error-msg { color: var(--color-danger); font-size: 0.82rem; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--color-danger); }
.field.has-error .error-msg { display: block; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,162,75,0.4); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11,31,77,0.10), rgba(201,162,75,0.18));
  color: var(--color-gold-dark); font-size: 1.5rem; margin-bottom: 18px;
  border: 1px solid rgba(201,162,75,0.25);
}

/* ---------- Vacancy list ---------- */
.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 96px;
}
.filters h3 { font-size: 1.05rem; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.92rem; cursor: pointer; }
.check input { width: auto; }

.jobs-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.jobs-toolbar .search { position: relative; flex: 1; min-width: 240px; }
.results-count { color: var(--color-muted); font-size: 0.9rem; }

.job-card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 22px 24px; display: grid; gap: 10px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,162,75,0.5); }
.job-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-card__logo {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1rem;
}
.job-card h3 { margin: 0; font-size: 1.18rem; font-family: var(--font-sans); font-weight: 700; }
.job-card .company { color: var(--color-muted); font-size: 0.9rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--color-body); font-size: 0.88rem; }
.job-meta .meta { display: inline-flex; align-items: center; gap: 6px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.78rem; padding: 4px 11px; border-radius: 999px;
  background: var(--color-bg-alt); color: var(--color-body); font-weight: 600;
}
.tag--accent { background: rgba(201,162,75,0.16); color: var(--color-gold-dark); }
.tag--primary { background: rgba(11,31,77,0.09); color: var(--color-primary); }
.salary { color: var(--color-gold-dark); font-weight: 700; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px; border: 1px solid var(--color-line); background: #fff;
  border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--color-body);
}
.pagination button:hover { border-color: var(--color-gold); color: var(--color-gold-dark); }
.pagination button.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Vacancy detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail-main h1 { margin-bottom: 8px; }
.detail-main ul { padding-left: 20px; }
.detail-main li { margin-bottom: 8px; }
.detail-side {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 96px; box-shadow: var(--shadow-sm);
}
.detail-side .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: 0.92rem; }
.detail-side .row:last-of-type { border-bottom: none; }
.detail-side .row span:first-child { color: var(--color-muted); }
.detail-side .row span:last-child { font-weight: 600; color: var(--color-ink); }

.breadcrumbs { font-size: 0.86rem; color: var(--color-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ---------- Auth / narrow pages ---------- */
.auth-wrap { position: relative; min-height: calc(100vh - 80px); display: grid; place-items: center; background: var(--color-bg-soft); padding: 48px 24px; overflow: hidden; }
.auth-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 440px; background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); backdrop-filter: blur(14px) saturate(130%);
}
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--color-muted); margin-bottom: 28px; }

/* Decorative blurred colour blobs + soft shapes */
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: floaty 14s ease-in-out infinite; }
.auth-bg .blob--red   { width: 360px; height: 360px; background: #ef4444; top: -80px; left: -60px; animation-delay: 0s; }
.auth-bg .blob--blue  { width: 420px; height: 420px; background: #3b82f6; bottom: -120px; right: -80px; animation-delay: 3s; }
.auth-bg .blob--green { width: 300px; height: 300px; background: #22c55e; bottom: 40px; left: 8%; animation-delay: 6s; }
.auth-bg .shape { position: absolute; filter: blur(2px); opacity: 0.35; animation: floaty 18s ease-in-out infinite; }
.auth-bg .shape--square { width: 90px; height: 90px; border-radius: 22px; background: rgba(59,130,246,0.5); top: 18%; right: 12%; transform: rotate(18deg); }
.auth-bg .shape--square.shape--sm { width: 54px; height: 54px; border-radius: 16px; background: rgba(239,68,68,0.5); bottom: 16%; right: 22%; animation-delay: 4s; }
.auth-bg .shape--circle { width: 70px; height: 70px; border-radius: 50%; background: rgba(34,197,94,0.5); top: 26%; left: 14%; animation-delay: 2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-bg .blob, .auth-bg .shape { animation: none; }
}

.divider { text-align: center; color: var(--color-muted); font-size: 0.85rem; margin: 20px 0; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--color-line); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* Google Sign-in button (official-style) */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-family: "Roboto", var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.google-btn:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(60,64,67,0.2); border-color: #d2d5da; }
.google-btn:active { background: #f1f3f4; }
.google-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66,133,244,0.35); }
.google-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; background: #f7f8f8; }
.google-btn svg { flex: none; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.alert--success { background: rgba(22,163,74,0.1); color: var(--color-success); border: 1px solid rgba(22,163,74,0.3); }
.alert--error { background: rgba(220,38,38,0.08); color: var(--color-danger); border: 1px solid rgba(220,38,38,0.3); }

.narrow { max-width: 760px; margin-inline: auto; }

/* ---------- Logos / testimonials ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 32px 52px; justify-content: center; align-items: center; opacity: 0.65; }
.logos span { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--color-muted); letter-spacing: -0.01em; }

.quote { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: "\201C"; font-family: var(--font-display); position: absolute; top: 8px; right: 24px; font-size: 4rem; color: rgba(201,162,75,0.28); line-height: 1; }
.quote p { font-size: 1.05rem; color: var(--color-ink); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,var(--color-primary),var(--color-gold)); color:#fff; display:grid; place-items:center; font-weight:700; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(201,162,75,0.28), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: 22px; padding: 60px; text-align: center;
  border: 1px solid rgba(201,162,75,0.3);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4cee2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #c3cad9; padding: 66px 0 28px; }
.site-footer a { color: #c3cad9; }
.site-footer a:hover { color: var(--color-gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #8a93a8; }
.footer-brand { color:#fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; }
.muted { color: var(--color-muted); }
.hidden { display: none !important; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--color-line); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; }
  .jobs-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--color-line); gap: 16px;
  }
  .site-header.open .header-actions { display: flex; position: absolute; top: 220px; left: 24px; right: 24px; flex-direction: column; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .auth-card { padding: 28px; }
}
