/* ==========================================================
   LUNA di Terrace — 공식 홈페이지
   ========================================================== */

:root {
  --gold: #b59344;
  --gold-light: #d4b56e;
  --ink: #1d1e1e;
  --ink-soft: #4a4a48;
  --muted: #8a867e;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --night: #14161a;
  --line: rgba(29, 30, 30, 0.12);

  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-ko: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;

  --container: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.eyebrow--light { color: var(--gold-light); }

.heading {
  margin: 0 0 28px;
  font-family: var(--serif-ko);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.heading--light { color: #fff; }

.section { padding: clamp(80px, 12vw, 140px) 0; }

.section__head { text-align: center; margin-bottom: 56px; }
.section__head .heading { margin-bottom: 12px; }
.section__lead { margin: 0; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #9d7d35; }
.btn--line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--line:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.header__logo { position: relative; display: block; height: 30px; }
.header__logo img { height: 100%; width: auto; transition: opacity .4s; }
.header__logo .logo--dark { position: absolute; inset: 0; opacity: 0; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-family: var(--serif-en);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color .3s;
}
.nav a:hover { color: var(--gold-light); }
.nav .nav__cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 20px;
  border: 1px solid currentColor;
}

.header.is-scrolled { background: rgba(255, 253, 249, .96); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark { opacity: 1; }
.header.is-scrolled .nav a { color: var(--ink); }
.header.is-scrolled .nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  padding: 0;
  background: none;
  border: 0;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s, top .3s, background-color .3s;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.header.is-scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: heroZoom 14s ease-out forwards;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,12,16,.55) 0%, rgba(10,12,16,.2) 70%),
    linear-gradient(180deg, rgba(10,12,16,.5) 0%, rgba(10,12,16,.35) 50%, rgba(10,12,16,.85) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { position: relative; padding: 120px 24px 80px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero__sub {
  margin: 0 0 18px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  opacity: 0; animation: fadeUp 1.2s .5s forwards;
}
.hero__title {
  margin: 0 0 44px;
  font-family: var(--serif-ko);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.45;
  letter-spacing: 0.02em;
  opacity: 0; animation: fadeUp 1.2s .8s forwards;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; opacity: 0; animation: fadeUp 1.2s 1.1s forwards; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  padding-bottom: 48px;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 40px;
  background: rgba(255,255,255,.6);
  animation: scrollLine 2s infinite;
  transform-origin: top;
}
@media (max-height: 720px) { .hero__scroll { display: none; } }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about__text p:not(.eyebrow) { margin: 0 0 16px; color: var(--ink-soft); }
.about__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.about__points li { display: flex; flex-direction: column; }
.about__points strong { font-family: var(--serif-en); font-weight: 500; font-size: 22px; color: var(--gold); }
.about__points span { font-size: 14px; color: var(--muted); }

.about__media { position: relative; padding: 0 0 18% 0; }
.about__img-main { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; margin-left: auto; }
.about__img-sub {
  position: absolute;
  left: 0; bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--paper);
}

/* ---------- Menu ---------- */

.menu { background: var(--cream); }
.menu__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.menu__tabs button {
  padding: 10px 26px;
  font-family: var(--serif-en);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.menu__tabs button:hover { color: var(--ink); }
.menu__tabs button.is-active { color: var(--ink); border-bottom-color: var(--gold); }

.menu__body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.menu__visual img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__list.is-active { animation: fadeIn .5s; }
.menu__list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.menu__name { flex: 1; font-family: var(--serif-ko); font-size: 18px; font-weight: 400; }
.menu__name em {
  margin-left: 10px;
  padding: 2px 8px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  border: 1px solid var(--gold);
  vertical-align: 2px;
}
.menu__price { font-family: var(--serif-en); font-size: 22px; font-weight: 500; color: var(--ink); }
.menu__note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Space ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(260px, 30vw, 380px);
  gap: 16px;
}
.gallery__item { position: relative; margin: 0; overflow: hidden; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 24px 20px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
}
.gallery__item figcaption strong {
  display: block;
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 24px;
  color: #fff;
}

/* ---------- Location ---------- */

.location { background: var(--cream); }
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}
.info { margin: 0 0 36px; }
.info > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info dt { font-family: var(--serif-en); font-size: 18px; font-weight: 500; color: var(--gold); }
.info dd { margin: 0; }
.info small { font-size: 13px; color: var(--muted); }
.info a:hover { color: var(--gold); }
.location__links { display: flex; flex-wrap: wrap; gap: 10px; }
.location__map { min-height: 420px; }
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.3); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(100px, 14vw, 160px) 0;
  overflow: hidden;
  color: rgba(255,255,255,.85);
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(14,16,20,.68); }
.cta__inner { position: relative; }
.cta__inner p:not(.eyebrow) { margin: 0 0 36px; }
.cta .hero__actions { opacity: 1; animation: none; }

/* ---------- Footer ---------- */

.footer { padding: 56px 0; background: var(--night); color: rgba(255,255,255,.55); font-size: 13px; }
.footer__inner { display: flex; align-items: center; gap: 48px; }
.footer__logo { width: 120px; flex-shrink: 0; }
.footer__info { flex: 1; }
.footer__info p { margin: 0 0 4px; }
.footer__info span { margin: 0 8px; opacity: .4; }
.footer__copy { margin-top: 12px !important; opacity: .7; }
.footer__sns { color: rgba(255,255,255,.7); transition: color .3s; }
.footer__sns:hover { color: var(--gold-light); }

/* ---------- Mobile call button ---------- */

.call-fab {
  display: none;
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header__inner { padding: 0 20px; }
  .header__logo { height: 24px; }

  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--night);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .nav a { font-size: 26px; color: #fff !important; }
  .nav .nav__cta { margin-top: 12px; font-size: 16px; }
  .header.nav-open .nav { opacity: 1; visibility: visible; }
  .header.nav-open .nav-toggle span { background: #fff; }
  .header.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
  .header.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

  .about__grid, .menu__body, .location__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 560px; }
  .menu__visual { max-width: 420px; margin: 0 auto; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .gallery__item { aspect-ratio: 4 / 3.4; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }

  .cta__bg { background-attachment: scroll; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .call-fab { display: flex; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero__sub { font-size: 16px; letter-spacing: 0.06em; }
  .about__points strong { font-size: 18px; }
  .menu__tabs button { padding: 8px 12px; font-size: 17px; }
  .menu__list li { padding: 16px 0; }
  .menu__name { font-size: 16px; }
  .menu__name em { display: inline-block; margin: 4px 0 0; }
  .menu__price { font-size: 19px; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery__item, .gallery__item--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .info > div { grid-template-columns: 80px 1fr; }
  .location__map, .location__map iframe { min-height: 320px; }
  .footer__info span { display: none; }
  .footer__info p { margin-bottom: 2px; }
}
