/* ── Join Us Page ─────────────────────────── */

/* ── Page Hero ───────────────────────────── */
.joinus-hero {
  position: relative;
  background: var(--white);
  padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-16);
  overflow: hidden;
  text-align: center;
}
.joinus-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.joinus-hero-bg .hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.joinus-hero-bg .hero-orb:nth-child(1) { width: 400px; height: 400px; background: var(--blue); top: -15%; left: 10%; animation: orbFloat1 20s ease-in-out infinite; }
.joinus-hero-bg .hero-orb:nth-child(2) { width: 350px; height: 350px; background: var(--yellow); bottom: -10%; right: 5%; animation: orbFloat2 25s ease-in-out infinite; }
.joinus-hero-bg .hero-orb:nth-child(3) { width: 250px; height: 250px; background: var(--green); top: 30%; right: 25%; animation: orbFloat3 18s ease-in-out infinite; }
.joinus-hero .container { position: relative; z-index: 2; }
.joinus-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  line-height: 1.15;
}
.joinus-hero-sub {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Journey Map Section ─────────────────── */
.journey-section {
  padding: var(--sp-20) 0;
  background: var(--light);
  overflow: hidden;
}
.journey-map-wrapper {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
}
.journey-svg-container {
  width: 100%;
  position: relative;
}
.journey-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG journey path animation */
.journey-path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  opacity: 0;
}
.journey-path.animate {
  opacity: 1;
  animation: drawJourneyPath 4s ease-in-out forwards;
}
@keyframes drawJourneyPath {
  from { stroke-dashoffset: 2000; }
  to   { stroke-dashoffset: 0; }
}

/* City dots on the map */
.journey-dot {
  fill: var(--yellow);
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.journey-dot.visible {
  opacity: 1;
  animation: journeyDotPulse 2s ease-in-out infinite;
}
@keyframes journeyDotPulse {
  0%, 100% { r: 5; opacity: 0.9; }
  50%      { r: 7; opacity: 1; }
}

/* City dot glow ring */
.journey-dot-ring {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
}
.journey-dot-ring.visible {
  opacity: 0.4;
  animation: journeyRingPulse 2.5s ease-in-out infinite;
}
@keyframes journeyRingPulse {
  0%, 100% { r: 8; opacity: 0.2; }
  50%      { r: 12; opacity: 0.5; }
}

/* City labels */
.journey-label {
  fill: var(--dark);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.journey-label.visible { opacity: 1; }

/* Country region labels */
.journey-country-label {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Map outlines */
.map-outline {
  fill: var(--blue-10);
  stroke: var(--blue-20);
  stroke-width: 1;
}
.map-outline-uae {
  fill: var(--green-10);
  stroke: var(--green-20);
  stroke-width: 1;
}
.map-outline-usa {
  fill: var(--yellow-10);
  stroke: var(--yellow-20);
  stroke-width: 1;
}

/* Journey city legend strip */
.journey-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.journey-legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark);
  transition: all var(--trans-base);
}
.journey-legend-item:hover {
  border-color: var(--yellow);
  background: var(--yellow-10);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.journey-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.journey-legend-item[data-country="IN"] .journey-legend-dot { background: var(--blue); }
.journey-legend-item[data-country="AE"] .journey-legend-dot { background: var(--green); }
.journey-legend-item[data-country="US"] .journey-legend-dot { background: var(--yellow); }

/* ── Offices Section ─────────────────────── */
.offices-section {
  padding: var(--sp-20) 0;
  background: var(--white);
}
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--sp-6);
}
.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--trans-base);
}
.office-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.office-card-map {
  height: 10rem;
  background: var(--light);
  position: relative;
  overflow: hidden;
}
.office-card-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3);
  transition: filter var(--trans-base);
}
.office-card:hover .office-card-map iframe { filter: grayscale(0); }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-sm);
  background: var(--light);
}
.map-placeholder i { font-size: var(--fs-2xl); color: var(--yellow); animation: pulse 1.5s ease-in-out infinite; }
.office-card-body {
  padding: var(--sp-5);
}
.office-card-city {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--sp-1);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.office-card-city i {
  color: var(--yellow);
  font-size: var(--fs-sm);
}
.office-card-label {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.office-card-country {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.office-card-country.country-in { background: var(--blue-10); color: #2B6CB0; }
.office-card-country.country-ae { background: var(--green-10); color: #276749; }
.office-card-country.country-us { background: var(--yellow-10); color: #B7791F; }

/* ── Founders Section ────────────────────── */
.founders-section {
  padding: var(--sp-20) 0;
  background: var(--light);
}
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-8);
  max-width: 56rem;
  margin: 0 auto;
}
.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}
.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}
.founder-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.founder-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: var(--r-full);
  margin: 0 auto var(--sp-4);
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: var(--fs-2xl);
  position: relative;
  overflow: hidden;
}
.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-full);
}
.founder-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--sp-1);
}
.founder-designation {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}
.founder-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
}
.founder-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  transition: all var(--trans-base);
  border: 1px solid var(--border);
  color: var(--muted);
}
.founder-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.founder-link.link-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: var(--white);
}
.founder-link.link-email:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ── EOI Form Section ────────────────────── */
.eoi-section {
  padding: var(--sp-20) 0;
  background: var(--white);
}
.eoi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  max-width: 64rem;
  margin: 0 auto;
}
.eoi-info {
  padding-top: var(--sp-4);
}
.eoi-info h3 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--sp-4);
  line-height: 1.3;
}
.eoi-info p {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}
.eoi-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eoi-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
  color: var(--dark);
  line-height: 1.5;
}
.eoi-benefits li i {
  color: var(--yellow);
  margin-top: 2px;
  flex-shrink: 0;
}
.eoi-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}
.eoi-form-card .form-group { margin-bottom: var(--sp-5); }

