/* ── Interior Template Styles ── */

/* GNB */
#gnb { backdrop-filter: blur(0px); }
#gnb.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
#gnb.scrolled .gnb-logo span { color: #1a1a1a; }
#gnb.scrolled .gnb-link { color: #555; }
#gnb.scrolled .gnb-link:hover,
#gnb.scrolled .gnb-link.active { color: #55c89f; }

.gnb-link {
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}
.gnb-link:hover,
.gnb-link.active { color: #fff; }
.gnb-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; width: 0; height: 2px;
  background: #55c89f;
  transition: all 0.3s;
  transform: translateX(-50%);
}
.gnb-link:hover::after,
.gnb-link.active::after { width: 100%; }

/* Hamburger icon */
.ham-icon { width: 22px; height: 16px; position: relative; }
.ham-icon span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  position: absolute; left: 0; right: 0;
  transition: all 0.3s;
}
#gnb.scrolled .ham-icon span { background: #1a1a1a; }
.ham-icon span:nth-child(1) { top: 0; }
.ham-icon span:nth-child(2) { top: 7px; }
.ham-icon span:nth-child(3) { top: 14px; }

/* Hero */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%);
}

/* Section shared */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #55c89f;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: #777;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
}

/* Portfolio cards */
.pf-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pf-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.pf-card img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: transform 0.5s;
  aspect-ratio: 4/3;
}
.pf-card:hover img { transform: scale(1.05); }
.pf-card .pf-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-card .pf-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s;
}
.pf-card:hover .pf-info { transform: translateY(0); opacity: 1; }

/* Filter buttons */
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e5e5e5;
  color: #777;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover { border-color: #55c89f; color: #55c89f; }
.filter-btn.active {
  background: #55c89f;
  color: #fff;
  border-color: #55c89f;
}

/* Stats counter */
.stat-item { text-align: center; }
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: #55c89f;
  line-height: 1;
}
.stat-suffix { font-size: 1.2rem; font-weight: 700; color: #55c89f; }
.stat-label {
  font-size: 0.85rem;
  color: #999;
  margin-top: 8px;
  font-weight: 500;
}

/* Review card */
.review-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.3s;
}
.review-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

/* Process steps */
.process-step {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}
.process-step:hover {
  border-color: #55c89f;
  box-shadow: 0 8px 30px rgba(85,200,159,0.1);
}
.process-num {
  font-size: 3rem;
  font-weight: 900;
  color: #55c89f;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}

/* Service card */
.service-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.service-card img {
  width: 100%; height: 240px;
  object-fit: cover;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px; top: 28px; bottom: -28px;
  width: 2px;
  background: #e5e5e5;
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #55c89f;
  border: 4px solid #e8f8f0;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: #55c89f;
  box-shadow: 0 0 0 3px rgba(85,200,159,0.1);
}
.form-input::placeholder { color: #bbb; }

/* Showroom card */
.showroom-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
}
.showroom-card img {
  width: 100%; height: 260px;
  object-fit: cover;
}

/* Scroll animation */
.anim-up {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .anim-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .anim-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page hero (sub pages) */
.page-hero {
  padding: 160px 0 80px;
  background: #111;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, #55c89f, transparent);
}

/* Estimate table */
.est-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}
.est-table th {
  background: #f8f8f8;
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid #e5e5e5;
}
.est-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.est-table tr:last-child td { border-bottom: none; }
.est-table tr:hover td { background: #f8fdf9; }

/* Workplace card */
.wp-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fff;
}
.wp-card img {
  width: 100%; height: 220px;
  object-fit: cover;
}
.wp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.wp-badge.ing { background: #e8f8f0; color: #55c89f; }
.wp-badge.done { background: #f0f0f0; color: #999; }

/* Responsive adjustments */
@media (max-width: 768px) {
  #gnb { height: auto; }
  #gnb > div { height: 60px; }
  .hero-section { min-height: 100svh; }
  .stat-num { font-size: 2rem; }
  .pf-card img { height: 200px; }
  /* 모바일: hover 오버레이 숨기고 하단 텍스트 영역만 사용 */
  .pf-card .pf-overlay { display: none; }
  .pf-card .pf-info { display: none; }
  .service-card img { height: 180px; }
  .page-hero { padding: 110px 0 50px; }
  .section-title { font-size: 1.5rem; }
  .section-label { font-size: 11px; letter-spacing: 2px; margin-bottom: 8px; }
  .review-card { padding: 20px; }
  .process-step { padding: 20px; }
  .process-num { font-size: 2.2rem; margin-bottom: 8px; }
  .timeline-item { padding-left: 32px; }
  .filter-btn { padding: 6px 14px; font-size: 13px; }
  .form-input { padding: 12px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .pf-card img { height: auto; }
  .stat-num { font-size: 1.6rem; }
  .stat-suffix { font-size: 1rem; }
  .stat-label { font-size: 0.75rem; }
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 1.5rem !important; }
}
