/* ==== 변수: GREEN + WATER + TECHNOLOGY + PREMIUM ==== */
:root {
  --forest: #1F4935;
  --deep: #12372A;
  --sage: #A8BFA3;
  --lime: #B8D86A;
  --ivory: #F7F6F0;
  --charcoal: #202622;
  --aqua: #CFE8E6;
  --bg: var(--ivory);
  --bg-alt: #ECEFE6;
  --radius: 14px;
  --side-pad: 22px;
  --section-gap: 64px;
}

/* ==== 리셋 ==== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.32; letter-spacing: -.01em; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { font-size: 16px; }

.container { max-width: 1180px; margin: 0 auto; padding-inline: var(--side-pad); }
.section { padding-block: var(--section-gap); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--deep); color: var(--ivory); }
.section-sub { color: #555049; font-weight: 400; margin-top: 10px; }
.section-dark .section-sub { color: var(--sage); }

/* ==== 버튼 ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease;
}
.btn-primary { background: var(--lime); color: var(--deep); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==== 헤더 ==== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: transparent; color: var(--ivory);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header.scrolled { background: var(--deep); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: var(--side-pad); }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-text { font-weight: 700; font-size: 18px; }
.nav-desktop { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.nav-desktop .btn-primary { color: var(--deep); }

/* ==== 히어로 ==== */
.hero {
  position: relative;
  background-image: linear-gradient(100deg, rgba(9,26,19,.62) 0%, rgba(9,26,19,.28) 38%, rgba(9,26,19,0) 68%), linear-gradient(to top, rgba(9,26,19,.5) 0%, rgba(9,26,19,0) 30%), url('/images/hero-bg.webp');
  background-size: cover, cover, cover;
  background-position: center, center, 50% 65%;
  min-height: 100vh;
  display: flex; align-items: center;
  color: var(--ivory);
}
.hero-inner { max-width: 680px; padding-inline: var(--side-pad); padding-top: 64px; }
.hero-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-lead { font-size: 24px; font-weight: 700; color: var(--ivory); margin-bottom: 14px; max-width: 30em; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero-sub { font-size: 17px; color: var(--ivory); opacity: .92; margin-bottom: 36px; max-width: 30em; text-shadow: 0 1px 16px rgba(0,0,0,.4); }

/* ==== 섹션 제목 공통 ==== */
.section-head { margin-bottom: 36px; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin-bottom: 10px; }
.section-dark .eyebrow { color: var(--lime); }
.eyebrow-sm { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); margin-bottom: 6px; }

/* ==== 인트로: 이미지-텍스트 교차 ==== */
.split-row { display: flex; flex-direction: column; gap: 24px; margin-block: 32px; }
.split-row .split-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.split-row .split-photo::before { content: ''; display: block; padding-top: 100%; }
.split-row .split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-row .split-text h3 { margin-bottom: 12px; }
.split-row .split-text p { color: #4a4a42; margin-bottom: 12px; }
.split-row.reverse { flex-direction: column; }

/* ==== 스크롤 확대 사진(PC 전용) ==== */
.desktop-only-photo { display: none; }
.reveal-photo { position: relative; height: 200vh; background: var(--deep); }
.reveal-photo-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--deep);
}
.reveal-photo-frame {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 0px; transform: scale(1);
  will-change: transform, border-radius;
}
.reveal-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal-photo-caption {
  position: absolute; z-index: 1; left: 48px; bottom: 48px; margin: 0;
  color: var(--ivory); max-width: 20em;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

/* ==== 카드 그리드 공통 (서비스/사례) ==== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.img-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; display: block; box-shadow: 0 2px 18px rgba(18,55,42,.08); }
.img-card .img-wrap { position: relative; overflow: hidden; background: var(--sage); }
.img-card .img-wrap::before { content: ''; display: block; padding-top: 75%; }
.img-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.img-card:hover .img-wrap img { transform: scale(1.06); }
.img-card .body { padding: 18px; }
.img-card .body h3 { margin-bottom: 6px; }
.img-card .body p { font-size: 15px; color: #55564f; }
.img-card .tag { position: absolute; left: 12px; top: 12px; background: var(--lime); color: var(--deep); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2; }

/* ==== 시스템 비교 표 ==== */
.compare-table-wrap { overflow-x: auto; margin-block: 28px; border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--bg-alt); font-size: 14px; }
.compare-table th { background: var(--forest); color: var(--ivory); font-weight: 700; }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 700; color: var(--forest); }

