/* ==========================================================================
   Home page sections
   ========================================================================== */

.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

/* ---- Chapter scroll-snap (home page only) ----
   scroll-snap-type is enabled via JS only on index.html, so these
   scroll-snap-align rules are inert (harmless) on every other page.
   #header-include (the very first element in the body) also gets a
   snap point at scroll position 0 -- without it, proximity snapping
   has no valid target above .hero's natural offset (~130px, below the
   top bar + header), so the page can never actually rest at true top. */
#header-include,
.hero,
.stats-strip,
.section {
  scroll-snap-align: start;
}

/* ---- Chapter dot navigation (home page only) ---- */
.chapter-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.chapter-nav a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  box-shadow: 0 0 0 1px rgba(11, 31, 56, 0.25);
  transition: all 0.25s ease;
}
.chapter-nav a:hover {
  opacity: 0.85;
}
.chapter-nav a.active {
  opacity: 1;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent-dark);
  transform: scale(1.35);
}

/* ---- Hero banner ---- */
.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: url("../images/others/hero_bg.png") center / cover no-repeat;
}
.hero .swiper {
  height: 100%;
}
.hero .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  /* semi-transparent tint over the hero photo so white text stays readable */
  background: linear-gradient(120deg, rgba(8, 27, 49, 0.88), rgba(15, 42, 74, 0.72));
}
.hero .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .slide-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 640px;
  transition: opacity 0.4s ease;
}
.hero .slide-content .eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
  display: block;
}
.hero .slide-content h1 {
  font-size: 46px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero .slide-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #d7dee8;
  margin-bottom: 34px;
}
.hero .slide-actions {
  display: flex;
  gap: 12px;
}

/* ---- Hero slide variant: project promo (badges + urgency banner) ---- */
.hero .slide-content.project-promo-slide {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.hero .slide-content.project-promo-slide .eyebrow {
  margin-bottom: 28px;
}
.hero .slide-content.project-promo-slide h1 {
  font-size: 32px;
  margin-bottom: 18px;
}
.hero .slide-content.project-promo-slide .slide-actions {
  justify-content: center;
}

.promo-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}
.promo-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.promo-badge {
  text-align: center;
}
.promo-badge i {
  display: block;
  font-size: 22px;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.promo-badge b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.promo-badge span {
  font-size: 12px;
  color: #cfd8e3;
}
.promo-image {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}
.promo-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.promo-urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  margin-bottom: 28px;
}

/* ---- Hero slide variant: repayment / achievement ---- */
.repayment-frame {
  width: 420px;
  max-width: 100%;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.08);
}
.repayment-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---- Hero slide variant: company award ---- */
.hero .slide-content.award-slide {
  max-width: 1000px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}
.award-slide .award-photo {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}
.award-slide .award-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.award-slide .award-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--color-accent);
  color: #1a1300;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 92px;
}
.award-slide .award-badge i {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.award-slide .award-badge b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.award-slide .award-badge span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2px;
}
.award-slide .award-text {
  flex: 1;
}

/* ---- Hero slide variant: two-track collaboration ---- */
.two-track-photo {
  width: 340px;
  max-width: 100%;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.08);
}
.two-track-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero .swiper-pagination {
  bottom: 32px !important;
  text-align: left;
  left: 24px;
  width: auto !important;
}
.hero .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 10px;
  height: 10px;
}
.hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-accent);
}

/* ---- Strength / stats strip ---- */
.stats-strip {
  background: var(--color-primary);
}
.stats-strip .container {
  display: flex;
  justify-content: space-between;
  padding: 40px 24px;
}
.stats-strip .stat {
  text-align: center;
  color: #fff;
  flex: 1;
}
.stats-strip .stat b {
  font-family: var(--font-en);
  display: block;
  font-size: 52px;
  color: var(--color-accent);
  margin-bottom: 8px;
  line-height: 1.1;
}
.stats-strip .stat span {
  font-size: 17px;
  font-weight: 600;
  color: #e3e8ef;
}

/* ---- Project cards (shared with projects.html) ---- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-head-row .section-title { text-align: left; margin-bottom: 0; }
.section-head-row .more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-swiper .swiper-slide { height: auto; }
.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.project-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}
.project-card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-card .badge { align-self: flex-start; }
.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.project-card .loc {
  font-size: 13px;
  color: var(--color-text-light);
}
.project-card .meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-light);
}
.project-card .meta b { color: var(--color-primary); }

.swiper-button-next, .swiper-button-prev {
  color: var(--color-primary) !important;
  width: 44px !important;
  height: 44px !important;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; }

/* ---- Consultant / experts ---- */
.consultant-card {
  text-align: center;
  padding: 8px;
}
.consultant-card .img {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  width: 160px;
  margin: 0 auto 20px;
}
.consultant-card .name b {
  display: block;
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.consultant-card .name span {
  font-size: 13px;
  color: var(--color-text-light);
}
.consultant-card .txt {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ---- FAQ accordion ---- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
}
.faq-question .q-mark {
  color: var(--color-accent);
  margin-right: 12px;
  font-family: var(--font-en);
}
.faq-question .toggle-icon {
  color: var(--color-text-faint);
  transition: transform 0.2s ease;
}
.faq-item.open .toggle-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 4px 24px 34px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
}
.faq-item.open .faq-answer { display: block; }

/* ---- Consultation CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-band p {
  color: #d7dee8;
  margin-bottom: 32px;
  font-size: 15px;
}
.cta-band .cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ---- Process status (수속현황) ---- */
.process-status {
  position: relative;
  background: url("../images/others/process_status_bg.png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.process-status::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 27, 49, 0.92), rgba(15, 42, 74, 0.85));
  z-index: 0;
}
.process-status .container {
  position: relative;
  z-index: 1;
}
.process-status .section-title .eyebrow { color: var(--color-accent); }
.process-status .section-title h2 { color: #fff; }
.process-status .section-title p { color: #cfd8e3; }

.progress-rings {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.progress-ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.14) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.progress-ring .ring-inner {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.progress-ring .ring-inner b {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.progress-ring .ring-inner span {
  font-size: 13px;
  color: #cfd8e3;
  margin-top: 4px;
}

.case-list {
  max-width: 720px;
  margin: 0 auto;
}
.case-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #e3e8ef;
}
.case-list li:last-child { border-bottom: none; }
.case-list li em {
  font-style: normal;
  color: #9aa6ba;
}

/* ---- News preview list ---- */
.news-preview-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.news-card .thumb { aspect-ratio: 16/10; background: var(--color-bg-alt); }
.news-card .body { padding: 18px 20px; }
.news-card .date { font-size: 12px; color: var(--color-text-faint); }
.news-card h3 { font-size: 15px; font-weight: 700; margin-top: 8px; line-height: 1.5; }
