/* ===== 변수 ===== */
:root {
  --color-bg: #faf8f5;
  --color-surface: #fff;
  --color-primary: #c4a35a;
  --color-primary-dark: #a68542;
  --color-accent: #8b7355;
  --color-text: #3d3630;
  --color-text-muted: #6b6560;
  --color-border: #e8e2da;
  --font-sans: 'Noto Sans KR', sans-serif;
  --font-serif: 'Gowun Batang', serif;
  --shadow-sm: 0 2px 8px rgba(61, 54, 48, 0.06);
  --shadow-md: 0 4px 20px rgba(61, 54, 48, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== 리셋 & 기본 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ===== 헤더 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-accent);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--color-primary-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* ===== 히어로 ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #e8dfd0 0%, #f5efe6 40%, #faf8f5 100%);
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}
.hero-content { position: relative; }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== 섹션 공통 ===== */
.section {
  padding: 72px 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 12px;
}
.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  font-size: 0.98rem;
}

/* ===== 갤러리 ===== */
.gallery { background: var(--color-surface); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== 여행 이야기 ===== */
.travel { background: var(--color-bg); }
.travel-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.travel-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
.travel-card:hover { box-shadow: var(--shadow-md); }
.travel-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.travel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.travel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}
.travel-body { padding: 24px 24px 24px 0; }
.travel-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text);
}
.travel-date {
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}
.travel-body p:last-of-type {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.link-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: color 0.2s;
}
.link-more:hover { color: var(--color-accent); }

/* ===== 추천 용품 / 배너 ===== */
.products { background: var(--color-surface); }
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.banner-card {
  display: block;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.banner-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-info {
  padding: 18px 20px;
}
.banner-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.banner-info strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ===== 푸터 ===== */
.footer {
  background: var(--color-text);
  color: #b5aea6;
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: #e8e2da; }
.footer-brand p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  max-width: 280px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: #b5aea6;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== 라이트박스 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .travel-card { grid-template-columns: 1fr; }
  .travel-body { padding: 24px; }
  .banner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 48px 0; }
  .hero { min-height: 60vh; padding: 100px 20px 60px; }
  .footer-inner { flex-direction: column; }
}
