/* 그린파트너스 — 공통 스타일 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --green: #206b48;
  --green-dark: #17523a;
  --green-light: #5fbb7e;
  --mint: #eef6f1;
  --ink: #18211c;
  --gray: #55625a;
  --line: #dde6e0;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green); background: var(--white); }
.btn-outline:hover { background: var(--mint); }
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--mint); }
.btn-ghost-white { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

/* 상단 메뉴 */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header .logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--gray); }
.nav a:hover { color: var(--green); }
.nav .btn { height: 42px; padding: 0 20px; font-size: 15px; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }

/* 첫 화면 */
.hero {
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 44%, rgba(255,255,255,.8) 52%, rgba(255,255,255,.25) 62%, rgba(255,255,255,0) 70%),
    url("images/hero-bg.jpg") 0% 75% / 128% auto no-repeat;
  padding: 72px 0 80px;
}
.hero .container { display: grid; grid-template-columns: minmax(0, 640px); gap: 48px; align-items: center; min-height: 560px; }
.domain-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 600; color: var(--green);
}
.domain-chip img { width: 22px; height: 22px; }
.hero .eyebrow { margin-top: 22px; font-size: 16px; font-weight: 700; color: var(--green); }
.hero h1 { margin-top: 10px; font-size: 44px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--green); }
.big-tel { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; color: var(--green); letter-spacing: .01em; line-height: 1.2; }
.big-tel svg { width: 34px; height: 34px; }
.big-tel:hover { color: var(--green-dark); }
.hero .desc { margin-top: 18px; font-size: 18px; color: var(--gray); }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.badges { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600;
}
.badge svg { width: 16px; height: 16px; color: var(--green); }
.hero-card {
  background: var(--green); color: var(--white);
  border-radius: 22px; padding: 34px 30px;
  box-shadow: 0 20px 50px -20px rgba(32,107,72,.55);
}
.hero-card h2 { font-size: 20px; font-weight: 700; }
.hero-card ul { margin-top: 18px; display: grid; gap: 12px; }
.hero-card li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px;
  font-weight: 600;
}
.hero-card li .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--white); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.hero-card li .dot svg { width: 18px; height: 18px; }
.hero-card .tel { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; opacity: .9; }
.hero-card .tel a { display: block; margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: .01em; opacity: 1; }

/* 공통 섹션 */
.section { padding: 88px 0; }
.section.alt { background: var(--mint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .label { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.section-head h2 { margin-top: 8px; font-size: 32px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--gray); font-size: 17px; }

/* 주요 서비스 */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: var(--green-light); transform: translateY(-3px); }
.service .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.service .icon svg { width: 26px; height: 26px; }
.service h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.service p { margin-top: 8px; color: var(--gray); font-size: 15px; flex: 1; }
.service .more { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--green); }

/* 선택하는 이유 */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reason { background: var(--white); border-radius: var(--radius); padding: 30px 26px; }
.reason .num { font-size: 14px; font-weight: 800; color: var(--green-light); }
.reason h3 { margin-top: 8px; font-size: 20px; font-weight: 700; }
.reason p { margin-top: 8px; color: var(--gray); font-size: 15px; }

