/* === 62choga.com 스타일시트 === */

/* 변수 */
:root {
  --black: #1A1A1A;
  --white: #FFFFFF;
  --bg-warm: #FAF6F0;
  --brown: #5B3A1A;
  --brown-light: #D4A96A;
  --brown-dark: #3E2712;
  --accent: #C7443A;
  --text: #222222;
  --text-muted: #666666;
  --border: #E0D5C7;
  --success: #2E7D32;
  --max-width: 1200px;
  --header-height: 70px;
}

/* 리셋 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 공통 레이아웃 */
.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--black); color: var(--white); }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}
.section-title span { color: var(--brown); }

/* === 헤더 === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 상단 바 (검은색) */
.top-bar {
  background: var(--black);
  padding: 6px 0;
  font-size: 12px;
}
.top-links { display: flex; gap: 12px; }
.top-links a { color: #aaa; transition: color 0.2s; }
.top-links a:hover { color: var(--white); }
.top-email a { color: #aaa; font-size: 12px; }
.top-email a:hover { color: var(--white); }

/* 메뉴 바 (흰색) */
.menu-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img { height: 50px; }

/* 네비게이션 */
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: #555;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--brown);
  background: var(--bg-warm);
}

/* 드롭다운 서브메뉴 */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 160px;
  padding: 6px 0;
  z-index: 1001;
}
.nav-item:hover .nav-sub {
  display: block;
}
.nav-sub a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-sub a:hover {
  color: var(--brown);
  background: var(--bg-warm);
}

/* 앵커 스크롤 시 헤더 높이 보정 */
:target {
  scroll-margin-top: 100px;
}

/* 햄버거 메뉴 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s;
}

/* 헤더 전화번호 */
.header-phone {
  color: var(--brown);
  font-size: 15px;
  font-weight: 700;
}
.header-phone a { color: var(--brown); }

/* === 히어로 === */
.hero {
  position: relative;
  height: 500px;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}
.hero-phone {
  font-size: 36px;
  font-weight: 900;
  color: var(--brown-light);
  margin-bottom: 8px;
}
.hero-phone a { color: var(--brown-light); }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-cta:hover { background: #a83530; }

/* === 신뢰요소 === */
.trust-bar {
  background: var(--brown-dark);
  color: var(--white);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 24px;
  color: var(--brown-light);
}
.trust-item span {
  font-size: 13px;
  opacity: 0.8;
}

/* === 카드 그리드 === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0ebe3;
}
.card-body { padding: 14px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}
.card-info {
  font-size: 12px;
  color: var(--text-muted);
}
.card-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.card-tags span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: var(--bg-warm);
  color: var(--brown);
}

/* 자재 배지 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge--injo { background: #E8F5E9; color: #2E7D32; }
.badge--injo-hdpe { background: #E3F2FD; color: #1565C0; }
.badge--chunyeon { background: #FFF3E0; color: #E65100; }
.badge--ingal { background: #E0F2F1; color: #00695C; }
.badge--etc { background: #FFF3E0; color: #E65100; }

/* === 갤러리 필터 === */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}
.filters select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
}
.filters .search-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  flex: 1;
  min-width: 200px;
}
.filter-count {
  font-size: 14px;
  color: var(--text-muted);
}

/* 더보기 버튼 */
.load-more {
  display: block;
  margin: 30px auto;
  padding: 12px 40px;
  background: var(--brown);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.load-more:hover { background: var(--brown-dark); }

/* === 페이지네이션 === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.page-link:hover {
  background: var(--bg-warm);
  border-color: var(--brown);
  color: var(--brown);
}
.page-link.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
  font-weight: 700;
}

/* === 라이트박스 === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 2001;
  background: none;
  border: none;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox-info {
  color: white;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 48px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-counter {
  color: #aaa;
  font-size: 13px;
  margin-top: 4px;
}

/* === 지도 섹션 === */
.map-section { text-align: center; }
.map-container {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}
.map-container svg { width: 100%; }
.map-region {
  cursor: pointer;
  transition: fill 0.2s;
}
.map-region:hover { fill: var(--brown-light) !important; }
.map-region.active { fill: var(--brown) !important; }

/* === 플로팅 CTA === */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  display: none;
}
.floating-cta.visible { display: block; }
.floating-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.floating-cta a:hover { transform: scale(1.1); }

/* 모바일 하단 고정바 */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--black);
  padding: 0;
}
.mobile-bar-inner {
  display: flex;
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  color: white;
  font-size: 15px;
  font-weight: 700;
}
.mobile-bar .bar-call { background: var(--accent); }
.mobile-bar .bar-inquiry { background: var(--brown); }

/* === 푸터 === */
.footer {
  background: var(--black);
  color: #999;
  padding: 40px 0;
  font-size: 13px;
  line-height: 1.8;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-info { flex: 1; min-width: 300px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #999; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer strong { color: var(--white); }
.footer-copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid #333; color: #666; }

/* === 반응형 === */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero-content h1 { font-size: 34px; }
  .trust-items { gap: 24px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--black);
    padding: 16px;
    border-top: 1px solid #333;
  }
  .nav.open a { padding: 12px 16px; }
  .nav.open .nav-item { width: 100%; }
  .nav.open .nav-sub {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 16px;
  }
  .nav.open .nav-sub a {
    color: #aaa;
    padding: 8px 16px;
    font-size: 13px;
  }
  .nav.open .nav-sub a:hover { color: var(--white); background: transparent; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }

  .hero { height: 400px; }
  .hero-content h1 { font-size: 28px; }
  .hero-phone { font-size: 28px; }

  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }

  .filters { flex-direction: column; }
  .filters select, .filters .search-input { width: 100%; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-img { height: 140px; }
  .card-title { font-size: 13px; }

  .floating-cta { display: none !important; }
  .mobile-bar { display: block; }
  body { padding-bottom: 52px; }

  .footer-inner { flex-direction: column; gap: 20px; }

  .lightbox-nav { font-size: 32px; padding: 10px; }
}

@media (max-width: 480px) {
  .hero { height: 350px; }
  .hero-content h1 { font-size: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .trust-items { flex-direction: column; gap: 12px; }
}
