/* Infosys Careers — infosys.careers */
:root {
  --infy-blue: #007cc3;
  --infy-blue-deep: #005a8c;
  --infy-navy: #0a2540;
  --infy-ink: #1a2332;
  --infy-muted: #5a6a7a;
  --infy-surface: #f0f5f9;
  --infy-line: #d4e0ea;
  --infy-accent: #00a3e0;
  --infy-warm: #e8f4fc;
  --font-display: "Libre Franklin", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 4px;
  --shadow-soft: 0 12px 40px rgba(10, 37, 64, 0.08);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--infy-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--infy-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--infy-blue-deep);
}

h1,
h2,
h3,
h4,
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--infy-navy);
  line-height: 1.2;
}

/* ——— Top bar ——— */
.site-topbar {
  background: var(--infy-navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.site-topbar a {
  color: rgba(255, 255, 255, 0.85);
}

.site-topbar a:hover {
  color: #fff;
}

/* ——— Navbar ——— */
.site-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--infy-line);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition);
}

.site-nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--infy-blue);
  border-left: 2px solid var(--infy-line);
  padding-left: 0.65rem;
  line-height: 1.2;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--infy-ink) !important;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--infy-blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn-infy {
  background: var(--infy-blue);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-infy:hover {
  background: var(--infy-blue-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 124, 195, 0.3);
}

.btn-infy-outline {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.btn-infy-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
}

.btn-infy-ghost {
  background: transparent;
  color: var(--infy-blue) !important;
  border: 1.5px solid var(--infy-blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  padding: 0.65rem 1.35rem;
  transition: background var(--transition), color var(--transition);
}

.btn-infy-ghost:hover {
  background: var(--infy-blue);
  color: #fff !important;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(10, 37, 64, 0.92) 0%, rgba(0, 90, 140, 0.75) 48%, rgba(0, 124, 195, 0.55) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80")
      center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(0, 163, 224, 0.25), transparent 55%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.hero-brand {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.1s forwards;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  max-width: 14ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.25s forwards;
}

.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.4s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.55s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounceSoft 2.2s ease-in-out infinite;
}

@keyframes bounceSoft {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--infy-surface);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--infy-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--infy-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* ——— Value strip ——— */
.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--infy-line);
  border-bottom: 1px solid var(--infy-line);
}

.value-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--infy-line);
  transition: background var(--transition);
}

.value-item:last-child {
  border-right: none;
}

.value-item:hover {
  background: var(--infy-warm);
}

.value-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--infy-blue);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.value-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--infy-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ——— Job cards ——— */
.job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid var(--infy-line);
  background: #fff;
  color: var(--infy-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--infy-navy);
  border-color: var(--infy-navy);
  color: #fff;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--infy-line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.25s ease;
}

.job-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.job-row:hover {
  background: rgba(0, 124, 195, 0.03);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.job-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  background: var(--infy-warm);
  color: var(--infy-blue-deep);
}

.job-badge.loc {
  background: #eef2f6;
  color: var(--infy-muted);
}

.job-row h3 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.job-row h3 a {
  color: var(--infy-navy);
}

.job-row h3 a:hover {
  color: var(--infy-blue);
}

.job-desc {
  color: var(--infy-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 42rem;
}

.job-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  white-space: nowrap;
}

.job-id {
  font-size: 0.75rem;
  color: var(--infy-muted);
}

/* ——— Apply form ——— */
.apply-panel {
  background: #fff;
  border: 1px solid var(--infy-line);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
}

.form-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--infy-navy);
}

.form-control,
.form-select {
  border: 1px solid var(--infy-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--infy-blue);
  box-shadow: 0 0 0 3px rgba(0, 124, 195, 0.15);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--infy-muted);
}

.apply-aside {
  background: var(--infy-navy);
  color: #fff;
  padding: 2.5rem;
  height: 100%;
}

.apply-aside h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.apply-aside p,
.apply-aside li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.apply-aside ol {
  padding-left: 1.2rem;
  margin: 0;
}

.apply-aside li {
  margin-bottom: 0.75rem;
}

.alert-success-custom {
  display: none;
  background: #e6f7ef;
  border: 1px solid #a8e0c4;
  color: #0d5c36;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.alert-success-custom.show {
  display: block;
  animation: fadeUp 0.45s ease;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  background:
    linear-gradient(120deg, var(--infy-navy) 0%, var(--infy-blue-deep) 100%);
  color: #fff;
  padding: 4rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.2), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 0.65rem;
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 36rem;
  position: relative;
}

/* ——— Legal pages ——— */
.legal-content {
  max-width: 48rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--infy-muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--infy-muted);
  border-bottom: 1px solid var(--infy-line);
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--infy-navy);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 124, 195, 0.35));
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

/* ——— Footer ——— */
.site-footer {
  background: #061828;
  color: rgba(255, 255, 255, 0.65);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.92rem;
}

.site-footer h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ——— Search bar ——— */
.jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.search-wrap input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1px solid var(--infy-line);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--infy-blue);
  box-shadow: 0 0 0 3px rgba(0, 124, 195, 0.12);
}

.search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--infy-muted);
}

.jobs-count {
  font-size: 0.9rem;
  color: var(--infy-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--infy-muted);
  display: none;
}

.empty-state.show {
  display: block;
}

/* ——— Pathways ——— */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pathway {
  position: relative;
  padding: 2.25rem;
  background: #fff;
  border: 1px solid var(--infy-line);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pathway::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--infy-blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.pathway:hover {
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.pathway:hover::before {
  transform: scaleY(1);
}

.pathway h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.pathway p {
  color: var(--infy-muted);
  margin-bottom: 1.25rem;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  .value-row {
    grid-template-columns: 1fr;
  }

  .value-item {
    border-right: none;
    border-bottom: 1px solid var(--infy-line);
  }

  .value-item:last-child {
    border-bottom: none;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .job-row {
    grid-template-columns: 1fr;
  }

  .job-actions {
    align-items: flex-start;
    flex-direction: row;
  }

  .hero {
    min-height: 78vh;
  }

  .brand-tag {
    display: none;
  }
}

.email-otp-group .btn {
  white-space: nowrap;
}

.email-otp-group .form-control:disabled {
  background: #f3f7fa;
}

.otp-status-ok {
  color: #0d5c36 !important;
  font-weight: 600;
}

.otp-status-err {
  color: #b42318 !important;
}

.otp-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d5c36;
}

#otp:disabled,
#email:disabled {
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  .apply-panel,
  .apply-aside {
    padding: 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .email-otp-group {
    flex-direction: column;
  }

  .email-otp-group .btn {
    width: 100%;
    border-radius: var(--radius) !important;
  }

  .email-otp-group .form-control {
    border-radius: var(--radius) !important;
  }
}
