@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');

* {margin:0; border: 0; padding: 0; box-sizing: border-box;}
ul, li {list-style: none;}
a {text-decoration: none; color: #000;}

body, html {
	/*font-family: 'Variable';*/
	overflow-x: hidden;
	scroll-behavior: smooth;
}
.cf:after {content: ''; display: block; clear: both;}
#wrap {width: 100%; margin: 0 auto;}

/* 헤더 - 메뉴  */
#header {
	position: fixed;
	z-index: 9998;
    top: 0;
	width: 100%;
	height: 100px;
	background: #fff;
	border-bottom: 1px solid #ccc;
    overflow: visible !important;
}
#header > header {
	width: 1400px;
	margin: 0 auto;
	padding-top: 30px;
}
#header > header > div.logo  {
	float: left;
	width: 50px;
}
#header > header > nav  {
	float: right;
	width: 50%;
}
#header > header > nav > ul  {
	display: flex;
	justify-content: space-between;
}
#header > header > nav > ul > li  {
	flex: 1;
	text-align: center;
	margin-top: 20px;
}
#header > header > nav > ul > li > a  {
	font-size: 18px;
	font-weight: 500;
}
#header > header > nav > ul > li:last-child {
    margin-top: 15px;
    background: #F8CC6D;
    border-radius: 30px;
}
#header > header > nav > ul > li:last-child > a {
	font-size: 20px;	
}
/* 서브메뉴 */
#header > header > nav > ul > li {
    position: relative;
}
#header > header > nav > ul > li > ul.sub-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    border: 1px solid #eee;
    padding: 10px 0;
    overflow: hidden;
    z-index: 9999999;
}
#header > header > nav > ul > li > ul > li > a {
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 15px;
    color: #666;
    transition: 0.2s;
    
}
#header > header > nav > ul > li > ul > li > a:hover {
    background-color: #FDF7E3; /* 연한 노란 배경 */
    color: #333;
    font-weight: bold;
}

/* 퀵바 - 전화/견적 문의 */
#quickBar {
    position: fixed;
	z-index: 9999;
    width: 100%; 
    height: 100px;
    background: transparent; 
    bottom: -150px;
    left: 0;
    transition: bottom 0.4s ease-in-out;
}
#quickBar.on {
    bottom: 2%; 
}
#quickBar > div {
    width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
#quickBar > div > a {
    display: block;
    width: 400px;
    border-radius: 15px;
    padding: 18px 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #eee;
}
#quickBar > div > a.quickRQ {
    background: #F8CC6D;
}
#quickBar > div > a.quickTel {
    background: #3A9CED;
    margin-left: 10px;
}
#quickBar > div > a > img {
    height: 70px;
    float: right;
}
#quickBar > div > a > span {
    display: block;
    float: left;
    width: 75%;
}
#quickBar > div > a > span > span {
    display: block;
}
#quickBar > div > a > span > span:first-child {
    font-size: 18px;
    line-height: 18px;
    padding-top: 5px;    
}
#quickBar > div > a > span > span:last-child {
    font-size: 28px;
    font-weight: 700;
}



/* 푸터 - 회사정보 */
#footer {
    width: 100%; 
    height: 420px; 
    background: #000;
    color: #FFF;
    font-size: 16px;
}
#footer > footer {
    width: 1400px;
    margin: 0 auto;
}
#footer > footer > div.info1 {
    width: 100%;
    margin: 0 auto;
    height: 45px;
    border-bottom: 1px solid #858585;
    padding: 10px 0px;
}
#footer > footer > div.info1 > a {
    color: #fff;
    font-size: 14px;
    padding: 0px 10px;
}
#footer > footer > div.info2-1, 
#footer > footer > div.info2-2 {
    float: left;
    width: 50%;
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}
#footer > footer > div.info2-1 > p > span, 
#footer > footer > div.info2-2 > p > span {
    display: block;
}
#footer > footer > div.info2-1 > p { 
    width: 50%;
}
#footer > footer > div.info2-2 > p > span {
    font-size: 14px;
}


/* =========================================
   [모바일 반응형 스타일]
   화면 너비가 1024px 이하일 때 적용
   ========================================= */