/* 진행 절차 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 800;
}
.step h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--gray); font-size: 15px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 28px 20px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--gray); }

/* 문의 배너 */
.cta { background: var(--green); color: var(--white); padding: 64px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; font-weight: 800; line-height: 1.4; }
.cta p { margin-top: 6px; opacity: .85; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 연락처 */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact-item .k { font-size: 14px; font-weight: 700; color: var(--green); }
.contact-item .v { margin-top: 6px; font-size: 18px; font-weight: 700; word-break: break-all; }
.contact-item .v a:hover { color: var(--green); }

/* 하단 회사정보 */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 48px 0; font-size: 14px; }
.footer .logo img { height: 34px; width: auto; }
.footer .info { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer .copy { margin-top: 18px; color: rgba(255,255,255,.45); font-size: 13px; }

/* 사진 자리 */
.photo-slot {
  position: relative; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #f4f8f5 0 12px, #eaf2ec 12px 24px);
  border: 2px dashed #a9c9b5; border-radius: 22px; color: var(--green);
}
.photo-slot figcaption { font-size: 15px; color: var(--gray); line-height: 1.5; }
.photo-slot figcaption strong { display: block; font-size: 18px; color: var(--green); margin-bottom: 4px; }
.hero-photo { aspect-ratio: 4 / 3; gap: 12px; align-content: center; }
.hero-photo .ph-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--white); display: grid; place-items: center; }
.hero-photo .ph-icon svg { width: 32px; height: 32px; }
.service { padding: 0; overflow: hidden; }
.svc-photo { aspect-ratio: 4 / 3; border-radius: 0; border-width: 0 0 2px; }
.svc-photo figcaption strong { font-size: 15px; }
.svc-photo figcaption { font-size: 13px; }
.svc-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

