/* ===========================================================
   타일들뜸보수 (모노하우스) — style.css
   font_id=2(토프티케이조합) / hero_id=2(스플릿패널) / header_variant=0
   section_variant=4(info-topcard) / list_variant=1(editorial-card)
   =========================================================== */

:root{
  --ink:#000000;
  --desc:#4B5563;
  --accent:#634536;
  --accent-soft:#F1E9E4;
  --accent-text:#FFFFFF;
  --bar-chrome:#ECEEF1;
  --border:#E5E7EB;
  --font-title:"Noto Serif KR", serif;
  --font-body:"Pretendard Variable", Pretendard, -apple-system, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:#fff;
  letter-spacing:-0.02em;
  word-break:keep-all;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
h1,h2,h3,.hero-title,.section-title{ font-family:var(--font-title); font-weight:600; margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }
ul{ margin:0; padding:0; list-style:none; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 26px; border-radius:6px; font-weight:600; font-size:15px;
  font-family:var(--font-body); border:1px solid transparent; cursor:pointer;
  transition:background .2s,color .2s,box-shadow .2s;
}
.btn-primary{ background:var(--accent); color:var(--accent-text); }
.btn-primary:hover{ box-shadow:0 4px 14px rgba(0,0,0,.18); }
.btn-outline-footer{ background:transparent; color:var(--ink); border:1px solid #C9C9C9; padding:10px 18px; font-size:14px; }

/* ---------- header (B-22 top transparent -> scrolled bar-chrome) ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:transparent; transition:background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  background:var(--bar-chrome);
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 16px rgba(0,0,0,.06);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.logo{ display:flex; align-items:center; gap:8px; }
.logo-icon{ width:32px; height:32px; flex-shrink:0; color:var(--accent); display:block; overflow:hidden; }
.logo-icon svg{ display:block; width:100%; height:100%; max-width:32px; max-height:32px; }
.logo-text{ display:flex; flex-direction:column; line-height:1.15; }
.logo-brand{ font-family:var(--font-title); font-size:.95rem; font-weight:700; color:var(--ink); }
.logo-keyword{ font-size:.7rem; font-weight:400; color:var(--accent); letter-spacing:.04em; }
.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav a{ font-size:15.5px; font-weight:600; color:var(--ink); white-space:nowrap; }
.main-nav .nav-cta{ padding:11px 22px; }
.hamburger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.hamburger span{ width:22px; height:2px; background:var(--ink); display:block; }
.mobile-nav{
  display:none; position:fixed; top:76px; left:0; right:0; background:#fff; z-index:999;
  border-bottom:1px solid var(--border); flex-direction:column; padding:10px 24px 18px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{ padding:12px 0; font-size:16px; font-weight:600; border-bottom:1px solid #F1F1F1; }
.mobile-nav .btn{ margin-top:12px; width:100%; }

/* ---------- hero_id=2 스플릿패널 ---------- */
.hero-panel-wrap{ padding:120px 0 0; }
.hero-panel{
  margin:0 auto; max-width:1200px; padding:0 24px;
}
.hero-panel-inner{
  background:var(--accent-soft); border-radius:16px; overflow:hidden;
  display:grid; grid-template-columns:1fr 1fr; align-items:stretch; min-height:520px;
}
.hero-panel-text{ padding:56px 52px; display:flex; flex-direction:column; justify-content:center; gap:20px; }
.hero-eyebrow{ font-size:13px; font-weight:700; letter-spacing:.12em; color:var(--accent); text-transform:uppercase; }
.hero-title{ font-size:clamp(30px,4vw,44px); line-height:1.3; }
.hero-desc{ font-size:16px; color:var(--desc); line-height:1.7; max-width:420px; }
.hero-actions{ display:flex; gap:12px; margin-top:6px; }
.hero-panel-media{ position:relative; aspect-ratio:4/4.6; overflow:hidden; }
.hero-panel-media img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform 6s ease; }
.hero-panel-wrap:hover .hero-panel-media img{ transform:scale(1.04); }

@media(max-width:900px){
  .hero-panel-wrap{ padding:96px 0 0; }
  .hero-panel-inner{ grid-template-columns:1fr; min-height:0; }
  .hero-panel-text{ padding:36px 24px; }
  .hero-panel-media{ aspect-ratio:16/11; }
}

/* ---------- section shell ---------- */
.section{ padding:88px 0; }
.section-head{ text-align:left; margin-bottom:44px; }
.eyebrow{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; letter-spacing:.1em; color:var(--accent); text-transform:uppercase; margin-bottom:12px; }
.eyebrow svg{ flex-shrink:0; width:18px; height:18px; }
.section-title{ font-size:clamp(24px,3vw,32px); line-height:1.35; white-space:normal; }
.section-sub{ margin-top:12px; font-size:15.5px; color:var(--desc); max-width:640px; }

/* ---------- section_variant=4 info-topcard (service cards) ---------- */
.info-topcard-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.info-topcard{
  background:#fff; border-top:4px solid var(--accent); border-radius:4px;
  padding:32px 26px; box-shadow:0 2px 18px rgba(0,0,0,.05);
}
.info-topcard .card-icon{ width:44px; height:44px; margin-bottom:18px; color:var(--accent); }
.info-topcard .card-icon svg{ width:100%; height:100%; display:block; }
.info-topcard .card-label{ font-family:var(--font-title); font-size:12px; letter-spacing:.1em; color:var(--accent); text-transform:uppercase; margin-bottom:8px; }
.info-topcard h3{ font-size:19px; margin-bottom:10px; }
.info-topcard p{ font-size:14.5px; color:var(--desc); line-height:1.7; margin:0; }
@media(max-width:900px){ .info-topcard-grid{ grid-template-columns:1fr 1fr; gap:16px; } }
@media(max-width:600px){ .info-topcard-grid{ grid-template-columns:1fr; } }

/* ---------- list_variant=1 editorial-card (case cards) ---------- */
.editorial-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.editorial-card{ display:block; background:#fff; }
.editorial-card .ec-img{ position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; border-radius:12px; }
.editorial-card .ec-img img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.editorial-card:hover .ec-img img{ transform:scale(1.05); }
.editorial-card .ec-badge{ position:absolute; top:12px; left:12px; background:var(--accent); color:#fff; font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:4px; }
.editorial-card .ec-region{ font-size:12px; font-weight:700; color:var(--accent); margin-top:16px; letter-spacing:.05em; }
.editorial-card .ec-title{ font-size:17px; font-weight:700; margin-top:8px; line-height:1.4; }
.editorial-card .ec-summary{ font-size:13.5px; color:var(--desc); margin-top:8px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.editorial-card .ec-tags{ display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.editorial-card .ec-tag{ font-size:11.5px; padding:4px 9px; border-radius:20px; background:var(--accent-soft); color:var(--accent); }
@media(max-width:1000px){ .editorial-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .editorial-grid{ grid-template-columns:1fr; } }

.home-cases-more{ text-align:center; margin-top:40px; }

/* ---------- portfolio list page ---------- */
.pf-intro{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; margin-bottom:56px; }
.pf-intro-text h2{ font-size:26px; margin-bottom:16px; }
.pf-intro-text p{ font-size:15px; color:var(--desc); line-height:1.8; margin:0 0 12px; }
.pf-intro-text .about-list{ margin-top:16px; }
.pf-intro-text .about-list li{ font-size:14.5px; color:var(--desc); padding:6px 0; border-top:1px solid var(--border); }
.pf-intro-img{ border-radius:14px; overflow:hidden; aspect-ratio:7/6; }
.pf-intro-img img{ width:100%; height:100%; object-fit:cover; }
@media(max-width:860px){ .pf-intro{ grid-template-columns:1fr; } .pf-intro-img{ order:-1; } }

/* ---------- page hero (sub pages) ---------- */
.page-hero{
  position:relative; height:340px; display:flex; align-items:center; margin-top:0;
  background-size:cover; background-position:center;
}
.page-hero::after{ content:""; position:absolute; inset:0; background:rgba(15,12,10,.5); }
.page-hero-content{ position:relative; z-index:2; color:#fff; width:100%; }
.page-hero-content .eyebrow{ color:#F1E9E4; }
.page-hero h1{ color:#fff; font-size:clamp(26px,4vw,40px); }
.page-hero p{ color:#EDE7E2; margin-top:10px; font-size:15px; }

/* ---------- case detail ---------- */
.case-body{ max-width:760px; margin:0 auto; }
.case-lead-img{ width:550px; max-width:100%; height:410px; object-fit:cover; border-radius:18px; display:block; margin:0 auto 40px; cursor:zoom-in; }
.case-meta-label{ font-size:11px; color:#8A8A8A; letter-spacing:.08em; text-align:center; margin-bottom:8px; }
.case-body h1{ font-size:clamp(24px,3.4vw,30px); text-align:center; margin-bottom:36px; }
.case-copy{ font-size:15.5px; color:#3A3A3A; line-height:1.9; }
.case-copy b{ color:var(--ink); }

.ba-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:48px 0; }
.ba-row figure{ margin:0; }
.ba-row img{ width:100%; height:auto; max-height:500px; object-fit:contain; border-radius:12px; background:#F3F3F1; cursor:zoom-in; }
.ba-row figcaption{ text-align:center; font-size:13px; color:#8A8A8A; margin-top:8px; }
@media(max-width:640px){ .ba-row{ grid-template-columns:1fr 1fr; } }

.related-row{ display:grid !important; grid-template-columns:1fr 1fr; gap:20px; margin-top:16px; }
.related-row .rc-card img{ width:100%; height:180px; object-fit:cover; border-radius:12px; }
.related-row .rc-card .rc-title{ font-size:14.5px; font-weight:700; margin-top:10px; line-height:1.4; }

/* ---------- process ---------- */
.process-list{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid #E0E0DC; }
.process-item{ padding:28px 20px 28px 24px; border-right:1px solid #E0E0DC; }
.process-item:first-child{ padding-left:0; }
.process-item:last-child{ border-right:none; }
.pnum{ display:block; font-size:13px; font-weight:700; color:var(--accent); margin-bottom:10px; }
.process-item h3{ font-size:16px; font-weight:800; color:#22262B; margin:0 0 8px; font-family:var(--font-body); }
.process-item p{ font-size:13.5px; color:#5B6169; line-height:1.65; margin:0; }
@media(max-width:767px){ .process-list{ grid-template-columns:1fr 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:760px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{ width:100%; text-align:left; background:none; border:none; padding:22px 0; font-size:16px; font-weight:700; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-family:var(--font-body); color:var(--ink); }
.faq-q::after{ content:"+"; font-size:20px; color:var(--accent); flex-shrink:0; margin-left:12px; transition:transform .2s; }
.faq-item.open .faq-q::after{ transform:rotate(45deg); }
.faq-a{ display:none; padding:0 0 22px; font-size:14.5px; color:var(--desc); line-height:1.8; }
.faq-item.open .faq-a{ display:block; }

/* ---------- closing (B-25) ---------- */
.closing{ position:relative; height:650px; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; }
.closing-overlay{ position:absolute; inset:0; background:rgba(19,19,19,.55); }
.closing-content{ position:relative; z-index:2; text-align:center; color:#fff; max-width:640px; padding:0 24px; }
.closing-content h2{ font-size:clamp(24px,3.6vw,34px); color:#fff; margin-bottom:18px; }
.closing-quote{ font-size:15px; color:#EDE9E5; line-height:1.7; margin-bottom:30px; }
.btn-closing{ display:inline-block; padding:14px 36px; border:1px solid #fff; color:#fff; border-radius:0; font-size:15px; font-weight:600; }

/* ---------- footer (apt_variant black) ---------- */
.site-footer{ background:#000000; color:#FFFFFF; padding:52px 0 20px; }
.footer-inner{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.footer-biz p{ margin:4px 0; font-size:13.5px; color:#C9C6C3; }
.footer-brand{ font-family:var(--font-title); font-size:17px; font-weight:700; color:#fff !important; margin-bottom:8px; }
.footer-hours{ white-space:nowrap; }
.footer-actions{ display:flex; gap:10px; }
.footer-actions .btn-outline-footer{ color:#fff; border-color:#555; }
.footer-copy{ margin-top:32px; padding-top:20px; border-top:1px solid #2A2A2A; font-size:12.5px; color:#8A8A8A; }

/* ---------- mobile bottom bar (always on mobile, PC untouched) ---------- */
.mobile-bottom-bar{ display:none; }
@media(max-width:767px){
  .mobile-bottom-bar{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:998;
    background:var(--bar-chrome); border-top:1px solid var(--border); box-shadow:0 -6px 22px rgba(0,0,0,.08);
  }
  .mb-item{ flex:1; text-align:center; padding:14px 0; font-size:14.5px; font-weight:700; min-height:48px; }
  .mb-sms{ color:var(--ink); border-right:1px solid var(--border); }
  .mb-call{ background:var(--accent); color:#fff; }
  body{ padding-bottom:52px; }
  .desktop-bottom-bar{ display:none !important; }
}

/* desktop-only bottom consult bar (B-23), hidden near top + near footer */
.desktop-bottom-bar{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:900;
  background:var(--bar-chrome); border-top:1px solid var(--border); box-shadow:0 -6px 22px rgba(0,0,0,.08);
  transform:translateY(100%); opacity:0; transition:transform .3s ease, opacity .3s ease;
}
@media(min-width:768px){
  .desktop-bottom-bar.show{ display:block; transform:translateY(0); opacity:1; }
}
.db-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; }
.db-text{ font-size:15px; font-weight:700; }

/* ---------- lightbox ---------- */
.lightbox-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center;
  z-index:2000; padding:24px;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{ max-width:92vw; max-height:88vh; object-fit:contain; border-radius:6px; }
.lightbox-close{ position:absolute; top:20px; right:28px; color:#fff; font-size:32px; cursor:pointer; background:none; border:none; }
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:36px; background:none; border:none; cursor:pointer; padding:12px; }
.lightbox-prev{ left:12px; } .lightbox-next{ right:12px; }

/* ---------- one-line utility ---------- */
.oneline{ white-space:nowrap; }
@media(max-width:600px){ .oneline-mobile{ white-space:nowrap; } }

/* ---------- region page ---------- */
.region-body{ max-width:760px; margin:0 auto; font-size:15.5px; color:#3A3A3A; line-height:1.9; }
.region-links{ display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.region-links a{ padding:8px 16px; border:1px solid var(--border); border-radius:20px; font-size:13.5px; }

/* ---------- about / contact ---------- */
.simple-page{ max-width:760px; margin:0 auto; font-size:15.5px; color:#3A3A3A; line-height:1.9; }
.contact-phone{ font-size:34px; font-weight:700; color:var(--accent); text-align:center; display:block; margin:24px 0; font-family:var(--font-title); }
.contact-card{ background:var(--accent-soft); border-radius:16px; padding:40px; text-align:center; }
