/*
Theme Name: Ddukgabe Interior
Theme URI: https://example.com/ddukgabe
Author: Ddukgabe
Author URI: https://example.com
Description: 떡가베 인테리어 · 전시부스 시공 기업형 워드프레스 테마. 히어로 이미지, INTERIOR DESIGN 포트폴리오 그리드, 공지사항/상담문의 게시판, 기업 푸터를 포함합니다.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ddukgabe
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --bg:            #ffffff;
  --ink:           #1c1c1c;   /* main text */
  --ink-soft:      #4a4a4a;
  --muted:         #9a9a9a;   /* meta / captions */
  --display:       #7c7c7c;   /* big serif heading colour */
  --line:          #e7e7e7;   /* hairline borders */
  --line-soft:     #f1f1f1;
  --footer-bg:     #3c3c3c;
  --footer-ink:    #b6b6b6;
  --footer-head:   #f4f4f4;
  --footer-line:   #535353;
  --accent:        #e6b54a;   /* gold user icon / small accents */
  --drawer-accent: #b08a57;   /* 상담폼 포인트 (워밍 브론즈) */
  --hover-blue:    #1f6fe0;   /* 목록 마우스오버 색 */
  --sky:           #2389d6;   /* 게시판 한글 제목 (스카이 톤 블루) */

  --maxw: 1240px;
  --gutter: 24px;

  --font-display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --font-body: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --header-h: 120px;
  --subhero-h: 480px;   /* 서브페이지 히어로 공통 높이 */
  --bottombar-h: 58px;

  /* 하단 고정바 색상 */
  --bar-call:   #ef7c00;
  --bar-sms:    #62b048;
  --bar-online: #9c4e9e;
}

/* =========================================================
   Reset / base
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  font-weight:400;
  padding-bottom:var(--bottombar-h);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
/* 화면의 95% 폭 컨테이너 (메인 그리드/게시판용) */
.container-95{
  width:95%;
  margin-inline:auto;
}

.screen-reader-text{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  height:var(--header-h);
  display:flex;
  align-items:center;
  color:#fff;
  background:transparent;
  transition:background-color .3s ease, box-shadow .3s ease, height .3s ease, color .3s ease;
}
/* 스크롤 시: 배경색 + 그림자 + 어두운 글자 */
.site-header.scrolled{
  background:#ffffff;
  color:var(--ink);
  box-shadow:0 6px 24px rgba(0,0,0,.08);
  height:74px;
}
.site-header.scrolled .header-account svg .ico-line{ stroke:var(--ink); }
.site-header .container{
  display:flex;
  align-items:center;
  gap:32px;
  width:100%;
}
.brand{
  font-family:var(--font-body);
  font-weight:800;
  font-size:60px;
  letter-spacing:1px;
  line-height:1;
  white-space:nowrap;
}
.brand img{ max-height:92px; width:auto; }

.primary-nav{ margin-inline:auto; }
.primary-nav ul{
  display:flex;
  align-items:center;
  gap:42px;
}
.primary-nav a{
  font-size:18px;
  font-weight:500;
  letter-spacing:.2px;
  padding:6px 0;
  position:relative;
  opacity:.95;
  transition:opacity .2s ease;
}
.primary-nav a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px;
  height:2px; background:currentColor;
  transition:right .25s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after{ right:0; }

.header-account{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:50%;
  flex:0 0 auto;
}
.header-account svg{ width:34px; height:34px; }
.header-account .ico-fill{ fill:var(--accent); }

