/* ==========================================================
   🎨 STYLE MASTER CSS (v2.0 안정형)
   Project : 이선생줄눈
   ----------------------------------------------------------
   ✅ 기존 디자인/기능 유지 + 중복/미사용 정리 + 반응형 완비
   ========================================================== */

/* ---------------- 전역 변수 ---------------- */
:root {
  /* 색상 */
  --primary: #0056b3;
  --secondary: #007bff;
  --accent: #00b8ff;
  --success: #00c878;
  --dark-blue: #0034a8;
  --dark-bg: #0b1e3d;
  --text-dark: #333;
  --text-gray: #666;

  /* 형태/효과 */
  --radius-card: 20px;
  --radius-btn: 10px;
  --shadow-soft: 0 8px 24px rgba(0, 60, 180, 0.12);
  --shadow-strong: 0 14px 36px rgba(0, 86, 179, 0.25);

  /* 애니메이션 */
  --t-fast: 0.25s ease;
  --t-smooth: 0.4s ease;

  /* 레이아웃 */
  --navH: 70px;
  --vh: 1vh;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navH);
  background: #fff;
}



body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================
   HEADER / NAV
   ========================================================== */
header.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navH);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  z-index: 1000;
}

/* ✅ SEO용 텍스트 숨김 (시각적으로는 안 보이지만 검색엔진은 인식) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-container {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 48px; width: auto; }

.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a {
  display: block; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--text-dark); font-weight: 600;
  transition: var(--t-fast);
}
.nav-links a.active { color: var(--secondary); border-bottom: 2px solid var(--secondary); }
.nav-links a:hover { color: #fff; background: var(--primary); }

/* 메뉴 오버레이 */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-smooth);
  z-index: 900;
}
.nav-overlay.show { opacity: 1; pointer-events: none; }
body.nav-open { overflow: hidden !important; height: 100vh !important; }

/* 모바일 네비 */
@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 1101; }
  .nav-links { display: none; flex-direction: column; }

  .nav-links.show {
    position: fixed;
    top: calc(var(--navH) + 8px);
    left: 4%; right: 4%; bottom: 4%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 14px 0;
    z-index: 1102;
    display: flex;
    animation: fadeSlide var(--t-smooth);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.show a {
    padding: 14px 18px; text-align: center;
    font-size: 1.05rem; font-weight: 600; color: #0040b3;
    border-bottom: 1px solid rgba(0, 64, 179, 0.08);
  }
  .nav-links.show a:last-child { border-bottom: none; }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================================
   SECTION BASE
   ========================================================== */
.section {
  min-height: calc(var(--vh) * 100);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--navH) + 40px) 20px 100px;
}
.inner { max-width: 1200px; margin: 0 auto; padding: 80px 20px; text-align: center; }

h2 { font-size: 2rem; margin-bottom: 18px; color: var(--primary); }
.subtitle { color: var(--text-gray); margin-bottom: 28px; }

