/* ===== 우수관시공 공통 스타일 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1e88e5;
  --accent: #0097a7;
  --bg: #f0f6ff;
  --text: #1a2a3a;
  --text-light: #4a6080;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(21,101,192,0.13);
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(21,101,192,0.10);
  height: 64px; display: flex; align-items: center;
}
.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.logo-text span { color: var(--accent); }

.btn-header {
  background: var(--primary); color: #fff !important; padding: 9px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: background 0.2s; white-space: nowrap;
}
.btn-header:hover { background: var(--primary-dark); }


/* ===== PAGE HERO (서브페이지 상단 배너) ===== */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  padding: 60px 24px; text-align: center; color: #fff;
}
.page-hero .hero-tag {
  display: inline-block; background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 18px; border-radius: 30px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px; backdrop-filter: blur(4px);
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px); font-weight: 900; margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.page-hero p { font-size: 16px; opacity: 0.88; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #fff; border-bottom: 1px solid #e4eeff;
  padding: 14px 24px;
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light); flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ===== SECTION COMMON ===== */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: #e3f0ff; color: var(--primary);
  padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; color: var(--text);
  line-height: 1.35; margin-bottom: 12px;
}
.section-title p { color: var(--text-light); font-size: 15px; }

/* ===== FOOTER ===== */
footer {
  background: #0d1f33; color: rgba(255,255,255,0.75);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { color: #fff; font-size: 18px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.footer-tel { color: #7ec8ff; font-size: 20px; font-weight: 700; }
.footer-hours { font-size: 12px; opacity: 0.6; margin-top: 4px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: #7ec8ff; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 12px; opacity: 0.5; }
.biz-info { font-size: 12px; opacity: 0.5; line-height: 1.8; }

/* ===== FLOATING ===== */
.floating-wrap {
  position: fixed; right: 20px; bottom: 28px; z-index: 998;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.floating-btn {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff; padding: 13px 20px;
  border-radius: 50px; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(21,101,192,0.4);
  transition: transform 0.2s; white-space: nowrap;
}
.floating-btn:hover { transform: scale(1.04); }
.floating-btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50px;
  border: 2px solid var(--primary); opacity: 0.6;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.scroll-top {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  color: var(--primary); font-size: 18px; border: 2px solid var(--primary);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: background 0.2s;
}
.scroll-top:hover { background: var(--primary); color: #fff; }
.scroll-top.show { display: flex; }

/* ===== ANIMATION ===== */
.fade-up {
  opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== CARD / BUTTON 공통 ===== */
.btn-primary {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 13px 32px; border-radius: 10px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(21,101,192,0.25); transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 52px 16px; }
}

/* ===== TEL MASK (SEO: 검색엔진 인덱싱 차단) ===== */
.tel::before { content: attr(data-tel); }

/* ===== DETAIL HERO (시공사례 상세) ===== */
.detail-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  padding: 60px 24px; color: #fff; text-align: center; margin-top: 64px;
}
.detail-hero .hero-tag {
  display: inline-block; background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.detail-hero h1 { font-size: clamp(22px, 4vw, 36px); font-weight: 900; margin-bottom: 10px; }
.detail-hero p { font-size: 16px; opacity: 0.88; }
.detail-meta { display: flex; gap: 24px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.meta-item { text-align: center; }
.meta-label { font-size: 11px; opacity: 0.65; margin-bottom: 4px; }
.meta-value { font-size: 15px; font-weight: 700; }

/* ===== DETAIL BODY (시공사례 상세 공통) ===== */
.detail-body { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.ba-section { margin-bottom: 48px; }
.ba-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--text); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-label { background: var(--primary); color: #fff; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; }
.ba-label.after { background: var(--accent); }
.ba-img { height: 280px; background-size: cover; background-position: center; background-color: #dde8f5; }
.desc-section { margin-bottom: 40px; }
.desc-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.desc-section p { font-size: 15px; line-height: 1.95; color: var(--text-light); margin-bottom: 16px; }
.point-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.point-list li { display: flex; align-items: flex-start; gap: 10px; background: #fff; padding: 14px 16px; border-radius: 10px; box-shadow: 0 2px 8px rgba(21,101,192,0.07); font-size: 14px; line-height: 1.6; }
.point-list li::before { content: "✓"; color: var(--primary); font-weight: 900; flex-shrink: 0; margin-top: 2px; }
.cta-box { background: linear-gradient(135deg, var(--primary-dark), var(--accent)); border-radius: var(--radius); padding: 36px; text-align: center; color: #fff; margin-top: 48px; }
.cta-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cta-box p { font-size: 14px; opacity: 0.88; margin-bottom: 24px; }
.cta-box-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta { background: #fff; color: var(--primary-dark); padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; display: inline-block; }
.btn-cta-sub { background: rgba(255,255,255,0.2); color: #fff; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; border: 2px solid rgba(255,255,255,0.5); display: inline-block; }
.case-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid #dde8f5; gap: 12px; flex-wrap: wrap; }
.case-nav a { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.list-btn { background: var(--primary) !important; color: #fff !important; }
@media (max-width: 640px) { .ba-grid { grid-template-columns: 1fr; } .ba-img { height: 200px; } .detail-meta { gap: 16px; } }
