/* door.suninteriorkor.com — 순인테리어 현관중문
   design: main_skin=1(디자인2번) hero_id=4(비전트리플이미지) section_variant=7(hidden-delight)
   list_variant=1(editorial-card) font_id=4(MaruBuri+Pretendard) header_variant=0(standard) */

:root {
  --accent: #6A4E52;
  --accent-soft: #F1E9EA;
  --accent-text: #FFFFFF;
  --deep: #352B27;
  --bar-chrome: #EDF0F2;
  --ink: #000000;
  --desc: #4B5563;
  --bg: #FFFFFF;
  --line: #E5E5E5;
  --font-title: "MaruBuri", serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .hero-title, .section-title { font-family: var(--font-title); font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Eyebrow ── */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.eyebrow svg { flex-shrink: 0; }
.section-head { margin-bottom: 36px; }
.section-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; white-space: normal; }
.section { padding: 84px 0; }

/* ── Header (B-22) ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header.is-scrolled {
  background: var(--bar-chrome);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--ink); }
.logo-keyword { font-size: 0.7rem; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-cta { background: var(--accent); color: var(--accent-text); padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; }
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line); padding: 12px 24px 20px; }
.mobile-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid #F1F1F1; }
.mobile-nav.open { display: flex; }
.mobile-cta { margin-top: 14px; background: var(--accent); color: #fff; text-align: center; padding: 14px; border-radius: 8px; font-weight: 600; }

/* ── Hero (hero_id=4 비전트리플이미지) ── */
.vision-hero { padding: 150px 0 70px; background: #fff; }
.vision-hero .hero-topline { border-bottom: 1px solid #000; padding-bottom: 18px; margin-bottom: 40px; }
.vision-hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.vision-hero-head .eyebrow { margin-bottom: 10px; }
.hero-title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.28; white-space: nowrap; }
.hero-copy { max-width: 360px; font-size: 15px; line-height: 1.7; color: var(--desc); text-align: right; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.hero-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-triple img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }
.hero-triple figcaption { margin-top: 10px; font-size: 13px; color: var(--desc); }
.hero-triple figure { margin: 0; }
@media (max-width: 900px) {
  .hero-triple { grid-template-columns: 1fr; }
  .hero-triple img { height: 260px; }
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
}

/* ── Page hero (서브페이지 상단 배경 이미지) ── */
.page-hero {
  position: relative; margin-top: 76px; height: 320px; display: flex; align-items: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(15,12,12,0.5); }
.page-hero-inner { position: relative; z-index: 1; color: #fff; }
.page-hero .eyebrow { color: #F0E6E3; }
.page-hero .eyebrow svg { stroke: #F0E6E3; }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 40px); color: #fff; }
.page-hero p { color: #EDEDED; margin-top: 10px; font-size: 15px; }

/* ── Services (section_variant=7 hidden-delight) ── */
.hd-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
.hd-eng { font-size: 12px; letter-spacing: 0.18em; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hd-card { display: block; }
.hd-card-img { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/5; }
.hd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hd-card:hover .hd-card-img img { transform: scale(1.05); }
.hd-card-tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.hd-card h3 { font-size: 19px; margin-top: 16px; }
.hd-card-meta { font-size: 13.5px; color: var(--desc); margin-top: 8px; line-height: 1.6; }
@media (max-width: 900px) { .hd-grid { grid-template-columns: 1fr; } }

/* ── 시공사례 카드 (design_id=1, 디자인2번) ── */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.case-card:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.case-card-img { aspect-ratio: 1/1; overflow: hidden; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body { padding: 18px 20px 22px; }
.case-card-region { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.case-card h3 { font-size: 17px; margin-top: 8px; }
.case-card p { font-size: 13.5px; color: var(--desc); margin-top: 6px; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cases-grid { grid-template-columns: 1fr; } }

/* ── Portfolio 목록 (list_variant=1 editorial-card) ── */
.pf-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.pf-intro img { width: 100%; aspect-ratio: 7/6; object-fit: cover; border-radius: var(--radius-card); }
.pf-intro h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
.pf-intro p { color: var(--desc); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.pf-intro-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pf-intro-list li { font-size: 14px; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.pf-intro-list svg { flex-shrink: 0; margin-top: 3px; }
@media (max-width: 860px) { .pf-intro { grid-template-columns: 1fr; gap: 28px; } }

.editorial-list { display: flex; flex-direction: column; gap: 28px; }
.editorial-card { display: grid; grid-template-columns: 340px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.editorial-card .ec-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.editorial-card .ec-img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.ec-body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.ec-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ec-tag { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--desc); }
.ec-body h3 { font-size: 21px; margin-bottom: 10px; }
.ec-body p { color: var(--desc); font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; }
.ec-meta { font-size: 13px; color: var(--accent); font-weight: 600; }
.ec-bar { height: 3px; background: var(--accent-soft); border-radius: 2px; margin-top: 16px; overflow: hidden; }
.ec-bar span { display: block; height: 100%; background: var(--accent); width: 100%; }
@media (max-width: 760px) { .editorial-card { grid-template-columns: 1fr; } .ec-body { padding: 4px 20px 22px; } }

/* pagination */
.pagi { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagi a { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink); }
.pagi a.active { background: var(--ink); color: #fff; }

/* ── Gallery case detail ── */
.case-body { padding: 64px 0; }
.case-hero-img { width: 550px; max-width: 100%; height: 410px; object-fit: cover; border-radius: 18px; margin-bottom: 40px; cursor: zoom-in; }
.case-label { font-size: 11px; color: #8A8A8A; letter-spacing: .06em; margin-bottom: 10px; }
.case-title { font-size: clamp(22px, 2.8vw, 28px); margin-bottom: 36px; font-family: var(--font-title); }
.case-text { font-size: 15.5px; line-height: 1.85; color: var(--desc); }
.case-text p { margin-bottom: 20px; }
.case-text strong { color: var(--ink); }
.case-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid #E0E0DC; border-bottom: 1px solid #E0E0DC; margin: 40px 0; }
.case-spec { padding: 20px 20px 20px 0; border-right: 1px solid #E0E0DC; }
.case-spec:last-child { border-right: none; }
.case-spec-label { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.case-spec-val { font-size: 15px; font-weight: 600; }
@media (max-width: 700px) { .case-specs { grid-template-columns: 1fr; } .case-spec { border-right:none; border-bottom:1px solid #E0E0DC; padding: 16px 0; } }

/* 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; } .process-item { padding-left: 12px; } .process-item:first-child{padding-left:12px;} }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 4px; font-size: 16px; font-weight: 600; text-align: left; }
.faq-plus { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content:""; position:absolute; background: var(--ink); top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform .25s ease; }
.faq-plus::before { width: 14px; height: 2px; }
.faq-plus::after { width: 2px; height: 14px; }
.faq-q[aria-expanded="true"] .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity:0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; font-size: 14.5px; line-height: 1.75; color: var(--desc); }

/* related */
.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; margin: 0 auto; }
.related-row a { display: block; }
.related-row img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.related-row .rc-title { margin-top: 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .related-row { grid-template-columns: 1fr; } }

/* Region/Category page body */
.info-body { padding: 64px 0; max-width: 860px; margin: 0 auto; }
.info-body h1 { font-size: clamp(24px,3vw,32px); margin-bottom: 28px; }
.info-body p { font-size: 15.5px; line-height: 1.85; color: var(--desc); margin-bottom: 20px; }
.info-body p:first-of-type::first-letter { color: inherit; }

.icon-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.icon-feature { text-align: left; }
.icon-feature-icon { width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin-bottom: 14px; }
.icon-feature-icon svg { display:block; width:100%; height:100%; max-width:44px; max-height:44px; }
.icon-feature h3 { font-size: 15.5px; margin-bottom: 8px; }
.icon-feature p { font-size: 13.5px; color: var(--desc); line-height: 1.6; }
@media (max-width: 767px) { .icon-feature-grid { grid-template-columns: 1fr 1fr; } .icon-feature-icon,.icon-feature-icon svg{width:36px;height:36px;max-width:36px;max-height:36px;} }

/* about page */
.about-hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.about-hero-split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.about-hero-split h1 { font-size: clamp(26px,3.2vw,36px); margin-bottom: 20px; }
.about-hero-split p { color: var(--desc); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
@media (max-width: 860px) { .about-hero-split { grid-template-columns: 1fr; } }

.biz-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.biz-table th, .biz-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.biz-table th { width: 140px; color: var(--desc); font-weight: 500; }

/* contact page */
.contact-hero { text-align: center; padding: 150px 0 70px; }
.contact-hero h1 { font-size: clamp(28px,4vw,44px); margin-bottom: 18px; }
.contact-hero p { color: var(--desc); font-size: 16px; margin-bottom: 32px; }
.contact-tel-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 26px 48px; border-radius: 16px; }
.contact-tel-btn .ctb-label { font-size: 14px; opacity: .85; }
.contact-tel-btn .ctb-num { font-size: 28px; font-weight: 700; font-family: var(--font-title); }
.contact-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; text-align: left; }
.contact-info-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.contact-info-card h3 { font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.contact-info-card p { font-size: 15px; color: var(--ink); }
@media (max-width: 760px) { .contact-info-grid { grid-template-columns: 1fr; } }

/* 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: relative; z-index: 1; text-align: center; padding: 0 20px; }
.closing::before { content:""; position:absolute; inset:0; background: rgba(19,19,19,0.55); }
.closing-head { position: relative; z-index: 1; color: #fff; font-family: var(--font-title); font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; white-space: nowrap; margin-bottom: 18px; }
.closing-quote { position: relative; z-index: 1; color: #EDEDED; font-size: 14.5px; margin-bottom: 28px; }
.closing-btn { position: relative; z-index: 1; display: inline-block; padding: 14px 34px; border: 1px solid #fff; color: #fff; border-radius: 0; font-size: 14px; font-weight: 600; }
@media (max-width: 700px) { .closing-head { white-space: normal; font-size: 21px; } .closing { height: 520px; } }

/* Footer (dark, seed%4==0) */
.site-footer { background: var(--deep); color: #fff; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo { font-family: var(--font-title); font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.footer-logo span { color: #CBB9BA; font-size: 13px; font-weight: 400; margin-left: 8px; }
.footer-biz-line { font-size: 13.5px; color: #D8D2D0; line-height: 1.8; }
.footer-cta-row { display: flex; gap: 10px; margin-top: 18px; }
.footer-btn { background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.footer-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.4); }
.footer-col h3 { font-size: 13px; color: #CBB9BA; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: #EDEDED; margin-bottom: 12px; }
.footer-bottom { padding: 22px 0; font-size: 12.5px; color: #B9AFAD; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile bottombar (always on mobile) */
.mobile-bottombar { display: none; }
@media (max-width: 767px) {
  .mobile-bottombar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; display: flex; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,0.08); }
  .mb-btn { flex: 1; text-align: center; padding: 16px 0; font-size: 15px; font-weight: 700; }
  .mb-btn-primary { background: var(--accent); color: #fff; }
  .mb-btn-tel { background: #fff; color: var(--ink); }
  body { padding-bottom: 58px; }
  .desktop-bottombar { display: none !important; }
}

/* Desktop bottombar (B-23) */
.desktop-bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  background: var(--bar-chrome); border-top: 1px solid #E5E7EB;
  box-shadow: 0 -6px 22px rgba(0,0,0,0.08);
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.desktop-bottombar.show { transform: translateY(0); opacity: 1; }
.dbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.dbar-text { font-size: 15px; font-weight: 600; }
.dbar-btn { background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 8px; font-size: 14px; font-weight: 600; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 500; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; font-size: 34px; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 26px; padding: 14px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .nav-menu, .nav-cta { display: none; }
}
