/* ==========================================================================
   ZENTHAMIZH INNOVATIONS — CAREERS PORTAL
   Consolidated Premium Styling (Tokens, Animations, Base, Layout, Responsive)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --color-purple: #6D28D9;
  --color-purple-dark: #3B0764;
  --color-purple-light: #C4B5FD;
  --color-accent: #8B5CF6;
  --color-accent-electric: #22D3EE;
  --color-black: #0F0720; /* Deep purple-black instead of pure black */
  --color-black-soft: #170E2C;
  --color-white: #FFFFFF;
  --color-off-white: #FAF9FC;
  --color-gray: #374151; /* Darker charcoal gray for high-contrast WCAG AA readability */
  --color-gray-light: #E7E4EF;

  /* Spacing Scale System (8px base) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-xxl: 5rem;     /* 80px */

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 40px rgba(61, 15, 122, 0.06);
  --shadow-card: 0 20px 60px rgba(13, 10, 22, 0.07);
  --transition-base: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  
  --zi-space-3: 1rem;
  --zi-space-4: 1.5rem;
  --zi-space-5: 2rem;
  --zi-space-6: 3rem;
  --zi-space-7: 4rem;
  --zi-space-8: 6rem;
  --zi-container-max: 1240px;

  /* Compatibility aliases */
  --zi-success: #16A34A;
  --zi-danger: #DC2626;
  --zi-radius-sm: var(--radius-sm);
  --zi-radius-md: var(--radius-md);
  --zi-radius-lg: var(--radius-lg);
  --zi-radius-pill: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-top: 0;
  margin-bottom: 0;
}

p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

::selection {
  background: var(--color-purple);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--color-purple-light);
  outline-offset: 3px;
}

.container-zi {
  width: 100%;
  max-width: var(--zi-container-max);
  margin: 0 auto;
  padding-left: var(--zi-space-4);
  padding-right: var(--zi-space-4);
}

.text-purple { color: var(--color-purple); }
.text-center { text-align: center; }
.text-gradient-purple {
  background: linear-gradient(90deg, #7C3AED, #4C1D95);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple);
  position: relative;
  padding-left: 18px;
  margin-bottom: 0.5rem;
}
.section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--color-purple);
}
.eyebrow-light { color: var(--color-purple-light); }
.eyebrow-light::before { background: var(--color-purple-light); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 800;
}

.section-pad {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0; /* Expanded section padding */
}

/* --------------------------------------------------------------------------
   3. PRELOADER
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 60px;
  height: auto;
  animation: pulseFade 1.1s ease-in-out infinite;
}
@keyframes pulseFade {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   4. SITE HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
  padding: 0.85rem 0;
}
.site-header.scrolled {
  border-bottom-color: var(--color-gray-light);
  box-shadow: 0 4px 24px rgba(13, 10, 22, 0.05);
}
.custom-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zi-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left: 0.5rem;
}
.logo-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: 0.06em;
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-gray);
  letter-spacing: 0.28em;
}
.navbar-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray);
}
.navbar-tagline span {
  color: var(--color-purple);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary-purple {
  background: var(--color-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.25);
  transition: var(--transition-base);
  cursor: pointer;
}
.btn-primary-purple:hover {
  background: var(--color-purple-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(109, 40, 217, 0.35);
}
.btn-primary-purple i {
  transition: transform 0.3s ease;
}
.btn-primary-purple:hover i {
  transform: translateX(4px);
}

.btn-zi-outline {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-gray-light);
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-zi-outline:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: rgba(109, 40, 217, 0.04);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: var(--space-xl) 0 var(--space-md); /* Compact 48px top, 24px bottom */
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(196, 181, 253, 0.22), transparent 55%);
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(109, 40, 217, 0.1), transparent);
  margin: 0;
  padding: 0;
}
.hero-section::before {
  content: "Z";
  position: absolute;
  right: 5%;
  top: 0;
  font-size: 32rem;
  font-weight: 900;
  color: rgba(109, 40, 217, 0.03);
  z-index: 1;
  line-height: 1;
  pointer-events: none;
  font-family: var(--font-display);
}
.hero-grid-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--zi-space-5);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-lines {
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background-image: repeating-linear-gradient(115deg, rgba(109,40,217,0.05) 0 1px, transparent 1px 40px);
  pointer-events: none;
}
.tagline-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}
.tagline-badge em {
  color: var(--color-purple);
  font-style: normal;
  font-weight: 800;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  margin: 0.75rem 0 1rem;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray);
  max-width: 520px;
  margin-bottom: 0.5rem;
}