/* 담당자 카드 */
.hero-cta { margin-top: 28px; display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.quote-square {
  width: 152px; min-height: 152px; border-radius: 18px; background: var(--green); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 18px; font-weight: 800; line-height: 1.3; text-align: center;
  box-shadow: 0 18px 40px -20px rgba(32,107,72,.6); transition: background .2s, transform .2s;
}
.quote-square:hover { background: var(--green-dark); transform: translateY(-2px); }
.quote-square svg { width: 34px; height: 34px; }
.qs-badge { background: var(--white); color: var(--green); border-radius: 999px; padding: 3px 12px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.contact-card {
  width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 22px 16px 16px; box-shadow: 0 18px 40px -24px rgba(24,33,28,.4);
}
.contact-card img { width: 96px; height: 120px; object-fit: cover; object-position: center 20%; border-radius: 12px; flex-shrink: 0; }
.cc-role { font-size: 13px; font-weight: 700; color: var(--green); }
.cc-name { font-size: 20px; font-weight: 800; line-height: 1.3; }
.cc-tel { display: block; margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--green); }
.cc-mail { display: block; margin-top: 2px; font-size: 13px; color: var(--gray); }
.cc-tel:hover, .cc-mail:hover { text-decoration: underline; }

/* 서비스 지역 지도 */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area-text .label { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.area-text h2 { margin-top: 8px; font-size: 34px; font-weight: 800; line-height: 1.3; }
.area-text > p { margin-top: 14px; color: var(--gray); font-size: 17px; }
.legend { margin: 26px 0 28px; display: grid; gap: 10px; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 10px; }
.sw { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }
.sw-seoul { background: var(--green); }
.sw-gg { background: #cfe8d8; border: 1px solid #9fcbb0; }
.sw-pin { background: #e8590c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(232,89,12,.2); }
.map { background: var(--mint); border-radius: 22px; padding: 16px; }
.map svg { width: 100%; height: auto; display: block; overflow: hidden; }
.m-other { fill: #f3f5f4; stroke: #dfe5e1; stroke-width: 1; }
.m-gg { fill: #cfe8d8; stroke: #ffffff; stroke-width: 1; }
.m-seoul { fill: var(--green); stroke: #ffffff; stroke-width: 1.4; }
.m-gb { fill: var(--green-dark); }
.m-label { font-family: inherit; font-weight: 800; text-anchor: middle; }
.m-label-seoul { font-size: 26px; fill: var(--green-dark); paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.m-label-gg { font-size: 30px; fill: #3d7a58; }
.m-pin circle { fill: #e8590c; stroke: #fff; stroke-width: 2.5; }
.m-pin .m-pulse { fill: rgba(232,89,12,.25); stroke: none; }

/* 채팅 상담 카드 */
.chat-cards { display: grid; gap: 16px; }
.chat-card {
  display: flex; align-items: center; gap: 16px; height: 96px; padding: 0 28px;
  border-radius: 20px; font-size: 22px; font-weight: 800; transition: transform .2s;
}
.chat-card:hover { transform: translateY(-2px); }
.chat-card svg { width: 36px; height: 36px; flex-shrink: 0; }
.chat-card-kakao { background: #fee500; color: #191919; }
.chat-card-ct { background: var(--green); color: var(--white); }

/* 채팅 버튼 */
.chat-float { position: fixed; right: 20px; bottom: 84px; z-index: 55; display: grid; gap: 10px; }
.chat-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}
.chat-btn svg { width: 22px; height: 22px; }
.chat-kakao { background: #fee500; color: #191919; }
.chat-ct { background: var(--green); color: var(--white); }

/* 휴대폰 하단 고정 버튼 */
.mobile-bar { display: none; }

/* 견적·문의 페이지 */
.page-head { background: var(--mint); padding: 56px 0 40px; text-align: center; }
.page-head h1 { font-size: 34px; font-weight: 800; }
.page-head p { margin-top: 10px; color: var(--gray); }
.form-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field .legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field .req { color: #c0392b; margin-left: 2px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=date], .field textarea, .field select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid #c9d5cd; border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.field textarea { height: 150px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green-light); border-color: var(--green); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px; border: 1px solid #c9d5cd; border-radius: 10px;
  padding: 13px 14px; cursor: pointer; font-size: 15px; font-weight: 600;
}
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.agree { background: var(--mint); border-radius: 12px; padding: 18px; font-size: 14px; color: var(--gray); }
.agree .check { border: 0; padding: 10px 0 0; color: var(--ink); }
.form .btn { width: 100%; height: 56px; font-size: 17px; }
.hidden { display: none; }

/* 접수 완료 */
.done { text-align: center; padding: 100px 20px 120px; }
.done .ok { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.done .ok svg { width: 38px; height: 38px; }
.done h1 { margin-top: 24px; font-size: 30px; font-weight: 800; }
.done p { margin-top: 10px; color: var(--gray); }
.done .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 반응형 */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reasons, .contact, .area { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 14px; height: 50px; border-bottom: 0; }
  .header .logo img { height: 30px; }
  .hero { padding: 44px 0 56px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.88) 70%, #ffffff 100%),
      url("images/hero-bg.jpg") 62% center / cover no-repeat; }
  .hero .container { min-height: 0; }
  .hero h1 { font-size: 31px; }
  .big-tel { font-size: 30px; }
  .big-tel svg { width: 26px; height: 26px; }
  .hero .desc { font-size: 16px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .services, .steps { grid-template-columns: 1fr; }
  .cta h2 { font-size: 23px; }
  .cta .actions, .cta .actions .btn { width: 100%; }
  .form .row, .checks { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 27px; }
  .footer { padding-bottom: 110px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { height: 52px; padding: 0 10px; font-size: 15px; }
  .mobile-bar .call svg { width: 18px; height: 18px; }
  .chat-float { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-btn { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .chat-btn span { display: none; }
  .area-text h2 { font-size: 27px; }
  .area-text .btn { width: 100%; }
}

/* 준비 중 안내 */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 80;
  background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 12px;
  font-size: 15px; font-weight: 600; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* 간단 견적 양식 */
.opt { font-weight: 500; color: var(--gray); font-size: 14px; }
.hint { margin-top: 6px; font-size: 13px; color: var(--gray); }
.field input.file { width: 100%; padding: 12px; border: 1px dashed #a9c9b5; border-radius: 10px; background: var(--mint); font: inherit; font-size: 15px; }
.agree-line { border: 0; padding: 0; font-size: 14px; color: var(--gray); font-weight: 500; }
@media (max-width: 760px) {
  .quote-square { width: 100%; min-height: 64px; flex-direction: row; font-size: 17px; }
  .quote-square br { display: none; }
  .quote-square svg { width: 22px; height: 22px; }
  .contact-card { width: 100%; }
}