/* EOI success state */
.eoi-success {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
}
.eoi-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-full);
  background: var(--green-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: var(--fs-2xl);
  color: var(--success);
  animation: scaleIn 0.4s ease;
}
.eoi-success h3 {
  margin-bottom: var(--sp-2);
}
.eoi-success p {
  color: var(--muted);
  max-width: 20rem;
  margin: 0 auto;
}

/* ── CTA strip ───────────────────────────── */
.joinus-cta {
  background: var(--light);
  padding: var(--sp-16) 0;
  text-align: center;
}
.joinus-cta h2 {
  color: var(--dark);
  margin-bottom: var(--sp-4);
}
.joinus-cta p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto var(--sp-8);
  font-size: var(--fs-lg);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .offices-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
  .eoi-wrapper { grid-template-columns: 1fr; gap: var(--sp-8); }
  .eoi-info { text-align: center; }
  .eoi-benefits { max-width: 28rem; margin: 0 auto; }
}

@media (max-width: 768px) {
  .joinus-hero { padding-top: calc(var(--header-h) + var(--sp-10)); padding-bottom: var(--sp-10); }
  .journey-section { padding: var(--sp-12) 0; }
  .offices-section { padding: var(--sp-12) 0; }
  .founders-section { padding: var(--sp-12) 0; }
  .eoi-section { padding: var(--sp-12) 0; }
  .founders-grid { grid-template-columns: 1fr; max-width: 20rem; }
  .offices-grid { grid-template-columns: 1fr; }
  .eoi-form-card { padding: var(--sp-6); }
  .journey-legend { gap: var(--sp-2); }
  .journey-legend-item { font-size: var(--fs-xs); padding: var(--sp-1) var(--sp-3); }
  .journey-label { font-size: 9px; }
}

@media (max-width: 480px) {
  .founder-card { padding: var(--sp-6) var(--sp-4); }
  .founder-avatar { width: 5rem; height: 5rem; font-size: var(--fs-xl); }
}
