
/* =========================
   1. 기본 설정
========================= */

:root {
  --bg: #111820;
  --bg-light: #19232e;
  --card: #202d39;
  --border: #38434e;
  --gold: #f4d58d;
  --white: #f7f5f0;
  --muted: #aab3bd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

em {
  color: var(--gold);
  font-style: normal;
}

section[id],
article[id] {
  scroll-margin-top: 95px;
}


/* =========================
   2. 공통 스타일
========================= */

.section {
  padding: 110px 7%;
}

.eyebrow {
  display: block;
  margin-bottom: 22px;

  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;

  margin-bottom: 42px;
  gap: 25px;
}

.section-heading h2,
.intro h2,
.contact-banner h2,
.about h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  letter-spacing: -2px;
  line-height: 1.4;
}

.section-heading p {
  color: var(--muted);
  margin-top: 12px;
}

.section-count {
  color: var(--muted);
  letter-spacing: 3px;
  white-space: nowrap;
}

.section-note {
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
}


/* =========================
   3. HEADER
========================= */

.header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;

  width: 100%;
  min-height: 88px;
  padding: 18px 6%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  border-bottom: 1px solid rgba(255,255,255,.2);
}

.logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.nav a {
  font-size: 14px;
  transition: color .3s;
}

.nav a:hover {
  color: var(--gold);
}

.header-button {
  padding: 10px 20px;

  border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px;

  font-size: 13px;
  white-space: nowrap;

  transition: background .3s, color .3s;
}

.header-button:hover {
  background: var(--gold);
  color: var(--bg);
}


/* =========================
   4. HERO
========================= */

.hero {
  position: relative;

  min-height: 760px;
  height: 100vh;

  display: flex;
  align-items: center;

  padding: 120px 9%;

  background:
    linear-gradient(
      90deg,
      rgba(9,18,29,.9),
      rgba(9,18,29,.15)
    ),
    linear-gradient(
      0deg,
      #111820,
      transparent 35%
    ),
    url(
      "https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2000&q=90"
    );

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(44px, 5.5vw, 86px);
  line-height: 1.22;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.hero p {
  font-size: 18px;
  color: #d8dce0;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  padding: 17px 25px;

  background: var(--gold);
  color: var(--bg);

  border-radius: 40px;
  font-weight: 700;

  transition: transform .3s, background .3s;
}

.primary-button:hover {
  transform: translateY(-4px);
  background: #ffe6a7;
}

.text-button {
  font-size: 14px;
  font-weight: 600;
  transition: color .3s;
}

.text-button:hover {
  color: var(--gold);
}

.hero-bottom {
  position: absolute;
  bottom: 45px;
  left: 9%;
  right: 9%;

  display: flex;
  justify-content: space-between;
  gap: 15px;

  font-size: 11px;
  letter-spacing: 3px;
  color: #ddd;
}


/* =========================
   5. INTRO
========================= */

.intro {
  max-width: 1100px;
  text-align: center;
  margin: auto;
}

.intro p {
  color: var(--muted);
  margin-top: 25px;
  font-size: 16px;
}


/* =========================
   6. DESTINATIONS
========================= */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.destination-card {
  position: relative;
  height: 430px;
  overflow: hidden;

  border-radius: 16px;
  background: #26313b;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform .6s;
}

.destination-card:hover img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 25px;

  background: linear-gradient(
    transparent 30%,
    rgba(0,0,0,.88)
  );
}

.card-tag {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.card-overlay h3 {
  font-size: 30px;
}

.card-overlay p {
  font-size: 13px;
  color: #d5d9dd;
  padding-right: 20px;
}

.card-link {
  position: absolute;
  bottom: 22px;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 35px;
  height: 35px;

  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;

  font-size: 20px;
  transition: background .3s, transform .3s;
}

.card-link:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translate(3px, -3px);
}

/* 여행지 상세 정보 */
.destination-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;

  margin-top: 25px;
}

.info-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #19232e;
}

.info-number {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--muted);
  min-height: 65px;
}

.info-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  color: var(--gold);

  border: 1px solid #6c6049;
  border-radius: 20px;
  padding: 5px 11px;
}

.info-card:target {
  border-color: var(--gold);
  background: #263441;
}


/* =========================
   7. COURSES
========================= */

.courses {
  background: var(--bg-light);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.course-card {
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #202d39;

  transition: transform .3s, border-color .3s;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.course-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 27px;
}

.course-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
}

.course-days {
  padding: 5px 11px;
  border-radius: 20px;
  background: #374554;
  font-size: 12px;
}

.course-card h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.course-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}

.course-day {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.course-day strong {
  display: block;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 8px;
}

.course-day p {
  font-size: 13px;
  color: #d4dbe1;
}


/* =========================
   8. THEMES
========================= */

.themes {
  background: #111820;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.theme-item {
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;

  transition: transform .3s, background .3s;
}

.theme-item:hover {
  background: #293747;
  transform: translateY(-6px);
}

.theme-icon {
  display: block;
  color: var(--gold);
  font-size: 34px;
  margin-bottom: 30px;
}

.theme-item h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.theme-item p {
  font-size: 13px;
  color: var(--muted);
}

.theme-place {
  display: block;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border);

  color: var(--gold);
  font-size: 12px;
}


/* =========================
   9. GUIDE
========================= */

.guide {
  background: var(--bg-light);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #202d39;
}

.guide-number {
  color: var(--gold);
  font-size: 35px;
  font-weight: 800;
}

.guide-card h3 {
  font-size: 23px;
  margin: 20px 0 10px;
}

.guide-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.guide-card a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.guide-card a:hover {
  text-decoration: underline;
}


/* =========================
   10. FAQ
========================= */

