:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --primary: #165dff;
  --primary-strong: #1248c9;
  --text: #222222;
  --muted: #5f6368;
  --line: #d9dee5;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body > main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #cfd6df;
}

.navbar--over-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  border-bottom: none;
}

.navbar--over-hero .nav-link {
  color: rgba(255, 255, 255, 0.95);
}

.navbar--over-hero .nav-link:hover,
.navbar--over-hero .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.navbar--over-hero .nav-toggle__line {
  background: #fff;
}

.nav-lang {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: default;
}

.nav-inner {
  min-height: 86px;
  height: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
}

.logo-image {
  width: 200px;
  height: auto;
  max-height: 64px;
  display: block;
  border: 0;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #2f3640;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  background: #fff0e6;
  color: #e85d04;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: #fff0e6;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #e85d04;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.navbar.is-open .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 56px 0 28px;
}

.hero--full {
  padding: 0;
  margin: 0;
}

.hero--full .hero-photo {
  min-height: 85vh;
  border: none;
  position: relative;
  overflow: hidden;
  background-color: #2c3e50;
}

/* 로드 실패 시 깨진 이미지 아이콘 숨김 */
.hero-photo__img--error {
  display: none !important;
}

/* 히어로 배경 이미지 (img로 넣어서 로드 확실히) */
.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  outline: none;
  border: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero--full .hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 85vh;
  justify-content: flex-end;
  padding: 120px 5% 80px;
  background: linear-gradient(to top, rgba(10, 15, 28, 0.85) 0%, rgba(10, 15, 28, 0.3) 50%, transparent 100%);
  max-width: 100%;
}

.hero-title--lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.hero-title-line {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

/* 히어로 제목 한 줄 유지 + 화면 안에 맞춤 (글자 크기로 줄임) */
.hero-title--one-line .hero-title-line {
  white-space: nowrap;
  font-size: clamp(0.78rem, 2.65vw + 0.6rem, 2.35rem);
}

.hero--full .hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
}

.hero--full .cta-row {
  margin-top: 28px;
}

.btn--orange {
  background: #e85d04;
  color: #fff;
  border: none;
}

.btn--orange:hover {
  background: #d54d00;
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

.hero-photo {
  min-height: 420px;
  border: 1px solid #d6dce5;
  background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1500&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background: rgba(20, 23, 30, 0.38);
  gap: 0;
}

.hero-overlay .stats-bar {
  margin-top: 28px;
}

.hero-card {
  background: var(--card);
  border: 1px solid #d6dce5;
  padding: 36px;
}

/* 서브페이지 상단 소개 (카드 없이 제목+설명만) */
.page-intro {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-intro__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.page-intro__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
}

.hero-overlay .hero-title {
  color: #ffffff;
}

.hero-overlay .hero-desc {
  color: #f1f4f8;
}

.section {
  margin: 18px 0 56px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid #d6dce5;
  border-radius: 0;
  padding: 22px;
}

.card-link {
  display: block;
  height: 100%;
}

.card-link .achievement-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-link .achievement-card:hover {
  border-color: #bfc8d6;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #d6dce5;
}

.project-body {
  padding: 18px 20px 20px;
}

.project-body h3 {
  margin: 0 0 8px;
}

.project-body p {
  margin: 0;
  color: var(--muted);
}

.project-card:hover {
  border-color: #bfc8d6;
}

.project-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.project-detail img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid #d6dce5;
}

.project-meta {
  display: grid;
  gap: 12px;
}

.project-meta .card p {
  margin-top: 6px;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.achievement-card h3 {
  margin: 0 0 10px;
}

.achievement-thumb {
  width: calc(100% + 44px);
  height: 180px;
  object-fit: cover;
  display: block;
  margin: -22px -22px 14px;
  border-bottom: 1px solid #d6dce5;
}

.achievement-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.achievement-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: #e85d04;
  color: #fff;
}

.btn.primary:hover {
  background: #d54d00;
  color: #fff;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* 리뷰 & 신뢰 섹션 */
.reviews-section {
  padding-top: 0;
}

/* 숫자 통계 바 (고객수 · 만족도 · 총 경력) */
.stats-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.stats-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 20px;
  min-height: 100px;
}

.stats-bar__divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
  flex-shrink: 0;
}

.stats-bar__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.stats-bar__value {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #0f172a;
}

