:root {
  --main-blue: #003366;
  --sub-blue: #0077aa;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img { height: 60px; }
nav { display: flex; gap: 20px; }
nav a {
  text-decoration: none;
  color: var(--main-blue);
  font-weight: 600;
  transition: color 0.3s;
}
nav a:hover { color: var(--sub-blue); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--main-blue);
  cursor: pointer;
}

/* 📌 메인 이미지(main.jpg) 배경 스타일 적용 📌 */
.hero {
    /* 이미지 경로 설정 및 텍스트 가독성을 위한 어두운 오버레이 추가 */
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
  url('../assets/main.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    
    color: white;
    text-align: center;
    padding: 120px 20px; /* 패딩 조정 */
    min-height: 450px; 
    
    /* 내부 요소 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* 배경 이미지 위에 텍스트가 잘 보이도록 그림자 효과 추가 */
.hero h1,
.hero p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 10px 0;
    line-height: 1.4;
}
.hero h1 { font-size: 2.5rem; }
.hero p { font-size: 1.2rem; }
/* ------------------------------------- */

section { padding: 80px 15%; background: #fff; }
section:nth-child(even) { background: #f4f7fa; }
h2 { color: var(--main-blue); margin-bottom: 30px; font-size: 1.8rem; }
.products, .services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
footer {
  background: var(--main-blue);
  color: #fff;
  padding: 40px 15%;
  text-align: center;
  font-size: 0.95rem;
}
footer p { margin: 5px 0; line-height: 1.5; }
@media (max-width: 1024px) {
  header { padding: 15px 30px; }
  section { padding: 60px 10%; }
}
@media (max-width: 768px) {
  header { flex-wrap: wrap; justify-content: space-between; padding: 10px 20px; }
  .menu-toggle { display: block; }
  nav { display: none; flex-direction: column; width: 100%; text-align: center; margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
  nav.active { display: flex; }
  nav a { margin: 10px 0; }
  .hero { padding: 60px 10px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  section { padding: 50px 8%; }
  footer { padding: 30px 8%; }
}
.quote-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.quote-form button {
  padding: 14px;
  background: #003366;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.quote-form button:hover {
  background: #005599;
}
/* =========================
   🔧 펌프 제품군 자동 슬라이드 배너
========================= */
.pump-banner {
  background: #f4f7fa;
  overflow: hidden;
  padding: 30px 0;
}

.pump-track {
  width: 100%;
  overflow: hidden;
}

.pump-list {
  display: flex;
  width: max-content;
  animation: pumpSlide 25s linear infinite;
}

/* 👉 마우스 올리면 슬라이드 정지 */
.pump-banner:hover .pump-list {
  animation-play-state: paused;
}

.pump-list a {
  color: #c62828; /* 🔴 빨간 글자 */
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 25px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pump-list a:hover {
  color: #8e0000;
  text-decoration: underline;
}

/* 자동 슬라이드 */
@keyframes pumpSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .pump-list a {
    font-size: 0.95rem;
    margin: 0 18px;
  }
}
/* ===== 헤더 기본 (PC) ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 햄버거 버튼 숨김 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* 네비 메뉴 PC에서는 항상 보이기 */
header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

@media (max-width: 768px) {

  /* 햄버거 버튼 표시 */
  .menu-toggle {
    display: block;
  }

  /* 기본 메뉴 숨김 */
  header nav {
    display: none;
    position: absolute;
    top: 100%;            /* header 바로 아래 */
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    border-top: 1px solid #ddd;
    z-index: 1000;
  }

  /* 햄버거 클릭 시 메뉴 열기 */
  header nav.active {
    display: flex;
  }

  header nav a {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }
}
/* ===== 자료실 필터 ===== */
.library-filter {
  text-align: center;
  margin-bottom: 20px;
}

.library-filter button {
  margin: 0 5px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.library-filter button.active {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}

/* ===== 이미지 갤러리 ===== */
.library-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.library-gallery .item {
  text-align: center;
  cursor: pointer;
}

.library-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 768px) {
  .library-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 라이트박스 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

