/* ONSHIVE 홈페이지 — 공통 스타일
   Layout: 1200px 컨테이너(PC 1440 기준 좌우 120), MO 375 기준 좌우 20
   Figma: [작업용] 온스하이브_홈페이지_D안_261104 */
:root {
  --gold: #e9b837;
  --gold-deep: #d6a223;
  --gold-text: #876007;
  --gold-soft: #ffe7a0;
  --ink: #111111;
  --black: #0e0d0a;
  --dark: #16140f;
  --paper: #ffffff;
  --gray-bg: #f6f6f6;
  --line: #e6e1d6;
  --line-2: #dcd7cb;
  --muted: #55524b;
  --muted-2: #6b675e;
  --muted-3: #8e887a;
  --sand: #a9a293;
  --sand-light: #cfc8b8;
  --brown: #3a2c06;

  --f-kr: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-en: "Montserrat", "Noto Sans KR", sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 80px;
  --tabs-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
@media (max-width: 1023px) { :root { --header-h: 60px; --tabs-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-kr);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-pc { display: inline; }
@media (max-width: 767px) { .br-pc { display: none; } }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); font-weight: 700; }
.en { font-family: var(--f-en); }
.gold { color: var(--gold); }
.gold-deep { color: var(--gold-deep); }

/* ───────── Eyebrow ───────── */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 13px/19.5px var(--f-mono); color: var(--gold-text); letter-spacing: -0.025em; }
.eyebrow img { width: 30px; height: 24px; flex: none; }
.on-dark .eyebrow { color: var(--gold); }

