/* ==========================================================================
   Aslesha International — 21st.dev-style Hero (plain CSS recreation)
   All selectors are prefixed .hero21 so nothing leaks into the existing site.
   Brand: primary #191F6B / logo blue #262C9B / logo red #E31E24 — never gold.
   ========================================================================== */

.hero21 {
  --hero21-blue: var(--primary-light, #262C9B);
  --hero21-navy: var(--primary, #191F6B);
  --hero21-red: var(--brand-red, #E31E24);
  --hero21-red-dark: var(--brand-red-dark, #B91C1C);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, #10144e 0%, var(--hero21-navy) 46%, var(--hero21-blue) 115%);
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: 96px 0 112px;
}

/* --- Background layers -------------------------------------------------- */

.hero21-bg-img {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}

.hero21-mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(560px 380px at 12% 18%, rgba(38, 44, 155, 0.85) 0%, rgba(38, 44, 155, 0) 62%),
    radial-gradient(520px 360px at 88% 12%, rgba(227, 30, 36, 0.20) 0%, rgba(227, 30, 36, 0) 60%),
    radial-gradient(640px 420px at 72% 92%, rgba(90, 101, 214, 0.45) 0%, rgba(90, 101, 214, 0) 65%),
    radial-gradient(480px 320px at 28% 88%, rgba(25, 31, 107, 0.7) 0%, rgba(25, 31, 107, 0) 60%);
  animation: hero21-drift 16s ease-in-out infinite alternate;
}

.hero21-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, #000 30%, transparent 78%);
}

/* --- Layout -------------------------------------------------------------- */

.hero21-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero21-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Pill badge ------------------------------------------------------------ */

.hero21-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #E8EAF6;
}

.hero21-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero21-red);
  box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.55);
  animation: hero21-pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}

/* --- Headline & subtext ------------------------------------------------------ */

.hero21-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 920px;
  margin: 26px auto 22px;
}

.hero21-grad {
  background: linear-gradient(92deg, #FF6B6F 0%, var(--hero21-red) 38%, #8B93E8 78%, #C5CAE9 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.hero21-sub {
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 400;
  color: #C3CBDE;
  max-width: 720px;
  margin: 0 auto;
}

/* --- CTA buttons -------------------------------------------------------------- */

.hero21-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero21-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm, 6px);
  border: 2px solid transparent;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero21-btn-primary {
  background: var(--hero21-red);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(227, 30, 36, 0.38);
}

.hero21-btn-primary:hover {
  background: var(--hero21-red-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(227, 30, 36, 0.45);
}

.hero21-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.hero21-btn-ghost:hover {
  background: #ffffff;
  color: var(--hero21-navy);
  transform: translateY(-2px);
}

/* --- Job search bar -------------------------------------------------------------- */

.hero21-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 780px;
  margin: 40px auto 0;
  padding: 8px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(8, 11, 43, 0.35);
  text-align: left;
}

.hero21-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 14px;
}

.hero21-field + .hero21-field {
  border-left: 1px solid var(--border, #e2e8f0);
}

.hero21-field-select {
  flex: 0 1 220px;
}

.hero21-field i {
  color: var(--hero21-red);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.hero21-field input,
.hero21-field select {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: var(--text, #334155);
  padding: 12px 0;
  appearance: none;
  -webkit-appearance: none;
}

.hero21-field input::placeholder {
  color: var(--text-muted, #64748b);
}

/* Custom caret for the country select (appearance:none strips the native one) */
.hero21-field-select { position: relative; }
.hero21-field-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #191F6B;
  border-bottom: 2px solid #191F6B;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.hero21-field-select select { padding-right: 30px; }

.hero21-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 14px 26px;
  border: none;
  border-radius: 10px;
  background: var(--hero21-navy);
  color: #ffffff;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero21-search-btn:hover {
  background: var(--hero21-blue);
  transform: translateY(-1px);
}

/* --- Country quick links -------------------------------------------------------------- */

.hero21-countries {
  margin-top: 20px;
  font-size: 0.88rem;
  line-height: 2.1;
  color: #9AA5C4;
}

.hero21-countries a {
  display: inline-block;
  padding: 2px 4px;
  color: #E8EAF6;
  font-weight: 600;
  text-decoration: none;
}

.hero21-countries a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hero21-countries span {
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Floating glass stat cards -------------------------------------------------------------- */

.hero21-cards {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero21-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px 14px 14px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(8, 11, 43, 0.28);
  text-align: left;
  animation: hero21-float 6s ease-in-out infinite alternate;
}

.hero21-card-countries { animation-delay: 1.4s; }
.hero21-card-iso { animation-delay: 2.6s; }

.hero21-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 44, 155, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.1rem;
}

.hero21-card-icon-red {
  background: rgba(227, 30, 36, 0.5);
}

.hero21-card-text strong {
  display: block;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.hero21-card-text small {
  display: block;
  font-size: 0.78rem;
  color: #B9C2DC;
  margin-top: 2px;
}

/* On wide screens the cards float over the hero's side space, 21st-style */
@media (min-width: 1181px) {
  .hero21-cards {
    position: absolute;
    inset: 0;
    margin-top: 0;
    pointer-events: none;
  }

  .hero21-card {
    position: absolute;
    pointer-events: auto;
  }

  .hero21-card-license {
    left: 1.5%;
    top: 34%;
  }

  .hero21-card-countries {
    right: 1.5%;
    top: 22%;
  }

  .hero21-card-iso {
    right: 4.5%;
    bottom: 9%;
  }
}

/* --- Entrance animations -------------------------------------------------------------- */

.hero21-anim {
  opacity: 0;
  animation: hero21-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero21-anim-1 { animation-delay: 0.08s; }
.hero21-anim-2 { animation-delay: 0.18s; }
.hero21-anim-3 { animation-delay: 0.28s; }
.hero21-anim-4 { animation-delay: 0.38s; }
.hero21-anim-5 { animation-delay: 0.48s; }

@keyframes hero21-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero21-float {
  from { transform: translateY(-5px); }
  to   { transform: translateY(7px); }
}

@keyframes hero21-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

@keyframes hero21-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(227, 30, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 768px) {
  .hero21 {
    padding: 72px 0 84px;
  }

  .hero21-sub {
    font-size: 1.02rem;
  }

  .hero21-search {
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-md, 12px);
  }

  .hero21-field {
    padding: 4px 10px;
    background: var(--bg-alt, #f8fafc);
    border-radius: 8px;
  }

  .hero21-field + .hero21-field {
    border-left: none;
  }

  .hero21-field-select {
    flex: 1 1 auto;
  }

  /* iOS zooms on focus when the font is < 16px */
  .hero21-field input,
  .hero21-field select {
    font-size: 16px;
  }

  .hero21-search-btn {
    width: 100%;
    padding: 15px 26px;
  }
}

@media (max-width: 560px) {
  .hero21-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero21-btn {
    width: 100%;
  }

  .hero21-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .hero21-card {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero21 {
    padding: 60px 0 72px;
  }

  .hero21-inner {
    padding: 0 16px;
  }

  .hero21-title {
    font-size: 2.1rem;
  }

  .hero21-badge {
    font-size: 0.7rem;
    padding: 7px 13px;
    letter-spacing: 0.4px;
  }
}

/* --- Reduced motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero21-anim,
  .hero21-card,
  .hero21-mesh,
  .hero21-badge-dot {
    animation: none;
  }

  .hero21-anim {
    opacity: 1;
  }
}
