/* ============================================================
   線上徵才 Recruit（Figma 1413-44012）
   區塊：Hero / 我們在做什麼 / 數據成果 / 為什麼選擇橘野 /
        我們在找這樣的你 / 福利制度（CONTACT 沿用共用元件）
   命名前綴：.rc-
   ============================================================ */

/* ---- 共用區塊標題 ---- */
.rc-sec-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.rc-sec-head--center {
  text-align: center;
}

.rc-sec-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  color: var(--c-text);
  margin: 0;
}

.rc-sec-title-sep {
  color: var(--c-brand);
}

.rc-sec-title-sep-br {
  display: none;
} 

@media (max-width:767px) {
  .rc-sec-title-sep-br {
    display: block;
  }
}

.rc-sec-sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.6;
  color: var(--c-brand);
  margin: 16px 0 0;
}

.rc-sec-desc {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 2;
  color: var(--c-text-muted);
  max-width: 880px;
  margin: 20px auto 0;
}

/* ============================================================
   01 HERO
   ============================================================ */
.rc-hero {
  position: relative;
  padding: clamp(130px, 14vw, 180px) 0 clamp(40px, 4vw, 64px);
  background: var(--c-bg-page);
  overflow: hidden;
  isolation: isolate;
}

/* 背景流線圖：靠右對齊（設計稿圖樣集中於右側） */
.rc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: -1;
}

/* 上排 標題(左)｜文字(右) 垂直置中；下排 兩顆 CTA 置中 */
.rc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    'title text'
    'actions actions';
  align-items: center;
  gap: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 96px);
  min-height: clamp(360px, 28vw, 500px);
}

.rc-hero-copy {
  grid-area: title;
}

.rc-hero-title {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 500;
  line-height: 1.3;
}

.rc-hero-title-accent {
  display: block;
  color: var(--c-brand);
  font-size: clamp(30px, 3.4vw, 64px);
}

.rc-hero-title-main {
  display: block;
  color: var(--c-text);
  font-size: clamp(22px, 2.6vw, 40px);
  margin-top: 14px;
}

.rc-hero-text {
  grid-area: text;
}

.rc-hero-lead {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--c-text);
  margin: 0 0 18px;
}

.rc-hero-desc {
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  line-height: 2;
  color: var(--c-text-muted);
  margin: 0;
}

.rc-hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(16px, 2.5vw, 36px);
}

/* Hero / 福利制度 共用 CTA 膠囊 */
.rc-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: clamp(220px, 24vw, 348px);
  max-width: 100%;
  padding: 17px 40px;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-md);
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: var(--sh-cta);
  transition: all 0.3s;
}