/* 공통 섹션 헤더(선택 사용) */
.section-header { text-align: center; margin-bottom: 40px; position: relative; }
.section-header h2 {
  font-size: 2rem; font-weight: 800; color: var(--dark-blue);
  display: inline-block; position: relative; margin-bottom: 16px;
}
.section-header h2::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.section-header .subtitle {
  font-size: 1.1rem; color: #444; line-height: 1.8; margin-top: 20px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.section-header .subtitle strong { color: #005ae0; font-weight: 700; }
.section-header .subtitle .accent { color: var(--secondary); font-weight: 800; }

/* 반응형 공통 패딩/타이포 */
@media (max-width: 1024px) {
  .section { padding: 80px 18px; }
  h2 { font-size: 1.7rem; }
}
@media (max-width: 768px) {
  .section { padding: 80px 14px; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .section { padding: 70px 12px; }
  h2 { font-size: 1.2rem; }
}

/* ==========================================================
   HERO
   ========================================================== */
.section.hero {
  position: relative; overflow: hidden; background: var(--dark-bg); padding: 0; min-height: 100vh;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(100,160,255,.4) 0%, rgba(0,30,60,.9) 60%, rgba(0,10,30,1) 100%),
    url('./images/mainimg2.png') center/cover no-repeat;
  filter: brightness(.85) saturate(1.1);
}
.hero-wrapper { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; margin-top: 72px; }
.hero-main {
  width: min(92%,560px); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  transition: transform .6s ease, box-shadow .6s ease;
}
.hero-main:hover { transform: scale(1.03); box-shadow: 0 18px 50px rgba(0,0,0,.65); }

/* ==========================================================
   SERVICES
   ========================================================== */
#services {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at top left, #eaf2ff, #f8fbff 70%);
}
#services::before {
  content: ""; position: absolute; top: -50%; left: -30%; width: 160%; height: 200%;
  background: radial-gradient(circle at center, rgba(0, 100, 255, 0.07), transparent 70%);
  animation: glowRotate 20s linear infinite;
}
@keyframes glowRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#services .inner { position: relative; z-index: 1; }
#services h2 { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; margin-bottom: 14px; }
#services .subtitle { font-size: 1.05rem; color: #666; margin-bottom: 50px; }
#services .service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px; justify-items: center; align-items: stretch; max-width: 1100px; margin: 0 auto;
}
#services .service-card {
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 36px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(200, 220, 255, 0.4);
  transition: var(--t-smooth);
}
#services .service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 36px rgba(0, 86, 179, 0.18); border-color: rgba(0, 86, 179, 0.3); }
#services .service-card .icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, #0078ff, #0040b3); color:#fff;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  margin: 0 auto 18px; box-shadow: 0 6px 18px rgba(0, 86, 179, 0.3);
  transition: var(--t-smooth);
}
#services .service-card:hover .icon { transform: scale(1.1) rotate(8deg); box-shadow: 0 8px 28px rgba(0, 86, 179, 0.45); }
#services .service-card h3 { font-size: 1.2rem; font-weight: 700; color: #002b5c; margin-bottom: 8px; }
#services .service-card p { color: #555; font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 768px) {
  #services .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  #services .service-card { padding: 24px; }
}

/* ==========================================================
   COMPARISON (시공 비교)
   ========================================================== */
#comparison {
  position: relative; overflow: hidden; padding: 100px 20px;
  background: linear-gradient(180deg, #e9f0ff 0%, #f5f8ff 100%);
}
#comparison .subtitle {
  font-size: 1.25rem; color: #002d7a; font-weight: 700;
  text-align: center; margin-bottom: 18px; line-height: 1.8; letter-spacing: -0.3px;
}
#comparison .subtitle .desc {
  display: block; font-size: 1rem; font-weight: 400; color: #333; line-height: 1.9; margin-top: 10px;
}
#comparison .subtitle .desc strong { color: #005ae0; }

.comparison-carousel {
  position: relative; overflow: hidden; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 30px 20px 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,245,255,0.9));
  border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 40, 120, 0.08);
}
.comparison-track { display: flex; transition: transform .5s ease; }
.comparison-slide {
  flex: 0 0 100%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: stretch;
}
.comparison-item {
  position: relative; border-radius: 18px; overflow: hidden; background: #f9fbff;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  border: 1px solid rgba(200, 220, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 20px;
}
.comparison-item:hover { transform: scale(1.02); box-shadow: 0 14px 36px rgba(0, 70, 200, 0.2); }
.comparison-item img {
  width: 100%; height: auto; max-height: 400px; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.cmp-label {
  position: absolute; top: 14px; left: 16px; padding: 8px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(0, 60, 255, 0.7); backdrop-filter: blur(4px);
}
.cmp-label.after { background: rgba(0, 200, 120, 0.8); }

/* 비교 컨트롤 */
.cmp-controls {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 28px; flex-wrap: wrap;
}
.cmp-btn {
  background: #fff; color: #0040b3; border: 2px solid #0040b3;
  padding: 10px 24px; border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 60, 200, 0.1);
  transition: var(--t-fast);
}
.cmp-btn:hover { background: #0040b3; color: #fff; transform: translateY(-2px); }
.cmp-indicator { font-size: 15px; font-weight: 600; color: #0040b3; min-width: 70px; text-align: center; }

/* 비교 반응형 */
@media (max-width: 1024px) {
  .comparison-slide { grid-template-columns: 1fr; gap: 20px; }
  .comparison-item { margin: 0 auto; max-width: 500px; }
  .comparison-item img { max-height: 360px; object-fit: contain; }
}
@media (max-width: 600px) {
  #comparison { padding: 80px 12px; }
  .comparison-carousel { padding: 20px 10px; }
  .cmp-controls { gap: 12px; margin-top: 20px; }
  .cmp-btn { padding: 8px 16px; font-size: 15px; }
  .cmp-indicator { font-size: 14px; min-width: 60px; }
}

/* ==========================================================
   WHY TIMELINE (중앙선/점 제거 버전)
   ========================================================== */
.why-timeline {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbff 0%, #e3ecff 100%);
  padding: 140px 20px 160px;
}

/* 배경 장식 */
.why-timeline::before,
.why-timeline::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.why-timeline::before {
  top: -100px;
  right: -150px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.12), transparent 70%);
}
.why-timeline::after {
  bottom: -120px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 64, 179, 0.1), transparent 70%);
}

