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

:root {
  --bg: #f7f2e8;
  --bg-dark: #1a1008;
  --gold: #c4922a;
  --gold-light: #e8c98a;
  --text: #2c1a0e;
  --text-muted: #7a5c3c;
  --cream: #fdf9f2;
  --border: #d4b896;
  --font: 'Noto Serif KR', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===================== HEADER / NAV ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26, 16, 8, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
}

.logo {
  font-size: 1.7rem;
  color: #c9a84c;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav a {
  color: #ede0cc;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  transition: color 0.25s;
}

nav a:hover,
nav a.active {
  color: #c9a84c;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-sub {
  color: #c9a84c;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero-title {
  color: #fdf9f2;
  font-size: 5.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  color: rgba(253, 249, 242, 0.82);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(253, 249, 242, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(201, 168, 76, 0.6);
  animation: scrollLine 1.8s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 100px 48px;
}

.section-cream {
  background: var(--cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 24px;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

/* ===================== ABOUT ===================== */
.about-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===================== FEATURED GRID ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

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

.card-caption {
  padding: 16px 4px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===================== GALLERY (gallery.html) ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 16, 8, 0.75));
  padding: 36px 16px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay-text {
  color: #fdf9f2;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ===================== BUTTON ===================== */
.btn-wrap {
  text-align: center;
  margin-top: 56px;
}

.btn {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid var(--gold);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-family: var(--font);
  transition: all 0.3s;
  background: transparent;
}

.btn:hover {
  background: var(--gold);
  color: var(--cream);
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  min-width: 64px;
  padding-top: 2px;
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.contact-value a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s;
}

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

.contact-map {
  background: #ede5d8;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  padding: 160px 48px 80px;
  text-align: center;
  background: var(--bg-dark);
}

.page-hero-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-hero-title {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.1em;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--bg-dark);
  padding: 64px 48px 48px;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  color: #c9a84c;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.footer-sub {
  font-size: 0.78rem;
  color: rgba(201, 168, 76, 0.7);
  letter-spacing: 0.25em;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-links a {
  color: rgba(237, 224, 204, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: #c9a84c;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(201, 168, 76, 0.4);
  margin: 0 auto 32px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(237, 224, 204, 0.4);
  letter-spacing: 0.08em;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  nav ul {
    gap: 20px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section {
    padding: 72px 24px;
  }

  .page-hero {
    padding: 120px 24px 60px;
  }

  .page-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-sub,
  .hero-desc {
    font-size: 0.8rem;
  }

  .grid-3,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 16px;
  }

  nav a {
    font-size: 0.82rem;
  }

  footer {
    padding: 48px 24px 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
