/* 어항공장 Fishbowl Factory — 시안 A "클리어 갤러리" */
:root {
  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --tint: #E4EDF0;
  --ink: #0F1B22;
  --dim: #55666F;
  --line: #DCE4E7;
  --line-strong: #C9D6DA;
  --accent: #0A6C74;
  --accent-dk: #07535A;
  --dark: #0F1B22;
  --dark-ink: #EEF4F5;
  --dark-dim: #93A7B0;
  --dark-line: #2A3A44;
  --kakao: #FEE500;
  --radius-lg: 28px;
  --radius: 18px;
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dk); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-wide { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap, .wrap-wide { padding: 0 20px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 248, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo strong { font-size: 21px; font-weight: 900; letter-spacing: -0.03em; }
.logo span { font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .btn { margin-left: 4px; }
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 10px; gap: 10px 16px; }
  .nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav .btn { display: none; }
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dk); color: #FFFFFF; }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-kakao { background: var(--kakao); color: #191919; font-weight: 700; }
.btn-kakao:hover { background: #F2D900; color: #191919; }
.btn-ghost { color: var(--dark-ink); border-color: #4A5C66; }
.btn-ghost:hover { border-color: var(--dark-ink); color: #FFFFFF; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== 공통 섹션 ===== */
.section { padding: 96px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 14px; letter-spacing: 0.06em; color: var(--dim); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head h2 { font-size: 44px; font-weight: 900; }
.sec-head p { color: var(--dim); max-width: 36em; }
.lead { font-size: 17px; color: var(--dim); max-width: 34em; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .sec-head h2 { font-size: 32px; }
}

/* ===== 홈 히어로 ===== */
.hero { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 88px); line-height: 1.12; font-weight: 900; letter-spacing: -0.045em; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 32px; flex-wrap: wrap; }
.hero-media { width: 100%; height: 600px; object-fit: cover; border-radius: var(--radius-lg); background: #D3E2E6; }
@media (max-width: 720px) { .hero { padding-top: 32px; } .hero-media { height: 360px; border-radius: 20px; } }

/* ===== 숫자 요약 ===== */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 72px; padding-bottom: 72px; margin: 0; }
.facts > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.facts dt { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.5; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; color: var(--dim); font-size: 15px; }

/* ===== 제품 카드 ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px 24px; }
.product-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.product-card:hover { color: var(--ink); }
.product-card .thumb { overflow: hidden; border-radius: var(--radius); background: var(--tint); aspect-ratio: 4 / 3; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-card .name { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.product-card .name span { color: var(--accent); }
.product-card .desc { color: var(--dim); font-size: 14.5px; margin-top: -6px; }

/* ===== 소개 (사진 + 글) ===== */
.split { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.split > img { flex: 1 1 460px; min-width: 0; height: 460px; object-fit: cover; border-radius: 24px; }
.split > div { flex: 1 1 400px; display: flex; flex-direction: column; gap: 20px; }
.split h2 { font-size: 38px; font-weight: 900; line-height: 1.3; }
.split p { color: var(--dim); }
@media (max-width: 720px) { .split > img { height: 280px; } .split h2 { font-size: 30px; } }

/* ===== 주문 절차 (실제 순서) ===== */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { background: var(--bg); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.section:not(.section-white) .steps li { background: var(--surface); border: 1px solid var(--line); }
.steps .no { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { font-size: 15px; color: var(--dim); }

/* ===== FAQ ===== */
.faq-wrap { display: flex; gap: 56px; flex-wrap: wrap; }
.faq-wrap > h2 { flex: 1 1 280px; font-size: 44px; font-weight: 900; }
.faq { flex: 2 1 560px; margin: 0; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 20px; font-size: 26px; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 0 26px; color: var(--dim); font-size: 15.5px; }
.faq .answer ul { margin: 0; padding-left: 20px; }
@media (max-width: 720px) { .faq-wrap > h2 { font-size: 32px; } }

/* ===== 연락처 (어두운 구역) ===== */
.contact { background: var(--dark); color: var(--dark-ink); }
.contact-inner { display: flex; gap: 64px; flex-wrap: wrap; padding-top: 96px; padding-bottom: 96px; }
.contact-inner > div { flex: 1 1 400px; display: flex; flex-direction: column; gap: 22px; }
.contact h2 { font-size: 40px; font-weight: 900; line-height: 1.3; }
.contact p { color: var(--dark-dim); }
.info { flex: 1 1 440px; margin: 0; display: grid; grid-template-columns: 132px 1fr; font-size: 15px; align-content: start; }
.info dt, .info dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--dark-line); }
.info dt { color: var(--dark-dim); }
.info dt:nth-last-of-type(1), .info dd:last-of-type { border-bottom: 1px solid var(--dark-line); }
.info a { color: var(--dark-ink); }
@media (max-width: 720px) { .contact-inner { padding-top: 64px; padding-bottom: 64px; } .contact h2 { font-size: 30px; } .info { grid-template-columns: 108px 1fr; } }

/* 밝은 배경용 회사 정보 표 */
.info-light { display: grid; grid-template-columns: 160px 1fr; margin: 0; font-size: 15.5px; }
.info-light dt, .info-light dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.info-light dt { color: var(--dim); }
.info-light dt:nth-last-of-type(1), .info-light dd:last-of-type { border-bottom: 1px solid var(--line-strong); }
@media (max-width: 720px) { .info-light { grid-template-columns: 112px 1fr; } }

/* ===== 하위 페이지 머리 ===== */
.page-head { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: -0.045em; }
.crumbs { font-size: 14px; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ===== 갤러리 ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery button {
  padding: 0; border: 0; background: var(--tint); border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-count { color: var(--dim); font-size: 15px; font-variant-numeric: tabular-nums; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 14, 18, 0.92); }
.lightbox-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #FFFFFF; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #FFFFFF; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .lightbox-inner { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* 다른 제품 바로가기 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-size: 15px;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* 견적 안내 체크리스트 */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.checklist li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.checklist strong { display: block; font-size: 17px; }
.checklist span { color: var(--dim); font-size: 14.5px; }

.map-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; text-decoration: none; }

/* ===== 푸터 ===== */
.site-footer { padding: 40px 0 48px; font-size: 13.5px; color: var(--dim); }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-top nav a { color: var(--dim); text-decoration: none; }
.footer-top nav a:hover { color: var(--accent); }
.footer-biz { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* 모바일 하단 고정 문의 바 */
.quick-bar { display: none; }
@media (max-width: 720px) {
  .quick-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  }
  .quick-bar .btn { min-height: 46px; padding: 10px; font-size: 15px; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card img, .gallery img { transition: none; }
  .product-card:hover img, .gallery button:hover img { transform: none; }
}