/* 헤더 */
.why-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}
.why-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0034a8;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}
.why-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.why-header .highlight {
  color: var(--secondary);
}
.why-header p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* 타임라인 컨테이너/스텝 */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 240px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.timeline-step {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 80px 0;
  gap: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.timeline-step.reverse {
  flex-direction: row-reverse;
}

/* 이미지/텍스트 카드 */
.timeline-step .image {
  flex: 0 0 48%;
  display: flex;
  justify-content: center;
}
.timeline-step .image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 60, 180, 0.12);
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}
.timeline-step .image img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 60, 180, 0.25);
}


/* 텍스트 카드 */
.timeline-step .text {
  flex: 0 0 48%;
  background: #fff;
  border: 1px solid rgba(0, 100, 255, 0.15);
  border-radius: 18px;
  padding: 48px 52px;
  box-shadow: 0 10px 24px rgba(0, 70, 200, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--t-smooth);
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.timeline-step .text:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 70, 200, 0.15);
}

/* 상단 라벨 바 */
.timeline-step .text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.timeline-step .text::after {
  content: none !important;
}

/* 텍스트 */
.timeline-step .step-number {
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.timeline-step h3 {
  font-size: 1.4rem;
  color: #00327a;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 123, 255, 0.15);
  padding-bottom: 6px;
}
.timeline-step p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 8px;
}

/* 공정 리스트 */
.process-steps {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f9fbff;
  border: 1px solid rgba(0, 123, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 3px 8px rgba(0, 60, 180, 0.05);
  transition: var(--t-fast);
}
.process-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 60, 180, 0.12);
  background: #f1f7ff;
}
.process-steps i {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-top: 4px;
  flex-shrink: 0;
}
.process-steps strong {
  color: #00327a;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

/* ==========================================================
   3단계 개선 버전 - 가독성 향상
   ========================================================== */
.tidy-version {
  line-height: 1.8;
}
.tidy-version .intro {
  font-size: 1rem;
  color: #333;
  margin-bottom: 24px;
}
.tidy-version h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tidy-version p {
  font-size: 0.95rem;
  color: #444;
}

/* 정보 박스 스타일 */
.info-box {
  background: #f8faff;
  border: 1px solid rgba(0, 100, 255, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0, 80, 200, 0.06);
  transition: 0.3s ease;
}
.info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 80, 200, 0.1);
}
.info-box i {
  color: #ff6b6b;
  margin-right: 8px;
}
.info-box.good {
  background: #f4f9ff;
  border-color: rgba(0, 90, 255, 0.25);
}
.info-box.good i {
  color: #007bff;
}

/* 인용문 */
.closing-quote.neat {
  background: linear-gradient(90deg, #f2f6ff, #e8f1ff);
  border-left: 4px solid #0066ff;
  padding: 14px 20px;
  border-radius: 10px;
  margin-top: 26px;
  font-size: 1rem;
  color: #00327a;
  font-weight: 600;
}

.closing-quote.neat strong {
  color: var(--secondary);
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 80, 200, 0.2);
}


