/* 보성에이치테크 - 환기시스템 전문 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a6e;
  --primary-dark: #0f2447;
  --accent: #e8a020;
  --accent-hover: #c88010;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border: #dde1e9;
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Malgun Gothic', '맑은 고딕', '나눔고딕', 'NanumGothic', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--primary-dark);
  color: #cdd8f0;
  font-size: 12px;
  padding: 6px 0;
  text-align: right;
}
.top-bar .container { display: flex; justify-content: flex-end; gap: 20px; align-items: center; }
.top-bar a { color: #cdd8f0; }
.top-bar a:hover { color: #fff; }

/* ── HEADER ── */
header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; }
.logo-text h1,
.logo-text .logo-name { font-size: 20px; font-weight: 700; color: var(--primary); line-height: 1.2; margin: 0; }
.logo-text span { font-size: 11px; color: var(--text-light); }
.header-phone {
  text-align: right;
}
.header-phone .phone-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.header-phone .phone-label {
  font-size: 11px;
  color: var(--text-light);
}

/* ── NAV ── */
nav { background: var(--primary); }
.nav-inner { display: flex; }
.nav-inner > li { position: relative; }
.nav-inner > li > a {
  display: block;
  padding: 14px 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-inner > li > a:hover,
.nav-inner > li.active > a { background: var(--accent); color: #fff; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 160px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 200;
}
.nav-inner > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--bg-light); color: var(--primary); }

