/* =============================================
   CAREER PAGE — premium redesign
   Hero reuses the site-wide .about-hero component. Every other
   section uses the .cr- prefix. Content is grounded only in what
   Sugal Group actually publishes: the real hiring philosophy
   statement, the real Chennai address/phones, and the group's real
   business verticals — no fabricated job listings, benefits, or
   process details.
   ============================================= */

.cr-section {
  padding: 90px 20px 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f1 100%);
}
.cr-container {
  max-width: 1200px;
  margin: 0 auto;
}
.cr-block {
  padding-bottom: 90px;
}

.cr-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.cr-pill {
  display: inline-block;
  padding: 7px 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 18px;
}
.cr-head h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 14px;
}
.cr-head h2 span { color: var(--maroon); }
.cr-head p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal-light);
}

/* ---- Why Join Us: 4 value cards derived from the real philosophy
   statement (lateral thinking, adding value, teamwork, growth) ---- */
.cr-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cr-why-card {
  background: #fff;
  border: 1px solid rgba(212, 148, 58, 0.14);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(40, 12, 26, 0.06);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease;
}
.cr-why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(139, 26, 74, 0.14);
}
.cr-why-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-tint), rgba(212, 148, 58, 0.15));
  transition: all 0.35s ease;
}
.cr-why-card:hover .cr-why-ico {
  background: linear-gradient(135deg, var(--gold), var(--maroon));
}
.cr-why-ico i { font-size: 24px; color: var(--maroon); transition: color 0.35s ease; }
.cr-why-card:hover .cr-why-ico i { color: #fff; }
.cr-why-card h4 { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.cr-why-card p { font-size: 13.5px; line-height: 1.65; color: var(--charcoal-light); }

/* ---- Culture: text + real business-vertical chips ---- */
.cr-culture {
  background: #fff;
  border: 1px solid rgba(212, 148, 58, 0.14);
  border-radius: 26px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: 0 14px 36px rgba(40, 12, 26, 0.06);
}
.cr-culture-text h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.cr-culture-text h3 span { color: var(--maroon); }
.cr-culture-text p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--charcoal-light);
  margin-bottom: 14px;
}
.cr-verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cr-vertical-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--accent-bg);
  border: 1px solid rgba(212, 148, 58, 0.18);
  padding: 9px 16px;
  border-radius: 30px;
}
.cr-vertical-chip i { color: var(--gold-dark); font-size: 16px; }

.cr-legacy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cr-legacy-stat {
  background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  color: #fff;
}
.cr-legacy-stat:nth-child(2) {
  background: linear-gradient(150deg, var(--gold-dark) 0%, var(--gold) 100%);
}
.cr-legacy-stat strong { display: block; font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.cr-legacy-stat span { font-size: 12px; opacity: 0.9; }

/* ---- Current Openings: honest, no fabricated listings ---- */
.cr-openings {
  background: linear-gradient(150deg, #2e1a10 0%, #1a1a2e 100%);
  border-radius: 26px;
  padding: 50px;
  text-align: center;
  color: #fff;
}
.cr-openings i.cr-openings-ico {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 148, 58, 0.18);
  color: var(--gold-light);
  font-size: 26px;
  margin: 0 auto 20px;
}
.cr-openings h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.cr-openings p {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #d8d0c8;
}
.cr-openings .cr-verticals { justify-content: center; }
.cr-openings .cr-vertical-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 148, 58, 0.3);
  color: #f0e9e0;
}
.cr-openings .cr-vertical-chip i { color: var(--gold-light); }

/* ---- Application process: 3 honest steps ---- */
.cr-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.cr-process-step {
  background: #fff;
  border: 1px solid rgba(212, 148, 58, 0.14);
  border-radius: 20px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(40, 12, 26, 0.06);
}
.cr-process-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--maroon-tint);
  color: var(--maroon);
  font-weight: 800;
  font-size: 17px;
}
.cr-process-step h4 { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.cr-process-step p { font-size: 13.5px; line-height: 1.65; color: var(--charcoal-light); }

/* ---- Resume upload form (same visual language as the Contact form) ---- */
.cr-apply {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  background: #fff;
  border: 1px solid rgba(212, 148, 58, 0.14);
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(40, 12, 26, 0.08);
  padding: 54px;
}
.cr-apply-side h2 { font-size: 28px; font-weight: 800; color: var(--charcoal); margin-bottom: 14px; }
.cr-apply-side h2 span { color: var(--maroon); }
.cr-apply-side > p { font-size: 14.5px; line-height: 1.75; color: var(--charcoal-light); margin-bottom: 24px; }

.cr-apply-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cr-apply-contact a,
.cr-apply-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--charcoal);
  text-decoration: none;
}
.cr-apply-contact i {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-size: 15px;
  flex-shrink: 0;
}

