/* =========================================================
   다온메이킹 (Daon Making) — index style
   리뉴얼 / 코드빌더 custom-html 규약
   ========================================================= */

:root{
  --orange:        #f5a623;
  --orange-deep:   #f08a1d;
  --orange-soft:   #fff6e9;
  --ink:           #2b2b2b;
  --gray:          #6b6b6b;
  --line:          #ececec;
  --green:         #7ac043;
  --blue:          #4aa8e0;
  --teal:          #38c0b0;
  --magenta:       #e0489b;
  --radius:        18px;
  --shadow:        0 14px 34px rgba(0,0,0,.10);
  --container:     1180px;
  --header-h:      78px;
  --ease:          cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Pretendard","Apple SD Gothic Neo","맑은 고딕","Malgun Gothic",sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }

/* reveal 초기상태 (JS 없을 때도 보이도록 .no-js 처리) */
[data-reveal]{ opacity:0; transform:translateY(34px); }
.no-anim [data-reveal]{ opacity:1; transform:none; }

/* ===================== HEADER (2단: 로고 + 메뉴바) ===================== */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:#fff;
  box-shadow:0 2px 16px rgba(0,0,0,.07);
  transition:box-shadow .3s var(--ease);
}
/* 상단: 로고 가운데 */
.header-top{
  display:flex; align-items:center; justify-content:center;
  height:74px; overflow:hidden;
  transition:height .35s var(--ease), opacity .25s var(--ease);
}
.header-top .logo img{ height:48px; width:auto; }
/* 스크롤 시 로고줄 접고 메뉴바만 sticky */
.site-header.shrink .header-top{ height:0; opacity:0; }

/* 하단: 오렌지 메뉴바 */
.header-nav{
  position:relative;
  background:linear-gradient(90deg,var(--orange) 0%,var(--orange-deep) 100%);
  box-shadow:0 4px 16px rgba(240,138,29,.25);
}
.header-nav .container{
  position:relative; display:flex; align-items:center; justify-content:center;
  height:54px;
}
.gnb ul{ display:flex; gap:6px; }
.gnb a{
  display:block; padding:8px 20px; color:#fff; font-weight:600; font-size:16px;
  border-radius:999px; transition:background .2s, transform .2s;
}
.gnb a:hover{ background:rgba(255,255,255,.22); transform:translateY(-1px); }
.gnb a.active{ background:rgba(255,255,255,.28); }

/* SHOP 버튼 (추후 쇼핑몰) — 메뉴바 우측 */
.btn-shop{
  position:absolute; right:24px; top:50%; transform:translateY(-50%);
  display:inline-flex; align-items:center;
  padding:8px 28px; background:#fff; color:var(--orange-deep);
  font-weight:800; font-size:15px; letter-spacing:.08em;
  border-radius:999px; box-shadow:0 6px 16px rgba(0,0,0,.14);
  transition:transform .2s var(--ease), box-shadow .2s;
}
.btn-shop:hover{ transform:translateY(-50%) scale(1.05); box-shadow:0 10px 22px rgba(0,0,0,.2); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:40px; height:40px;
  background:transparent; border:0; cursor:pointer; padding:9px;
  position:absolute; right:18px; top:50%; transform:translateY(-50%);
}
.nav-toggle span{ height:3px; background:#fff; border-radius:3px; transition:.3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero{
  position:relative; height:100vh; min-height:620px; max-height:900px;
  overflow:hidden; background:#ffffff;   /* 디졸브가 경유하는 흰 배경 */
}
.hero-slider,.hero-slide,.hero-bg{ position:absolute; inset:0; }
/* 흰 배경을 경유하는 디졸브:
   - 나가는 슬라이드: 빠르게(1.4s) opacity→0 = 흰 배경으로 "묻힘"
   - 들어오는 슬라이드: 0.5s 뒤 천천히(1.8s) opacity→1 = 흰 배경에서 "떠오름"
   중간에 양쪽 다 옅어지는 짧은 순간 .hero 흰 배경이 비쳐 갑작스러움 제거.
   z-index: 활성(새) 슬라이드를 항상 위로 → DOM 순서/ wrap 무관하게 일관. */
