/* ===== YK폴딩도어 — 디자인 시스템 ===== */
:root{
	--ink:#14171a;
	--charcoal:#1c2126;
	--charcoal-2:#2a2f36;
	--cream:#f7f4ee;
	--sand:#efe7d8;
	--gold:#b08d4c;
	--gold-dark:#8a6a34;
	--text:#2b2e33;
	--text-muted:#6c7178;
	--white:#fff;
	--radius:14px;
	--container:1240px;
	--font-serif:'Noto Serif KR',serif;
	--font-sans:'Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-sans);color:var(--text);background:var(--cream);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--font-serif);font-weight:700;line-height:1.3;margin:0 0 .5em}
ul{margin:0;padding:0;list-style:none}
table{border-collapse:collapse}

.fd-eyebrow{font-size:.85rem;letter-spacing:.14em;color:var(--gold-dark);font-weight:700;margin:0 0 .9rem;text-transform:uppercase}
.fd-section-head{max-width:760px;margin:0 auto 3.2rem;text-align:center}
.fd-section-head h2{font-size:clamp(1.7rem,3vw,2.4rem)}

/* ---------- 버튼 ---------- */
.fd-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.85rem 1.6rem;border-radius:999px;font-weight:700;font-size:.95rem;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.fd-btn--call{background:var(--gold);color:var(--ink)}
.fd-btn--call:hover{background:var(--gold-dark);transform:translateY(-2px)}
.fd-btn--ghost{border:1.5px solid rgba(255,255,255,.7);color:#fff}
.fd-btn--ghost:hover{background:rgba(255,255,255,.12)}
.fd-btn--ghost-dark{border:1.5px solid rgba(20,23,26,.35);color:var(--ink)}
.fd-btn--lg{padding:1.05rem 2.1rem;font-size:1.02rem}

/* ---------- 헤더 ---------- */
.fd-header{position:sticky;top:0;z-index:50;background:rgba(20,23,26,.92);backdrop-filter:blur(8px)}
.fd-header__inner{max-width:var(--container);margin:0 auto;display:flex;align-items:center;gap:2rem;padding:.9rem 1.5rem}
.fd-logo{display:flex;align-items:baseline;gap:.4rem;color:#fff;flex-shrink:0}
.fd-logo__mark{background:var(--gold);color:var(--ink);font-family:var(--font-serif);font-weight:700;padding:.15rem .5rem;border-radius:6px;font-size:1rem}
.fd-logo__text{font-family:var(--font-serif);font-size:1.15rem;font-weight:700}
.fd-nav{display:flex;gap:1.8rem;margin-left:1rem;flex:1}
.fd-nav a{color:#d8d8d6;font-size:.95rem;font-weight:500}
.fd-nav a:hover{color:var(--gold)}
.fd-header__cta{flex-shrink:0}
.fd-header__cta .fd-btn__label{display:none}
.fd-nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:.5rem;cursor:pointer}
.fd-nav-toggle span{width:22px;height:2px;background:#fff}
.fd-nav--mobile{display:none;flex-direction:column;gap:0;background:var(--charcoal);padding:0 1.5rem}
.fd-nav--mobile a{padding:1rem 0;border-top:1px solid rgba(255,255,255,.08);color:#e6e6e4}
.fd-nav--mobile .fd-btn{margin:1rem 0}

/* ---------- 히어로 ---------- */
.fd-hero{position:relative;min-height:88vh;display:flex;align-items:flex-end;overflow:hidden}
.fd-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fd-hero__scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,23,26,.15) 0%,rgba(20,23,26,.55) 65%,rgba(20,23,26,.92) 100%)}
.fd-hero__content{position:relative;color:#fff;max-width:var(--container);margin:0 auto;padding:5rem 1.5rem 6rem;width:100%}
.fd-hero h1{font-size:clamp(2.3rem,5vw,3.6rem);color:#fff;max-width:14ch}
.fd-hero__answer{max-width:640px;font-size:1.08rem;color:#eee9df;margin-bottom:2rem}
.fd-hero__cta{display:flex;flex-wrap:wrap;gap:1rem}

/* ---------- 통계 밴드 ---------- */
.fd-stats{max-width:var(--container);margin:-64px auto 0;position:relative;z-index:2;padding:0 1.5rem}
.fd-stats__inner{background:#fff;border-radius:var(--radius);box-shadow:0 20px 50px rgba(20,23,26,.15);display:grid;grid-template-columns:repeat(4,1fr)}
.fd-stat{padding:2rem 1rem;text-align:center;border-right:1px solid #eee2}
.fd-stat:last-child{border-right:0}
.fd-stat__num{display:block;font-family:var(--font-serif);font-size:2.1rem;font-weight:700;color:var(--gold-dark)}
.fd-stat__num em{font-style:normal;font-size:1.1rem}
.fd-stat__label{display:block;font-size:.88rem;color:var(--text-muted);margin-top:.3rem}

/* ---------- 공통 섹션 ---------- */
section{padding:6.5rem 1.5rem}
.fd-intro,.fd-process,.fd-types,.fd-cost,.fd-cases,.fd-faq{max-width:var(--container);margin:0 auto}

/* ---------- 인트로 (2단) ---------- */
.fd-intro{display:grid;grid-template-columns:.85fr 1.15fr;gap:4rem;align-items:center}
.fd-intro__media img{border-radius:var(--radius);box-shadow:0 24px 50px rgba(20,23,26,.18)}
.fd-intro h2{font-size:clamp(1.8rem,3vw,2.4rem)}
.fd-check-list{margin-top:1.5rem;display:flex;flex-direction:column;gap:.7rem}
.fd-check-list li{position:relative;padding-left:1.9rem;color:var(--text)}
.fd-check-list li::before{content:"✓";position:absolute;left:0;top:0;color:var(--gold-dark);font-weight:700;background:var(--sand);width:1.3rem;height:1.3rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem}

/* ---------- 프로세스 ---------- */
.fd-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem}
.fd-steps li{border-top:3px solid var(--gold);padding-top:1.4rem}
.fd-steps__num{font-family:var(--font-serif);font-size:1.6rem;color:var(--gold-dark);font-weight:700}
.fd-steps h3{font-size:1.1rem;margin-top:.6rem}
.fd-steps p{color:var(--text-muted);font-size:.94rem;margin:0}

/* ---------- 종류 (지그재그) ---------- */
.fd-type-row{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center;margin-bottom:4.5rem}
.fd-type-row:last-child{margin-bottom:0}
.fd-type-row--reverse{direction:rtl}
.fd-type-row--reverse > *{direction:ltr}
.fd-type-row__media img{border-radius:var(--radius);box-shadow:0 24px 50px rgba(20,23,26,.18)}
.fd-type-row__text h3{font-size:1.5rem}
.fd-type-row__text p{color:var(--text-muted)}
.fd-type-row__tag{display:inline-block;margin-top:1rem;padding:.4rem 1rem;background:var(--sand);color:var(--gold-dark);border-radius:999px;font-size:.85rem;font-weight:700}

/* ---------- 비용 테이블 ---------- */
.fd-cost__lede{color:var(--text-muted);max-width:620px;margin:0 auto}
.fd-table{width:100%;border-radius:var(--radius);overflow:hidden;box-shadow:0 16px 40px rgba(20,23,26,.1);background:#fff}
.fd-table th,.fd-table td{padding:1rem 1.4rem;text-align:left;font-size:.96rem}
.fd-table thead th{background:var(--charcoal);color:var(--gold);font-weight:700}
.fd-table tbody tr:nth-child(even){background:#faf7f1}
.fd-table td:first-child{font-weight:700}
.fd-cost__note{color:var(--text-muted);font-size:.85rem;margin-top:1rem}

/* ---------- 시공사례 그리드 ---------- */
.fd-case-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:200px;gap:1.2rem}
.fd-case{margin:0;position:relative;border-radius:var(--radius);overflow:hidden}
.fd-case--lg{grid-column:span 2;grid-row:span 2}
.fd-case img{width:100%;height:100%;object-fit:cover}
.fd-case figcaption{position:absolute;left:0;right:0;bottom:0;padding:1rem 1.2rem;background:linear-gradient(0deg,rgba(20,23,26,.85),transparent);color:#fff;font-size:.9rem;font-weight:500}

/* ---------- FAQ ---------- */
.fd-faq__list{display:flex;flex-direction:column;gap:.8rem}
.fd-faq__item{background:#fff;border-radius:12px;padding:1.1rem 1.4rem;box-shadow:0 6px 18px rgba(20,23,26,.06)}
.fd-faq__item summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.fd-faq__item summary::-webkit-details-marker{display:none}
.fd-faq__item summary h3{font-size:1.02rem;margin:0;font-family:var(--font-sans);font-weight:700}
.fd-faq__item summary::after{content:"+";font-size:1.4rem;color:var(--gold-dark);flex-shrink:0}
.fd-faq__item[open] summary::after{content:"–"}
.fd-faq__item p{margin:.9rem 0 0;color:var(--text-muted)}

/* ---------- CTA 배너 ---------- */
.fd-cta{position:relative;padding:0;min-height:52vh;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center}
.fd-cta__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fd-cta__scrim{position:absolute;inset:0;background:rgba(20,23,26,.72)}
.fd-cta__content{position:relative;color:#fff;max-width:640px;padding:2rem 1.5rem}
.fd-cta h2{color:#fff;font-size:clamp(1.7rem,3.4vw,2.4rem)}
.fd-cta p{color:#e7e2d6;margin-bottom:2rem}

/* ---------- 푸터 ---------- */
.fd-footer{background:var(--ink);color:#cfcfcc;padding:3.5rem 1.5rem 5rem}
.fd-footer__inner{max-width:var(--container);margin:0 auto;display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between;align-items:center}
.fd-footer .fd-logo__text,.fd-footer .fd-logo__mark{color:#fff}
.fd-footer__brand p{margin:.4rem 0 0;font-size:.9rem;color:#9a9a96}
.fd-footer__nap p{margin:.25rem 0;font-size:.86rem}
.fd-footer__nap a{color:var(--gold)}
.fd-footer__note{color:#7c7c78}

/* ---------- 고정 전화 버튼(모바일) ---------- */
.fd-fab{display:none;position:fixed;right:1.1rem;bottom:1.1rem;z-index:60;background:var(--gold);color:var(--ink);border-radius:999px;padding:.9rem 1.2rem;align-items:center;gap:.5rem;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.3)}

/* ---------- 기본 페이지(index) ---------- */
.fd-basic{max-width:800px;margin:4rem auto;padding:0 1.5rem}

/* ===================== 반응형 ===================== */
@media (max-width:1024px){
	.fd-intro{grid-template-columns:1fr}
	.fd-steps{grid-template-columns:repeat(2,1fr)}
	.fd-case-grid{grid-template-columns:repeat(2,1fr)}
	.fd-case--lg{grid-column:span 2}
}
@media (max-width:900px){
	.fd-nav,.fd-header__cta{display:none}
	.fd-nav-toggle{display:flex}
	.fd-nav--mobile.is-open{display:flex}
}
@media (max-width:760px){
	section{padding:4rem 1.2rem}
	.fd-stats__inner{grid-template-columns:repeat(2,1fr)}
	.fd-stat{border-bottom:1px solid #eee2}
	.fd-type-row,.fd-type-row--reverse{grid-template-columns:1fr;direction:ltr}
	.fd-case-grid{grid-template-columns:1fr;grid-auto-rows:240px}
	.fd-case--lg{grid-column:span 1;grid-row:span 1}
	.fd-fab{display:flex}
	.fd-footer__inner{flex-direction:column;align-items:flex-start;text-align:left}
}
@media (max-width:480px){
	.fd-steps{grid-template-columns:1fr}
	.fd-hero__cta{flex-direction:column;align-items:stretch}
}