/* ── MOBILE NAV ── */
.nav-toggle { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── HERO SLIDER ── */
.hero { position: relative; overflow: hidden; background: #111; }
.slides { display: flex; transition: transform 0.6s ease; }
.slide {
  min-width: 100%;
  position: relative;
  height: 480px;
  overflow: hidden;
}
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.slide-caption h1,
.slide-caption h2 { font-size: 38px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.slide-caption p { font-size: 17px; margin-bottom: 22px; }
.btn-call {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-call:hover { background: var(--accent-hover); color: #fff; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.5); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dots span.active { background: var(--accent); }

/* ── SECTION COMMON ── */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p { color: var(--text-light); font-size: 15px; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
}
.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-light); }

/* ── BEFORE/AFTER ── */
.gallery-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.gallery-tab {
  padding: 9px 28px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  transition: all 0.2s;
}
.gallery-tab.active, .gallery-tab:hover {
  background: var(--primary);
  color: #fff;
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}
.photo-grid img:hover { opacity: 0.85; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── AREA LINKS ── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.area-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  transition: background 0.2s;
  display: block;
}
.area-card:hover { background: var(--accent); color: #fff; }
.area-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.area-card p { font-size: 12px; opacity: 0.85; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .q-icon { font-size: 18px; font-weight: 700; color: var(--accent); margin-right: 10px; }
.faq-toggle { font-size: 20px; color: var(--primary-dark); transition: transform 0.3s; }
.faq-answer {
  display: none;
  padding: 14px 20px 18px 50px;
  background: var(--bg-light);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ── CONTACT / INFO ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
  font-size: 14px;
}
.info-row .label {
  min-width: 90px;
  font-weight: 600;
  color: var(--primary);
}
.info-row .value { color: var(--text); }
.contact-map { background: var(--bg-light); border-radius: var(--radius); height: 280px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.map-placeholder { text-align: center; color: var(--text-light); }

.cta-box {
  background: var(--primary);
  color: #fff;
  padding: 28px 30px;
  border-radius: var(--radius);
  margin-top: 24px;
  text-align: center;
}
.cta-box .phone { font-size: 30px; font-weight: 700; color: var(--accent); display: block; margin: 8px 0; }
.cta-box p { font-size: 13px; opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--primary-dark);
  color: #aab8d0;
  font-size: 13px;
  padding: 36px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col p, .footer-col li { margin-bottom: 6px; line-height: 1.7; }
.footer-col a { color: #aab8d0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; font-size: 12px; color: #7a8daa; }
.biz-no { color: #aab8d0; margin-top: 4px; font-size: 12px; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-hero h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: 0.85; }
.breadcrumb { font-size: 13px; opacity: 0.7; margin-top: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }

/* ── SUB PAGE CONTENT ── */
.sub-content { padding: 50px 0; }
.sub-content h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.sub-content p { font-size: 14px; color: var(--text); line-height: 1.9; margin-bottom: 16px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.step-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.step-box::after {
  content: '>';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}
.step-box:last-child::after { display: none; }
.step-num { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.step-box h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.step-box p { font-size: 12px; color: var(--text-light); }

/* ── BEFORE / AFTER SPLIT ── */
.ba-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ba-col-label {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.before-label {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}
.after-label {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #198754;
}
.ba-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ba-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: opacity 0.2s, transform 0.2s;
}
.ba-photos img:hover { opacity: 0.88; transform: scale(1.02); }

@media (max-width: 600px) {
  .ba-split { grid-template-columns: 1fr; }
  .ba-photos img { height: 180px; }
}

/* ── FLOATING CALL BUTTON ── */
.float-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  background: #e8a020;
  color: #fff;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.float-call:hover { background: #c88010; color: #fff; transform: scale(1.05); }
.float-call .fc-icon { font-size: 20px; }

/* ── BLOG LAYOUT ── */
.blog-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* article */
.blog-article { min-width: 0; }

.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.blog-tag {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.blog-date { font-size: 12px; color: var(--text-light); }

.blog-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 13px;
}
.blog-author .av {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.blog-author .av-info strong { color: var(--primary); display: block; font-size: 13px; }
.blog-author .av-info span { color: var(--text-light); font-size: 12px; }

.blog-body { font-size: 14px; line-height: 1.95; color: #444; }
.blog-body p { margin-bottom: 16px; }

.blog-section { margin: 36px 0; }
.blog-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* before/after label */
.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.ba-label.before { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.ba-label.after { background: #d1e7dd; color: #0f5132; border: 1px solid #198754; }

/* blog photo grid */
.blog-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.blog-photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: opacity 0.2s, transform 0.2s;
}
.blog-photo-grid img:hover { opacity: 0.9; transform: scale(1.02); }
.photo-count { font-size: 12px; color: var(--text-light); text-align: right; margin-bottom: 20px; }

/* process timeline */
.blog-process { margin: 28px 0; }
.timeline {
  border-left: 3px solid var(--primary);
  padding-left: 24px;
  margin: 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-item p { font-size: 13px; color: var(--text-light); }

/* blog CTA box */
.blog-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 36px 0;
}
.blog-cta p { font-size: 14px; opacity: 0.85; margin-bottom: 10px; }
.blog-cta .cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 40px;
  margin: 10px 0;
  transition: background 0.2s;
}
.blog-cta .cta-phone:hover { background: var(--accent-hover); color: #fff; }
.blog-cta .cta-note { font-size: 12px; opacity: 0.7; margin-top: 8px; margin-bottom: 0; }

/* ── SIDEBAR ── */
.blog-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-phone {
  text-align: center;
}
.sidebar-phone a.sp-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
}
.sidebar-phone .sp-btn {
  display: block;
  background: var(--accent);
  color: #fff;
  padding: 10px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
  transition: background 0.2s;
}
.sidebar-phone .sp-btn:hover { background: var(--accent-hover); }
.sidebar-phone p { font-size: 11px; color: var(--text-light); margin-top: 6px; }

.sidebar-areas ul { list-style: none; }
.sidebar-areas li { border-bottom: 1px solid var(--border); }
.sidebar-areas li:last-child { border: none; }
.sidebar-areas a {
  display: block;
  padding: 9px 4px;
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s, padding 0.2s;
}
.sidebar-areas a:hover { color: var(--primary); padding-left: 8px; }
.sidebar-areas a.current { color: var(--accent); font-weight: 700; }

.sidebar-info dt { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.sidebar-info dd { font-size: 13px; color: var(--text); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .slide { height: 360px; }
  .slide-caption h2 { font-size: 26px; }
  .blog-wrap { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .logo-text h1 { font-size: 16px; }
  .header-phone .phone-num { font-size: 18px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .slide { height: 280px; }
  .slide-caption h2 { font-size: 20px; }
  .slide-caption p { font-size: 13px; }
  nav { display: none; }
  nav.open { display: block; }
  .nav-inner { flex-direction: column; }
  .nav-inner > li > a { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; }
  .dropdown { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.1); }
  .dropdown li a { color: #ddd; }
  .section-title h2 { font-size: 22px; }
}