/* 이미지 분할 + 5단계 비율 고정 */
.split-image.tidy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-image.tidy .half {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* 5-2 기준 비율 고정 */
  overflow: hidden;
}
.split-image.tidy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 50, 150, 0.12);
  transition: transform 0.3s ease;
}
.split-image.tidy img:hover {
  transform: scale(1.03);
}
.split-image.tidy .label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 30px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.split-image.tidy .label.red {
  background: rgba(255, 0, 72, 0.85);
}
.split-image.tidy .label.blue {
  background: rgba(0, 85, 255, 0.85);
}

/* 마무리 문구 */
.closing-quote {
  text-align: center;
  font-size: 1.3rem;
  color: #0034a8;
  font-weight: 700;
  margin-top: 90px;
  opacity: 0.95;
  line-height: 1.7;
}

/* 타임라인 반응형 */
@media (max-width: 1200px) {
  .timeline-container {
    gap: 160px;
  }
}

@media (max-width: 1024px) {
  /* ✅ 모든 스텝(일반/역순 모두) — 이미지 위, 텍스트 아래 고정 */
  .timeline-step,
  .timeline-step.reverse {
    flex-direction: column !important;
    text-align: center;
  }

  /* ✅ 이미지 먼저, 텍스트 나중 */
  .timeline-step .image {
    flex: 1 1 100%;
    max-width: 700px;
    order: 1;
  }

  .timeline-step .text {
    flex: 1 1 100%;
    max-width: 700px;
    order: 2;
    margin-top: 20px;
    padding: 32px 36px;
  }

  .timeline-container {
    gap: 120px;
  }

  /* 🚫 (삭제됨) .split-image.tidy 가로 유지 설정 제거 */
}

@media (max-width: 768px) {
  .why-header h2 {
    font-size: 2rem;
  }

  .why-header p {
    font-size: 1rem;
  }

  .timeline-container {
    gap: 90px;
  }

  .timeline-step .text {
    padding: 26px 28px;
    box-shadow: 0 6px 18px rgba(0, 50, 150, 0.08);
  }

  .timeline-step h3 {
    font-size: 1.1rem;
  }

  .timeline-step p {
    font-size: 0.9rem;
  }

  .closing-quote {
    font-size: 1rem;
    margin-top: 60px;
  }

  /* ✅ 모바일에서는 tidy split도 세로 정렬로 변경 */
  .split-image.tidy {
    flex-direction: column !important;
  }

  .tidy-version .intro {
    font-size: 0.95rem;
  }

  .info-box,
  .closing-quote.neat {
    font-size: 0.9rem;
  }

  /* ✅ 모바일 순서도 동일하게 보장 */
  .timeline-step,
  .timeline-step.reverse {
    flex-direction: column !important;
  }

  .timeline-step .image {
    order: 1;
  }

  .timeline-step .text {
    order: 2;
  }
}

@media (max-width: 480px) {
  .timeline-container {
    gap: 70px;
  }

  .timeline-step .text {
    padding: 22px 24px;
  }

  .why-header h2 {
    font-size: 1.7rem;
  }

  .timeline-step h3 {
    font-size: 1rem;
  }

  .timeline-step p {
    font-size: 0.85rem;
  }

  .closing-quote {
    font-size: 0.9rem;
  }

  /* ✅ 모바일 초소형 화면에서도 순서 통일 유지 */
  .timeline-step,
  .timeline-step.reverse {
    flex-direction: column !important;
  }

  .timeline-step .image {
    order: 1;
  }

  .timeline-step .text {
    order: 2;
  }
}




/* ==========================================================
   GALLERY (시공 사례)
   ========================================================== */
#gallery {
  position: relative; overflow: hidden; padding: 100px 20px;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}
#gallery .inner { position: relative; z-index: 2; text-align: center; }
#gallery .gallery-title { font-size: 2.2rem; font-weight: 800; color: #0041b8; margin-bottom: 16px; }
#gallery .gallery-subtitle {
  text-align: center; font-size: 1.1rem; color: #333; line-height: 1.9;
  margin-top: 10px; margin-bottom: 40px; letter-spacing: -0.3px;
}
#gallery .gallery-subtitle strong { color: #005ae0; font-weight: 700; }