.faq-list {
  max-width: 1000px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 25px 5px;

  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  color: var(--gold);
  font-size: 25px;
  font-weight: 400;
  transition: transform .3s;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--muted);
  font-size: 14px;
  padding: 0 35px 25px 5px;
}


/* =========================
   11. CONTACT BANNER
========================= */

.contact-banner {
  text-align: center;
  background:
    radial-gradient(
      ellipse at center,
      #334252 0%,
      #19232e 65%
    );
}

.contact-banner p {
  color: var(--muted);
  margin: 25px 0 35px;
}


/* =========================
   12. ABOUT
========================= */

.about {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

.about p {
  color: var(--muted);
  margin: 22px 0 32px;
}

.secondary-button {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 40px;
  padding: 14px 26px;
  font-weight: 700;

  transition: background .3s, color .3s;
}

.secondary-button:hover {
  background: var(--gold);
  color: var(--bg);
}


/* =========================
   13. FOOTER
========================= */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  padding: 35px 7%;
  border-top: 1px solid #303b45;
}

.footer p {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold);
}


/* =========================
   14. MODAL : 문의하기 팝업

   기본 상태는 숨김.
   URL의 #contact-modal이 선택되면 표시.
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  /* 기본 상태 숨기기 */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition: opacity .25s, visibility .25s;
}

/* :target으로 팝업 표시 */
.modal:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* 팝업 뒤의 어두운 배경 */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(7px);
}

/* 팝업 본체 */
.modal-box {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;

  padding: 38px;

  border: 1px solid #455361;
  border-radius: 20px;

  background: #1c2834;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);

  transform: translateY(15px);
  transition: transform .25s;
}

.modal:target .modal-box {
  transform: translateY(0);
}

/* 팝업 상단 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.modal-header .eyebrow {
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 32px;
}

.modal-close {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 36px;
  height: 36px;
  flex-shrink: 0;

  border-radius: 50%;
  background: #344454;

  font-size: 25px;
  line-height: 1;
  transition: background .3s;
}

.modal-close:hover {
  background: #55687b;
}

.modal-description {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 30px;
}


/* =========================
   15. CONTACT FORM
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 이름, 이메일을 2열로 배치 */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

/* 모든 입력 필드 공통 */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;

  background: #111c27;
  color: var(--white);

  border: 1px solid #465362;
  border-radius: 9px;

  padding: 13px 15px;
  outline: none;

  font-size: 14px;
  transition: border-color .3s, box-shadow .3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #85919d;
}

/* 입력 필드 선택 시 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,213,141,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #111c27;
}

/* 안내 문구 */
.form-notice {
  color: #9daab7;
  font-size: 12px;
  line-height: 1.7;
}

/* 예시용 제출 버튼 */
.form-submit {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: 15px 20px;

  background: var(--gold);
  color: #17202a;

  border: none;
  border-radius: 9px;

  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;

  transition: background .3s, transform .3s;
}

.form-submit:hover {
  background: #ffe6a7;
  transform: translateY(-2px);
}


/* =========================
   16. SUCCESS MODAL
========================= */

.success-box {
  max-width: 440px;
  padding: 50px 35px;
  text-align: center;
}

.success-icon {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 75px;
  height: 75px;
  margin: 0 auto 25px;

  border-radius: 50%;
  background: rgba(244,213,141,.12);
  border: 2px solid var(--gold);

  color: var(--gold);
  font-size: 35px;
}

.success-box .eyebrow {
  margin-bottom: 12px;
}

.success-box h2 {
  font-size: 27px;
  margin-bottom: 15px;
}

.success-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 30px;
}


/* =========================
   17. 태블릿 반응형
========================= */

@media (max-width: 1100px) {

  .nav {
    gap: 15px;
  }

  .nav a {
    font-size: 12px;
  }

  .destination-grid,
  .destination-info,
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================
   18. 모바일 반응형
========================= */

@media (max-width: 700px) {

  .header {
    min-height: 70px;
    padding: 12px 5%;
  }

  .logo {
    font-size: 19px;
  }

  /* 모바일에서는 메뉴 대신 문의 버튼만 표시 */
  .nav {
    display: none;
  }

  .header-button {
    padding: 8px 13px;
    font-size: 12px;
  }

  .hero {
    min-height: 650px;
    height: 90vh;
    padding: 110px 7% 90px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 55px);
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero-bottom {
    left: 7%;
    right: 7%;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .section {
    padding: 75px 6%;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-count {
    display: none;
  }

  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .destination-card {
    height: 290px;
  }

  .card-overlay {
    padding: 15px;
  }

  .card-overlay h3 {
    font-size: 22px;
  }

  .card-overlay p {
    font-size: 11px;
  }

  .card-link {
    right: 12px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .destination-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card p {
    min-height: auto;
  }

  .course-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .course-card,
  .guide-card {
    padding: 28px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .theme-item {
    padding: 25px 18px;
  }

  .theme-item h3 {
    font-size: 16px;
  }

  .theme-item p {
    font-size: 12px;
  }

  .faq-item summary {
    font-size: 14px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  /* 모바일 팝업 */
  .modal {
    padding: 12px;
  }

  .modal-box {
    padding: 25px 20px;
    max-height: 92vh;
  }

  .modal-header h2 {
    font-size: 27px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .success-box {
    padding: 40px 25px;
  }

}


/* =========================
   19. 아주 작은 화면
========================= */

@media (max-width: 380px) {

  .destination-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .destination-card {
    height: 350px;
  }

  .hero-bottom {
    gap: 8px;
    font-size: 8px;
  }

}


/* =========================
   20. 접근성 : 모션 최소화
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

}