/* ==== 설치공간 그리드 ==== */
.space-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-block: 28px; }
.space-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(18,55,42,.07); }
.space-card .img-wrap { position: relative; }
.space-card .img-wrap::before { content: ''; display: block; padding-top: 100%; }
.space-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.space-card .body { padding: 14px; }
.space-card h3 { font-size: 15px; margin-bottom: 4px; }
.space-card p { font-size: 13px; color: #55564f; }

/* ==== 제품/설비: 다크 스탯 카드 ==== */
.tech-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-block: 28px; }
.tech-card { background: #fff; border: 1px solid var(--bg-alt); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 12px rgba(18,55,42,.06); }
.tech-card .tech-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); margin-bottom: 10px; }
.tech-card h3 { color: var(--charcoal); margin-bottom: 8px; margin-top: 0; }
.tech-card p { font-size: 14px; color: #55564f; }

/* ==== 구축사례 ==== */
.cases-grid { grid-template-columns: 1fr; }
.case-region { font-size: 13px; color: var(--forest); font-weight: 700; }

/* ==== 프로세스 스텝 ==== */
.step-list { counter-reset: step; margin-block: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-list li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 20px 22px 20px 64px; position: relative; font-size: 14px; color: #55564f; box-shadow: 0 2px 12px rgba(18,55,42,.06); }
.step-list li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--ivory);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.step-list strong { display: block; color: var(--charcoal); font-size: 16px; margin-bottom: 4px; }

/* ==== 네트워크 카드 ==== */
.network-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-block: 28px; }
.network-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px; }
.network-card h3 { color: var(--ivory); font-size: 16px; margin-bottom: 6px; }
.network-card p { font-size: 14px; color: var(--sage); margin-bottom: 12px; }
.network-card a { font-size: 13px; font-weight: 700; color: var(--lime); }

/* ==== 지역 서비스 ==== */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px; }
.area-list li { background: #fff; border: 1px solid var(--bg-alt); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--forest); }

/* ==== 전문 정보 콘텐츠 ==== */
.content-block { font-size: 16px; }
.content-block p { margin-bottom: 16px; color: #3c3c36; }
.content-block h2 { margin-top: 44px; margin-bottom: 16px; }
.content-block h3 { margin-top: 26px; margin-bottom: 10px; color: var(--forest); }
.content-block ul.plain-list { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.content-block ul.plain-list li { margin-bottom: 6px; color: #3c3c36; }
.cost-table-wrap { overflow-x: auto; margin-block: 20px; }
.cost-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cost-table th, .cost-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bg-alt); font-size: 14px; }
.cost-table th { background: var(--bg-alt); font-weight: 700; color: var(--forest); }

/* ==== FAQ ==== */
.faq-item { border-bottom: 1px solid var(--bg-alt); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 20px 0; text-align: left; font-weight: 700; font-size: 16px; }
.faq-q h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0; color: inherit; }
.faq-q img { width: 20px; height: 20px; transition: transform .25s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q img { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { padding-bottom: 20px; color: #55564f; font-size: 15px; }

/* ==== 상담 CTA / 푸터 ==== */
.consult-cta { background: var(--forest); color: var(--ivory); text-align: center; }
.consult-cta .section-sub { color: var(--sage); }
.consult-cta-inner .cta-group { margin-top: 22px; justify-content: center; }
.consult-cta .btn-outline { color: var(--ivory); }

.site-footer { background: var(--deep); color: var(--sage); padding-block: 44px 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-info { display: flex; gap: 10px; align-items: flex-start; }
.footer-info p { font-size: 14px; color: var(--sage); line-height: 1.75; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-height: 44px; color: var(--ivory); }
.footer-nav img { filter: invert(1) brightness(1.6); }
.footer-sites { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-sites-label { font-size: 13px; color: rgba(255,255,255,.5); margin: 0 0 10px; }
.footer-sites ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.footer-sites a { font-size: 13px; color: var(--sage); text-decoration: underline; }
.footer-copy { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ==== 스크롤 시 fade-in ==== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==== 상담 페이지 공통 ==== */
.page-hero { padding-top: 100px; padding-bottom: 24px; }
.info-card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-block: 20px; }
.info-card { display: block; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 12px rgba(18,55,42,.06); }
.info-card img { width: 24px; height: 24px; margin-bottom: 10px; }
.info-card h3 { margin-bottom: 8px; }
.info-card p { font-size: 15px; color: #55564f; }

/* ==== 데스크톱 ==== */
@media (min-width: 768px) {
  :root { --side-pad: 40px; --section-gap: 108px; }
  .br-mobile { display: none; }
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 20px; }
  .hero {
    min-height: 88vh;
    justify-content: center;
    background-image: radial-gradient(ellipse 70% 60% at center, rgba(9,26,19,.6) 0%, rgba(9,26,19,.32) 45%, rgba(9,26,19,0) 78%), linear-gradient(to top, rgba(9,26,19,.45) 0%, rgba(9,26,19,0) 30%), url('/images/hero-bg.webp');
  }
  .hero h1 { font-size: 64px; }
  .hero-inner { padding-bottom: 88px; max-width: 760px; text-align: center; margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero .cta-group { justify-content: center; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .space-grid { grid-template-columns: repeat(4, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { flex-direction: row; flex-wrap: wrap; }
  .step-list li { flex: 1 1 30%; }
  .split-row { flex-direction: row; align-items: center; gap: 56px; }
  .split-row.reverse { flex-direction: row-reverse; }
  .split-row .split-photo, .split-row .split-text { flex: 1; }
  .info-card-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-only-photo { display: none; }
  .desktop-only-photo { display: block; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 40px; }
  .section-head h2 { line-height: 1.4; }
}