/* 캐러셀 */
.carousel-container {
  position: relative; overflow: hidden; width: 100%; max-width: 1300px; margin: 0 auto;
  padding: 40px 0 80px; background: rgba(255, 255, 255, 0.88);
  border-radius: 26px; border: 1px solid rgba(190, 210, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 50, 150, 0.08);
}
.carousel-track {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; transition: transform 0.6s ease; padding: 0 5vw; box-sizing: border-box; will-change: transform;
}
.carousel-item {
  flex: 0 0 auto; width: 90%; max-width: 600px; border-radius: 22px; overflow: hidden; position: relative;
  background: #fff; border: 1px solid rgba(220, 230, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.5s ease; transform: scale(0.88); opacity: 0.55;
  filter: blur(2px) brightness(0.85);
}
.carousel-item.active {
  transform: scale(1); opacity: 1; filter: blur(0) brightness(1.1);
  z-index: 3; box-shadow: var(--shadow-strong);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}
.carousel-item img {
  width: 100%; height: auto; max-height: 480px; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* 컨트롤 */
.carousel-controls {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; justify-content: center; align-items: center; gap: 18px;
  z-index: 10; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px);
  border-radius: 14px; padding: 10px 20px; box-shadow: 0 4px 16px rgba(0, 64, 179, 0.08);
}
.carousel-controls .carousel-btn {
  background: #fff; color: #0040b3; border: 2px solid #0040b3;
  padding: 8px 20px; border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--t-fast);
  box-shadow: 0 3px 8px rgba(0, 60, 200, 0.1); white-space: nowrap;
}
.carousel-controls .carousel-btn:hover { background: #0040b3; color: #fff; transform: translateY(-2px); }
.carousel-controls .carousel-btn:active { transform: scale(0.97); background: #003b9f; color: #fff; }
.carousel-controls .carousel-indicator {
  color: #0040b3; font-weight: 700; font-size: 15px; min-width: 60px; text-align: center; letter-spacing: 0.5px;
}

/* 갤러리 반응형 */
@media (max-width: 1024px) {
  #gallery { padding: 80px 14px; }
  .carousel-track { padding: 0 4vw; }
  .carousel-item { flex: 0 0 95%; border-radius: 18px; transform: scale(0.94); opacity: 0.7; filter: blur(1.2px) brightness(0.9); }
  .carousel-controls { bottom: 18px; padding: 8px 16px; gap: 12px; border-radius: 10px; }
  .carousel-controls .carousel-btn { font-size: 14px; padding: 6px 14px; border-width: 1.8px; }
  .carousel-controls .carousel-indicator { font-size: 14px; }
}
@media (max-width: 600px) {
  #gallery { padding: 70px 12px; }
  .carousel-track { padding: 0 3vw; gap: 14px; }
  .carousel-item { flex: 0 0 100%; border-radius: 14px; transform: scale(0.96); opacity: 0.75; filter: blur(1px) brightness(0.95); }
  .carousel-controls { bottom: 14px; padding: 6px 12px; gap: 10px; border-radius: 10px; }
  .carousel-controls .carousel-btn { font-size: 13.5px; padding: 6px 12px; min-width: 68px; height: 36px; }
  .carousel-controls .carousel-indicator { font-size: 13px; min-width: 45px; }
}
@media (max-width: 480px) {
  .carousel-track { padding: 0 2vw; }
  .carousel-controls { bottom: 10px; padding: 5px 10px; gap: 8px; }
  .carousel-controls .carousel-btn { font-size: 12.5px; padding: 5px 10px; height: 34px; }
  .carousel-controls .carousel-indicator { font-size: 12px; min-width: 40px; }
}

/* ==========================================================
   REVIEWS (후기)
   ========================================================== */
#reviews {
  position: relative; overflow: hidden; padding: 100px 20px;
  background: linear-gradient(180deg, #f8faff 0%, #eef4ff 100%);
}
#reviews::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 100%; height: 180%;
  background: radial-gradient(circle at center, rgba(0, 80, 200, 0.05), transparent 75%);
  z-index: 0;
}
#reviews h2, #reviews .reviews-grid { position: relative; z-index: 1; }
#reviews h2 {
  text-align: center; font-size: 2.2rem; font-weight: 800; color: #003b9c; margin-bottom: 60px; letter-spacing: -0.5px;
}
#reviews h2::after {
  content: ""; display: block; width: 60px; height: 4px;
  background: linear-gradient(90deg, #0040b3, #00aaff); margin: 16px auto 0; border-radius: 2px;
}
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px; max-width: 1100px; margin: 0 auto; padding: 0 10px;
}
.review-card {
  position: relative; overflow: hidden; text-align: left; isolation: isolate;
  background: linear-gradient(145deg, #ffffff, #f5f8ff);
  border-radius: 20px; padding: 38px 28px 54px;
  box-shadow: 0 10px 25px rgba(0, 50, 150, 0.08);
  border: 1px solid rgba(220, 230, 250, 0.7);
  transition: var(--t-smooth);
}
.review-card:hover { transform: translateY(-8px); box-shadow: 0 18px 42px rgba(0, 70, 200, 0.12); border-color: rgba(0, 100, 255, 0.25); }
.review-card::before {
  content: "“"; position: absolute; top: 12px; left: 20px; font-size: 56px; font-family: Georgia, serif;
  color: rgba(0, 0, 0, 0.1); line-height: 1; z-index: 0;
}
.review-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0040b3, #0090ff);
  border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; z-index: 2;
}
.review-card .stars { font-size: 1.2rem; color: #ffb300; margin-bottom: 10px; position: relative; z-index: 1; }
.review-card .quote {
  font-size: 1.05rem; color: #1a1a1a; line-height: 1.7; font-weight: 500;
  margin-bottom: 20px; position: relative; z-index: 1; padding-left: 10px; border-left: 3px solid rgba(0, 86, 179, 0.1);
}
.review-card .author { font-weight: 700; color: #333; font-size: 0.95rem; position: relative; z-index: 1; display: block; }
.review-card .meta { font-size: 0.85rem; color: #777; margin-top: 4px; font-style: italic; }
.review-card:hover::before { color: rgba(0, 86, 179, 0.25); }

/* 후기 반응형 */
@media (max-width: 1024px) {
  #reviews { padding: 80px 24px; }
  #reviews h2 { font-size: 1.9rem; margin-bottom: 50px; }
  .reviews-grid { gap: 28px; }
  .review-card { padding: 34px 24px 50px; border-radius: 18px; }
  .review-card .quote { font-size: 1rem; line-height: 1.65; }
  .review-card::before { font-size: 50px; }
}
@media (max-width: 768px) {
  #reviews { padding: 70px 18px; }
  #reviews h2 { font-size: 1.7rem; margin-bottom: 38px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 24px; }
  .review-card { padding: 30px 22px 46px; border-radius: 16px; }
  .review-card .quote { font-size: 0.98rem; line-height: 1.6; padding-left: 8px; }
  .review-card .author { font-size: 0.9rem; }
  .review-card::before { font-size: 46px; }
  .review-card::after { height: 3px; }
}
@media (max-width: 480px) {
  #reviews { padding: 60px 14px; }
  #reviews h2 { font-size: 1.45rem; margin-bottom: 32px; }
  .review-card { padding: 26px 18px 42px; border-radius: 14px; box-shadow: 0 8px 22px rgba(0, 80, 200, 0.08); }
  .review-card .stars { font-size: 1.1rem; }
  .review-card .quote { font-size: 0.95rem; line-height: 1.55; }
  .review-card .author { font-size: 0.88rem; }
  .review-card::before { font-size: 40px; }
  .review-card::after { height: 3px; }
}

/* ==========================================================
   CONTACT (상담)
   ========================================================== */
#contact {
  background: linear-gradient(to bottom, #f5f9ff, #eaf1ff);
  padding: 100px 20px;
  text-align: center;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

/* 헤더 */
#contact h2 {
  color: #043ab7;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

#contact .contact-desc {
  color: #5d6576;
  font-size: 1.05rem;
  margin-bottom: 46px;
}

/* ✅ 문의 폼 통합 카드 */
#contact .contact-form {
  background: linear-gradient(145deg, #ffffff, #f2f6ff);
  border: 1px solid #e3eaf7;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  max-width: 780px;
  margin: 0 auto 60px;
  padding: 56px 40px 68px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

/* 호버 시 살짝 뜨는 느낌 */
#contact .contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.15);
}

/* ✅ 항목 그룹 */
#contact .contact-form .form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

/* 라벨 */
#contact .contact-form label {
  font-weight: 700;
  font-size: 1rem;
  color: #043ab7;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

/* 입력, 셀렉트, 텍스트에어리어 */
#contact .contact-form input,
#contact .contact-form textarea,
#contact .contact-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #c9d6f3;
  font-size: 1rem;
  background: #fff;
  color: #333;
  outline: none;
  transition: all 0.25s ease;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus,
#contact .contact-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 드롭다운 스타일 */
#contact .contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%232563eb'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

/* 날짜 입력 */
#contact .contact-form input[type="date"] {
  color: #333;
}

/* ✅ 문의 보내기 버튼 */
#contact .contact-form .contact-btn.submit {
  display: block;
  background: linear-gradient(135deg, #2563eb, #1744b3);
  color: #fff;
  padding: 15px 42px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin: 30px auto 0; /* ✅ 하단 여백 제거 — 상태 메시지와 밀착 */
  text-align: center;
  transition: all 0.3s ease;
}

#contact .contact-form .contact-btn.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

/* ==========================================================
   💬 브랜드 스타일 팝업 (이선생줄눈)
   ========================================================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease forwards;
}

.popup-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px 36px;
  text-align: center;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  border-top: 6px solid var(--brand-color, #2563eb);
  position: relative;
}

.popup-box.success {
  --brand-color: #2563eb; /* 파랑 */
}
.popup-box.error {
  --brand-color: #ffbb00; /* 노랑 (주의) */
}

.popup-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  animation: bounce 0.8s ease;
}

.popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.popup-message {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 18px;
  line-height: 1.5;
}

.popup-close {
  background: var(--brand-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}
.popup-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* ✅ 실패 시 버튼 2개 정렬 */
.popup-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.popup-retry {
  background: #ffbb00;
  color: #222;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.popup-retry:hover {
  background: #facc15;
  transform: translateY(-2px);
}


/* 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* ✅ 문의 상태 메시지 (위치 수정 완료) */
#contact .contact-form .form-status {
  display: block;
  position: relative;
  margin-top: 12px; /* 버튼 바로 밑 */
  text-align: center;
  font-size: 0.95rem;
  color: #2563eb;
  font-weight: 600;
  animation: fadeInStatus 0.3s ease forwards;
}

/* ✅ 카카오톡 상담 버튼 고정 위치 및 클릭 보장 */
.kakao-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background: #fee500;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kakao-btn img {
  width: 54px;
  height: 54px;
  display: block;
}

.kakao-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ✅ 다른 오버레이가 클릭 막는 현상 방지 */
.nav-overlay.show {
  pointer-events: none !important;
}


@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   ✅ 하단 추가 연락수단
   ========================================================== */
#contact .contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 60px 0 30px;
}

#contact .contact-btn {
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease-in-out;
}

#contact .contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* 버튼 색상 */
#contact .contact-btn.kakao {
  background: #fee500;
  color: #222;
}