.menu-toggle{
  display:none;
  width:44px; height:44px;
  background:transparent; border:0; color:inherit;
  padding:0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after{
  content:""; display:block; width:24px; height:2px; background:currentColor;
  position:relative; margin:0 auto; transition:.25s ease;
}
.menu-toggle span::before{ position:absolute; top:-7px; }
.menu-toggle span::after{ position:absolute; top:7px; }
.menu-toggle[aria-expanded="true"] span{ background:transparent; }
.menu-toggle[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after{ top:0; transform:rotate(-45deg); }

/* Inner pages: solid header from the start (header stays fixed) */
body:not(.front) .site-header{
  background:#ffffff;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
body:not(.front) .site-header .header-account svg .ico-line{ stroke:var(--ink); }
body:not(.front){ padding-top:var(--header-h); }

/* =========================================================
   Hero slider (full screen, zoom-out / Ken Burns)
   ========================================================= */
.hero{
  position:relative;
  width:100%;
  height:100vh;
  min-height:560px;
  overflow:hidden;
  background-color:#d9d9d9;
}
.hero-slides{ position:absolute; inset:0; }
.hero-slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition:opacity 1.4s ease;
}
.hero-slide.is-active{ opacity:1; visibility:visible; z-index:1; }
.hero-slide .bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1);
  will-change:transform;
}
/* 활성 슬라이드는 줌인 상태에서 점점 줌아웃 */
.hero-slide.is-active .bg{ animation:dg-zoomout 7.5s ease-out both; }
@keyframes dg-zoomout{
  from{ transform:scale(1.16); }
  to{   transform:scale(1); }
}
/* 슬라이드 캡션 (제목 + 설명) */
.hero-caption{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
  color:#fff;
  pointer-events:none;
}
.hero-caption .eyebrow{
  font-family:var(--font-display);
  font-size:clamp(15px,2vw,20px);
  font-style:italic;
  letter-spacing:.06em;
  opacity:.92;
  margin-bottom:10px;
}
.hero-caption .title{
  font-weight:800;
  font-size:clamp(38px,6vw,80px);
  line-height:1.08;
  letter-spacing:-.01em;
  margin:0;
  text-shadow:0 2px 24px rgba(0,0,0,.28);
}
.hero-caption .desc{
  margin:18px 0 0;
  font-size:clamp(15px,1.6vw,20px);
  font-weight:400;
  line-height:1.6;
  max-width:560px;
  opacity:.94;
  text-shadow:0 1px 14px rgba(0,0,0,.3);
}
.hero-slide.is-active .hero-caption{ animation:dg-caption-up 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dg-caption-up{
  from{ opacity:0; transform:translateY(26px); }
  to{   opacity:1; transform:translateY(0); }
}
.hero::after{
  content:"";
  position:absolute; inset:0; z-index:2;
  background:linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.08) 24%, rgba(0,0,0,0) 50%);
  pointer-events:none;
}
.hero-dots{
  position:absolute; left:0; right:0; bottom:30px; z-index:3;
  display:flex; justify-content:center; gap:11px;
}
.hero-dots button{
  width:11px; height:11px; border-radius:50%; padding:0;
  border:1px solid rgba(255,255,255,.85); background:transparent;
  transition:background .2s ease, transform .2s ease;
}
.hero-dots button.is-active{ background:#fff; transform:scale(1.1); }

/* =========================================================
   Section frame
   ========================================================= */
.section{ padding:84px 0; }
.section--tight{ padding:72px 0 64px; }

.display-title{
  font-family:var(--font-display);
  font-weight:600;
  color:var(--display);
  text-align:center;
  font-size:clamp(54px, 8.6vw, 116px);
  letter-spacing:.035em;
  line-height:1.0;
  margin:0 0 54px;
}

/* =========================================================
   Portfolio grid
   ========================================================= */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.portfolio-card{
  position:relative;
  display:block;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:#ececec;
}
.portfolio-card img,
.portfolio-card .ph{
  width:100%; height:100%; object-fit:cover;
  transition:transform .55s cubic-bezier(.2,.7,.2,1);
}
.portfolio-card:hover img{ transform:scale(1.05); }
.portfolio-card .ph{
  display:grid; place-items:center;
  background:linear-gradient(135deg,#e9e9e9,#d6d6d6);
  color:#a6a6a6; font-size:13px; letter-spacing:.06em;
}
.portfolio-card .overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%);
  opacity:0;
  display:flex; align-items:flex-end;
  padding:18px;
  transition:opacity .3s ease;
}
.portfolio-card:hover .overlay{ opacity:1; }
.portfolio-card .overlay span{
  color:#fff; font-size:15px; font-weight:600; letter-spacing:.02em;
  line-height:1.4;
}

.more-wrap{ text-align:center; margin-top:48px; }
.btn-more{
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:18px 44px;
  border:1px solid #cfcfcf;
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-size:18px;
  font-weight:500;
  letter-spacing:.04em;
  transition:all .22s ease;
}
.btn-more .plus{ font-weight:400; color:var(--muted); transition:color .22s ease; }
.btn-more:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn-more:hover .plus{ color:#fff; }

/* =========================================================
   Boards (NOTICE / INQUIRY)
   ========================================================= */
.boards{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,3fr);   /* 공지사항 40% · 상담문의 60% */
  gap:56px;
  padding-bottom:96px;
}
.board-head{
  display:flex;
  align-items:baseline;
  gap:14px;
  padding-bottom:18px;
  border-bottom:2px solid var(--ink);
  margin-bottom:8px;
}
.board-head .en{
  font-family:var(--font-display);
  font-weight:700;
  font-size:26px;
  letter-spacing:.04em;
  color:var(--ink);
}
.board-head .ko{ font-size:18px; font-weight:700; color:var(--sky); }
.board-head .more{
  margin-left:auto;
  font-size:12px; font-weight:700; letter-spacing:.08em;
  color:var(--muted);
}
.board-head .more:hover{ color:var(--ink); }

