/* ═══ 구조: Hero=hero-split / 배치=패턴1 / 그리드=grid-3 / 레이블=label-number / 버튼=btn-square ═══ */

:root {
  --primary: #1C4E6E;
  --text: #1f2933;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f5f7f9;
  --card-radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  color: var(--text);
  word-break: keep-all;
  background: #fff;
}
h1, h2, h3 { font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }

/* 섹션 레이블 (label-number) */
.section-label {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 0.5rem; }
.section-sub { color: var(--text-muted); font-weight: 300; margin-top: 0.5rem; }

/* 버튼 (btn-square) */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 6px; padding: 0.85rem 1.75rem; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-2px); }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); }
.btn-header-cta { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { font-weight: 800; font-size: 1.25rem; }
.nav-desktop { display: flex; gap: 1.75rem; font-weight: 600; font-size: 0.9rem; margin-left: auto; margin-right: 1.5rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 1.25rem 1rem; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 0.75rem 0; font-weight: 600; }
.nav-mobile.active { display: flex; }
@media (max-width: 768px) {
  .nav-desktop, .btn-header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* Hero split */
.hero-split { padding: 4rem 0; background: var(--bg-soft); }
.hero-split .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-left .eyebrow { color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.hero-left h1 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); line-height: 1.35; margin-bottom: 1.25rem; }
.hero-left .desc { color: var(--text-muted); font-weight: 300; line-height: 1.7; margin-bottom: 1.75rem; }
.hero-badges { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-badge { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; color: var(--text); }
.hero-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-right { position: relative; }
.hero-slider { border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero-slider img.active { opacity: 1; }
.hero-slider-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.45); color: #fff; padding: 1rem 1.25rem; font-size: 0.85rem; }
@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
}

/* Mid banner */
.mid-banner {
  background: var(--primary); color: #fff;
  padding: 3rem 0; text-align: center;
}
.mid-banner .container { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.mid-banner p { font-size: 1.15rem; font-weight: 700; }
.mid-banner .btn-primary { background: #fff; color: var(--primary); }

/* Portfolio grid (grid-3) */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden;
  transition: all 0.3s ease; display: block; background: #fff;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); border-color: var(--primary); }
.portfolio-card .card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover .card-thumb img { transform: scale(1.05); }
.portfolio-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;
}
.card-title { font-weight: 800; font-size: 1rem; line-height: 1.4; }
.card-sub { font-weight: 300; font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-more { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-top: 0.25rem; }
.portfolio-card:hover .card-more { color: var(--primary); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card { border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; transition: all 0.25s ease; }
.service-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.service-card .thumb { aspect-ratio: 3/4; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1rem; }
.service-card .label { font-size: 0.65rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.service-card h3 { font-size: 0.95rem; margin: 0.35rem 0; }
.service-card .desc { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; line-height: 1.5; }
.service-card .more { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; display: inline-block; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; }
.process-num { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 1rem; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-muted); font-weight: 300; line-height: 1.8; margin-bottom: 1rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.about-stat { text-align: center; background: #fff; border-radius: var(--card-radius); padding: 1.5rem 0.5rem; }
.about-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.about-stat .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* 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; }
.review-stars { color: var(--primary); margin-bottom: 0.75rem; display: flex; gap: 2px; }
.review-text { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin-bottom: 1.25rem; }
.review-person { display: flex; align-items: center; gap: 0.6rem; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.review-name { font-size: 0.85rem; font-weight: 700; }
.review-loc { font-size: 0.75rem; color: var(--text-muted); }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .area-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 2rem; text-align: center; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.area-card p { color: var(--text-muted); font-size: 0.85rem; font-weight: 300; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; }
.faq-q { width: 100%; background: #fff; border: none; text-align: left; padding: 1.1rem 1.25rem; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 1.25rem; color: var(--primary); transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.25rem; color: var(--text-muted); font-size: 0.9rem; font-weight: 300; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.25rem 1.1rem; }

/* CTA */
.cta-section { background: var(--bg-soft); text-align: center; }
#services, #about, #areas { background: var(--bg-soft); }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-badge { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.cta-btn-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #16232b; color: #cbd5e1; padding: 4rem 0 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: #94a3b8; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 0.75rem; font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { font-size: 0.85rem; color: #94a3b8; }
.site-footer a:hover { color: var(--primary); }
.footer-tel { font-weight: 700; color: #fff !important; font-size: 1rem; }
.footer-biz { max-width: 1200px; margin: 2.5rem auto 0; padding: 1.5rem 1.25rem 0; border-top: 1px solid #2a3a45; font-size: 0.75rem; color: #64748b; }

/* Floating buttons */
.floating-buttons { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; flex-direction: column; gap: 0.6rem; }
.floating-btn { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; border-radius: 6px; font-weight: 700; font-size: 0.85rem; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.floating-call { background: var(--primary); color: #fff; }
.floating-sms { background: #1f2933; color: #fff; }

/* Consultation / NSEO / detail shared blocks */
.page-hero { background: var(--bg-soft); padding: 3.5rem 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-weight: 300; font-size: 1.05rem; }
.page-hero .hero-btn-row { justify-content: center; margin-top: 1.75rem; }
.detail-hero { position: relative; aspect-ratio: 16/8; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.detail-hero-inner { position: relative; z-index: 1; color: #fff; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 2.5rem; width: 100%; }
.detail-hero-inner h1 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.detail-hero-inner .section-label { color: #fff; }
.detail-back { display: inline-block; margin-bottom: 1rem; font-size: 0.85rem; opacity: 0.9; }
.info-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.5rem; margin: -3rem auto 3rem; max-width: 1200px; position: relative; z-index: 2; }
@media (max-width: 768px) { .info-bar { grid-template-columns: 1fr; } }
.info-bar div { text-align: center; }
.info-bar .k { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.info-bar .v { display: block; font-weight: 700; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col img { border-radius: var(--card-radius); aspect-ratio: 3/4; object-fit: cover; }
.ba-label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 0.75rem; background: var(--bg-soft); color: var(--text-muted); }
.ba-label.after { background: var(--primary); color: #fff; }
.ba-col h2 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.ba-col p { color: var(--text-muted); font-weight: 300; line-height: 1.7; font-size: 0.92rem; }
.summary-box { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.5rem 2rem; }
.summary-box ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); line-height: 1.9; }
.quote-block { border-left: 3px solid var(--primary); padding: 0.5rem 0 0.5rem 1.5rem; font-style: normal; color: var(--text); line-height: 1.8; }
.quote-block .sig { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

.mid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.mid-gallery img { border-radius: 0.75rem; aspect-ratio: 3/4; object-fit: cover; }

.compare-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
.compare-table th { background: var(--bg-soft); font-weight: 700; color: var(--text); }
.compare-table td { color: var(--text-muted); font-weight: 300; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.hl, .compare-table th.hl { color: var(--primary); font-weight: 700; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li { padding-left: 1.75rem; position: relative; color: var(--text); line-height: 1.6; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