/* ───────── Section heading ───────── */
.sec { padding-block: 140px; }
.sec--flush-top { padding-top: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.sec-title { padding-top: 16px; font-size: 44px; font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.sec-title--lg { font-size: 52px; }
.sec-desc { font-size: 17px; line-height: 1.75; color: var(--muted); }
.sec-head .sec-desc { text-align: right; }
.on-dark .sec-title { color: #fff; }
.on-dark .sec-desc { color: var(--sand); }
@media (max-width: 1023px) {
  .sec { padding-block: 100px; }
  .sec--flush-top { padding-top: 0; }
  .sec-title { font-size: 36px; }
  .sec-title--lg { font-size: 40px; }
}
@media (max-width: 767px) {
  .sec { padding-block: 80px; }
  .sec--flush-top { padding-top: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec-head .sec-desc { text-align: left; }
  .sec-title, .sec-title--lg { font-size: 28px; }
  .sec-desc { font-size: 15px; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding-inline: 28px; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 24px; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .arw { width: 15px; height: 10px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: #000; }
.btn--gold:hover { background: #f2c64a; box-shadow: 0 10px 24px -10px rgba(233, 184, 55, .8); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost-light:hover .arw { filter: invert(1); }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: var(--gold); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2822; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) { .btn { height: 46px; padding-inline: 22px; font-size: 15px; } }

/* ───────── Header ───────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--black); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
}
.site-header__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: max(72px, env(safe-area-inset-left, 0px)); padding-right: max(72px, env(safe-area-inset-right, 0px));
}
.logo { position: relative; display: block; width: 123.5px; height: 30px; flex: none; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s var(--ease); }
.logo .logo--dark { opacity: 0; }
.gnb { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); display: flex; gap: 60px; }
.gnb > li { position: relative; display: flex; align-items: center; }
.gnb__link { position: relative; display: flex; align-items: center; gap: 6px; height: 100%; font-size: 17px; font-weight: 500; line-height: 22.5px; white-space: nowrap; transition: color .2s var(--ease); }
.gnb__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.gnb__link:hover, .gnb > li:focus-within > .gnb__link { color: var(--gold); }
.gnb__link:hover::after, .gnb__link.is-current::after { transform: scaleX(1); }
.gnb__caret { font-size: 12px; line-height: 15px; transition: transform .25s var(--ease); }
.has-sub:hover .gnb__caret, .has-sub:focus-within .gnb__caret { transform: rotate(180deg); }
.gnb__sub {
  position: absolute; top: calc(100% - 10px); left: 50%; min-width: 180px; padding: 10px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(14, 13, 10, .35);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover .gnb__sub, .has-sub:focus-within .gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb__sub a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 700; transition: background-color .2s; }
.gnb__sub a small { font: 700 11px/1 var(--f-mono); color: var(--muted-3); }
.gnb__sub a:hover { background: var(--gray-bg); }
.gnb__sub a:hover small { color: var(--gold-text); }
.header-cta { display: flex; gap: 8px; }
.header-cta a { display: inline-flex; align-items: center; height: 40px; padding-inline: 20px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 21px; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.header-cta .hc-line { border: 1px solid rgba(255, 255, 255, .5); }
.header-cta .hc-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.header-cta .hc-gold { background: var(--gold); color: #000; }
.header-cta .hc-gold:hover { background: #f2c64a; }
.menu-btn { display: none; position: relative; width: 40px; height: 40px; }
.menu-btn span { position: absolute; left: 11px; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 26px; }
/* 스크롤 후 화이트 헤더 */
[data-header-solid] .site-header, .site-header.is-solid { background: #fff; color: var(--ink); border-bottom-color: #eee; }
[data-header-solid] .site-header .logo--light, .site-header.is-solid .logo--light { opacity: 0; }
[data-header-solid] .site-header .logo--dark, .site-header.is-solid .logo--dark { opacity: 1; }
.site-header.is-solid .gnb__link:hover { color: var(--gold-text); }
[data-header-solid] .site-header .hc-line, .site-header.is-solid .hc-line { border-color: var(--ink); }
.site-header.is-solid .hc-line:hover { background: var(--ink); color: #fff; }
/* 아래로 스크롤 — 헤더 숨김 (A안) */
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }

@media (max-width: 1199px) { .gnb { gap: 36px; } .site-header__inner { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 1023px) {
  .gnb, .header-cta { display: none; }
  .menu-btn { display: block; margin-right: -10px; }
  .site-header__inner { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .logo { width: 98.8px; height: 24px; }
}

/* 모바일 메뉴 (Figma 미정의 — 브랜드 톤으로 설계) */
.m-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--black); color: #fff;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.m-menu.is-open { opacity: 1; visibility: visible; }
.m-menu__top { display: flex; align-items: center; justify-content: space-between; height: 60px; flex: none; }
.m-menu__top .logo { width: 98.8px; height: 24px; }
.m-menu__close { position: relative; width: 40px; height: 40px; margin-right: -10px; }
.m-menu__close::before, .m-menu__close::after { content: ""; position: absolute; left: 11px; top: 19px; width: 18px; height: 2px; background: #fff; }
.m-menu__close::before { transform: rotate(45deg); }
.m-menu__close::after { transform: rotate(-45deg); }
.m-menu__nav { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.m-menu__nav > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.m-menu__nav > li > a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font: 700 26px/1.2 var(--f-en); letter-spacing: -0.025em; transition: color .2s; }
.m-menu__nav > li > a::after { content: "→"; font: 400 18px var(--f-kr); color: var(--gold); }
.m-menu__nav > li > a:hover, .m-menu__nav > li > a.is-current { color: var(--gold); }
.m-menu__sub { display: flex; gap: 8px; padding-bottom: 18px; margin-top: -6px; }
.m-menu__sub a { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sand-light); }
.m-menu__sub a:hover { border-color: var(--gold); color: var(--gold); }
.m-menu__cta { margin-top: auto; padding-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-menu__cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ───────── Section tabs (서브페이지 공통) ───────── */
.sec-tabs {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line-2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .06);
  transition: top .35s var(--ease);
}
.sec-tabs.is-top { top: env(safe-area-inset-top, 0px); }
.sec-tabs__inner { display: flex; align-items: center; gap: 6px; height: var(--tabs-h); }
.sec-tabs__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; }
.sec-tabs__list::-webkit-scrollbar { display: none; }
.sec-tabs__list a { flex: none; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 22.5px; color: var(--muted-2); white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease); }
.sec-tabs__list a:hover { color: var(--ink); background: var(--gray-bg); }
.sec-tabs__list a.is-active { background: var(--ink); color: #fff; }
.sec-tabs__crumb { margin-left: auto; padding-left: 16px; flex: none; font: 700 12px/18px var(--f-mono); color: var(--muted-3); white-space: nowrap; }
.sec-tabs__crumb a:hover { color: var(--ink); }
@media (max-width: 1023px) {
  .sec-tabs__crumb { display: none; }
  .sec-tabs .container { padding-right: 0; }
  .sec-tabs__list { padding-right: 20px; }
  .sec-tabs__list a { padding: 8px 14px; font-size: 14px; }
}
[data-anchor] { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 8px); }

/* ───────── Sub hero (서브페이지 상단) ───────── */
.sub-hero { position: relative; overflow: hidden; background: var(--black); color: #fff; }
.sub-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub-hero__inner { position: relative; }

/* ───────── CTA split (공통 하단 배너) ───────── */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.cta-split__item { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.cta-split__item--gold { background: var(--gold); color: var(--ink); }
.cta-split__item--dark { background: var(--dark); color: #fff; }
.cta-split__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; transition: transform 1.2s var(--ease), opacity .6s; }
.cta-split__item--dark:hover .cta-split__bg { transform: scale(1.05); opacity: .36; }
.cta-split__body { position: relative; width: 100%; max-width: 540px; margin-left: 90px; padding-block: 80px; }
.cta-split__body .mono { font-size: 13px; line-height: 19.5px; }
.cta-split__title { margin-top: 16px; font-size: 46px; font-weight: 800; line-height: 1.28; letter-spacing: -0.025em; }
.cta-split__desc { margin-top: 16px; max-width: 420px; font-size: 16px; line-height: 1.7; }
.cta-split__item--gold .cta-split__desc { color: var(--brown); }
.cta-split__item--dark .cta-split__desc { color: var(--sand-light); }
.cta-split__item--dark .mono { color: var(--gold); }
.cta-split .btn { margin-top: 40px; }
@media (max-width: 1199px) { .cta-split__body { margin-left: 56px; margin-right: 40px; } .cta-split__title { font-size: 38px; } }
@media (max-width: 767px) {
  .cta-split { grid-template-columns: 1fr; }
  .cta-split__item { min-height: 0; }
  .cta-split__body { margin: 0; padding: 72px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)); }
  .cta-split__title { font-size: 30px; }
  .cta-split__desc { font-size: 15px; }
  .cta-split .btn { margin-top: 28px; }
}

/* ───────── Footer ───────── */
.site-footer { background: var(--dark); color: #fff; padding-block: 70px 50px; }
.footer-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-bottom: 60px; }
.footer-nav h3 { font-size: 14px; font-weight: 700; line-height: 21px; }
.footer-nav h3 a:hover { color: var(--gold); }
.footer-nav ul { padding-top: 14px; }
.footer-nav li a { display: inline-block; font-size: 13px; line-height: 27.3px; color: var(--sand); transition: color .2s, transform .2s var(--ease); }
.footer-nav li a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { width: 115.3px; height: 28px; margin-bottom: 12px; object-fit: cover; }
.footer-info { font-size: 13px; line-height: 1.75; color: var(--sand); }
.footer-info strong { color: #fff; font-weight: 700; }
.footer-info a.privacy { color: #fff; font-weight: 700; transition: color .2s; }
.footer-info a.privacy:hover { color: var(--gold); }
.footer-mail { display: flex; gap: 10px; }
.footer-mail a { padding: 9px 14px; border: 1px solid; font-size: 13px; font-weight: 700; line-height: 24.7px; white-space: nowrap; transition: background-color .25s, color .25s; }
.footer-mail .fm-gold { border-color: var(--gold); color: var(--gold); }
.footer-mail .fm-gold:hover { background: var(--gold); color: var(--ink); }

@media (max-width: 1023px) {
  .footer-nav { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .site-footer { padding-block: 56px 40px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-bottom: 44px; }
  .footer-mail { flex-direction: column; width: 100%; }
  .footer-mail a { text-align: center; }
  .footer-info { font-size: 12px; }
}

/* ───────── Reveal (첫 화면 밖 요소만 JS가 대기 상태로 전환) ───────── */
.rv-wait { opacity: 0; transform: translateY(28px); }
.rv-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rv-delay, 0s); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .rv-wait { opacity: 1; transform: none; }
}

/* ───────── Toast ───────── */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 16px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