.board-list li{
  display:flex;
  align-items:center;
  gap:20px;
  padding:22px 4px;
  border-bottom:1px solid var(--line-soft);
}
.board-list .date{
  flex:0 0 96px;
  font-size:15px;
  font-weight:500;
  color:#888;
  letter-spacing:.01em;
}
.board-list .subject{
  flex:1 1 auto;
  min-width:0;
  font-size:17px;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .18s ease;
}
.board-list li:hover .subject,
.board-list li:hover .date,
.board-list li:hover .iq-tag{ color:var(--hover-blue); }
.board-list li:hover .subject{ text-decoration:none; }

/* 공지 새소식 배지 (48시간 이내, 주홍색) */
.new-badge{
  flex:0 0 auto;
  display:inline-flex; align-items:center;
  font-size:11px; font-weight:700; letter-spacing:.02em;
  color:#fff; background:#f4511e;
  padding:2px 9px; border-radius:999px; white-space:nowrap;
}
/* 상담문의: 메타·상태는 오른쪽, 지역·이름·전화는 고정폭 열로 행마다 정렬 */
.board--inquiry .subject{ flex:1 1 auto; }   /* 제목이 남은 공간을 채워 메타를 오른쪽으로 밀어냄 */
.iq-meta{
  flex:0 0 auto;
  display:flex; align-items:center; gap:0;
  white-space:nowrap;
}
.iq-tag{
  position:relative; font-size:14px; font-weight:500; color:#444;
  padding-left:14px;
  overflow:hidden; text-overflow:ellipsis;
  transition:color .18s ease;
}
.iq-tag::before{
  content:""; position:absolute; left:4px; top:50%;
  width:3px; height:3px; border-radius:50%; background:#bdbdbd; transform:translateY(-50%);
}
.iq-tag:empty::before{ display:none; }
.iq-region{ flex:0 0 116px; }   /* 지역 열 */
.iq-name{   flex:0 0 62px; }    /* 이름 열 */
.iq-phone{  flex:0 0 126px; font-variant-numeric:tabular-nums; letter-spacing:.01em; }  /* 전화 열 */

