/* 기본 폰트 & 색상 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --main-green: #2e7d32;
  --accent-green: #43a047;
  --light-bg: #f5f5f5;
  --text-dark: #222;
  --text-light: #f9f9f9;
  --border-color: #e0e0e0;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 네비게이션 */
.navbar.is-fixed-top {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;  /* 완전 투명 */
  backdrop-filter: none !important;     /* 흐림 효과 제거 */
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;          /* 그림자 제거 */
  border: none !important;
  z-index: 100;
}


/* 네비게이션 링크 */
.navbar a.navbar-item,
.navbar .navbar-link {
  color: #fff !important;
  background: none !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* hover, focus, active 시에도 동일 */
.navbar a.navbar-item:hover,
.navbar a.navbar-item:focus,
.navbar a.navbar-item.is-active,
.navbar .navbar-link:hover,
.navbar .navbar-link:focus,
.navbar .navbar-link.is-active {
  color: #fff !important;
  background: none !important;
  box-shadow: none !important;
}

/* 드롭다운 메뉴 동일 처리 */
.navbar-dropdown a.navbar-item:hover {
  color: #fff !important;
  background: none !important;
}

/* 모바일 메뉴 배경 및 텍스트 조정 */
@media screen and (max-width: 768px) {
  /* 메뉴가 열렸을 때 */
  .navbar-menu.is-active {
    background-color: rgba(0, 0, 0, 0.85); /* 투명 검정 */
    padding: 1rem 2rem;
  }

  .navbar-menu.is-active .navbar-item {
    color: #fff !important;  /* 흰색 글씨 */
  }

  .navbar-menu.is-active .navbar-item:hover {
    color: #ffcd4a !important; /* hover 시 강조 색상 */
  }

  /* 햄버거 버튼 색상 */
  .navbar-burger {
    color: #fff !important;
  }

  /* 햄버거 클릭 시 배경 아이콘 색상 변경 */
  .navbar-burger.is-active span {
    background-color: #fff !important;
  }
}


/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  color: white;
  overflow: hidden;
}

.hero-body {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.hero-body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Swiper */
.swiper.mySwiper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.swiper-slide {
  background-position: center center; /* 중앙 기준 */
  background-size: cover;            /* 화면 꽉 채움 */
  width: 100%;
  height: 100vh;                     /* 뷰포트 높이 */
}


/* Swiper dots 제거 */
.swiper-pagination {
  display: none !important;
}

/* ✅ 커스텀 인디케이터 */
.header-content-slider {
  position: absolute;
  bottom: 6%;       /* 🔹 높이의 15% 위쪽 (px 대신 %) */
  left: 6%;          /* 🔹 너비의 8% 위치 */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5vw;        /* 🔹 가로 간격도 반응형 단위로 */
  z-index: 5;
  pointer-events: none;
}


.header-slide-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* 왼쪽 정렬 */
  gap: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: auto;      /* 개별 클릭 가능 */
}

.header-slide-btn.active {
  opacity: 1;
}

.header-content-slider-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.progress-bar {
  width: 120px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 6s linear;
}


/* Hero 텍스트 */
.hero-body .container {
  position: relative;
  z-index: 4;
  text-align: center;
}

.hero-body .title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-body .subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: #e8f5e9;
  margin-top: 1rem;
}

.hero-body .button {
  background-color: var(--accent-green);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.9rem 2rem;
  margin-top: 2rem;
  transition: 0.3s;
}

.hero-body .button:hover {
  background-color: #388e3c;
  transform: translateY(-2px);
}

/* Section 기본 스타일 */
.section {
  padding: 6rem 1.5rem;
}

.section .title {
  color: var(--main-green);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section .subtitle {
  color: #555;
  line-height: 1.7;
}

/* About */
#about img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

#about img:hover {
  transform: scale(1.03);
}

/* Product */
#product {
  background-color: var(--light-bg);
}

#product img {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#product img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

#product h3 {
  color: var(--main-green);
  margin-top: 1rem;
}

/* Contact 버튼 */
#contact .button {
  background-color: var(--main-green);
  border-radius: 30px;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border: none;
  transition: 0.3s;
}

#contact .button:hover {
  background-color: var(--accent-green);
  transform: translateY(-3px);
}

/* Footer */
/* Footer */
footer {
  background: linear-gradient(
    180deg, 
    #FFCD4A 0%,        /* 기준 색상 시작 */
    #F2B233 25%,       /* #FFCD4A보다 살짝 어둡게 */
    #E6991C 50%,       /* 조금 더 어둡게 */
    #CC7F16 75%,       /* 더 깊은 톤 */
    #B3660F 100%       /* 완전히 어두운 톤 */
  );
  color: #f9f9f9;
  padding: 2.5rem 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
}