.open-position-card {
  background: #fff;
  border-left: 4px solid var(--color-purple);
  border-top: 1px solid var(--color-gray-light);
  border-right: 1px solid var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  max-width: 480px;
}
.open-position-card .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray);
  display: block;
  margin-bottom: 0.25rem;
}
.position-title {
  font-size: 1.4rem;
  margin: 0.35rem 0 1rem;
  font-weight: 800;
  color: var(--color-black);
}
.position-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.position-meta li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-light);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.position-meta li i {
  color: var(--color-purple);
  font-size: 1rem;
}

.hero-cta-wrapper {
  margin-top: 2.25rem !important;
  display: block;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.hero-z-mark {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 40px rgba(109,40,217,0.35));
  animation: floatDrift 6s ease-in-out infinite;
}
@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* --------------------------------------------------------------------------
   7. THINK / BUILD / EXECUTE STRIP
   -------------------------------------------------------------------------- */
.tbe-strip {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-purple-dark) 100%);
  color: #fff;
  padding: 5rem 0;
}
.tbe-grid-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--zi-space-5);
  align-items: center;
}
.tbe-items-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--zi-space-4);
}
.tbe-heading {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: #fff;
  line-height: 1.15;
  font-weight: 800;
}
.tbe-item {
  height: 100%;
}
.tbe-item i {
  font-size: 1.8rem;
  color: var(--color-purple-light);
  margin-bottom: 0.5rem !important; /* System spacing gap */
  display: block;
}
.tbe-item h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem !important; /* System spacing gap */
  font-weight: 800;
}
.tbe-item p {
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.65);
  margin-top: 0 !important;
  margin-bottom: 0;
  max-width: 240px;
  line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   8. STATEMENT STRIP
   -------------------------------------------------------------------------- */
.statement-section {
  padding: var(--space-xxl) 0; /* 80px */
  background: var(--color-off-white);
  border-top: 1px solid rgba(109, 40, 217, 0.04);
  border-bottom: 1px solid rgba(109, 40, 217, 0.04);
}
.statement-text {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   9. ROLE + FORM SECTION
   -------------------------------------------------------------------------- */
.role-section {
  padding: var(--space-xxl) 0; /* 80px */
  background: #ffffff;
}
.careers-main-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--zi-space-7);
  align-items: start;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 0; /* Handled directly by margins on the child components */
}
.details-card {
  border-bottom: 1px solid rgba(109, 40, 217, 0.08);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}
.details-card:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Custom Testimonial Card Styling */
.testimonial-card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin: 2.5rem 0; /* Equalized margin top & bottom */
  position: relative;
  overflow: hidden;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: #2B2438;
  padding: 0.85rem 0 !important; /* Generous thumb-scroll readability spacing */
  border-bottom: 1px dashed var(--color-gray-light);
  line-height: 1.6 !important;
}
.check-list li:last-child {
  border-bottom: none;
}
.check-list i {
  color: var(--color-purple);
  margin-top: 0.2rem !important; /* Perfect align center with first line text baseline */
  flex-shrink: 0;
  font-size: 1.05rem;
}

.work-with-us-card {
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-gray-light);
}
.wwu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zi-space-4);
}
.wwu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-black);
}
.wwu-item i {
  color: var(--color-purple);
  font-size: 1.35rem;
}
.wwu-note {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin: 1.25rem 0 0;
  font-weight: 500;
  line-height: 1.6;
}

.tool-tag {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.tool-tag:hover {
  transform: translateY(-2px);
  border-color: var(--color-purple);
}

/* ---- Apply form card ---- */
.apply-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-light);
  position: sticky;
  top: 100px;
  z-index: 10;
}
.form-intro {
  color: var(--color-gray);
  font-size: 0.88rem;
  margin: 0.25rem 0 1.25rem;
}

/* ---------- Form Fields Grid (Desktop Heights Fix) ---------- */
.apply-form-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1200px) {
  .apply-form-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.75rem;
  }
  .apply-form-fields-grid .form-group.full-width {
    grid-column: span 2;
  }
  .apply-form-fields-grid .form-label {
    min-height: 2.8rem;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.45rem;
  }
  .apply-form-fields-grid .form-control,
  .apply-form-fields-grid .form-select {
    font-size: 0.85rem !important;
    padding-left: 2.35rem !important;
    min-height: 48px !important;
  }
  .apply-form-fields-grid .input-icon-wrapper .input-icon {
    left: 0.85rem !important;
    font-size: 0.95rem !important;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}
