/* =================================
   1. Global & Reset Styles
   ================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
html { font-size: 16px; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main { flex: 1 0 auto; }
footer { margin-top: auto; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =================================
   2. Layout Containers
   ================================= */
.wrap,
.header-container,
.page-container,
.site-footer .footer-container,
.container {
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

/* =================================
   3. Header
   ================================= */
.site-header {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #2E7D32;
}

/* =================================
   4. Navigation
   ================================= */
.main-nav {
  display: block;
  position: fixed;
  top: 67px;
  left: 0;
  width: 100%;
  height: calc(100vh - 67px);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}
.main-nav.is-open { transform: translateX(0); }

.main-nav ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 10px;
}
.main-nav li { width: 100%; text-align: center; }
.main-nav a {
  display: block;
  padding: 5px;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

/* 햄버거 메뉴 */
.mobile-menu-btn {
  display: block;
  width: 30px; height: 22px;
  background: none; border: none; cursor: pointer; position: relative;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 3px;
  background-color: #333; border-radius: 3px;
  position: absolute; transition: all 0.3s;
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

.mobile-menu-btn.is-active span:nth-child(1) {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active span:nth-child(3) {
  bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

/* =================================
   5. Main Content
   ================================= */
.main-content { padding: 40px 0; }

.hero-section {
  background-color: #E8F5E9;
  text-align: center;
  padding: 60px 20px;
}
.hero-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #1B5E20;
}
.hero-section p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #388E3C;
}
.cta-button {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.3s;
}
.cta-button:hover { background-color: #45a049; }

.intro-section { padding: 60px 0; }
.intro-section h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 40px;
}
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-cards .card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
}
.service-cards .card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2E7D32;
}

/* =================================
   6. Booking Form Styles
   ================================= */
.booking-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =================================
   7. Footer
   ================================= */
.site-footer {
  background-color: #333;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

/* =================================
   8. Responsive Rules
   ================================= */

/* ✅ 모바일(≤767px): 3등분 버튼 메뉴 + 활성/호버 동일 스타일 */
@media (max-width: 767px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .logo { margin-bottom: 12px;}

  .main-nav {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    margin: 0; padding: 0;
  }

  .main-nav li {
    flex: 1 1 33.333%;
    text-align: center;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 600;
    color: #2E7D32;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  .main-nav li:first-child a { border-left: none; }

  /* 버튼 효과 + 활성 스타일 */
  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.is-active,
  .main-nav a[aria-current="page"] {
    background: #fff;
    color: #1B5E20;
    box-shadow: inset 0 -3px 0 #2E7D32;
    outline: none;
  }

  .mobile-menu-btn { display: none; }
}

/* ✅ Tablet 이상: 기존 PC 스타일 유지 */
@media (min-width: 768px) {
  .container,
  .wrap,
  .header-container,
  .page-container,
  .site-footer .footer-container { max-width: 720px; }

  .mobile-menu-btn { display: none; }

  .main-nav {
    position: static; width: auto; height: auto;
    background: transparent; transform: none;
  }

  .main-nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 25px;
  }

  .main-nav a {
    padding: 6px 10px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: #F1F8E9;
    color: #1B5E20;
  }

  .main-nav a.is-active,
  .main-nav a[aria-current="page"] {
    background: #E8F5E9;
    color: #1B5E20;
  }
}

/* ✅ Desktop (≥1024px) */
@media (min-width: 1024px) {
  .container,
  .wrap,
  .header-container,
  .page-container,
  .site-footer .footer-container { max-width: 960px; }
}