footer a {
  color: #45340c;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

/* 반응형 */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .header-content-slider {
    left: 40px;
    bottom: 30px;
    gap: 10px;
  }

  .progress-bar {
    width: 90px;
    height: 4px;
  }

  .header-content-slider-title {
    font-size: 1.1rem;
  }
}

/* Contact Section */
#contact {
  background-color: #f8f8f8;
  padding: 6rem 1.5rem;
}

/* 🔹 columns 전체를 같은 높이로 맞춤 */
#contact .columns {
  display: flex;
  align-items: stretch; /* ✅ 좌우 컬럼 동일 높이 */
}

/* 제목 */
#contact .title {
  color: #F2B233;
  font-weight: 700;
}

/* 🔹 왼쪽 안내 영역 */
#contact .contact-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ✅ 위쪽 정렬 */
  align-items: flex-start;
  padding-right: 2rem;
  height: 100%; /* ✅ 오른쪽 폼과 동일 높이 */
  box-sizing: border-box;
}

#contact .contact-info .subtitle {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
  width: 100%;
}

/* 🔹 왼쪽 이미지 */
#contact .contact-image {
  width: 100%;
  height: 100%; /* ✅ 남은 공간 꽉 채움 */
  min-height: 280px;
  flex-grow: 1; /* ✅ 폼 높이에 맞춰 늘어남 */
  border-radius: 12px;
  background-image: url('{{ "images/main1.jpg" | absURL }}');
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* 🔹 오른쪽 폼 영역 */
#contact form {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#contact .field.is-flex {
  display: flex;
  gap: 1rem;
}

#contact .field.is-flex .control {
  flex: 1;
}

#contact .input,
#contact .textarea {
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

#contact .textarea {
  min-height: 120px;
}

#contact .button.is-primary {
  background-color: #F2B233;
  border-radius: 30px;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border: none;
  transition: all 0.2s ease;
}

#contact .button.is-primary:hover {
  background-color: #e9a928;
  transform: translateY(-3px);
}

/* 🔹 반응형 (모바일) */
@media screen and (max-width: 768px) {
  #contact .columns {
    flex-direction: column; /* ✅ 위아래로 쌓기 */
  }

  #contact .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  #contact .contact-image {
    height: 220px;
    min-height: 220px;
  }

  #contact form {
    padding: 1.5rem;
  }

  #contact .field.is-flex {
    flex-direction: column;
  }
}


/* ✅ 개인정보 모달 커스텀 디자인 */
.custom-modal {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  font-family: 'Noto Sans KR', sans-serif;
}

.custom-modal .modal-header {
  background-color: #F2B233;
  color: #fff;
  border-bottom: none;
  padding: 1.2rem 1.5rem;
}

.custom-modal .modal-header h5 {
  font-weight: 700;
  font-size: 1.2rem;
}

.custom-modal .modal-body {
  padding: 2rem 2rem 1.5rem;
  color: #333;
  line-height: 1.7;
  max-height: 65vh; /* ✅ 내용 많을 경우 스크롤 */
  overflow-y: auto;
}

.custom-modal .modal-body strong {
  color: #F2B233;
}

.custom-modal .modal-body ol {
  margin-left: 1rem;
  margin-top: 1rem;
}

.custom-modal .modal-body ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
  list-style-type: disc;
}

.custom-modal .modal-footer {
  border-top: 1px solid #e0e0e0;
  padding: 1rem 1.5rem;
  text-align: right;
  background: #fafafa;
}

.custom-modal .button.is-primary {
  background-color: #F2B233;
  border-radius: 30px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

.custom-modal .button.is-primary:hover {
  background-color: #e9a928;
  transform: translateY(-2px);
}

.btn-close {
  filter: invert(1);
}

/* ✅ Bulma / Bootstrap z-index 충돌 방지 */
.modal-backdrop.show {
  z-index: 1040 !important;
}

.modal.fade.show {
  z-index: 1050 !important;
}

/* ✅ 혹시 Bulma의 .modal 스타일이 겹쳐있다면 완전히 비활성화 */
.modal.is-active {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}


/* ✅ 전송 완료 토스트 스타일 */
.custom-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #2e7d32;
  color: #fff;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 2000;
}

/* 표시 상태 */
.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open {
  padding-right: 0 !important;
}
