/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-height: 72px;
  --site-max-width: 1400px;
  --site-padding: 48px;
  --color-bg: #faf9f7;
  --color-text: #1a1a1a;
  --color-muted: #888;
  --color-border: #e8e6e3;
  --font-serif: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
  --font-sans: 'Noto Sans KR', -apple-system, sans-serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ===== Layout ===== */
.layout {
  min-height: 100vh;
}

/* ===== Top Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--site-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--site-padding);
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-list > li {
  display: flex;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 8px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--color-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-group {
  gap: 12px;
}

.nav-sub {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-sub-link {
  font-size: 0.96rem;
  padding: 0;
}

.nav-sub-link::before {
  content: '›';
  margin-right: 6px;
  opacity: 0.45;
}

/* ===== Main ===== */
.main {
  padding-top: var(--header-height);
  min-height: 100vh;
}

.page {
  display: none;
  min-height: 100vh;
}

.page-active {
  display: block;
}

/* ===== Hero Collage (se_rappeler) — 대각선 격자 ===== */
.hero-collage {
  --collage-width-base: clamp(240px, 30vw, 360px);
  --collage-width: calc(var(--collage-width-base) + 2.5cm);
  display: grid;
  grid-template-columns: var(--collage-width) 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(0px, calc(8vw - 87px), 13px);
  row-gap: clamp(calc(32px - 20px), calc(5vh - 20px), calc(56px - 20px));
  justify-content: start;
  align-items: start;
  max-width: var(--site-max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 12vh var(--site-padding) 16vh;
}

.hero-copy {
  grid-column: 2 / 4;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: auto;
  padding: 4px 16px;
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(calc(1.4rem + 3px), calc(2.6vw + 3px), calc(2rem + 3px));
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  text-align: center;
  white-space: nowrap;
}

.hero-text-block {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  width: var(--collage-width);
  padding: 4px 0;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(calc(0.82rem + 5px), calc(1.3vw + 5px), calc(0.95rem + 5px));
  font-weight: 300;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.75;
  letter-spacing: 0.02em;
  max-width: 28ch;
}

.hero-tagline-ko {
  font-family: var(--font-sans);
  font-size: clamp(calc(0.85rem + 1px), calc(1.4vw + 1px), calc(1rem + 1px));
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: left;
  margin-top: 18px;
}

.collage-photo {
  overflow: hidden;
  background: #eceae6;
  width: var(--collage-width);
  aspect-ratio: 4 / 5;
}

.collage-photo--1 {
  grid-column: 1;
  grid-row: 1;
}

.collage-photo--2 {
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: center;
  align-self: start;
  margin-top: clamp(calc(16px - 20px), calc(3vh - 20px), calc(32px - 20px));
}

.collage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.collage-photo:hover img {
  transform: scale(1.03);
}

/* ===== Gallery Pages ===== */
.gallery-page {
  padding: 80px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 64px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: 20px;
}

.page-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid--wedding {
  gap: clamp(28px, 4vw, 48px);
}

.gallery-grid--wedding .gallery-item {
  aspect-ratio: 3 / 4;
}

.gallery-grid--wedding .gallery-item img {
  object-fit: cover;
}

.gallery-grid--iphone {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eceae6;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Product Page ===== */
.product-page {
  padding: 80px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 32px 56px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.product-logo {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 48px;
}

.product-section {
  margin-bottom: 28px;
}

.product-section-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.product-list {
  list-style: none;
}

.product-list > li {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.product-list > li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--color-text);
  font-weight: 300;
}

.product-sub-list {
  list-style: none;
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 2px;
}

.product-sub-list li {
  font-size: 0.82rem;
  font-weight: 300;
  color: #3d3d3d;
  margin-bottom: 5px;
  position: relative;
  padding-left: 14px;
  line-height: 1.65;
}

.product-sub-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--color-muted);
  font-weight: 300;
}

.product-muted {
  color: var(--color-muted);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 48px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.product-price .product-muted {
  font-size: 0.7rem;
  font-weight: 400;
  margin-left: 4px;
}

.site-footer {
  text-align: center;
  padding: 48px 24px 40px;
  font-size: 0.68rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.product-page .site-footer {
  padding-top: 0;
  margin-top: 48px;
}

/* ===== Contact Page ===== */
.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 24px;
  text-align: center;
}

.contact-info {
  margin-bottom: 48px;
}

.contact-hours-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.contact-hours {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-hours strong {
  font-weight: 400;
  letter-spacing: 0.05em;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.social-btn:hover {
  border-color: var(--color-text);
}

.social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: color 0.4s ease;
}

.social-btn--kakao:hover {
  background: linear-gradient(135deg, #fff176 0%, #fee500 45%, #f5c800 100%);
  border-color: transparent;
  color: #2d2d2d;
  box-shadow: 0 4px 20px rgba(254, 229, 0, 0.35);
}

.social-btn--instagram:hover {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 20%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(214, 41, 118, 0.3);
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-text);
  padding: 8px 0;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--transition);
}

.overlay.is-visible {
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --site-padding: 24px;
  }

  .header-inner {
    padding: 0 var(--site-padding);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 32px 32px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 95;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list > li {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 1rem;
  }

  .nav-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 16px;
    width: 100%;
  }

  .nav-sub-link {
    padding: 8px 0;
  }

  .overlay {
    display: block;
    pointer-events: none;
  }

  .overlay.is-visible {
    pointer-events: auto;
  }

  .hero-collage {
    --collage-width-base: clamp(130px, 36vw, 200px);
    --collage-width: calc(var(--collage-width-base) + 1.25cm);
    grid-template-columns: var(--collage-width) 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(0px, calc(5vw - 87px), 0px);
    row-gap: clamp(calc(24px - 20px), calc(4vh - 20px), calc(40px - 20px));
    padding: 48px var(--site-padding) 80px;
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    padding: 0;
    text-align: right;
  }

  .hero-text-block {
    grid-column: 1;
    grid-row: 3;
    width: var(--collage-width);
    padding: 0;
  }

  .hero-tagline-ko {
    display: none;
  }

  .collage-photo--2 {
    display: none;
  }

  .hero-title {
    font-size: clamp(calc(1.1rem + 2px), calc(4vw + 2px), calc(1.5rem + 3px));
    text-align: right;
  }

  .hero-tagline {
    font-size: clamp(calc(0.75rem + 2px), calc(3vw + 2px), calc(0.85rem + 5px));
    margin-top: 10px;
    max-width: none;
  }

  .product-page {
    padding: 48px 20px 80px;
  }

  .product-card {
    padding: 36px 24px 44px;
  }

  .product-logo {
    margin-bottom: 36px;
  }

  .gallery-page {
    padding: 48px 20px 80px;
  }

  .gallery-grid,
  .gallery-grid--iphone {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-grid--wedding {
    gap: clamp(20px, 5vw, 32px);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 1;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 480px) {
  .gallery-grid,
  .gallery-grid--iphone {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }
}