.rc-hero-btn:hover {
  color: var(--c-on-dark);
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* 聯繫我們：墨綠 → 近黑 */
.rc-hero-btn--dark {
  background: linear-gradient(95deg, #0a5a50 0%, #0d1815 62%, #0a1210 100%);
  color: var(--c-on-dark);
}

/* 投遞履歷：亮橘 → 深橘 */
.rc-hero-btn--brand {
  background: linear-gradient(
    95deg,
    var(--c-brand) 0%,
    #ffae2e 80%,
    #f3990a 100%
  );
  color: var(--c-on-dark);
}

.rc-hero-btn-icon {
  width: auto;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============================================================
   02 我們在做什麼
   ============================================================ */
.rc-what {
  padding: clamp(70px, 9vw, 120px) 0 clamp(20px, 2vw, 50px);
  background: var(--c-bg-page);
}

.rc-what .rc-sec-sub {
  font-weight: 400;
}

.rc-x {
  color: var(--c-black);
  margin: 0 4px;
}

/* 5 個大圓並排、邊緣幾乎相接（設計稿 5×330px 相連）
   突破 .container 寬度限制，置中對齊視窗以容納大圓與單行文字 */
.rc-what-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(1650px, 94vw);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.rc-what-row-mobile {
  display: none;
}
/* 圓＝項目本體，圖示在上、文字在下，皆置於圓內 */
.rc-what-item {
  flex: 0 1 20%;
  max-width: 330px;
  min-width: 160px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 26px);
  padding: 0 6%;
  text-align: center;
  border-radius: var(--r-full);
  background: radial-gradient(circle at 50% 36%, #ffffff 0%, #ececec 100%);
  box-shadow:
    5px 5px 20px rgba(0, 0, 0, 0.25),
    -8px -8px 24px rgba(255, 255, 255, 0.8);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.rc-what-item:hover {
  transform: translateY(-6px);
  box-shadow:
    12px 18px 38px rgba(0, 0, 0, 0.12),
    -8px -8px 24px rgba(255, 255, 255, 0.9);
}

.rc-what-icon {
  width: clamp(100px, 7vw, 108px);
  height: clamp(100px, 7vw, 108px);
  object-fit: contain;
}

.rc-what-label {
  margin: 0;
  font-family: 16px;
  font-weight: 500;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.55;
  color: var(--c-text);
}

/* 大視窗：圓夠大，項目 3~5 維持單行（與設計稿一致） */
@media (min-width: 1500px) {
  .rc-what-label {
    white-space: nowrap;
  }
}
@media (max-width: 991px) {
  /* 手機版：PC 五圓並排隱藏，改用 slick 輪播 */
  .rc-what-row-pc {
    display: none;
  }
  .rc-what-row-mobile {
    display: block;
    margin: 0;
    width: 100%;
    transform: none;
    padding: 0;
  }
  /* slick 圓形之間的間距（variableWidth 會把 slide 間距計入輪播軌道） */
  .rc-what-item-slider {
    padding: 28px 10px;
    width: 74vw;
  }
  /* slick 圓形項目：固定寬度靠左對齊，右側露出下一筆，aspect-ratio 維持正圓 */
  .rc-what-row-mobile .rc-what-item {
    flex-basis: auto;
    display: flex;
    max-width: 100%;
    /* margin: 28px 8px; */
    padding: 0 30px;
  }
}
/* ============================================================
   03 數據成果（深色帶）
   ============================================================ */
.rc-stats {
  position: relative;
  z-index: 2;
  padding: clamp(70px, 16vw, 290px) 0 0;
  min-height: 1076px;
  color: var(--c-on-dark);
  overflow: hidden;
}

.rc-stats-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: contain;
  z-index: -1;
}

.rc-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 50px);
  margin-bottom: clamp(48px, 6vw, 70px);
}
@media (max-width: 1599px) {
  .rc-stats {
    padding: 220px 0 0;
    min-height: 800px;
  }
  .rc-stats-deco {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 991px) {
  .rc-stats-row {
    gap: 15px;
  }
}
/* 單一數據：細框圓形徽章 */
.rc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(128px, 15vw, 260px);
  height: clamp(128px, 15vw, 260px);
  padding: 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-glass-36);
  background: transparent;
  backdrop-filter: blur(2px);
}

.rc-stat-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 60px);
  line-height: 1;
  color: var(--c-on-dark);
  margin: 0;
}

.rc-stat-label {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-on-dark-muted);
  margin: 12px 0 0;
}

/* 作品截圖跑馬燈：滿版單排、左右淡出遮罩、底部切齊區塊邊緣 */
.rc-cases-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    var(--c-bg-black) 6%,
    var(--c-bg-black) 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    var(--c-bg-black) 6%,
    var(--c-bg-black) 94%,
    transparent
  );
}
@media (max-width: 575px) {
  .rc-stat {
    padding: 16px 12px;
  }
  .rc-stat-label {
    font-size: 12px;
  }
}

/* 軌道：寬度依內容撐開，動畫位移 -50% 配合內容輸出兩次達成無縫循環 */
.rc-cases-track {
  display: flex;
  gap: clamp(12px, 1.4vw, 24px);
  width: max-content;
  animation: rc-cases-scroll 50s linear infinite;
  will-change: transform;
}

@keyframes rc-cases-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 單張截圖：固定高度、原生比例、上方圓角，底部切齊 */
.rc-case-shot {
  flex: 0 0 auto;
  height: clamp(180px, 22vw, 300px);
  border-radius: var(--r-xl);
  border: 2px solid var(--c-brand);
  overflow: hidden;
  box-shadow: var(--sh-card-strong);
  background: #111;
}

