/* =========================================================
   MERYOSNAP · 매료스냅
   One-screen landing: full-bleed photo hero + transparent header
   ========================================================= */

:root{
  --black: #111111;
  --ink: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-400: #9a9a9a;
  --gray-200: #e4e2de;
  --cream: #faf8f4;
  --white: #ffffff;
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }

html, body{ margin: 0; height: 100%; }

body{
  background: var(--cream);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 메인 홈만 한 화면 고정(스크롤 없음). 서브페이지는 일반 스크롤. */
body.home{ overflow: hidden; }

a{ color: inherit; text-decoration: none; }
h1,h2,h3,p,dl,dd{ margin: 0; }

/* ---------- header (완전 투명, 사진 위에 바로 얹힘) ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
}
.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 62px var(--pad) 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .12em;
  display: inline-flex;
}
.logo img{
  display: block;
  height: 38px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.5));
}
.menu-toggle{
  position: absolute;
  right: var(--pad);
  width: 28px; height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.menu-toggle span{
  display: block;
  height: 1.5px;
  background: var(--black);
  width: 100%;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.main-nav{
  display: none;
  justify-content: center;
  gap: 36px;
  padding: 1cm var(--pad) 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-link{
  font-family: 'Playfair Display', 'Pretendard', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
  transition: opacity .2s var(--ease);
}
.nav-link:hover{ opacity: .7; }

@media (min-width: 860px){
  .menu-toggle{ display: none; }
  .main-nav{ display: flex; }
}

/* ---------- header: 서브페이지용 라이트 변형 (사진 배경이 없는 페이지) ---------- */
.site-header.header--light{
  background: rgba(250,248,244,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17,17,17,.06);
}
.site-header.header--light .nav-link{
  color: var(--gray-700);
  text-shadow: none;
}
.site-header.header--light .nav-link:hover{ color: var(--black); opacity: 1; }
.site-header.header--light .logo img{ filter: none; }

.site-header.nav-open{ background: rgba(250,248,244,.96); }
.site-header.nav-open .nav-link{
  color: var(--ink);
  text-shadow: none;
}
.site-header.nav-open .logo img{
  filter: invert(1) drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.site-header.nav-open .main-nav{ display: flex; flex-direction: column; align-items: center; }
.site-header.nav-open .menu-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2){ opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero: 화면 하나 꽉 채우는 사진 슬라이드쇼 ---------- */
.hero{
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-slideshow{
  position: absolute;
  inset: 0;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.is-active{
  opacity: 1;
}

/* =========================================================
   서브페이지 공통 컴포넌트 (About / Portfolio / Product / Contact)
   ========================================================= */

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- shared ---------- */
.eyebrow{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.section-head{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2{
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.contact-sub{
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 15px;
}

.btn-outline{
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-outline:hover{ background: var(--black); color: var(--white); }

/* ---------- portfolio / gallery ---------- */
.portfolio{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 280px var(--pad) 100px;
}
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 20px);
}
@media (min-width: 720px){
  .gallery-grid{ grid-template-columns: repeat(4, 1fr); }
  .ph-wide{ grid-column: span 2; }
}
.ph-tall{ aspect-ratio: 3 / 4; }
.gallery-grid .ph-image:not(.ph-tall){ aspect-ratio: 1 / 1; }
.ph-wide{ aspect-ratio: 16 / 10 !important; }

.ph-image{
  position: relative;
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, rgba(17,17,17,.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #e8e5df, #d9d5cc);
  overflow: hidden;
}
.ph-image img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-image[data-label]::after{
  content: attr(data-label);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gray-700);
  border: 1px solid rgba(17,17,17,.18);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(250,248,244,.6);
}

/* 갤러리 타일이 <button>일 때 (라이트박스 트리거) */
.gallery-grid button.ph-image{
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery-grid .ph-image img{
  transition: transform .5s var(--ease);
}
.gallery-grid .ph-image:hover img{
  transform: scale(1.04);
}
.gallery-venue{
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: .03em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
}

/* ---------- 라이트박스 (클릭 확대 + 화살표 슬라이드) ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 64px 20px 22px;
  background: rgba(10,10,10,.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open{
  opacity: 1;
  visibility: visible;
}
.lightbox__venue{
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  text-align: center;
}
.lightbox__carousel{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.lightbox__stage{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
  height: 100%;
}
.lightbox__img{
  display: block;
  max-width: 88vw;
  max-height: 66vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  animation: lightboxSlideNext .35s var(--ease);
}
@media (min-width: 900px){
  .lightbox__img{
    max-width: min(60vw, 760px);
    max-height: 78vh;
  }
}
.lightbox__img.is-prev{ animation-name: lightboxSlidePrev; }
@keyframes lightboxSlideNext{
  from{ opacity: 0; transform: translateX(28px); }
  to{ opacity: 1; transform: translateX(0); }
}
@keyframes lightboxSlidePrev{
  from{ opacity: 0; transform: translateX(-28px); }
  to{ opacity: 1; transform: translateX(0); }
}
.lightbox__peek{
  display: none;
  flex-shrink: 0;
  width: auto;
  height: 54vh;
  max-width: 16vw;
  object-fit: contain;
  border-radius: 2px;
  opacity: .4;
  filter: brightness(.55);
  cursor: pointer;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.lightbox__peek:hover{ opacity: .7; filter: brightness(.8); }
@media (min-width: 900px){
  .lightbox__peek{ display: block; }
}
.lightbox__thumbs{
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  overflow-x: auto;
  padding: 2px 2px 4px;
}
.lightbox__thumbs::-webkit-scrollbar{ height: 4px; }
.lightbox__thumbs::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.25); border-radius: 2px; }
.lightbox__thumb{
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  opacity: .42;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__thumb:hover{ opacity: .75; }
.lightbox__thumb.is-active{
  opacity: 1;
  border-color: var(--cream);
}
.lightbox__close{
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox__close:hover{ opacity: 1; }
.lightbox__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  padding: 16px 20px;
  cursor: pointer;
  z-index: 2;
  opacity: .75;
  transition: opacity .2s;
}
.lightbox__arrow:hover{ opacity: 1; }
.lightbox__arrow--prev{ left: 4px; }
.lightbox__arrow--next{ right: 4px; }
@media (max-width: 720px){
  .lightbox__arrow{ font-size: 30px; padding: 12px; }
  .lightbox__close{ top: 16px; right: 18px; }
  .lightbox{ padding: 50px 12px 14px; gap: 12px; }
  .lightbox__thumb{ width: 44px; height: 44px; }
}

/* ---------- approach (about) ---------- */
.approach{
  background: var(--black);
  color: var(--cream);
  padding: 280px var(--pad) 130px;
  text-align: center;
}
.approach .eyebrow{ color: var(--gray-400); }

.approach-lead{
  max-width: 620px;
  margin: 26px auto 46px;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.6;
  color: var(--cream);
}

.approach-text{
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(250,248,244,.82);
}
.approach-text + .approach-text{
  margin-top: 38px;
}
.approach-text.en{
  margin-top: 46px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--gray-400);
  line-height: 1.9;
}

/* ---------- package (product) ---------- */
.package{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 280px var(--pad) 140px;
}

/* About 페이지와 동일한 가볍고 여유로운 타이포로 통일 */
.package .section-head h2{
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-top: 8px;
}

/* 연도 탭 — 밑줄형 텍스트 탭 */
.year-tabs{
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 8px 0 88px;
}
.year-tab{
  padding: 4px 2px 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--gray-400);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.year-tab.is-active{
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.year-panel{ display: none; max-width: 940px; margin: 0 auto; }
.year-panel.is-active{ display: block; }

/* Basic / Premium 비교 카드 — 넓은 화면에서는 나란히 배치 */
.type-compare{
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 100px;
}
@media (min-width: 760px){
  .type-compare{
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
}
.type-card{
  text-align: left;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 36px 32px 38px;
  display: flex;
  flex-direction: column;
}
.type-card .doc-list{ flex: 1; }

/* 좌측 정렬 문서형 레이아웃 — ozzesnap.com/iphone2 참고 */
.doc-wrap{
  max-width: 620px;
  margin: 0;
}
.doc-section{
  text-align: left;
  margin-bottom: 100px;
}
.doc-section:last-child{ margin-bottom: 0; }
.doc-section__num{
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.doc-section__title{
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.doc-section__title--sub{
  font-size: 16px;
}
.doc-section__subtitle{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-700);
}

.doc-list{
  list-style: none;
  padding-left: 0;
  margin-top: 32px;
}
.doc-section__title--sub + .doc-list{ margin-top: 24px; }
.doc-list li{
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 2.2;
  color: rgba(26,26,26,.85);
}
.doc-list li::before{
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}
.doc-list .dim{
  color: var(--gray-400);
  font-size: 12px;
}
.doc-price{
  margin-top: 44px;
  font-size: 15px;
  font-weight: 400;
}
.doc-price strong{ font-weight: 700; }
.doc-price__discount{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-700);
}

.doc-divider{
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: 0 0 100px;
}

/* ---------- contact ---------- */
.contact{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 280px var(--pad) 160px;
  text-align: center;
}

/* About 페이지와 동일한 가볍고 여유로운 타이포 위계로 통일 */
.contact .section-head h2,
.portfolio .section-head h2{
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-top: 8px;
}
.contact .contact-sub{
  margin-top: 18px;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(26,26,26,.62);
}

.contact-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 56px;
}
.btn-kakao{
  display: inline-block;
  padding: 14px 30px;
  background: #FEE500;
  color: #191600;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: filter .2s var(--ease);
}
.btn-kakao:hover{ filter: brightness(.95); }

/* ---------- footer ---------- */
.site-footer{
  padding: 48px var(--pad) 56px;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}
.footer-logo{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.footer-copy{
  font-size: 12px;
  color: var(--gray-400);
}

/* ---------- floating action buttons (카카오톡 / 인스타그램) ---------- */
.floating-actions{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.floating-btn{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(17,17,17,.18);
  transition: transform .25s var(--ease);
}
.floating-btn:hover{ transform: scale(1.06); }
.floating-kakao{
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(17,17,17,.12);
}
.floating-instagram{
  background: var(--black);
  color: var(--cream);
}