@media screen and (max-width: 1024px) {

    /* 1. 전체 레이아웃 (고정폭 해제) */
    #header > header,
    #footer > footer {
        width: 100%; /* 1400px 고정 해제 */
        padding: 0 20px; /* 좌우 여백 */
        box-sizing: border-box;
    }
    #quickBar > div {
        width: 100%; /* 1400px 고정 해제 */
        padding: 0 10px; /* 좌우 여백 */
        box-sizing: border-box;
    }

    /* 2. 헤더 - 로고와 메뉴 정렬 변경 */
    #header {
        height: auto; /* 높이 자동 조절 */
        padding-bottom: 10px;
    }
    
    #header > header {
        padding-top: 15px;
    }

    /* 로고 가운데 정렬 */
    #header > header > div.logo {
        float: none;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    #header > header > div.logo img {
        height: 40px; /* 로고 크기 조절 */
    }

    /* 네비게이션 (메뉴) */
    #header > header > nav {
        float: none;
        width: 100%;
    }
    
    #header > header > nav > ul {
        justify-content: center; /* 가운데 정렬 */
        flex-wrap: wrap; /* 줄바꿈 허용 */
        gap: 5px; /* 메뉴 사이 간격 */
    }

    #header > header > nav > ul > li {
        margin-top: 5px;
        flex: auto; /* 너비 자동 */
        padding: 0 5px;
    }

    #header > header > nav > ul > li > a {
        font-size: 14px; /* 글자 크기 축소 */
    }

    /* 마지막 강조 버튼(견적문의) 스타일 조정 */
    #header > header > nav > ul > li:last-child {
        margin-top: 5px;
        padding: 2px 10px;
    }
    #header > header > nav > ul > li:last-child > a {
        font-size: 14px;
    }

    /* 서브메뉴 (모바일에서는 일단 숨김 처리하거나 클릭 방식으로 변경 필요) */
    /* 호버가 없는 모바일 특성상 레이아웃이 깨질 수 있어 위치 조정 */
    #header > header > nav > ul > li > ul.sub-menu {
        width: 120px;
        left: 50%;
    }


    /* 3. 퀵바 (하단 고정 버튼) */
    #quickBar {
        height: auto;
        padding: 10px 0;
        /* 모바일에서는 항상 보이게 하거나 위치 조정 */
        bottom: 0 !important; 
        background: rgba(255,255,255,0.9); /* 배경 추가 */
        width: 100%;
    }

    #quickBar > div {
        flex-direction: row; /* 가로 정렬 유지 */
        gap: 10px;
    }

    #quickBar > div > a {
        width: 50%; /* 반반 차지 */
        padding: 0px 0px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 퀵바 아이콘 숨김 (공간 확보) 또는 크기 축소 */
    #quickBar > div > a > img {
        height: 42px;
        margin-left: 0px;
    }

    #quickBar > div > a > span {
        width: auto;
        float: none;
        text-align: left;
        padding: 0px 5px;
    }

    #quickBar > div > a > span > span:first-child {
        display: none;
    }
    #quickBar > div > a > span > span:last-child {
        font-size: 18px;
    }
    #quickBar > div > a > span > span:last-child > span {
        display: none;
    }
    
    #quickBar > div > a.quickTel {
        margin-left: 0;
    }


    /* 4. 푸터 (하단 정보) */
    #footer {
        height: auto; /* 고정 높이 해제 */
        padding: 10px 0 120px; /* 퀵바 가리지 않게 하단 여백 추가 */
    }

    #footer > footer > div.info1 {
        height: auto;
        text-align: center;
        margin-bottom: 20px;
        padding: 0px 0px 10px 0px;
    }
    
    #footer > footer > div.info1 > a {
        display: inline-block;
        margin: 0px 0;
    }

    /* 푸터 정보 세로로 쌓기 */
    #footer > footer > div.info2-1, 
    #footer > footer > div.info2-2 {
        float: none;
        width: 100%;
        display: block;
        margin-top: 20px;
        text-align: center; /* 가운데 정렬 */
    }
    
    #footer > footer > div.info2-1 > p {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* 모바일에서 줄바꿈 처리 */
    #footer > footer > div.info2-2 {
        flex-direction: column;
    }
}