.rc-case-shot img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 尊重使用者偏好：減少動態時暫停跑馬燈 */
@media (prefers-reduced-motion: reduce) {
  .rc-cases-track {
    animation: none;
  }
}

/* ============================================================
   04 為什麼選擇橘野（5 張編號卡）
   ============================================================ */
.rc-why-who-block {
  position: relative;
  z-index: 1;
}
.rc-why-who-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
}
@media (max-width: 1599px) {
  .rc-why-who-bg {
    top: -20%;
    height: 120%;
  }
}
.rc-why {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0;
  /* background: var(--c-bg-page); */
  overflow: hidden;
}

.rc-why .rc-sec-title {
  font-weight: 500;
}

.rc-why .rc-sec-sub {
  color: var(--c-text);
}

.rc-why-deco {
  position: absolute;
  right: 20%;
  top: 20%;
  transform: translateY(-50%);
  width: clamp(200px, 34vw, 500px);
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.rc-why-right-deco {
  position: absolute;
  right: 0%;
  top: 70%;
  transform: translateY(-50%);
  width: clamp(320px, 34vw, 820px);
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
@media (max-width: 991px) {
  .rc-why {
    padding: clamp(70px, 9vw, 120px) 0 330px;
  }
  .rc-why-deco {
    right: auto;
    left: 5%;
    top: 85%;
  }
  .rc-why-right-deco {
    transform: translateY(-50%) scale(-1, 1);
    right: auto;
    left: 50%;
    top: 82%;
  }
}
.rc-why .container {
  position: relative;
  z-index: 1;
}

/* 上 3 下 2，兩排皆置中（flex + wrap + justify-center） */
.rc-why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0 auto;
}

/* 手機版輪播容器：預設隱藏，≤991px 才顯示 */
.rc-why-grid-mobile {
  display: none;
}

.rc-why-card {
  flex: 0 1 458px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--c-bg-white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 2.6vw, 40px) clamp(24px, 2.4vw, 36px);
  box-shadow: var(--sh-card);
}

.rc-why-num {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 26px;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--c-brand);
}

/* 編號前後的分隔線（｜）改用偽元素呈現 */
.rc-why-num::before,
.rc-why-num::after {
  font-style: normal;
  content: '｜';
}

/* 卡片圖示徽章（青綠細框圓 + 圖示） */
.rc-why-icon {
  width: clamp(64px, 6vw, 82px);
  height: clamp(64px, 6vw, 82px);
  object-fit: contain;
  margin: 16px 0 18px;
}

.rc-why-card-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--c-black);
  margin: 0 0 14px;
}

.rc-why-card-desc {
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--c-black);
  margin: 0;
}

@media (max-width: 575px) {
  .rc-why-card-desc {
    min-height: 92px;
  }
}

@media (max-width: 991px) {

  /* 手機版：PC 並排隱藏，改用 slick 一次一張卡片輪播 */
  .rc-why-grid-pc {
    display: none;
  }
  .rc-why-grid-mobile {
    display: block;
  }
  /* 卡片留左右與下方間距，避免陰影被 slick 裁切、並與圓點留白 */
  .rc-why-grid-mobile .rc-why-card {
    margin: 10px 10px 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
  /* 分頁圓點：未選灰色、選中橘色 */
  .rc-why-grid-mobile .slick-dots {
    position: static;
    margin-top: 6px;
  }
  .rc-why-grid-mobile .slick-dots li button:before {
    font-size: 10px;
    color: var(--c-grey-light);
    opacity: 1;
  }
  .rc-why-grid-mobile .slick-dots li.slick-active button:before {
    color: var(--c-brand);
  }
}
/* ============================================================
   05 我們在找這樣的你（左清單 + 右情境照）
   ============================================================ */
.rc-who {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0;
  /* background: var(--c-bg-section); */
  /* overflow: hidden; */
  isolation: isolate;
}

.rc-who .rc-sec-title {
  color: var(--c-brand);
}

.rc-who .rc-sec-sub {
  color: var(--c-black);
}

.rc-who-photo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 50%;
  right: 0;
  width: 50%;
  /* height: 100%; */
  object-fit: contain;
  object-position: left center;
  z-index: -2;
}