.hero-slide{ opacity:0; z-index:1; transition:opacity .8s ease-out; }
.hero-slide.is-active{ opacity:1; z-index:2; transition:opacity 1.6s ease-out .3s; }
.hero-bg{
  background-size:cover; background-position:center;
  transform:scale(1.08);
  /* 비활성으로 바뀌면 확대 상태에서 5s에 걸쳐 천천히 원래 크기로 복귀
     (즉시 튕김 방지 — 크로스페이드 오버랩이 끝난 뒤에도 부드럽게 줄어듦) */
  transition: transform 5s ease-out;
}
/* 활성 동안엔 Ken Burns 애니메이션이 transform 을 점유(확대) */
.hero-slide.is-active .hero-bg{ animation:kenburns 12s ease-out forwards; }
@keyframes kenburns{ from{ transform:scale(1.08); } to{ transform:scale(1.18); } }

.hero-overlay{
  position:absolute; inset:0; z-index:3;   /* 슬라이드(1·2) 위에서 darkening 유지 */
  background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,0) 35%,rgba(0,0,0,.10) 100%);
  pointer-events:none;
}
.hero-content{
  position:relative; z-index:4; height:100%;
  display:flex; align-items:center; justify-content:flex-start;
}

/* 원형 배지 */
.hero-badge{
  position:relative; width:300px; height:300px; border-radius:50%;
  background:rgba(255,255,255,.86); backdrop-filter:blur(2px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.18);
  margin-top:40px;
}
.badge-ring{
  position:absolute; inset:14px; border:2px dashed rgba(240,138,29,.55);
  border-radius:50%; animation:spin 26s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.badge-kicker{ font-size:14px; letter-spacing:.32em; color:var(--orange-deep); font-weight:700; }
.badge-title{ font-size:52px; line-height:1; margin:8px 0 4px; color:var(--magenta); font-weight:800; }
.badge-sub{ font-size:18px; letter-spacing:.18em; color:var(--orange); font-weight:700; }
.badge-ko{ margin-top:14px; font-style:normal; font-size:20px; font-weight:700; color:var(--ink); }

.hero-dots{ position:absolute; left:0; right:0; bottom:34px; z-index:5; display:flex; gap:10px; justify-content:center; }
.hero-dots button{
  width:11px; height:11px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.55); transition:.25s;
}
.hero-dots button.active{ background:#fff; width:30px; border-radius:6px; }

.hero-scroll{
  position:absolute; left:50%; bottom:74px; transform:translateX(-50%); z-index:5;
  width:26px; height:42px; border:2px solid rgba(255,255,255,.85); border-radius:14px;
}
.hero-scroll span{
  position:absolute; left:50%; top:8px; width:4px; height:8px; margin-left:-2px;
  background:#fff; border-radius:2px; animation:scrolldot 1.6s infinite;
}
@keyframes scrolldot{ 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ===================== SECTION HEAD ===================== */
.sec-head{ text-align:center; margin:0 auto 46px; }
.sec-kicker{ display:block; color:var(--orange); font-weight:700; letter-spacing:.28em; font-size:13px; }
.sec-title{ font-size:34px; font-weight:800; margin:8px 0 10px; }
.sec-desc{ color:var(--gray); margin:0; font-size:16px; }

/* ===================== FACILITIES ===================== */
.facilities{ padding:96px 0; background:#fff; }
.facility-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.facility-card{
  position:relative; display:block; height:300px; border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); isolation:isolate;
}
.card-img{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  transition:transform .7s var(--ease);
}
.facility-card::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.62) 100%);
  transition:background .4s;
}
.facility-card:hover .card-img{ transform:scale(1.08); }
.facility-card:hover::after{ background:linear-gradient(180deg,rgba(0,0,0,.05) 30%,rgba(0,0,0,.7) 100%); }
.card-body{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  padding:26px 28px;
}
.card-label{
  color:#fff; font-size:24px; font-weight:800;
  text-shadow:0 2px 10px rgba(0,0,0,.4);
}
.card-arrow{
  width:46px; height:46px; flex:0 0 46px; border-radius:50%;
  display:grid; place-items:center; font-size:20px; font-weight:700; color:#fff;
  transition:transform .3s var(--ease), background .3s;
}
.facility-card[data-tone="green"]  .card-arrow{ background:var(--green); }
.facility-card[data-tone="blue"]   .card-arrow{ background:var(--blue); }
.facility-card[data-tone="orange"] .card-arrow{ background:var(--orange); }
.facility-card[data-tone="teal"]   .card-arrow{ background:var(--teal); }
.facility-card:hover .card-arrow{ transform:translateX(6px) scale(1.08); }