.form-group:last-of-type {
  margin-bottom: 0;
}
.form-label {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
  color: #2B2438;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-control {
  border: 1.5px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.25rem;
  font-size: 16px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  background: var(--color-off-white);
  color: var(--color-black);
  outline: none;
  min-height: 52px;
  width: 100%;
}
.form-select {
  border: 1.5px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.25rem;
  font-size: 16px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  background: var(--color-off-white);
  color: var(--color-black);
  outline: none;
  min-height: 52px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236D28D9' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
  background: #fff;
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Input Icon Wrapper Styling */
.input-icon-wrapper {
  position: relative;
  width: 100%;
}
.input-icon-wrapper .input-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-purple);
  font-size: 1.05rem;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: 5;
}
.form-control.with-icon, .form-select.with-icon {
  padding-left: 2.85rem;
}
.input-icon-wrapper:focus-within .input-icon {
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
}

.file-drop {
  position: relative;
  border: 1.5px dashed var(--color-gray);
  border-radius: var(--radius-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--color-off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 130px;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--color-purple);
  background: rgba(109, 40, 217, 0.05);
}
.file-drop i {
  font-size: 2rem;
  color: var(--color-purple);
  display: block;
}
.file-drop span {
  font-size: 0.82rem;
  color: var(--color-gray);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quick-question {
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--color-gray-light);
}

.form-feedback {
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success { color: #16A34A; }
.form-feedback.error { color: #DC2626; }

/* --------------------------------------------------------------------------
   10. FOCUS AREA GRID
   -------------------------------------------------------------------------- */
.focus-section {
  padding: 6rem 0;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3x2 Grid layout */
  gap: var(--zi-space-4);
}
.focus-item {
  background: #fff;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.focus-item i {
  font-size: 1.8rem;
  color: var(--color-purple);
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}
.focus-item span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-black);
}
.focus-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(109, 40, 217, 0.08);
  border-color: var(--color-purple);
}
.focus-item:hover i {
  color: var(--color-accent);
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   11. TRAITS SECTION
   -------------------------------------------------------------------------- */
.traits-section {
  padding: 6rem 0;
}
.trait-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1.5px solid var(--color-purple);
  color: var(--color-purple);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  cursor: default;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.04);
}
.trait-tag:hover {
  background: var(--color-purple);
  color: #fff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   12. GROWTH SYSTEM FLOW
   -------------------------------------------------------------------------- */
.system-section {
  background: linear-gradient(180deg, var(--color-black) 0%, var(--color-purple-dark) 100%);
  padding: 6rem 0;
}
.system-grid-row {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: var(--zi-space-6);
  align-items: center;
}

/* Accordion Styling */
.growth-system-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.accordion-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
}
.accordion-item.active {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196, 181, 253, 0.3);
  border-left: 4px solid var(--color-purple-light);
}
.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  outline: none;
}
.step-num {
  font-size: 0.85rem;
  color: var(--color-purple-light);
  margin-right: 1rem;
  font-weight: 800;
}
.step-title {
  font-size: 1.1rem;
  flex-grow: 1;
}
.accordion-icon {
  font-size: 1.2rem;
  color: var(--color-purple-light);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 1.5rem;
}
.accordion-item.active .accordion-body {
  max-height: 120px; /* high enough to show description */
  padding-bottom: 1.25rem;
}
.accordion-body p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. PHILOSOPHY / JOIN ZONE CTA
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-purple-dark) 50%, var(--color-black) 100%);
  background-size: 200% 200%;
  animation: gradShift 15s ease infinite;
  color: #fff;
  padding: var(--space-xxl) 0; /* System 80px Padding */
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-heading {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--color-purple-light);
  line-height: 1.05;
  font-weight: 800;
}
.cta-text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.pulse-btn {
  animation: btnPulse 4s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: radial-gradient(circle at 15% 85%, rgba(109, 40, 217, 0.05), transparent 45%), var(--color-black);
  color: rgba(255,255,255,0.65);
  padding: var(--space-xxl) 0; /* System 80px Padding */
  border-top: 1px solid rgba(109, 40, 217, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--zi-space-6);
  margin-bottom: var(--space-xxl); /* System 80px spacing */
}
.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo {
  height: 38px;
  width: auto;
}
.footer-brand-wrap .logo-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}
.footer-brand-wrap .logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-purple-light);
  letter-spacing: 0.28em;
}
.footer-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}
.footer-heading {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-purple-light);
  padding-left: 4px;
}
.footer-contact-info p {
  margin-bottom: 0.65rem;
  color: rgba(255,255,255,0.5);
}
.footer-contact-info a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition-fast);
}
.footer-contact-info a:hover {
  color: var(--color-purple-light);
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* Expanded 44x44 tap target */
  height: 44px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}