.rc-who-panel {
  max-width: 696px;
}

/* 容器寬度縮到最長一行文字（非滿版），卡片再填滿此寬度即等寬 */
.rc-who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

/* 每個特質改為白底圓角卡＋陰影，左側為橘野品牌圖示 */
.rc-who-list li {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 18px;
  padding: 18px 24px;
  background: var(--c-bg-white);
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.16);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--c-black);
}

/* 品牌圖示：固定尺寸不被壓縮 */
.rc-who-icon {
  flex-shrink: 0;
  width: 23px;
  height: 19px;
  object-fit: contain;
}

.rc-who-note {
  margin: 32px 0 0;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--c-brand);
}

/* ============================================================
   06 福利制度（5 張福利卡 + CTA）
   ============================================================ */
.rc-welfare {
  padding: clamp(70px, 9vw, 120px) 0 clamp(100px, 12vw, 280px);
  /* background: var(--c-bg-page); */
  position: relative;
  z-index: 0;
}

.rc-welfare-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.rc-welfare .rc-sec-title,
.rc-welfare .rc-sec-desc {
  color: var(--c-text-white);
}
.rc-welfare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}

.rc-welfare-grid-mobile {
  /* display: flex; */
  display: none;
}

.rc-welfare-grid-mobile .rc-welfare-card {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
  /* box-shadow: none; */
  margin: 10px;
}
.rc-welfare-card {
  background: var(--c-bg-white);
  border-radius: var(--r-pil50);
  padding: clamp(24px, 2.6vw, 40px);
  box-shadow: var(--sh-card);
}

/* 標題：橘色名稱 ｜細直線分隔｜ 深色副標 */
.rc-welfare-card-title {
  font-family: var(--f-body);
  font-weight: 500;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.rc-welfare-card-name {
  font-size: var(--fs-xl);
  color: var(--c-brand);
}

.rc-welfare-card-tag {
  font-size: var(--fs-xl);
  color: var(--c-text);
  padding-left: 14px;
  border-left: 1px solid var(--c-grey-light);
}

.rc-welfare-card-lead {
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--c-brand);
  margin: 0 0 24px;
}

/* 福利條列：雙欄（依欄高自動平衡，左欄先滿）、底線跟著文字長度、無圓點 */
.rc-welfare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: clamp(24px, 2.6vw, 48px);
}

/* 條目較少的卡片改單欄（避免短欄拆得太空） */
.rc-welfare-list--single {
  column-count: 1;
}

/* 底線改用 text-decoration：僅貼合文字寬度，而非整欄寬度 */
.rc-welfare-list li {
  break-inside: avoid;
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  line-height: 2.29;
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.rc-welfare-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.rc-welfare-nav {
  display: none;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.rc-welfare-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--c-brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.rc-welfare-arrow:active {
  transform: scale(0.95);
}

/* ============================================================
   RWD
   ============================================================ */
@media (max-width: 991.98px) {
  .rc-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'text'
      'actions';
    gap: 28px;
  }

  .rc-who-panel {
    margin-bottom: 47px;
  }
  .rc-who-photo {
    position: static;
    transform: translateY(0);
    width: 100%;
    padding-left: 10px;
  }

  .rc-who::before {
    background: linear-gradient(
      to right,
      var(--c-bg-section) 0%,
      rgba(236, 236, 236, 0.9) 60%,
      rgba(236, 236, 236, 0.6) 100%
    );
  }

  .rc-welfare-grid-pc {
    display: none;
  }
  .rc-welfare-grid-mobile {
    display: block;
  }
  .rc-welfare-nav {
    display: flex;
  }
}

@media (max-width: 767.98px) {
  .rc-welfare-grid {
    grid-template-columns: 1fr;
  }

  /* 手機：福利條列收為單欄 */
  .rc-welfare-list {
    column-count: 1;
  }

  .rc-hero-actions .rc-hero-btn {
    flex: 1 1 100%;
  }

  .rc-hero-btn {
    font-size: var(--fs-sm);
  }

  .rc-what-item {
    /* flex-basis: 45%; */
  }
}