/* 히어로 위 통계 바 (사진 위 오버레이) */
.stats-bar--hero {
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.stats-bar--hero .stats-bar__label {
  color: rgba(255, 255, 255, 0.75);
}

.stats-bar--hero .stats-bar__value {
  color: #fff;
}

.stats-bar--hero .stats-bar__divider {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent);
}

/* 하단 CTA 배너 (맞춤형 솔루션 + 고객수/경험/특허) */
.cta-banner {
  background: #1e3a5f;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 48px;
  margin-bottom: 0;
  padding: 48px 5%;
}

.cta-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner__text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.stats-bar--cta {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
  flex: 0 0 auto;
}

.stats-bar--cta .stats-bar__item {
  flex: 0 0 auto;
  padding: 0 28px;
  min-height: auto;
  flex-direction: column;
  gap: 4px;
}

.stats-bar--cta .stats-bar__value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.stats-bar--cta .stats-bar__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.stats-bar--cta .stats-bar__divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
}

.reviews-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.reviews-carousel {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: reviews-scroll 50s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.reviews-track.reviews-track-js {
  animation: none;
}

.reviews-track:hover {
  animation-play-state: paused;
}

.reviews-track-inner {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  padding: 8px 0;
  margin-right: 16px;
  box-sizing: content-box;
}

@keyframes reviews-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
  }
}

/* 리뷰 카드 */
.review-card {
  flex: 0 0 240px;
  background: #fafbfc;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.review-date {
  font-size: 11px;
  color: #94a3b8;
}

.review-category {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.review-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-tags {
  margin: 0;
  font-size: 10px;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 16px;
    border-top: 1px solid #e8ecf1;
    margin-top: 8px;
  }

  .navbar.is-open .nav-links {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 14px 12px;
    border-radius: 6px;
  }

  .nav-link:hover {
    background: #fff0e6;
  }

  .hero-overlay .stats-bar {
    margin-top: 22px;
  }

  .stats-bar {
    flex-direction: column;
  }

  /* 모바일 리뷰: 느리게 + 끊기지 않게 */
  .reviews-track {
    animation-duration: 120s;
  }

  .stats-bar__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
  }

  .stats-bar--hero .stats-bar__divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent);
  }

  .stats-bar__item {
    padding: 22px 20px;
    min-height: 88px;
  }

  .stats-bar__value {
    font-size: 1.75rem;
  }

  .stats-bar__label {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .review-card {
    flex: 0 0 220px;
  }
}

.email-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.email-help {
  margin: 0;
  color: var(--muted);
}

.email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-form input {
  flex: 1 1 320px;
  min-height: 44px;
  border: 1px solid #bcc6d4;
  background: #ffffff;
  padding: 0 12px;
  color: var(--text);
}

.email-form textarea {
  flex: 1 1 100%;
  min-height: 130px;
  border: 1px solid #bcc6d4;
  background: #ffffff;
  padding: 12px;
  color: var(--text);
  resize: vertical;
  font: inherit;
}

.email-form input:focus,
.email-form textarea:focus {
  outline: 2px solid #d6e4ff;
  border-color: var(--primary);
}

.directions-map-wrap {
  width: 100%;
  border: 1px solid #d6dce5;
  overflow: hidden;
  background: #f0f2f5;
}

.directions-map {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.directions-address {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.directions-buttons {
  margin-top: 8px;
}

.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.equipment-item,
.equipment-card {
  border: 1px solid #d6dce5;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
}

.equipment-card {
  display: flex;
  flex-direction: column;
}

.equipment-card .equipment-img-wrap {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
  overflow: hidden;
}

.equipment-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.equipment-name {
  margin: 0;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid #e8ecf1;
  text-align: center;
}

.equipment-details {
  border-top: 1px solid #e8ecf1;
}

.equipment-details summary {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.equipment-details summary::-webkit-details-marker {
  display: none;
}

.equipment-details summary::after {
  content: " ▼";
  font-size: 0.85em;
  opacity: 0.8;
}

.equipment-details[open] summary::after {
  content: " ▲";
}

.equipment-detail {
  padding: 0 16px 20px;
  font-size: 0.95rem;
  color: var(--text);
}

.equipment-detail h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.equipment-detail h3:first-child {
  margin-top: 0;
}

.equipment-detail p,
.equipment-detail ul {
  margin: 0 0 8px;
  line-height: 1.55;
}

.equipment-detail ul {
  padding-left: 1.25rem;
}

.equipment-compare {
  margin-top: 2rem;
}

.equipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.equipment-table th,
.equipment-table td {
  padding: 10px 14px;
  border: 1px solid #d6dce5;
  text-align: left;
}

.equipment-table th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text);
}

.equipment-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .equipment-gallery {
    grid-template-columns: 1fr;
  }
}

