/*
  바스미디아(products.bathmvip.com) 공통 스타일시트
  디자인 시스템 선택값 (H-1~H-5 / Primary):
  - Primary: 파스텔 스틸블루 #A0C4D8
  - Hero 타입: hero-split (보유 hero 이미지 2장에 맞춤)
  - 섹션 순서: 패턴 A - 제품 우선형
  - 카드 그리드: grid-3
  - 섹션 레이블: label-number ("01 — Materials")
  - 버튼 형태: btn-pill
*/

:root {
  --primary: #A0C4D8;
  --primary-dark: #6F9CB8;
  --primary-soft: #EAF2F7;
  --text: #22282C;
  --text-muted: #667179;
  --border: #E4E8EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FA;
  --card-radius: 1.25rem;
  --btn-radius: 9999px;
  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo img { height: 40px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 1.75rem; }
.site-header nav a {
  font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--text);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--primary-dark); }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.88rem;
  padding: 0.6rem 1.1rem; border-radius: var(--btn-radius); text-decoration: none;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; padding: 1.5rem; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.9rem 0; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-nav .header-cta { margin-top: 1.25rem; display: flex; justify-content: center; }

@media (max-width: 900px) {
  .site-header nav.desktop-nav { display: none; }
  .header-cta.desktop-only { display: none; }
  .hamburger { display: block; }
}
@media (min-width: 901px) {
  .hamburger, .mobile-nav { display: none !important; }
}

body { padding-top: 68px; }

/* ===== Section label (label-number) ===== */
.section-label.number {
  display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.75rem;
  font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.section-label.number::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 0.5rem; }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.section-head .section-sub { color: var(--text-muted); font-weight: 400; font-size: 0.98rem; }

section { padding: 4.5rem 0; }
@media (max-width: 640px) { section { padding: 3rem 0; } }

/* ===== Buttons (btn-pill) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--btn-radius); padding: 0.85rem 1.9rem; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ===== Hero (hero-split) ===== */
.hero-split { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero-split .hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero-split .hero-label { color: var(--primary-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-split h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.3; margin-bottom: 1.1rem; }
.hero-split .hero-desc { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 1.5rem; max-width: 46ch; }
.hero-cat-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.hero-cat-chips span {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--btn-radius);
  padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.hero-slider { position: relative; aspect-ratio: 4/3; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 20px 50px rgba(20,30,40,0.16); }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-slider img.active { opacity: 1; }
.hero-slider .hero-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; z-index: 2; }
.hero-slider .hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.hero-slider .hero-dots span.active { background: #fff; }
.hero-slider.video-facade { aspect-ratio: 4/3; box-shadow: 0 20px 50px rgba(20,30,40,0.16); }
.hero-slider.video-facade .play-btn { width: 76px; height: 76px; }

@media (max-width: 900px) {
  .hero-split .hero-grid { grid-template-columns: 1fr; }
  .hero-slider { aspect-ratio: 16/10; }
  .hero-slider.video-facade { aspect-ratio: 16/10; }
}

/* ===== Materials grid (grid-3) ===== */
.materials-section { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .materials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .materials-grid { grid-template-columns: 1fr; } }

.material-card {
  border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden;
  transition: all 0.3s ease; cursor: pointer; text-decoration: none; display: block; background: #fff;
}
.material-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); border-color: var(--primary); }
.material-card .card-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.material-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.material-card:hover .card-thumb img { transform: scale(1.05); }
.material-card .card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  background: var(--primary); color: #fff; display: inline-block;
  padding: 0.2rem 0.6rem; border-radius: 0.25rem; align-self: flex-start; text-transform: uppercase;
}
.card-title { font-weight: 800; font-size: 1.05rem; line-height: 1.4; color: var(--text); }
.card-sub { font-weight: 300; font-size: 0.875rem; color: var(--text-muted); }
.card-link { font-weight: 700; font-size: 0.85rem; color: var(--primary-dark); margin-top: 0.25rem; }