.cr-form { display: flex; flex-direction: column; gap: 20px; }
.cr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cr-field { position: relative; }
.cr-field--full { grid-column: 1 / -1; }
.cr-field input,
.cr-field textarea {
  width: 100%;
  padding: 18px 16px 8px;
  border-radius: 12px;
  border: 1px solid #e4e0da;
  background: var(--accent-bg);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--charcoal);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.cr-field textarea { resize: none; min-height: 100px; }
.cr-field input:focus,
.cr-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 148, 58, 0.14);
}
.cr-field label {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 14.5px;
  color: #9a9a9a;
  pointer-events: none;
  transition: all 0.2s ease;
}
.cr-field input:focus + label,
.cr-field input:not(:placeholder-shown) + label,
.cr-field textarea:focus + label,
.cr-field textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* File upload — styled as a dashed drop-zone-looking control */
.cr-file {
  position: relative;
  border: 1.5px dashed rgba(212, 148, 58, 0.4);
  border-radius: 12px;
  background: var(--accent-bg);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.cr-file:hover { border-color: var(--gold); background: #fff; }
.cr-file i { font-size: 22px; color: var(--gold-dark); flex-shrink: 0; }
.cr-file-text { display: flex; flex-direction: column; }
.cr-file-text strong { font-size: 13.5px; color: var(--charcoal); }
.cr-file-text span { font-size: 12px; color: #999; }
.cr-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cr-submit {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--maroon);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
}
.cr-submit i { transition: transform 0.3s ease; }
.cr-submit:hover { background: var(--maroon-dark); box-shadow: 0 14px 30px rgba(139, 26, 74, 0.35); }
.cr-submit:hover i { transform: translateX(5px); }

/* ---- FAQ (native <details>, no JS needed) ---- */
.cr-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cr-faq-item {
  background: #fff;
  border: 1px solid rgba(212, 148, 58, 0.14);
  border-radius: 16px;
  padding: 4px 24px;
  box-shadow: 0 8px 22px rgba(40, 12, 26, 0.05);
}
.cr-faq-item summary {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cr-faq-item summary::-webkit-details-marker { display: none; }
.cr-faq-toggle {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--gold-dark);
  transition: transform 0.3s ease;
}
.cr-faq-item[open] .cr-faq-toggle { transform: rotate(45deg); }
.cr-faq-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--charcoal-light);
  padding-bottom: 20px;
}

/* ---- CTA band ---- */
.cr-cta {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: 28px 28px 0 0;
  padding: 64px 30px;
  text-align: center;
  color: #fff;
  margin-top: 20px;
}
.cr-cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cr-cta p { font-size: 14.5px; opacity: 0.85; max-width: 520px; margin: 0 auto 26px; }
.cr-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--maroon);
  padding: 15px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.35s ease;
}
.cr-cta a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cr-why-grid { grid-template-columns: repeat(2, 1fr); }
  .cr-culture { grid-template-columns: 1fr; padding: 40px; }
  .cr-process-grid { grid-template-columns: 1fr; }
  .cr-apply { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
}

@media (max-width: 640px) {
  .cr-section { padding: 60px 16px 0; }
  .cr-block { padding-bottom: 60px; }
  .cr-head h2 { font-size: 26px; }
  .cr-why-grid { grid-template-columns: 1fr; }
  .cr-culture { padding: 28px; border-radius: 20px; }
  .cr-legacy-stats { grid-template-columns: 1fr 1fr; }
  .cr-openings { padding: 34px 24px; border-radius: 20px; }
  .cr-apply { padding: 26px; border-radius: 20px; }
  .cr-form-row { grid-template-columns: 1fr; }
  .cr-cta { padding: 46px 22px; border-radius: 20px; }
  .cr-cta h2 { font-size: 24px; }
}