.iq-status{
  flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:74px; margin-left:16px;
  font-size:13px; font-weight:700; letter-spacing:.01em;
  padding:5px 13px; border-radius:999px;
  text-decoration:none; white-space:nowrap;
}
.iq-status.pending{
  color:#fff; background:#f4511e;
  animation:dg-blink 1.1s ease-in-out infinite;
}
.iq-status.pending:hover{ background:#e0410f; }
.iq-status.answered{ color:#2f7d52; background:#e8f3ec; }
@keyframes dg-blink{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
@media (prefers-reduced-motion:reduce){ .iq-status.pending{ animation:none; } }

/* 좁은 화면: 상담문의 2줄 (날짜·제목·상태 / 지역·이름·전화) */
@media (max-width:860px){
  .board--inquiry .iq-row{ flex-wrap:wrap; row-gap:8px; }
  .board--inquiry .date{ order:1; }
  .board--inquiry .subject{ order:2; flex:1 1 0; min-width:0; }
  .board--inquiry .iq-status{ order:3; margin-left:12px; }
  .board--inquiry .iq-meta{ order:4; flex:1 1 100%; gap:0 6px; padding-left:116px; }   /* 날짜폭(96)+간격(20) → 제목 시작선과 정렬 */
  .iq-region, .iq-name, .iq-phone{ flex:0 0 auto; width:auto; max-width:48vw; }
  .board--inquiry .iq-region{ padding-left:0; }          /* 첫 칸(지역)을 제목 시작선에 정확히 맞춤 */
  .board--inquiry .iq-region::before{ display:none; }
  .board--inquiry .iq-tag{ color:#2389d6; }              /* 모바일 메타 폰트색 (PC는 #444) */
}
.board-list .flags{
  flex:0 0 auto;
  display:flex; align-items:center; gap:10px;
  color:var(--muted);
}
.board-list .tag-re{
  font-size:12px; font-weight:700; color:#6b6b6b;
}
.board-list .ico{ width:18px; height:18px; opacity:.5; }
.board-list .ico--lock{ width:13px; opacity:.6; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background:var(--footer-bg);
  color:var(--footer-ink);
  padding:46px 0 56px;
  font-size:13px;
}
.footer-top{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:40px;
}
.footer-brand .en{
  font-weight:800; font-size:18px; letter-spacing:.04em; color:var(--footer-head);
}
.footer-brand .ko{
  font-weight:700; font-size:20px; color:#e6e6e6; margin-top:4px;
}
.footer-info{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:6px 20px;
  line-height:1.7;
  justify-items:start;
  text-align:left;
}
.footer-info dt{ color:#8f8f8f; white-space:nowrap; text-align:left; }
.footer-info dd{ margin:0; color:var(--footer-ink); text-align:left; justify-self:start; }
.footer-blog{ margin-left:auto; display:flex; flex-direction:column; gap:10px; }
.footer-blog a{
  display:inline-flex; align-items:center; justify-content:space-between; gap:18px;
  border:1px solid var(--footer-line);
  padding:11px 18px;
  color:#d7d7d7; font-weight:600; font-size:13px;
}
.footer-blog a:hover{ border-color:#8f8f8f; color:#fff; }
.footer-blog svg{ width:16px; height:16px; opacity:.7; }
.footer-blog a.footer-credit{
  border:1px solid var(--footer-line);
  padding:11px 18px;
  margin-top:2px;
  justify-content:center;
  gap:0;
  color:#9a9a9a; font-weight:600; font-size:13px; letter-spacing:.02em;
}
.footer-blog a.footer-credit:hover{ border-color:#8f8f8f; color:#fff; }

.footer-bottom{
  margin-top:30px;
  padding-top:22px;
  border-top:1px solid var(--footer-line);
  display:flex; flex-wrap:wrap; align-items:center; gap:18px;
  font-size:12px; color:#909090;
}
.footer-policy{ display:flex; gap:18px; }
.footer-policy a:hover{ color:#fff; }
.footer-copy{ margin-left:auto; letter-spacing:.02em; }

/* =========================================================
   Inner content (page / single / archive)
   ========================================================= */
.page-hero{
  background:#f6f6f4;
  padding:64px 0 56px;
  text-align:center;
  border-bottom:1px solid var(--line);
}
.page-hero .en{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(34px,5vw,56px); color:var(--display); margin:0;
}
.page-hero .ko{ margin-top:10px; color:var(--ink-soft); font-size:17px; }

/* 이미지 배경 히어로 (시공실적·공지사항 등) */
.page-hero.has-bg{
  position:relative;
  padding:0; border-bottom:none;
  min-height:var(--subhero-h);
  display:flex; align-items:center; justify-content:center;
  background:#cabfae center/cover no-repeat;
}
.page-hero.has-bg::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(34,29,24,.5), rgba(34,29,24,.42));
}
.page-hero.has-bg .container{ position:relative; z-index:2; }
.page-hero.has-bg .en{ color:#fff; }
.page-hero.has-bg .ko{ color:rgba(255,255,255,.92); }

.content-area{ padding:72px 0 96px; }
.entry-title{ font-size:30px; font-weight:700; margin:0 0 8px; letter-spacing:-.01em; }
.entry-meta{ color:var(--muted); font-size:14px; margin-bottom:28px; }
.entry-content{ font-size:16px; line-height:1.8; color:var(--ink-soft); }
.entry-content h2{ font-size:24px; margin:2em 0 .6em; color:var(--ink); }
.entry-content h3{ font-size:20px; margin:1.6em 0 .5em; color:var(--ink); }
.entry-content p{ margin:0 0 1.2em; }
.entry-content img{ margin:1.4em 0; }
.entry-content a{ color:#1a5fb4; text-decoration:underline; }

.archive-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px 18px;
}
.archive-grid .portfolio-card{ aspect-ratio:4/3; }
.archive-card-title{
  margin-top:12px; font-size:16px; font-weight:600; color:var(--ink);
}

/* 시공실적 목록 서브페이지 */
.pf-filter{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:center;
  margin:0 0 40px;
}
.pf-filter a{
  padding:9px 22px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:15px; color:var(--ink-soft);
  transition:all .2s ease;
}
.pf-filter a:hover{ border-color:#bbb; }
.pf-filter a.is-active{ background:var(--ink); color:#fff; border-color:var(--ink); }
.pf-item .portfolio-card .overlay{ align-items:center; justify-content:center; }
.pf-item .portfolio-card .overlay span{ font-size:16px; }
.pf-item-loc{ margin-top:3px; font-size:13px; color:var(--muted); }

/* 시공실적 상세 서브페이지 */
.pf-single-head{ margin-bottom:22px; }
.pf-single-cat{ display:flex; gap:8px; margin-bottom:10px; }
.pf-single-cat a{
  font-size:13px; font-weight:600; letter-spacing:.02em;
  color:var(--accent); 
}
.pf-single-cat a::before{ content:"# "; }
.pf-single-cover{ margin:0 0 28px; }
.pf-single-cover img{ width:100%; border-radius:6px; }
.pf-info{
  width:100%; border-collapse:collapse;
  margin:0 0 36px;
  border-top:2px solid var(--ink);
}
.pf-info th, .pf-info td{
  text-align:left; padding:15px 18px;
  border-bottom:1px solid var(--line);
  font-size:15px; vertical-align:top;
}
.pf-info th{
  width:180px; background:#f7f7f5; color:var(--ink-soft);
  font-weight:600; white-space:nowrap;
}
.pf-single-nav{
  margin-top:48px; padding-top:24px; border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  font-size:15px; color:var(--ink-soft);
}
.pf-single-nav a{ transition:color .2s ease; }
.pf-single-nav a:hover{ color:var(--ink); }
.pf-list-btn{
  flex:0 0 auto;
  padding:11px 26px; border:1px solid var(--ink); border-radius:4px;
  font-weight:600; color:var(--ink);
}
.pf-list-btn:hover{ background:var(--ink); color:#fff !important; }

.pagination{ margin-top:48px; display:flex; justify-content:center; gap:8px; }
.pagination .page-numbers{
  min-width:42px; height:42px; display:grid; place-items:center;
  border:1px solid var(--line); color:var(--ink-soft); padding:0 12px;
}
.pagination .current{ background:var(--ink); color:#fff; border-color:var(--ink); }

.notfound{ text-align:center; padding:120px 0; }
.notfound h1{ font-family:var(--font-display); font-size:80px; color:var(--display); margin:0; }

/* =========================================================
   Bottom fixed bar (call / sms / online inquiry)
   ========================================================= */
.bottom-bar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:90;
  height:var(--bottombar-h);
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.bottom-bar a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  font-size:16px;
  font-weight:600;
  letter-spacing:.01em;
  transition:filter .2s ease;
}
.bottom-bar a:hover{ filter:brightness(1.07); }
.bottom-bar .bb-call{   background:var(--bar-call); }
.bottom-bar .bb-sms{    background:var(--bar-sms); }
.bottom-bar .bb-online{ background:var(--bar-online); }
.bottom-bar svg{ width:20px; height:20px; flex:0 0 auto; }
.bottom-bar .bb-label{ white-space:nowrap; }
.bottom-bar .bb-mini{ display:none; }


/* 맨 위로 버튼 */
.to-top{
  position:fixed;
  right:22px;
  bottom:calc(var(--bottombar-h) + 18px);
  z-index:85;
  width:46px; height:46px;
  border-radius:50%;
  border:none;
  background:#2b2b2b;
  color:#fff;
  display:grid; place-items:center;
  box-shadow:0 8px 22px rgba(0,0,0,.22);
  opacity:0; visibility:hidden;
  transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:20px; height:20px; }

/* =========================================================
   Right side drawer — 상담문의 입력폼
   ========================================================= */
.dg-drawer-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:200;
  opacity:0; visibility:hidden;
  transition:opacity .3s ease, visibility .3s;
}
.dg-drawer-overlay.is-open{ opacity:1; visibility:visible; }

.dg-drawer{
  position:fixed;
  top:0; right:0; bottom:0;
  width:420px; max-width:92vw;
  background:#fff;
  z-index:210;
  box-shadow:-12px 0 40px rgba(0,0,0,.18);
  transform:translateX(100%);
  visibility:hidden;
  transition:transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  display:flex; flex-direction:column;
}
.dg-drawer.is-open{ transform:translateX(0); visibility:visible; }

.dg-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 26px;
  background:#fff;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.dg-drawer-head h3{ margin:0; font-size:20px; font-weight:700; letter-spacing:.01em; }
.dg-drawer-head .en{ display:block; font-family:var(--font-display); font-style:italic; font-size:14px; letter-spacing:.08em; color:var(--drawer-accent); margin-bottom:2px; }
.dg-drawer-close{
  width:38px; height:38px; border:0; background:transparent; color:#a3a3a3;
  font-size:26px; line-height:1; cursor:pointer; border-radius:6px;
  transition:background .2s ease, color .2s ease;
}
.dg-drawer-close:hover{ background:#f3f3f3; color:var(--ink); }

.dg-drawer-body{ padding:26px; overflow-y:auto; flex:1; }
.dg-drawer-body .intro{ margin:0 0 20px; font-size:14px; color:var(--ink-soft); line-height:1.6; }

.dg-field{ margin-bottom:16px; }
.dg-field label{ display:block; font-size:14px; font-weight:600; margin-bottom:7px; color:var(--ink); }
.dg-field label .req{ color:#c2674f; margin-left:3px; }
.dg-field input[type="text"],
.dg-field input[type="tel"],
.dg-field input[type="email"],
.dg-field textarea{
  width:100%;
  border:1px solid #e4e4e4;
  border-radius:8px;
  padding:12px 14px;
  font-family:inherit;
  font-size:15px;
  color:var(--ink);
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.dg-field input:focus,
.dg-field textarea:focus{
  outline:none; border-color:var(--drawer-accent);
  box-shadow:0 0 0 3px rgba(176,138,87,.15);
}
.dg-field textarea{ min-height:130px; resize:vertical; }
.dg-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.dg-agree{ display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--ink-soft); margin:4px 0 20px; }
.dg-agree input{ margin-top:3px; accent-color:var(--drawer-accent); }

.dg-submit{
  width:100%;
  padding:15px;
  border:0; border-radius:8px;
  background:#2b2a27; color:#fff;
  font-size:16px; font-weight:700; letter-spacing:.02em;
  cursor:pointer;
  transition:background .2s ease;
}
.dg-submit:hover{ background:#000; }
.dg-submit:disabled{ opacity:.55; cursor:default; }

.dg-feedback{ margin-top:14px; font-size:14px; text-align:center; }
.dg-feedback.ok{ color:#1f8a4c; }
.dg-feedback.err{ color:#d23; }

.dg-drawer.sent .dg-form{ display:none; }
.dg-thanks{ display:none; text-align:center; padding:40px 10px; }
.dg-drawer.sent .dg-thanks{ display:block; }
.dg-thanks .ico{ width:64px; height:64px; margin:0 auto 18px; color:var(--drawer-accent); }
.dg-thanks h4{ margin:0 0 8px; font-size:20px; }
.dg-thanks p{ margin:0; color:var(--ink-soft); font-size:15px; }

/* =========================================================
   회사소개 (About) 페이지
   ========================================================= */
.about-hero{
  position:relative;
  min-height:var(--subhero-h);
  display:flex; align-items:center;
  background-size:cover; background-position:center right;
  background-color:#efeae1;
}
.about-hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 40%, rgba(255,255,255,0) 66%);
}
.about-hero-inner{ position:relative; z-index:2; }
.ah-eyebrow{ font-size:15px; letter-spacing:.32em; color:#8a7f6e; font-weight:500; margin:0 0 18px; }
.ah-title{ font-size:clamp(34px,5vw,58px); font-weight:800; line-height:1.22; letter-spacing:-.01em; color:#222; margin:0 0 24px; }
.ah-title .dot{ color:var(--drawer-accent); }
.ah-sub{ font-size:clamp(15px,1.6vw,18px); color:#5a5346; line-height:1.75; margin:0; }

.about-section{ padding:86px 0; }
.eyebrow{ font-size:13px; letter-spacing:.22em; color:#a08d6e; font-weight:600; margin:0 0 14px; }
.sec-h{ font-size:clamp(26px,3vw,34px); font-weight:700; color:var(--ink); line-height:1.32; margin:0 0 22px; }
.center-title{ text-align:center; font-size:clamp(20px,2.4vw,26px); font-weight:700; color:var(--ink); margin:0 0 56px; }
.center-title .en{ font-family:var(--font-display); font-weight:600; letter-spacing:.04em; margin-right:10px; }

/* ABOUT US */
.au-grid{ display:grid; grid-template-columns:0.82fr 1.18fr; gap:60px; align-items:center; }
.au-desc{ color:var(--ink-soft); line-height:1.85; font-size:15.5px; margin:0; }
.au-right{
  display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line); border-left:1px solid var(--line);
}
.au-item{
  display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:34px 10px;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line);
}
.au-ico svg{ width:40px; height:40px; color:#6f6453; }
.au-label{ font-size:16px; font-weight:600; color:var(--ink); }

/* WHY */
.why{ background:#f6f4ef; }
.why-grid{ display:grid; grid-template-columns:0.9fr 2.1fr; gap:48px; align-items:center; }
.why-right{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.why-item{ text-align:center; }
.why-ico svg{ width:46px; height:46px; color:#6f6453; }
.why-t{ font-size:18px; font-weight:700; color:var(--ink); margin:18px 0 10px; }
.why-d{ font-size:14px; color:var(--muted); line-height:1.7; margin:0; }

/* PROCESS */
.proc-steps{ display:flex; align-items:flex-start; justify-content:center; gap:4px; }
.proc-step{ flex:1 1 0; max-width:164px; text-align:center; }
.proc-circle{
  width:84px; height:84px; border-radius:50%; border:1px solid #e0dccf;
  display:grid; place-items:center; margin:0 auto 16px; color:#6f6453; background:#fff;
}
.proc-circle svg{ width:36px; height:36px; }
.proc-name{ font-size:16px; font-weight:700; color:var(--ink); margin:0 0 8px; }
.proc-desc{ font-size:13px; color:var(--muted); line-height:1.6; margin:0; }
.proc-arrow{ flex:0 0 auto; align-self:flex-start; margin-top:28px; color:#ccc3b4; font-size:28px; line-height:1; }

/* OUR WORKS */
.works-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.works-thumb{ display:block; aspect-ratio:3/4; overflow:hidden; background:#ececec; border-radius:3px; }
.works-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.works-item:hover .works-thumb img{ transform:scale(1.05); }
.works-thumb .ph{ width:100%; height:100%; display:grid; place-items:center; background:linear-gradient(135deg,#ece8e1,#dcd6cb); color:#b3a892; font-size:13px; }
.works-label{ display:block; text-align:center; margin-top:14px; font-size:16px; font-weight:600; color:var(--ink); }
.works-more{ text-align:center; margin-top:44px; }

/* CTA */
.cta-band{ position:relative; background-size:cover; background-position:center; background-color:#e7e0d4; padding:60px 0; }
.cta-inner{ display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-text{ font-size:clamp(22px,2.6vw,30px); font-weight:700; color:#2c2620; line-height:1.42; margin:0; }
.cta-btns{ display:flex; gap:14px; }
.cta-call, .cta-online{ display:inline-flex; align-items:center; gap:10px; padding:16px 32px; border-radius:8px; font-size:16px; font-weight:600; }
.cta-call svg, .cta-online svg{ width:20px; height:20px; }
.cta-call{ background:#5f7d57; color:#fff; }
.cta-call:hover{ background:#516b4a; }
.cta-online{ background:#fff; color:var(--ink); border:1px solid #d8d2c6; }
.cta-online:hover{ background:#f3f0e9; }

/* ---- 떡가베란? 서브페이지 ---- */
.sub-hero{
  position:relative; min-height:var(--subhero-h); display:flex; align-items:center;
  background-size:cover; background-position:center; background-color:#cabfae;
}
.sub-hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(38,32,26,.72) 0%, rgba(38,32,26,.45) 46%, rgba(38,32,26,.05) 82%);
}
.sub-hero-inner{ position:relative; z-index:2; color:#fff; }
.sub-hero h1{ font-size:clamp(36px,5vw,58px); font-weight:800; letter-spacing:-.01em; margin:0 0 16px; }
.sub-hero p{ font-size:clamp(15px,1.7vw,19px); margin:0; opacity:.92; }

.sec-center{ text-align:center; }
.sec-center .h{ font-size:clamp(26px,3vw,34px); font-weight:700; color:var(--ink); margin:0 0 16px; }
.sec-underline{ display:block; width:46px; height:3px; border-radius:2px; background:#5f7d57; margin:0 auto 26px; }
.sec-lead{ max-width:780px; margin:0 auto 56px; text-align:center; color:var(--ink-soft); font-size:16px; line-height:1.85; }

.feat-grid{ display:grid; grid-template-columns:repeat(5,1fr); }
.feat-item{ position:relative; text-align:center; padding:8px 18px; }
.feat-item + .feat-item::before{ content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px; background:var(--line); }
.feat-ico{ color:#6f6453; }
.feat-ico svg{ width:42px; height:42px; }
.feat-t{ font-size:17px; font-weight:700; color:var(--ink); margin:18px 0 10px; }
.feat-d{ font-size:14px; color:var(--muted); line-height:1.6; margin:0; }

.feature-band{ background:#f6f4ef; }
.feat-cols{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.feat-list-h{ font-size:clamp(24px,2.6vw,30px); font-weight:700; color:var(--ink); margin:0 0 28px; }
.check-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.check-list li{ display:flex; align-items:flex-start; gap:13px; font-size:16px; color:var(--ink-soft); }
.check-list .chk{ flex:0 0 auto; color:#5f7d57; }
.check-list .chk svg{ width:24px; height:24px; display:block; }
.feat-photo{ aspect-ratio:4/3; border-radius:4px; overflow:hidden; background:#e7e0d4; }
.feat-photo img{ width:100%; height:100%; object-fit:cover; }

.cta-band.is-light{ background:#f4f0e9; }
.cta-call-lg{ background:#5f7d57; color:#fff; display:inline-flex; align-items:center; gap:14px; padding:15px 28px; border-radius:8px; }
.cta-call-lg svg{ width:22px; height:22px; }
.cta-call-lg .t{ display:flex; flex-direction:column; line-height:1.3; font-size:16px; font-weight:700; }
.cta-call-lg .t small{ font-size:13px; font-weight:500; opacity:.9; }
.cta-call-lg:hover{ background:#516b4a; }
.cta-online-lg{ background:#fff; color:var(--ink); border:1px solid #d8d2c6; display:inline-flex; align-items:center; justify-content:space-between; gap:48px; padding:18px 26px; border-radius:8px; font-size:16px; font-weight:600; min-width:260px; }
.cta-online-lg .arr{ color:#9a9a9a; font-size:22px; line-height:1; }
.cta-online-lg:hover{ background:#f3f0e9; }

@media (max-width:980px){
  .feat-grid{ grid-template-columns:repeat(3,1fr); row-gap:40px; }
  .feat-item:nth-child(3n+1)::before{ display:none; }
  .feat-cols{ grid-template-columns:1fr; gap:32px; }
  .about-hero, .sub-hero, .page-hero.has-bg{ min-height:360px; }
}
@media (max-width:560px){
  .feat-grid{ grid-template-columns:repeat(2,1fr); }
  .feat-item::before{ display:none !important; }
  .cta-call-lg, .cta-online-lg{ flex:1; justify-content:center; }
}

@media (max-width:980px){
  .au-grid, .why-grid{ grid-template-columns:1fr; gap:36px; }
  .au-left, .why-left{ text-align:center; }
  .why-right{ grid-template-columns:repeat(2,1fr); gap:34px 20px; }
  .proc-steps{ flex-wrap:wrap; gap:30px 0; }
  .proc-step{ flex:0 0 33.33%; max-width:none; }
  .proc-arrow{ display:none; }
  .works-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:560px){
  .about-section{ padding:56px 0; }
  .au-right{ grid-template-columns:repeat(2,1fr); }
  .proc-step{ flex-basis:50%; }
  .works-grid{ grid-template-columns:repeat(2,1fr); }
  .cta-inner{ flex-direction:column; align-items:flex-start; }
  .cta-btns{ width:100%; }
  .cta-call, .cta-online{ flex:1; justify-content:center; padding:15px 18px; }
}

@media (max-width:1080px){
  :root{ --header-h:96px; }
  .primary-nav ul{ gap:26px; }
  .primary-nav a{ font-size:16px; }
  .brand{ font-size:48px; }
}

@media (max-width:860px){
  .site-header .container{ gap:14px; }
  .menu-toggle{ display:block; order:3; }
  .header-account{ order:2; margin-left:auto; }
  .primary-nav{
    position:absolute;
    top:100%; left:0; right:0;
    background:#fff;
    color:var(--ink);
    margin:0;
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px rgba(0,0,0,.08);
    display:none;
  }
  .primary-nav.is-open{ display:block; }
  .primary-nav ul{ flex-direction:column; gap:0; padding:8px 0; }
  .primary-nav li{ width:100%; }
  .primary-nav a{
    display:block; padding:15px var(--gutter); font-size:17px; color:var(--ink);
  }
  .primary-nav a::after{ display:none; }

  .portfolio-grid{ grid-template-columns:repeat(2,1fr); }
  .boards{ grid-template-columns:minmax(0,1fr); gap:48px; }
  .archive-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ gap:28px; }
  .footer-blog{ margin-left:0; width:100%; }
}

@media (max-width:520px){
  :root{ --header-h:78px; }
  .brand{ font-size:34px; }
  .brand img{ max-height:56px; }
  .section{ padding:60px 0; }
  .hero{ min-height:460px; height:56vh; }
  .hero-caption .title{ font-size:32px; line-height:1.12; }
  .hero-caption .desc{ font-size:14px; margin-top:12px; }
  .display-title{ margin-bottom:36px; }
  .portfolio-grid{ gap:8px; }
  .board-list .date{ flex-basis:78px; font-size:13px; }
  .board--inquiry .iq-meta{ padding-left:98px; }   /* 날짜폭(78)+간격(20) */
  .board-list .subject{ font-size:15px; }
  .btn-more{ padding:15px 34px; font-size:16px; }
  .footer-info{ grid-template-columns:1fr; gap:2px; }
  .footer-info dt{ margin-top:8px; }
  .pf-filter a{ padding:7px 16px; font-size:14px; }
  .pf-info th{ width:104px; padding:12px 12px; font-size:14px; }
  .pf-info td{ padding:12px 12px; font-size:14px; }
  .pf-single-nav{ flex-wrap:wrap; justify-content:center; gap:10px; }
  .bottom-bar a{ font-size:13px; gap:7px; }
  .bottom-bar svg{ width:18px; height:18px; }
  .bottom-bar .bb-full{ display:none; }
  .bottom-bar .bb-mini{ display:inline; }
  .dg-drawer{ width:100%; max-width:100%; }
  .to-top{ right:14px; width:42px; height:42px; }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
  .hero-slide .bg{ animation:none !important; transform:none !important; }
}