#contact .contact-btn.blog {
  background: #00b843;
  color: #fff;
}

#contact .contact-btn.call {
  background: #2563eb;
  color: #fff;
}

/* ==========================================================
   ✅ 전화문의 (PC/모바일 구분)
   ========================================================== */
#contact .contact-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* PC 전용 텍스트형 */
#contact .call-text {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8faff;
  border: 1px solid #d1dcf4;
  border-radius: 60px;
  padding: 14px 28px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
}

#contact .call-text:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
}

#contact .call-text .icon {
  color: #2563eb;
  font-size: 1.2rem;
}

#contact .call-text .label {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

#contact .call-text .divider {
  width: 1px;
  height: 18px;
  background: #c6d3ef;
  display: inline-block;
}

#contact .call-text .phone {
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
}

/* ✅ 모바일 반응형 */
@media (max-width: 768px) {
  #contact {
    padding: 80px 16px;
  }

  #contact .contact-form {
    padding: 36px 22px 55px;
  }

  #contact .contact-buttons {
    flex-direction: column;
    gap: 14px;
  }

  #contact .call-text {
    display: none;
  }

  #contact .contact-btn.call {
    display: inline-flex;
    width: 100%;
    font-size: 17px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }

  #contact .contact-buttons .contact-btn {
    width: 100%;
  }

  #contact .contact-form input,
  #contact .contact-form textarea,
  #contact .contact-form select {
    font-size: 0.95rem;
  }

  #contact .contact-form .contact-btn.submit {
    width: 100%;
    margin: 25px auto 0; /* 상태 메시지 바로 아래로 유지 */
  }

  #contact .contact-form .form-status {
    font-size: 0.9rem;
    margin-top: 10px;
  }
}

