/* ============================================
   MERBA 공통 푸터 팝업 스타일
   회사소개 · 서비스안내 · 시공사례 · 요금안내 · 카카오 · 당근 · 개인정보 · 이용약관 · FAQ
   index.html / cases.html 양쪽에서 공유
   ※ 내용/디자인 수정은 이 파일 + merba-footer-popups.js 에서만
   ============================================ */

/* 팝업이 사용하는 색 변수 보강 (페이지에 없을 경우 대비) */
:root{
  --bg3:#e8e8ed;
  --gray2:#a1a1a6;
  --gray3:#d2d2d7;
  --accent-light:rgba(29,81,59,0.08);
}

/* 오버레이 기본 (cases.html에는 없으므로 공유) */
.overlay{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.overlay.open{pointer-events:all}
.overlay-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0);transition:background .4s}
.overlay.open .overlay-backdrop{background:rgba(0,0,0,.5)}

/* PRICING */
.pricing-sheet{position:absolute;inset:0;background:var(--bg);transform:translateY(100%);transition:transform .45s cubic-bezier(.32,0,.15,1);overflow-y:auto;display:flex;flex-direction:column}
.overlay.open .pricing-sheet{transform:translateY(0)}
.pricing-nav{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;border-bottom:.5px solid var(--border);background:rgba(255,255,255,.9);backdrop-filter:blur(20px);position:sticky;top:0;z-index:10;flex-shrink:0}
.pricing-back{background:none;border:none;font-size:.9rem;color:var(--accent);cursor:pointer;font-family:inherit;font-weight:500;padding:.3rem 0}
.pricing-back:hover{opacity:.7}
.pricing-nav-title{font-size:.85rem;font-weight:600;color:var(--black)}
.pricing-body{max-width:900px;margin:0 auto;padding:0 2rem 6rem;width:100%}
.pr-hero{text-align:center;padding:5rem 2rem 4rem;border-bottom:.5px solid var(--border);margin-bottom:3rem}
.pr-eyebrow{font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:1rem}
.pr-h1{font-size:clamp(2.5rem,6vw,4.5rem);font-weight:800;letter-spacing:-.05em;line-height:1.05;margin-bottom:1rem;color:var(--black)}
.pr-sub{font-size:1rem;color:var(--gray);line-height:1.7;margin-bottom:2rem}
.pr-cta-btn{background:var(--accent);color:#fff;padding:.85rem 2.2rem;border-radius:980px;font-size:.95rem;font-weight:500;border:none;cursor:pointer;font-family:inherit;transition:opacity .2s,transform .15s}
.pr-cta-btn:hover{opacity:.85;transform:scale(1.02)}
.pr-notice{display:flex;align-items:flex-start;gap:1rem;background:var(--bg2);border-radius:14px;padding:1.2rem 1.5rem;margin-bottom:3rem;border:.5px solid var(--border)}
.pr-notice-ico{font-size:1.2rem;flex-shrink:0;margin-top:.1rem}
.pr-notice p{font-size:.85rem;color:var(--gray);line-height:1.7}
.pr-notice strong{color:var(--black);font-weight:600}
.pr-section-title{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:1.5rem}
.pr-cards{display:flex;flex-direction:column;gap:2px;background:var(--bg3);border-radius:20px;overflow:hidden}
.pr-card{background:var(--bg);padding:2rem}
.pr-card-top{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}
.pr-card-ico{font-size:1.8rem;flex-shrink:0}
.pr-card-name{font-size:1.05rem;font-weight:700;letter-spacing:-.02em;margin-bottom:.2rem}
.pr-card-sub{font-size:.78rem;color:var(--gray2)}
.pr-divider{height:.5px;background:var(--border);margin-bottom:1.2rem}
.pr-rows{display:flex;flex-direction:column;gap:0}
.pr-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;border-bottom:.5px solid var(--bg2);font-size:.88rem;color:var(--black)}
.pr-row:last-child{border-bottom:none}
.pr-price{font-weight:700;color:var(--accent);font-size:.9rem;white-space:nowrap;margin-left:1rem}
.pr-include{margin-top:1.2rem;font-size:.75rem;color:var(--gray2);display:flex;align-items:center;gap:.5rem}
.pr-include-label{background:var(--accent-light);color:var(--accent);font-size:.68rem;font-weight:600;padding:.2rem .6rem;border-radius:980px;flex-shrink:0}
.pr-faqs{display:flex;flex-direction:column;border:.5px solid var(--border);border-radius:16px;overflow:hidden}
.pr-faq{padding:1.5rem 1.8rem;border-bottom:.5px solid var(--border);transition:background .2s;cursor:default}
.pr-faq:last-child{border-bottom:none}
.pr-faq:hover{background:var(--bg2)}
.pr-faq-q{font-size:.92rem;font-weight:600;letter-spacing:-.015em;color:var(--black);margin-bottom:.5rem}
.pr-faq-a{font-size:.83rem;color:var(--gray);line-height:1.7}
.pr-bottom-cta{text-align:center;padding:5rem 2rem;border-top:.5px solid var(--border);margin-top:3rem}
.pr-bottom-title{font-size:clamp(1.6rem,4vw,2.5rem);font-weight:800;letter-spacing:-.04em;margin-bottom:.8rem}
.pr-bottom-sub{font-size:.95rem;color:var(--gray);margin-bottom:2rem;line-height:1.6}
.pr-bottom-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* FOOTER PAGES */
.fp-overlay{z-index:491}
.fp-section{margin-bottom:2.5rem}
.fp-sec-title{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:1.2rem}
.fp-cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--bg3);border-radius:16px;overflow:hidden}
.fp-cert{background:var(--bg);padding:1.4rem 1rem;text-align:center}
.fp-cert-ico{font-size:1.6rem;display:block;margin-bottom:.6rem}
.fp-cert-name{font-size:.82rem;font-weight:600;color:var(--black);margin-bottom:.2rem}
.fp-cert-sub{font-size:.72rem;color:var(--gray2)}
.fp-timeline{display:flex;flex-direction:column;gap:0;border:.5px solid var(--border);border-radius:16px;overflow:hidden}
.fp-tl-item{display:flex;align-items:center;gap:1.5rem;padding:1.1rem 1.5rem;border-bottom:.5px solid var(--border);background:var(--bg);transition:background .2s}
.fp-tl-item:last-child{border-bottom:none}.fp-tl-item:hover{background:var(--bg2)}
.fp-tl-year{font-size:.85rem;font-weight:700;color:var(--accent);min-width:36px;flex-shrink:0}
.fp-tl-desc{font-size:.85rem;color:var(--black)}
.fp-svc-list{display:flex;flex-direction:column;border:.5px solid var(--border);border-radius:16px;overflow:hidden;margin-bottom:2rem}
.fp-svc-item{display:flex;align-items:center;justify-content:space-between;padding:1.3rem 1.5rem;border-bottom:.5px solid var(--border);background:var(--bg);cursor:pointer;transition:background .2s}
.fp-svc-item:last-child{border-bottom:none}.fp-svc-item:hover{background:var(--bg2)}
.fp-svc-left{display:flex;align-items:center;gap:1rem}
.fp-svc-ico{font-size:1.6rem;flex-shrink:0}
.fp-svc-name{font-size:.92rem;font-weight:600;color:var(--black);margin-bottom:.2rem}
.fp-svc-desc{font-size:.78rem;color:var(--gray2)}
.fp-arrow{font-size:1.2rem;color:var(--gray3);font-weight:300}
.faq-list{max-width:720px;margin:0 auto}
.faq-item{border-bottom:.5px solid var(--border)}
.faq-q{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.4rem .25rem;cursor:pointer;font-size:1rem;font-weight:500;color:var(--black);list-style:none}
.faq-q::-webkit-details-marker{display:none}
.faq-ico{flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;color:var(--gray2);transition:transform .25s ease}
.faq-item[open] .faq-ico{transform:rotate(45deg)}
.faq-a{padding:0 .25rem 1.4rem;font-size:.92rem;line-height:1.75;color:var(--gray);max-width:640px}
.faq-item[open] .faq-q{color:var(--accent)}
.fp-case-list{display:flex;flex-direction:column;gap:2px;background:var(--bg3);border-radius:16px;overflow:hidden;margin-bottom:2rem}
.fp-case-item{display:flex;align-items:center;gap:1rem;padding:1.2rem 1.5rem;background:var(--bg);cursor:pointer;transition:background .2s;border-bottom:.5px solid var(--bg3)}
.fp-case-item:last-child{border-bottom:none}.fp-case-item:hover{background:var(--bg2)}
.fp-case-thumb{width:52px;height:52px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex-shrink:0}
.fp-case-info{flex:1;min-width:0}
.fp-case-name{font-size:.88rem;font-weight:600;color:var(--black);margin-bottom:.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fp-case-meta{font-size:.75rem;color:var(--gray2)}
.fp-legal{display:flex;flex-direction:column;gap:0;border:.5px solid var(--border);border-radius:16px;overflow:hidden;margin-bottom:3rem}
.fp-legal-item{padding:1.5rem 1.8rem;border-bottom:.5px solid var(--border);background:var(--bg)}
.fp-legal-item:last-child{border-bottom:none}
.fp-legal-title{font-size:.88rem;font-weight:700;color:var(--black);margin-bottom:.7rem}
.fp-legal-body{font-size:.82rem;color:var(--gray);line-height:1.8}
@media(max-width:600px){.fp-cert-grid{grid-template-columns:1fr 1fr}}
/* MISSION (Apple-style) */
.fp-mission{margin-top:.5rem}
.fp-mission-stage{
  position:relative;
  background:linear-gradient(180deg,#fbfbfd 0%,#f5f5f7 100%);
  border-radius:24px;
  padding:6rem 2.5rem 5rem;
  text-align:center;
  border:.5px solid var(--border);
  overflow:hidden;
}
.fp-mission-stage::before{
  content:"";
  position:absolute;
  top:-40%;left:50%;transform:translateX(-50%);
  width:120%;height:80%;
  background:radial-gradient(ellipse at center,rgba(29,81,59,.06) 0%,transparent 60%);
  pointer-events:none;
}
.fp-mission-stage > *{position:relative;z-index:1}
.fp-mission-eyebrow{
  display:inline-block;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:2.4rem;
}
.fp-mission-title{
  font-size:clamp(2.4rem,6vw,4.2rem);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.08;
  color:var(--black);
  margin:0 0 2.2rem;
}
.fp-mission-line{display:block}
.fp-mission-accent{
  background:linear-gradient(135deg,var(--accent) 0%,#2d6b50 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.fp-mission-divider{
  width:32px;
  height:1px;
  background:var(--accent);
  margin:0 auto 2rem;
  opacity:.5;
}
.fp-mission-lead{
  font-size:clamp(1.1rem,1.8vw,1.4rem);
  font-weight:500;
  color:var(--black);
  line-height:1.7;
  letter-spacing:-.02em;
  margin-bottom:1.8rem;
}
.fp-mission-body{
  font-size:.95rem;
  color:var(--gray);
  line-height:1.85;
  letter-spacing:-.01em;
  margin-bottom:2.8rem;
}
.fp-mission-sign{
  display:inline-block;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.18em;
  color:var(--gray2);
  padding-top:1.4rem;
  border-top:.5px solid var(--border);
  min-width:140px;
}
@media(max-width:640px){
  .fp-mission-stage{padding:4rem 1.5rem 3.5rem;border-radius:20px}
  .fp-mission-eyebrow{margin-bottom:1.8rem}
  .fp-mission-title{margin-bottom:1.8rem}
  .fp-mission-lead{margin-bottom:1.4rem}
  .fp-mission-body{margin-bottom:2rem}
}

/* 회사소개 모달 하단 CTA - 애플 스타일 */
.pr-bottom-apple{padding:6rem 2rem 4rem;text-align:center;border-top:.5px solid var(--border);margin-top:3rem}
.pr-bottom-apple .pr-bottom-title{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700;letter-spacing:-.04em;margin-bottom:.8rem;color:var(--black)}
.pr-bottom-apple .pr-bottom-sub{font-size:1rem;color:var(--gray);margin-bottom:2.4rem;line-height:1.6;letter-spacing:-.01em}
.pr-tel-btn{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  background:#fff;
  color:var(--accent);
  text-decoration:none;
  padding:1rem 2.4rem;
  border-radius:980px;
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:-.02em;
  transition:box-shadow .2s,transform .15s;
  box-shadow:0 4px 16px rgba(29,81,59,.18);
}
.pr-tel-btn:hover{box-shadow:0 8px 24px rgba(29,81,59,.26);transform:translateY(-2px)}
.pr-tel-ico{display:inline-flex;align-items:center}
.pr-tel-num{font-feature-settings:"tnum"}
.pr-tel-hint{font-size:.78rem;color:var(--gray2);margin-top:1.4rem;letter-spacing:.01em}
@media(max-width:640px){
  .pr-bottom-apple{padding:4rem 1.5rem 3rem}
  .pr-tel-btn{padding:1rem 2rem;font-size:1.05rem}

