/* ==========================================================================
   SAF SECTION 03 — INTERACTIVE WORK ATLAS
   Semantic ID: #saf_work_atlas
   ========================================================================== */

#saf_work_atlas.saf-work-atlas-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: #FFFFFF;
  padding: 112px 24px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

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

.saf-work-atlas-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.saf-work-atlas-header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.saf-work-atlas-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.saf-work-atlas-bar {
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: #F4B400;
}

.saf-work-atlas-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #00695C;
}

.saf-work-atlas-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #263238;
  margin: 0 0 16px 0;
}

.saf-work-atlas-desc {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: #455A64;
  margin: 0;
  max-width: 720px;
}

/* ==========================================================================
   DESKTOP SPLIT LAYOUT (0.4fr / 0.6fr)
   ========================================================================== */

.saf-work-atlas-desktop {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 56px;
  align-items: start;
}

/* Left Navigation */
.saf-work-atlas-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#saf_work_atlas .saf-work-atlas-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  width: 100%;
  padding: 18px 24px;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 10px;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  transition: background-color 280ms cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 280ms cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

#saf_work_atlas .saf-work-atlas-nav-item:hover {
  background-color: #F4F8F7 !important;
  transform: translateX(3px);
}

#saf_work_atlas .saf-work-atlas-nav-item:focus-visible {
  outline: 2px solid #1565C0 !important;
  outline-offset: 2px;
}

.saf-work-atlas-indicator {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3.5px;
  background-color: #F4B400;
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 280ms ease;
}

.saf-work-atlas-nav-num {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6B7A82;
  transition: color 240ms ease;
  min-width: 24px;
}

.saf-work-atlas-nav-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #263238;
  transition: color 240ms ease;
}

/* Active State */
#saf_work_atlas .saf-work-atlas-nav-item.is-active {
  background-color: #F4F8F7 !important;
  border-color: rgba(0, 105, 92, 0.15) !important;
}

#saf_work_atlas .saf-work-atlas-nav-item.is-active .saf-work-atlas-indicator {
  opacity: 1;
}

#saf_work_atlas .saf-work-atlas-nav-item.is-active .saf-work-atlas-nav-num {
  color: #F4B400;
}

#saf_work_atlas .saf-work-atlas-nav-item.is-active .saf-work-atlas-nav-title {
  color: #00695C;
}

/* Right Panels */
.saf-work-atlas-panels {
  position: relative;
  min-height: 480px;
}

.saf-work-atlas-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  background-color: #FFFFFF;
  border: 1px solid #E3E7E9;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.05);
}

.saf-work-atlas-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: safAtlasPanelFadeIn 450ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.saf-work-atlas-panel-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  background-color: #F4F8F7;
}

.saf-work-atlas-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.saf-work-atlas-panel:hover .saf-work-atlas-panel-img {
  transform: scale(1.02);
}

.saf-work-atlas-panel-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.saf-work-atlas-panel-num {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #F4B400;
}

.saf-work-atlas-panel-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #263238;
  margin: 0;
  letter-spacing: -0.01em;
}

.saf-work-atlas-panel-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #455A64;
  margin: 0 0 24px 0;
}

.saf-work-atlas-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saf-work-atlas-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #00695C;
  background-color: #F4F8F7;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 105, 92, 0.12);
}

/* ==========================================================================
   MOBILE ACCORDION (<= 1024px)
   ========================================================================== */

.saf-work-atlas-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .saf-work-atlas-desktop {
    display: none !important;
  }

  .saf-work-atlas-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .saf-work-atlas-acc-item {
    background-color: #FFFFFF;
    border: 1px solid #E3E7E9;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 240ms ease, box-shadow 240ms ease;
  }

  .saf-work-atlas-acc-item.is-open {
    border-color: rgba(0, 105, 92, 0.3);
    box-shadow: 0 4px 16px rgba(0, 105, 92, 0.06);
  }

  #saf_work_atlas .saf-work-atlas-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
  }

  .saf-work-atlas-acc-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .saf-work-atlas-acc-num {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #F4B400;
    letter-spacing: 0.08em;
  }

  .saf-work-atlas-acc-title {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #263238;
    transition: color 240ms ease;
  }

  .saf-work-atlas-acc-item.is-open .saf-work-atlas-acc-title {
    color: #00695C;
  }

  .saf-work-atlas-acc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00695C;
  }

  .saf-work-atlas-acc-icon .saf-icon-minus {
    display: none;
  }

  .saf-work-atlas-acc-item.is-open .saf-work-atlas-acc-icon .saf-icon-plus {
    display: none;
  }

  .saf-work-atlas-acc-item.is-open .saf-work-atlas-acc-icon .saf-icon-minus {
    display: block;
  }

  .saf-work-atlas-acc-inner {
    padding: 0 20px 22px 20px;
  }

  .saf-work-atlas-acc-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #F4F8F7;
  }

  .saf-work-atlas-acc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .saf-work-atlas-acc-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.6;
    color: #455A64;
    margin: 0 0 16px 0;
  }

  .saf-work-atlas-acc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .saf-work-atlas-acc-tags .saf-work-atlas-tag {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ==========================================================================
   RESPONSIVE PADDING & TYPOGRAPHY
   ========================================================================== */

@media (max-width: 1024px) {
  #saf_work_atlas.saf-work-atlas-wrapper {
    padding: 80px 24px;
  }

  .saf-work-atlas-heading {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  #saf_work_atlas.saf-work-atlas-wrapper {
    padding: 56px 20px;
  }

  .saf-work-atlas-header {
    margin-bottom: 36px;
  }

  .saf-work-atlas-heading {
    font-size: 26px;
  }

  .saf-work-atlas-desc {
    font-size: 15px;
  }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .saf-work-atlas-panel.is-active {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .saf-work-atlas-nav-item,
  .saf-work-atlas-panel-img,
  .saf-work-atlas-indicator,
  .saf-work-atlas-nav-num,
  .saf-work-atlas-nav-title {
    transition: none !important;
    transform: none !important;
  }
}
