/* 기본 레이아웃 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height:1.6;
    padding-top:80px; /* 헤더 높이만큼 여백 확보 */
}

/* 공통 컨테이너: 중앙 정렬 + 최대 폭 제한 */
.container {
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* 헤더 항상 상단 고정 */
.header {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    background:#2c3e50;
    color: #fff;
    padding:5px 0;
    z-index:1000;
}

/* 헤더 내부 레이아웃 */
.header .container {
    display:flex;
    justify-content:space-between; /* 좌측 로고, 우측 메뉴 */
    align-items:center;
}

/* 로고 */
.logo img {
    border-radius: 12px;
    max-height:80px;
    width:auto;
    display:flex;
    border: #2c3e50 2px solid;
    float: left;
}

/* 네비게이션 */
.nav ul {
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    gap:20px;
    flex-wrap:wrap; /* 화면 줄어들면 자동 줄바꿈 */
}
.nav a {
    text-decoration:none;
    color:#fff;
    font-weight:bold;
}

/* Hero 영역 */
.hero {
    position: relative;
    background: url('/static/front/img/hero_bg.jpeg') no-repeat center center fixed;
    background-size: cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);  /* 숫자 높일수록 더 희미 */
}

.hero h2 {
    font-size:28px;
    font-weight: bold;
    margin-bottom:20px;
}
.hero p {
    font-size:18px;
    font-weight: bold;
}

.hero h1, .hero h2, .hero p {
    color: #1e293b;   /* 어두운 글자 추천 */
    position: relative;
    z-index: 1;    
}

/* 카드형 레이아웃 */
.grid-2, .grid-3, .grid-4 {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap:30px;
    padding: 40px 0;
}

/*
.grid-2 {grid-template-columns:repeat(2,1fr);}
.grid-3 {grid-template-columns:repeat(3,1fr);}
.grid-4 {grid-template-columns:repeat(4,1fr);} */

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: fill;
    display: block;
}

/* 문의하기 박스 */
.contact-box {
    background:#f4f4f4;
    padding:20px;
    border-radius:8px;
    text-align:left;    
}

/* 푸터 */
.footer {
    background:#2c3e50;
    color:#fff;
    padding:20px;
    display: flex;
    justify-content: space-evenly; /* 좌우간격 조정 */
    align-items: center;
}

/* 반응형 미디어 쿼리 */
@media (max-width:768px) {
    .header .container {
        flex-direction:column;
        align-items:flex-start;
    }

    #top {
        display: none;
    }

    .logo img {
        display:none;
    }
    .nav ul {
        flex-direction:column;
        gap:10px;
        width:100%;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns:1fr;
    }
}