/* =================================
   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;
}

footer {
    width: 100%;
    padding: 30px 10px;
    background-color: #343a40;
    color: #adb5bd;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #495057;
}

.company-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}
.footer-links a {
    color: #ced4da;
    text-decoration: none;
    margin-left: 20px;
    font-weight: normal;
}
.footer-links a:hover {
    color: #fff;
}
.footer-info {
    text-align: left;
}
.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-info li {
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #495057;
    margin-bottom: 5px; 
}
.footer-info li:last-child {
    border-right: none;
    margin-right: 0;
}
.footer-info li.full-width {
    display: block;
    border-right: none;
}

/* =================================
   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;
}




.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal.is-visible { display: flex; }
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-overlay.active { display: flex; }
.modal-content { position: relative; background-color: #fff; width: 90%; max-width: 1000px; max-height: 80vh; border-radius: 8px; display: flex; flex-direction: column; }
.modal-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.2rem; color: var(--dark-gray); }
.close-modal { background: none; border: none; font-size: 2rem; cursor: pointer; color: #888; }
.modal-body { padding: 20px; overflow-y: auto; line-height: 1.7; width: 100%; margin: 0 auto; }



/* 햄버거 메뉴 */
.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
   ================================= */
   
   
   
/* --- 모달 스타일 --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal[style*="display: block"],
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 10px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-top:20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.btn-modal-approve {
    padding: 12px 40px;
    background-color: #008000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-modal-approve:hover {
    background-color: #006600;
}   
   

/* ✅ 모바일(≤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; }
}