/* ===================== INFO ===================== */
.info{ padding:0 0 96px; }
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.info-box{
  border-radius:var(--radius); padding:38px 34px; min-height:260px;
  border:1px solid var(--line);
}
.tone-call{ background:#fce3ea; border-color:#f4c4d3; }
.tone-bank{ background:#e3f1d9; border-color:#c4e4b5; }
.tone-consult{ background:#eee4d3; border-color:#dccbb1; }
.info-icon{ width:54px; height:54px; margin-bottom:14px; }
.info-icon img{ width:100%; height:100%; object-fit:contain; }
.info-box h3{ margin:0 0 14px; font-size:15px; letter-spacing:.18em; color:var(--gray); font-weight:700; }
.info-tel{ display:block; font-size:30px; font-weight:800; color:var(--magenta); margin-bottom:16px; }
.info-hours{ font-size:13.5px; color:var(--gray); }
.info-hours li{ margin-bottom:4px; }
.info-hours span{ display:inline-block; min-width:58px; color:var(--ink); font-weight:700; }
.info-note{ margin:12px 0 0; font-size:12.5px; color:#b08; opacity:.7; letter-spacing:.1em; }

.bank-name{ font-size:18px; font-weight:700; margin:0 0 2px; color:var(--green); }
.bank-num{ font-size:26px; font-weight:800; margin:0 0 10px; letter-spacing:.01em; }
.bank-owner{ margin:0; color:var(--gray); font-size:14.5px; }

.consult-desc{ font-size:17px; font-weight:600; margin:0 0 20px; line-height:1.5; }
.consult-btns{ display:flex; flex-direction:column; gap:10px; }
.consult-btn{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 20px; background:#fff; border:1px solid var(--line); border-radius:12px;
  font-weight:700; font-size:15px; transition:.25s var(--ease);
}
.consult-btn em{ font-style:normal; color:var(--orange); transition:transform .25s; }
.consult-btn:hover{ background:var(--orange); color:#fff; border-color:var(--orange); transform:translateY(-2px); }
.consult-btn:hover em{ color:#fff; transform:translateX(5px); }

/* ===================== FOOTER ===================== */
.site-footer{ background:#fbf7f0; border-top:1px solid var(--line); padding:54px 0 60px; }
.footer-inner{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.footer-brand img{ height:46px; margin-bottom:18px; }
.footer-info{ display:flex; flex-wrap:wrap; gap:6px 18px; color:var(--gray); font-size:13.5px; max-width:640px; }
.footer-copy{ margin:16px 0 0; color:#aaa; font-size:12.5px; letter-spacing:.04em; }
.footer-tagline{
  display:flex; flex-direction:column; gap:12px; align-items:flex-end; text-align:right;
}
.tag-pill{
  font-size:16px; font-weight:800; color:var(--orange-deep);
  padding:11px 26px; background:#fff; border-radius:999px;
  box-shadow:var(--shadow);
}

/* ===================== SUBPAGE (서브) ===================== */
.subpage{ padding-top:128px; }
.subvisual{
  position:relative; height:360px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; text-align:center; color:#fff;
  background-color:#cfe7e0; background-position:center; background-size:cover; background-repeat:no-repeat;
}
.subvisual::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.16) 60%,rgba(0,0,0,.30) 100%);
}
.subvisual .sv-inner{ position:relative; z-index:2; }
.subvisual h1{ font-size:44px; font-weight:800; margin:0 0 12px; text-shadow:0 3px 16px rgba(0,0,0,.45); }
.subvisual .crumb{ font-size:14px; letter-spacing:.02em; }
.subvisual .crumb a{ color:#fff; opacity:.9; }
.subvisual .crumb a:hover{ opacity:1; text-decoration:underline; }
.subvisual .crumb span{ margin:0 9px; opacity:.55; }

.subsec{ padding:80px 0; }
.gallery-placeholder{
  border:2px dashed var(--line); border-radius:var(--radius);
  padding:40px; text-align:center; color:var(--gray); background:#fafafa;
}
.gallery-placeholder strong{ display:block; color:var(--ink); font-size:18px; margin-bottom:8px; }
.gallery-sample{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:26px; }
.gallery-sample .g-item{ height:200px; border-radius:14px; background-size:cover; background-position:center; box-shadow:var(--shadow); }

/* 시공사례 갤러리 (게시판 gallery 스킨 숏코드 임베드) */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
/* 갤러리 상세 토글: 기본은 상세 숨김(목록만). URL ?b{id}_post=N 이면 main.js 가
   body.gallery-detail 부여 → 목록 숨기고 상세 표시. */
.board-detail-wrap{ display:none; }
body.gallery-detail #galleryList{ display:none; }
body.gallery-detail .board-detail-wrap{ display:block; }
.g-card{ display:block; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); background:#fff; transition:transform .3s var(--ease); }
.g-card:hover{ transform:translateY(-6px); }
.g-thumb{ height:220px; background-size:cover; background-position:center; background-color:#eee; }
.g-tit{ display:block; padding:16px 18px; font-weight:700; font-size:15.5px; color:var(--ink); }
.gallery-empty{ text-align:center; color:var(--gray); padding:40px; }

/* brand 그라데이션 서브비주얼 (사진 없을 때 — 추후 AI 사진 교체) */
.subvisual.brand{ background:linear-gradient(120deg,var(--orange) 0%,var(--orange-deep) 55%,#e07e22 100%); }
.subvisual.brand::after{ background:rgba(0,0,0,.05); }

/* ===================== 회사소개 ===================== */
.about-intro{ text-align:center; max-width:820px; margin:0 auto; }
.about-intro h2{ font-size:30px; font-weight:800; margin:0 0 18px; line-height:1.4; }
.about-intro h2 b{ color:var(--orange-deep); }
.about-intro p{ color:var(--gray); font-size:16.5px; margin:0 0 14px; }
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:54px; }
.feature-card{ text-align:center; padding:38px 24px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; transition:.25s var(--ease); }
.feature-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.feature-card .fc-ico{ width:66px; height:66px; margin:0 auto 16px; border-radius:50%; display:grid; place-items:center; font-size:30px; background:var(--orange-soft); }
.feature-card h3{ font-size:19px; font-weight:800; margin:0 0 8px; }
.feature-card p{ color:var(--gray); font-size:14.5px; margin:0; line-height:1.6; }

.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.info-table{ width:100%; border-collapse:collapse; }
.info-table th,.info-table td{ text-align:left; padding:13px 16px; border-bottom:1px solid var(--line); font-size:15px; }
.info-table th{ width:130px; color:var(--orange-deep); font-weight:700; background:#fff8ef; white-space:nowrap; }
.map-card{
  border-radius:var(--radius); box-shadow:var(--shadow); padding:50px 30px; text-align:center;
  background:linear-gradient(135deg,#fff6e9,#fdebd2); border:1px solid #f3e2c8; min-height:300px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.map-card .map-pin{ font-size:46px; margin-bottom:14px; }
.map-card .map-addr{ font-size:17px; font-weight:700; color:var(--ink); margin:0 0 22px; line-height:1.65; }
.map-links{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.map-links a{
  padding:11px 20px; background:#fff; border:1px solid var(--line); border-radius:999px;
  font-weight:700; font-size:14px; color:var(--orange-deep); transition:.2s var(--ease);
}
.map-links a:hover{ background:var(--orange); color:#fff; border-color:var(--orange); transform:translateY(-2px); }

/* ===================== 주문·상담 ===================== */
.contact-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:start; }
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:36px; box-shadow:var(--shadow); }
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-weight:700; font-size:14.5px; margin-bottom:7px; }
.form-row label em{ color:#e0489b; font-style:normal; }
.form-row input,.form-row select,.form-row textarea{
  width:100%; padding:12px 14px; border:1px solid #dcdcdc; border-radius:10px; font-size:15px; font-family:inherit; background:#fff;
}
.form-row textarea{ min-height:130px; resize:vertical; }
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(245,166,35,.16); }
.form-agree{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--gray); }
.form-agree input{ width:auto; }
.btn-submit{ width:100%; margin-top:6px; padding:15px; background:var(--orange); color:#fff; font-weight:800; font-size:16px; border:0; border-radius:12px; cursor:pointer; transition:.2s var(--ease); }
.btn-submit:hover{ background:var(--orange-deep); transform:translateY(-2px); }
.form-note{ font-size:13px; color:var(--gray); margin-top:16px; text-align:center; }
.contact-aside .c-block{ background:#fff8ef; border:1px solid #f3e2c8; border-radius:var(--radius); padding:26px; margin-bottom:18px; }
.contact-aside h4{ margin:0 0 10px; font-size:13px; letter-spacing:.12em; color:var(--gray); }
.contact-aside .c-tel{ font-size:25px; font-weight:800; color:var(--magenta); }
.contact-aside p{ margin:6px 0 0; font-size:14.5px; color:var(--ink); line-height:1.7; }

/* ===================== RESPONSIVE ===================== */
@media (max-width:980px){
  .gnb{ display:none; }
  .nav-toggle{ display:flex; }
  .btn-shop{ right:66px; padding:7px 22px; }   /* 햄버거 자리 확보 */
  .gnb.open{
    display:block; position:absolute; top:100%; left:0; right:0;
    background:var(--orange-deep); padding:8px 0; box-shadow:0 10px 20px rgba(0,0,0,.15);
  }
  .gnb.open ul{ flex-direction:column; gap:0; }
  .gnb.open a{ border-radius:0; padding:14px 24px; }
  .hero-badge{ width:240px; height:240px; }
  .badge-title{ font-size:42px; }
  .footer-tagline{ align-items:flex-start; text-align:left; }
}
@media (max-width:680px){
  .facility-grid{ grid-template-columns:1fr; }
  .info-grid{ grid-template-columns:1fr; }
  .hero{ min-height:540px; }
  .hero-content{ justify-content:center; }
  .hero-badge{ margin-top:0; width:220px; height:220px; }
  .badge-title{ font-size:38px; }
  .sec-title{ font-size:27px; }
  .facilities{ padding:64px 0; }
  .subvisual{ height:260px; }
  .subvisual h1{ font-size:32px; }
  .subsec{ padding:54px 0; }
  .gallery-sample{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; }
  .feature-grid{ grid-template-columns:1fr; }
  .two-col{ grid-template-columns:1fr; gap:32px; }
  .contact-grid{ grid-template-columns:1fr; }
  .about-intro h2{ font-size:24px; }
}

/* ── 견적문의 탭 (contact) ── */
.inq-tabs{ display:flex; gap:10px; max-width:760px; margin:0 auto 28px; }
.inq-tab{ flex:1; padding:14px 10px; font-weight:800; font-size:15.5px; color:var(--gray);
  background:#f5f5f5; border:1px solid var(--line); border-radius:12px; cursor:pointer; transition:.2s var(--ease); }
.inq-tab:hover{ color:var(--ink); }
.inq-tab.is-active{ background:var(--orange); color:#fff; border-color:var(--orange); box-shadow:0 8px 20px rgba(245,166,35,.28); }
.inq-panel{ display:none; }
.inq-panel.is-active{ display:block; animation:inqFade .35s var(--ease); }
@keyframes inqFade{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;} }
.form-ok{ background:#eef9e3; border:1px solid #cdeba8; color:#4a7d1e; font-weight:700;
  padding:14px 16px; border-radius:12px; margin-bottom:18px; }
.form-hint{ display:block; font-size:12.5px; color:var(--gray); margin-top:6px; }
#quoteErr{ color:#c0392b; }
/* 리스트 탭=게시판 임베드: 글쓰기 버튼 숨김(작성은 탭1 폼). board-embed.js=a[data-be-action="write"] */
.inq-list-wrap [data-be-action="write"]{ display:none !important; }