@media (min-width: 769px) {
  #contact .contact-btn.call {
    display: none;
  }

  #contact .call-text {
    display: flex;
  }
}


/* ==========================================================
   사업자 정보
   ========================================================== */
#contact .biz-info {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #d8e1f5;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

#contact .biz-info strong {
  color: #043ab7;
  font-weight: 700;
}

#contact .biz-info .copy {
  color: #888;
  font-size: 13px;
  margin-top: 8px;
}

/* ==========================================================
   ✅ 반응형 스타일
   ========================================================== */
@media (max-width: 768px) {
  #contact {
    padding: 80px 16px;
  }

  #contact .contact-form {
    padding: 36px 22px 55px;
  }

  #contact .contact-buttons {
    flex-direction: column;
    gap: 14px;
  }

  #contact .call-text {
    display: none;
  }

  /* ✅ 전화하기 버튼도 동일한 크기로 맞춤 */
  #contact .contact-btn.call {
    display: inline-flex;
    width: 100%;
    font-size: 17px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }

  /* ✅ 모든 버튼 크기 통일 */
  #contact .contact-buttons .contact-btn {
    width: 100%;
  }

  #contact .contact-form input,
  #contact .contact-form textarea,
  #contact .contact-form select {
    font-size: 0.95rem;
  }

  #contact .contact-form .contact-btn.submit {
    width: 100%;
    margin: 25px auto 45px; /* ✅ 버튼 아래 충분한 여백 확보 */
  }
}


@media (min-width: 769px) {
  #contact .contact-btn.call {
    display: none;
  }

  #contact .call-text {
    display: flex;
  }
}



/* ==========================================================
   KAKAO 상담 팝업
   ========================================================== */
.kakao-popup-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 30, 0.55); backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; animation: fadeIn 0.3s ease forwards;
}
.kakao-popup {
  position: relative; overflow: hidden; text-align: center;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px);
  border-radius: 24px; padding: 28px 26px 34px;
  box-shadow: 0 12px 48px rgba(0, 64, 179, 0.25);
  max-width: 340px; width: 90%;
  border: 1px solid rgba(210, 225, 255, 0.6);
  animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}
.kakao-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.kakao-header h3 { font-size: 1.2rem; color: #0040b3; font-weight: 800; }
.kakao-icon { width: 32px; height: 32px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.kakao-body p { font-size: 0.95rem; color: #222; line-height: 1.6; margin-bottom: 16px; }
.qr-box {
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(0, 86, 179, 0.2);
  border-radius: 14px; padding: 12px; display: inline-block; margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(0, 64, 179, 0.08);
}
.qr-img { width: 160px; height: 160px; border-radius: 10px; }
.kakao-popup-btn {
  display: inline-block; background: linear-gradient(135deg, #ffde00, #ffcc00);
  color: #222; font-size: 0.95rem; padding: 10px 24px; border-radius: 12px; font-weight: 700;
  text-decoration: none; box-shadow: 0 5px 14px rgba(255, 204, 0, 0.35);
  transition: var(--t-fast);
}
.kakao-popup-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 204, 0, 0.45); }
.kakao-popup-close {
  margin-top: 18px; background: none; border: none; color: #0040b3; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; transition: color var(--t-fast);
}
.kakao-popup-close:hover { color: #002b80; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================================
   전역 반응형 보완
   ========================================================== */
@media (max-width: 1024px) {
  .split-layout { flex-direction: column; text-align: center; }
}