/* ===== Product grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }
.product-card {
  border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff;
  text-decoration: none; color: inherit; display: block; transition: all 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.12); border-color: var(--primary); }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft); }
.product-card .thumb img { transition: transform 0.4s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-link-ext { font-size: 0.76rem; font-weight: 700; color: var(--primary-dark); margin-top: 0.3rem; display: inline-block; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .p-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.product-brand { font-size: 0.72rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.product-name { font-weight: 700; font-size: 0.92rem; line-height: 1.4; min-height: 2.6em; }
.product-spec { font-size: 0.8rem; color: var(--text-muted); }
.product-price { font-weight: 800; color: var(--primary-dark); font-size: 1rem; margin-top: 0.15rem; }

/* ===== Showroom video (Facade) ===== */
.video-grid { display: flex; flex-direction: column; gap: 1.5rem; max-width: 640px; margin: 0 auto; }
.video-facade { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--card-radius); cursor: pointer; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-facade iframe, .video-facade video { width: 100%; height: 100%; border: none; }
.video-facade .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.video-facade .video-title {
  position: absolute; left: 0.9rem; bottom: 0.9rem; color: #fff; font-weight: 700; font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.5rem 1rem; text-align: center; border: 1px solid var(--border); }
.stat-card .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ===== Reviews ===== */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; background: #fff; }
.review-stars { display: flex; gap: 2px; margin-bottom: 0.8rem; }
.review-text { font-size: 0.9rem; color: var(--text); margin-bottom: 1.2rem; line-height: 1.65; }
.review-person { display: flex; align-items: center; gap: 0.6rem; }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.review-name { font-size: 0.85rem; font-weight: 700; }

/* ===== Location ===== */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: none; }
.info-list { display: flex; flex-direction: column; gap: 1.1rem; }
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-row .info-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--primary-dark); margin-top: 2px; }
.info-row .info-label { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.info-row .info-value { font-weight: 600; font-size: 0.98rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: #fff; border: none; padding: 1.15rem 1.4rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.98rem;
  color: var(--text);
}
.faq-q .faq-arrow { transition: transform 0.25s; flex-shrink: 0; margin-left: 1rem; color: var(--primary-dark); }
.faq-item.open .faq-q .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-soft); }
.faq-a p { padding: 0 1.4rem 1.15rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* ===== CTA ===== */
.cta-section { background: var(--bg-soft); }
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; margin: 1.75rem 0 2.25rem; }
.cta-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.cta-badge svg { width: 18px; height: 18px; color: var(--primary-dark); }
.cta-inner .btn-row { justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: #1E2A33; color: #C7D0D6; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { text-decoration: none; color: #A9B4BB; font-size: 0.88rem; }
.footer-grid a:hover { color: #fff; }
.footer-desc { color: #9BA6AD; font-size: 0.85rem; line-height: 1.7; margin-top: 0.6rem; }
.footer-biz { border-top: 1px solid #33414B; padding-top: 1.75rem; font-size: 0.78rem; color: #7C878E; line-height: 1.9; }
.footer-biz strong { color: #A9B4BB; }

/* ===== Floating buttons ===== */
.floating-btns { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: 0.7rem; }
.floating-btn {
  display: flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #fff; text-decoration: none;
  padding: 0.75rem 1.1rem; border-radius: var(--btn-radius); font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(20,30,40,0.22);
}
.floating-btn.outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.floating-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Detail page ===== */
.detail-hero { position: relative; padding: 8rem 0 4rem; background-size: cover; background-position: center; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.detail-hero .wrap { position: relative; z-index: 1; color: #fff; }
.detail-hero .back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 600; margin-bottom: 1.25rem; opacity: 0.9; }
.detail-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-shadow: 0 2px 12px rgba(0,0,0,0.4); margin-bottom: 0.6rem; }
.detail-hero .hero-sub { font-size: 1rem; opacity: 0.92; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }

.spec-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin-top: -2.5rem; position: relative; z-index: 2; }
@media (max-width: 768px) { .spec-bar { grid-template-columns: repeat(2, 1fr); } }
.spec-item { background: #fff; padding: 1.25rem 1rem; text-align: center; }
.spec-item .spec-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.spec-item .spec-value { font-weight: 700; font-size: 0.95rem; }

.prose { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; color: var(--text); font-size: 1rem; line-height: 1.85; }
.prose p { color: #3B444B; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid .g-item { aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; }

.check-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem 2rem; max-width: 760px; margin: 0 auto; }
.check-box ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; color: var(--text); }

.quote-block { max-width: 700px; margin: 0 auto; border-left: 4px solid var(--primary); padding: 0.5rem 0 0.5rem 1.75rem; }
.quote-block p { font-size: 1.05rem; font-style: normal; line-height: 1.8; color: var(--text); margin-bottom: 1rem; }
.quote-block .quote-sign { font-size: 0.88rem; font-weight: 700; color: var(--text-muted); }

.related-links { display: flex; gap: 1rem; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.related-links a {
  flex: 1; min-width: 220px; border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem 1.3rem;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; justify-content: space-between;
}
.related-links a:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ===== Compare table (패턴 B) ===== */
.compare-table { max-width: 760px; margin: 0 auto; border-collapse: collapse; width: 100%; overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--border); }
.compare-table th, .compare-table td { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.compare-table th { background: var(--bg-soft); font-weight: 800; color: var(--text); }
.compare-table td { color: #3B444B; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 700; color: var(--text); white-space: nowrap; }

/* ===== Step flow (패턴 C) ===== */
.step-flow { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.step-flow .step-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-flow .step-num { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.step-flow .step-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--text); }
.step-flow .step-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
