/* =============================================
   CAREERS PAGE — STYLES
============================================= */

/* ================================================
   SECTION 1: HERO (title left, img right)
================================================ */
.cr-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.cr-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.cr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(2,2,2,0.95) 0%,
    rgba(2,2,2,0.78) 45%,
    rgba(2,2,2,0.25) 100%);
  z-index: 1;
}
.cr-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}
.cr-hero-text { display: flex; flex-direction: column; gap: 18px; }
.cr-hero-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--white);
}
.cr-hero-text p {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  max-width: 400px;
}
.cr-hero-img { display: flex; justify-content: flex-end; }
.cr-hero-img img {
  width: 100%;
  max-width: 560px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}


/* ================================================
   SECTION 2: WHY KINICH (accordion left, img right)
================================================ */
.cr-why {
  padding: 90px 0;
  background: var(--bg);
}
.cr-why-head {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cr-why-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--white);
}
.cr-why-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.cr-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cr-why-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}

/* Accordion list */
.cr-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cr-item {
  background: var(--bgalt);
  border: 1px solid rgba(51,44,39,0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--ease);
}
.cr-item[open] { border-color: rgba(74,185,183,0.4); }
.cr-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  transition: background var(--ease);
}
.cr-item summary::-webkit-details-marker { display: none; }
.cr-item summary:hover { background: rgba(74,185,183,0.05); }
.cr-chev {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  transition: background var(--ease), transform var(--ease);
}
/* down-chevron, dark, centered */
.cr-chev::after {
  content: '';
  position: absolute;
  top: 44%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform var(--ease);
}
/* when open, flip the chevron up */
.cr-item[open] .cr-chev::after {
  top: 56%;
  transform: translate(-50%, -50%) rotate(-135deg);
}
.cr-item-body {
  padding: 0 24px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.cr-why-img {
  position: sticky;
  top: 100px;
}
.cr-why-img img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
}


/* ================================================
   SECTION 3: WHERE WE'RE HIRING (2x2 grid)
================================================ */
.cr-hiring {
  padding: 50px 0 90px;
  background: var(--bg);
}
.cr-hiring-head {
  text-align: center;
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cr-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
}
.cr-hiring-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.cr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--teal);
  border-left: 1px solid var(--teal);
}
.cr-cell {
  padding: 48px 44px;
  border-right: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--ease);
}
.cr-cell:hover { background: rgba(74,185,183,0.04); }
.cr-icon { display: block; }
.cr-cell h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
}
.cr-cell p {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}


/* ================================================
   SECTION 4: CTA
================================================ */
.cr-cta {
  padding: 80px 0 110px;
  background: var(--bg);
}
.cr-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cr-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
}
.cr-cta p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  max-width: 820px;
  line-height: 1.6;
}
.cr-cta-contact { margin-top: 6px; color: var(--white) !important; }
.cr-cta-contact a { color: var(--teal); transition: color var(--ease); }
.cr-cta-contact a:hover { color: var(--gold); }


/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px) {
  .cr-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .cr-hero-img { justify-content: center; }
  .cr-hero-img img { max-width: 100%; height: 280px; }
  .cr-hero-overlay {
    background: linear-gradient(180deg, rgba(2,2,2,0.6) 0%, rgba(2,2,2,0.85) 100%);
  }
  .cr-why-grid { grid-template-columns: 1fr; gap: 36px; }
  .cr-why-img { position: static; }
  .cr-why-img img { max-width: 480px; margin: 0 auto; aspect-ratio: 16/10; }
}

@media (max-width: 640px) {
  .cr-hero { padding-top: 64px; }
  .cr-hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .cr-hero-text h1 { font-size: 46px; }
  .cr-why { padding: 56px 0; }
  .cr-item summary { font-size: 16px; padding: 16px 18px; }
  .cr-hiring { padding: 32px 0 64px; }
  .cr-grid { grid-template-columns: 1fr; border-left: none; }
  .cr-cell { padding: 32px 4px; border-right: none; }
  .cr-cta { padding: 56px 0 72px; }
}
