/* styles.css */

body {
    font-family: 'Pretendard', Arial, sans-serif;
    background-color: #f8f9fa;
    padding-top: 66px; /* 네비게이션 바 실제 높이로 수정 */
}

h1, h2 {
  color: #333;
}
/* 
footer {
  background-color: #0d3c61;
  color: #ecf0f1;
  font-size: 14px;
  padding: 20px;
  width: 100%;
}

footer p {
  margin: 0;
  line-height: 1.6;
}
 */
 /* 푸터 전체 영역 */
.site-footer {
    background-color: #10263c;
    color: #b8c3d1;
    padding: 50px 0 30px;
    font-size: 15px;
    margin-top: auto;
}

/* 상단 3단 레이아웃 */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(184, 195, 209, 0.18);
    margin-bottom: 10px;
}

.footer-col h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 1열: 브랜드 */
.brand-col {
    flex: 1.5;
    min-width: 280px;
}
.footer-logo {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    display: inline-block;
}
.slogan {
    line-height: 1.7;
    color: #d3dbe5;
}

/* 2열: 링크 */
.links-col {
    flex: 1;
    min-width: 150px;
}
.links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.links-col li {
    margin-bottom: 12px;
}
.links-col a {
    color: #b8c3d1;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.links-col a:hover {
    color: #f4c15d;
    transform: translateX(5px);
}

/* 3열: 연락처 */
.contact-col {
    flex: 1.2;
    min-width: 300px;
}
.contact-details p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.contact-details strong {
    color: #fff;
    margin-right: 12px;
    display: inline-block;
    min-width: 60px;
    font-weight: 600;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.12);
    padding: 2px 0;
    text-align: center;
    border-radius: 4px;
}

/* 이메일 줄바꿈 방지 */
.email-line {
    white-space: nowrap;
}

/* 하단 저작권 영역 */
.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #8ea0b5;
    padding-top: 10px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 30px;
    }
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    .brand-col, .links-col, .contact-col {
        min-width: 100%;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .brand-col, .links-col, .contact-col {
        min-width: 100%;
    }
    
    .contact-details {
        font-size: 13px;
    }
}

.card img {
  object-fit: cover;
  height: 200px;
}

.scrollable-image {
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
}

.main-visual {
    height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
}

.main-visual-media,
.page-header-media {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.main-visual-media img,
.page-header-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.visual-overlay {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.nav-link {
    color: #333;
    font-weight: bold;
    position: relative;
}

/* 기본 네비게이션 호버 언더라인 효과 (드롭다운 토글에는 적용하지 않음) */
.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #f90;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.nav-link:not(.dropdown-toggle):hover {
    color: #f90;
}

.nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        display: flex;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.8rem 0;  /* 모바일에서 터치 영역 확보 */
    }
    
    .scrollable-image {
        max-height: 300px;
    }
}

@media (max-width: 1024px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        display: flex;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.8rem 0;  /* 터치 영역 확보 */
    }
}

.menu-button-grid {
    max-width: 960px;
    margin: 0 auto;
}

.menu-button {
    width: 100%;
    min-height: 150px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d4f7c 0%, #14324c 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 18px 35px rgba(16, 38, 60, 0.14);
}

.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #255d8f 0%, #173854 100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.menu-button:hover {
    color: white;
    transform: translateY(-6px);
    box-shadow: 0 22px 38px rgba(16, 38, 60, 0.22);
}

.menu-button:hover::before {
    left: 0;
}

.menu-button i {
    transition: all 0.3s ease;
}

.menu-button-label {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.menu-button:hover i {
    transform: scale(1.2);
}

/* 제품 카테고리 탭 (스텐/샷시) - 푸터 컬러와 통일 */
.category-tabs .nav-link {
    color: #111827;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.category-tabs .nav-link.active {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.category-tabs .nav-link:hover {
    color: #111827;
}

@media (max-width: 768px) {
    .main-visual {
        height: 400px;
    }
}

/* 화면에서만 숨기고, 구조적으로는 유지해서 SEO 개선 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

/* 서브 페이지 헤더 공통 스타일 */
.page-header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* 배경 이미지 위에 깔리는 검은색 반투명 막 (가독성 확보 필수) */
.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 투명도 50% 검정 */
    z-index: 1;
}

/* 텍스트 컨텐츠 (오버레이보다 위에 있어야 함) */
.page-header .header-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* 영문 소제목 (장식용) */
.page-header .sub-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

/* 메인 타이틀 (회사소개, 제품소개 등) */
.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
}

/* 설명 문구 */
.page-header .desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    word-break: keep-all; /* 한글 단어 끊김 방지 */
}

/* 모바일 반응형 (높이 및 글자 크기 축소) */
@media (max-width: 768px) {
    .page-header {
        height: 280px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header .desc {
        font-size: 15px;
    }
    
    .page-header .desc br {
        display: none; /* 모바일에서는 줄바꿈 무시하고 한 줄/자동 줄바꿈 처리 */
    }
}

/* 제품소개 드롭다운 (네비게이션) - 푸터 계열 색상 */
.navbar .dropdown-menu {
    background-color: #111827;
    border: none;
}

.navbar .dropdown-item {
    color: #a0aec0;
}

.navbar .dropdown-item:hover {
    background-color: #1f2937;
    color: #ffffff;
}

/* 데스크탑에서 호버 시 드롭다운 열림 */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