.social-row a:hover {
  background: var(--color-purple);
  transform: translateY(-2px);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  transition: var(--transition-fast);
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links a:hover {
  color: var(--color-purple-light);
}

.sticky-mobile-cta {
  display: none;
}

/* --------------------------------------------------------------------------
   15. SCROLL TO TOP
   -------------------------------------------------------------------------- */
#backToTop {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 10px 25px rgba(109,40,217,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  z-index: 999;
  cursor: pointer;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--color-purple-dark);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEALS & ANIMATIONS
   -------------------------------------------------------------------------- */
/* Fade In Up keyframe */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In keyframe */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-fade-up {
  animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}
.anim-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Dynamic Scroll Reveals (only hidden if JS is loaded and running) */
.js-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-enabled .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .custom-navbar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .navbar-tagline {
    margin-top: 0.25rem;
  }

  .apply-form-card {
    position: static;
    margin-top: 2.5rem;
  }
  
  .careers-main-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-grid-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-logo-wrap {
    position: absolute;
    right: 5%;
    bottom: 5%;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
  }
  .hero-z-mark {
    max-width: 140px;
  }
  .hero-text-block {
    position: relative;
    z-index: 2;
  }

  .tbe-grid-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--zi-space-5);
  }
  .tbe-items-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .tbe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tbe-item p {
    max-width: 100%;
  }

  .system-grid-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .system-intro-column p {
    margin-left: auto;
    margin-right: auto;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-brand-wrap {
    justify-content: center;
  }
  .social-row {
    justify-content: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }

  /* Sticky bottom mobile CTA container */
  .sticky-mobile-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1040;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .sticky-mobile-cta .btn-primary-purple {
    width: 100%;
    max-width: 480px;
    pointer-events: auto;
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
  }
  .sticky-mobile-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-footer {
    padding-bottom: 7.5rem !important;
  }

  /* Shift back to top button to sit above sticky bar */
  #backToTop {
    bottom: 5.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 3.5rem 0 2rem !important;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .open-position-card {
    margin: 0 auto 1.25rem !important;
    border-left: 4px solid var(--color-purple);
  }
  .hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-cta-wrapper {
    margin-top: 2.25rem !important;
  }
  .position-meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .position-meta li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.78rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .position-meta li:last-child {
    grid-column: span 2 !important;
  }
  .position-meta li i {
    font-size: 0.95rem !important;
    margin-right: 0.35rem !important;
  }

  .tbe-strip, .statement-section, .role-section, .cta-banner {
    padding: 3.5rem 0 !important; /* Uniform mobile section spacing */
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wwu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-badge-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }
  .hero-badge {
    flex: 0 0 auto;
  }

  /* Stacked Footer borders & separators */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    text-align: center;
    margin-bottom: 3rem !important;
  }
  .footer-grid > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
  }
  .footer-grid > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-grid h5 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem !important;
  }
  .footer-grid h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--color-purple-light);
    border-radius: 2px;
  }
  .social-row {
    justify-content: center !important;
    gap: 0.85rem !important; /* Tighter gap to fit 6 icons on small mobile screens */
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Custom Toastify Styling ---------- */
.toastify.toast-success {
  background: linear-gradient(to right, #10B981, #059669) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2) !important;
  font-weight: 600 !important;
}
.toastify.toast-error {
  background: linear-gradient(to right, #EF4444, #DC2626) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2) !important;
  font-weight: 600 !important;
}
.toastify.toast-warning {
  background: linear-gradient(to right, #F59E0B, #D97706) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.2) !important;
  font-weight: 600 !important;
}
.toastify.toast-info {
  background: linear-gradient(to right, #3B82F6, #2563EB) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2) !important;
  font-weight: 600 !important;
}