/* 포트폴리오 (프로젝트 페이지) */
.portfolio-section {
  margin-top: 2rem;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card-link:hover {
  transform: translateY(-2px);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  height: 100%;
}

.portfolio-thumb {
  aspect-ratio: 4/3;
  background: #f5f6f8;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.portfolio-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.portfolio-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}


/* 포트폴리오 상세 페이지 */
.portfolio-detail-category {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.portfolio-detail-section {
  margin-top: 2rem;
}

.portfolio-detail-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.portfolio-detail-gallery .gallery-item {
  flex: 0 0 auto;
  width: 320px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-detail-gallery .gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.portfolio-detail-gallery .gallery-item:hover img {
  opacity: 0.9;
}

/* 라이트박스 */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portfolio-lightbox.is-open {
  display: flex;
}

.portfolio-lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.portfolio-lightbox__inner img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.portfolio-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.portfolio-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.portfolio-lightbox__prev,
.portfolio-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.portfolio-lightbox__prev:hover,
.portfolio-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.portfolio-lightbox__prev {
  left: 20px;
}

.portfolio-lightbox__next {
  right: 20px;
}

.portfolio-detail-meta {
  padding: 24px;
}

.portfolio-detail-meta .btn.primary {
  margin-top: 28px;
  padding: 10px 18px;
  font-size: 14px;
}

.portfolio-detail-list {
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 14px;
}

.portfolio-detail-list dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.portfolio-detail-list dd {
  margin: 0;
  color: var(--text);
}

.portfolio-detail-desc {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.portfolio-detail-desc + .portfolio-detail-desc {
  margin-top: 1em;
}

.portfolio-detail-body {
  margin-top: 4px;
  margin-bottom: 0;
}

/* 포트폴리오 페이지네이션 */
.portfolio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.portfolio-pagination__prev,
.portfolio-pagination__next,
.portfolio-pagination__num {
  min-width: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portfolio-pagination__prev:hover:not(:disabled),
.portfolio-pagination__next:hover:not(:disabled),
.portfolio-pagination__num:hover:not(.active) {
  background: #fff0e6;
  border-color: #e85d04;
  color: #e85d04;
}

.portfolio-pagination__prev:disabled,
.portfolio-pagination__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.portfolio-pagination__num.active {
  background: #e85d04;
  border-color: #e85d04;
  color: #fff;
  cursor: default;
}

.portfolio-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .portfolio-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-list {
    grid-template-columns: 1fr;
  }

  .portfolio-body {
    padding: 10px 12px 12px;
  }
}

@media (max-width: 768px) {
  .hero--full .hero-overlay {
    padding: 100px 20px 48px;
  }

  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-bar--cta {
    width: 100%;
    justify-content: flex-start;
  }

  .stats-bar--cta .stats-bar__item {
    padding: 0 16px 0 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.footer {
  margin-top: 12px;
  background: #2f3136;
  color: #d5d8de;
  border-top: 1px solid #444a54;
}

.footer-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-copy {
  font-weight: 700;
  color: #ffffff;
  margin-right: 8px;
}

/* 맨 위로 버튼 (우측 하단 동그라미) - 주황색 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #e85d04;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #d54d00;
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.45);
}

.back-to-top__arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid #fff;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .logo-image {
    width: 165px;
    height: auto;
    max-height: 52px;
  }

  .hero-photo,
  .hero-overlay {
    min-height: 360px;
  }

  .hero-overlay {
    padding: 22px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .footer-inner {
    gap: 6px 10px;
    font-size: 13px;
  }

  .project-detail {
    grid-template-columns: 1fr;
  }

  .project-detail img {
    height: 280px;
  }

  .directions-map {
    height: 320px;
  }

  .equipment-gallery {
    grid-template-columns: 1fr;
  }
}
