/* =========================================================
   Hair#426  —  장안동 프리미엄 헤어살롱
   고급 살롱 테마 스타일시트
   ========================================================= */

/* ---- 로고 전용 폰트: Bernardo Moda Contrast (로고에만 사용) ---- */
@font-face {
	font-family: 'Bernardo Moda Contrast';
	src: url('../fonts/BernardoModaContrast.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--ivory:   #f6f2ec;
	--cream:   #efe9e0;
	--ink:     #15110d;
	--ink-2:   #221c16;
	--coffee:  #3a302708;
	--gold:    #b08d57;
	--gold-2:  #caa56e;
	--text:    #2c2520;
	--muted:   #8a7f73;
	--line:    #e3dccf;
	--serif:   'Noto Serif KR', 'Nanum Myeongjo', serif;
	--sans:    'Noto Sans KR', system-ui, sans-serif;
	--logo:    'Bernardo Moda Contrast', 'Noto Serif KR', serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	color: var(--text);
	background: var(--ivory);
	font-weight: 300;
	line-height: 1.8;
	letter-spacing: .01em;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 130px 0; position: relative; }
.sec-eyebrow {
	font-family: var(--sans);
	font-size: 12px; font-weight: 500;
	letter-spacing: .42em; text-transform: uppercase;
	color: var(--gold); margin: 0 0 18px;
}
.sec-title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.3; margin: 0 0 22px; color: var(--ink);
	letter-spacing: .01em;
}
.sec-desc { color: var(--muted); font-size: 16px; margin: 0; }
.sec-head.center { text-align: center; margin-bottom: 64px; }
.sec-head.center .sec-eyebrow { }

/* ---------- 버튼 ---------- */
.btn {
	display: inline-block;
	padding: 16px 38px;
	font-family: var(--sans); font-size: 13px; font-weight: 500;
	letter-spacing: .2em; text-transform: uppercase;
	border: 1px solid transparent; cursor: pointer;
	transition: all .35s ease;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost.dark { color: var(--ink); border-color: var(--line); }
.btn-ghost.dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
	position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
	transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
	padding: 26px 0;
}
.site-header .nav-inner {
	max-width: 1180px; margin: 0 auto; padding: 0 28px;
	display: flex; align-items: center; justify-content: space-between;
}
.brand-logo {
	font-family: var(--logo);
	font-size: 30px; color: #fff; letter-spacing: .02em; line-height: 1;
	transition: color .4s;
}
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a {
	font-size: 13px; font-weight: 500; letter-spacing: .15em;
	color: rgba(255,255,255,.86); text-transform: uppercase;
	position: relative; padding-bottom: 4px;
}
.main-nav a:not(.nav-reserve)::after {
	content: ''; position: absolute; left: 0; bottom: 0;
	width: 0; height: 1px; background: var(--gold-2); transition: width .3s;
}
.main-nav a:not(.nav-reserve):hover::after { width: 100%; }
.main-nav a:hover { color: #fff; }
.nav-reserve {
	border: 1px solid rgba(255,255,255,.5); padding: 10px 22px !important;
	border-radius: 2px; letter-spacing: .1em;
}
.nav-reserve:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* 스크롤 시 헤더 */
.site-header.scrolled {
	background: rgba(255,255,255,.96); padding: 16px 0;
	box-shadow: 0 2px 30px rgba(0,0,0,.06);
	backdrop-filter: saturate(140%) blur(6px);
}
.site-header.scrolled .brand-logo { color: var(--ink); }
.site-header.scrolled .main-nav a { color: var(--text); }
.site-header.scrolled .nav-reserve { border-color: var(--gold); color: var(--gold); }
.site-header.scrolled .nav-reserve:hover { color: #fff; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; margin: 4px 0; transition: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center 28%;
	opacity: 0; transform: scale(1.08);
	transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,8,6,.45) 0%, rgba(10,8,6,.25) 40%, rgba(10,8,6,.6) 100%);
}
.hero-content {
	position: relative; z-index: 3; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; color: #fff; padding: 0 24px;
}
.hero-eyebrow {
	font-size: 12px; letter-spacing: .45em; text-transform: uppercase;
	color: var(--gold-2); margin: 0 0 26px;
	opacity: 0; animation: fadeUp 1s ease .3s forwards;
}
.hero-logo {
	font-family: var(--logo);
	font-weight: normal;
	font-size: clamp(58px, 12vw, 150px);
	line-height: .95; margin: 0;
	letter-spacing: .01em;
	text-shadow: 0 8px 40px rgba(0,0,0,.35);
	opacity: 0; animation: fadeUp 1.1s ease .45s forwards;
}
.hero-tagline {
	font-family: var(--serif);
	font-size: clamp(16px, 2.4vw, 22px); font-weight: 300;
	margin: 26px 0 40px; letter-spacing: .08em;
	opacity: 0; animation: fadeUp 1.1s ease .65s forwards;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
	opacity: 0; animation: fadeUp 1.1s ease .85s forwards; }
.hero-scroll {
	position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
	z-index: 3; color: #fff; font-size: 10px; letter-spacing: .3em;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	opacity: .85;
}
.hero-scroll span {
	display: block; width: 1px; height: 46px;
	background: linear-gradient(#fff, transparent);
	animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{ transform: scaleY(.4); transform-origin: top; } 50%{ transform: scaleY(1); } }
@keyframes fadeUp { from { opacity:0; transform: translateY(26px);} to { opacity:1; transform:none; } }

/* =========================================================
   DESIGNERS (디자이너 소개)
   ========================================================= */
.designers { background: var(--ivory); }
.designer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.designer-card {
	background: #fff; border: 1px solid var(--line);
	overflow: hidden; transition: transform .4s ease, box-shadow .4s ease;
}
.designer-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(40,30,20,.12); }
.designer-photo { display: block; position: relative; aspect-ratio: 4/5; overflow: hidden; background: #e7ded0; cursor: pointer; }
.designer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.designer-card:hover .designer-photo img { transform: scale(1.05); }
.designer-photo-cta {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	background: rgba(16,12,9,.45); color: #fff;
	font-size: 14px; letter-spacing: .22em; font-weight: 500;
	opacity: 0; transition: opacity .4s ease;
}
.designer-photo-cta::before {
	content: ''; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.7);
}
.designer-photo:hover .designer-photo-cta,
.designer-photo:focus-visible .designer-photo-cta { opacity: 1; }
/* 모바일: 항상 살짝 보이는 예약 힌트 */
@media (hover: none) {
	.designer-photo-cta { opacity: 1; background: transparent; align-items: flex-end; justify-content: flex-end; padding: 14px; }
	.designer-photo-cta::before { display: none; }
	.designer-photo-cta { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-size: 12px; }
}
.designer-info { padding: 28px 26px 30px; text-align: center; }
.designer-role {
	display: inline-block; font-size: 11px; letter-spacing: .25em; color: var(--gold);
	border: 1px solid var(--gold); border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.designer-info h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); margin: 0 0 10px; }
.designer-info p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.designer-book { font-size: 13px; letter-spacing: .1em; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.designer-book:hover { color: var(--ink); border-color: var(--ink); }
.designer-cta { text-align: center; margin: 54px 0 0; }
.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost.light:hover { background: #fff; color: var(--ink); }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-visual::before {
	content: ''; position: absolute; inset: 18px -18px -18px 18px;
	border: 1px solid var(--gold); z-index: 0; opacity: .55;
}
.about-img { position: relative; z-index: 1; width: 100%; height: 560px; object-fit: cover; }
.about-lead { font-family: var(--serif); font-size: 18px; line-height: 1.95; color: var(--ink-2); margin: 0 0 22px; }
.about-body { color: var(--muted); margin: 0 0 36px; }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.about-points li { display: flex; flex-direction: column; padding-left: 22px; position: relative; }
.about-points li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.about-points strong { font-weight: 600; color: var(--ink); font-size: 16px; }
.about-points span { color: var(--muted); font-size: 14px; }

/* =========================================================
   SERVICE
   ========================================================= */
.service { background: var(--ink); color: #f3ece2; }
.service .sec-title, .service .brand-logo { color: #fff; }
.service .sec-desc { color: rgba(243,236,226,.6); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.menu-card {
	background: var(--ink); padding: 50px 38px; position: relative;
	transition: background .4s ease;
}
.menu-card:hover { background: var(--ink-2); }
.menu-no { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: .2em; }
.menu-card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: #fff; margin: 18px 0 14px; }
.menu-card p { color: rgba(243,236,226,.6); font-size: 14.5px; margin: 0 0 26px; min-height: 70px; }
.menu-tag {
	font-size: 11px; letter-spacing: .25em; color: var(--gold-2);
	border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: block;
}

/* ---- 가격표 ---- */
.price-list { max-width: 760px; margin: 0 auto; }
.price-row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
	padding: 22px 4px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.price-row:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.price-name { font-family: var(--serif); font-size: 19px; color: #fff; font-weight: 500; }
.price-name em { font-style: normal; font-size: 14px; color: rgba(243,236,226,.55); margin-left: 8px; font-family: var(--sans); }
.price-val { font-family: var(--serif); font-size: 18px; color: var(--gold-2); white-space: nowrap; letter-spacing: .02em; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { margin: 0; overflow: hidden; aspect-ratio: 3/4; background: #ded5c6; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.28));
	opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-more { text-align: center; margin: 48px 0 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--ivory); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative;
	font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	font-size: 24px; color: var(--gold); font-weight: 300; transition: transform .3s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 44px 28px 0; color: var(--muted); font-size: 15.5px; line-height: 1.9; }

/* =========================================================
   LOCATION
   ========================================================= */
.location { background: var(--ink-2); color: #f3ece2; }
.location .sec-title { color: #fff; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.loc-list { list-style: none; padding: 0; margin: 0 0 36px; }
.loc-list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.loc-key { flex: 0 0 84px; color: var(--gold-2); font-size: 13px; letter-spacing: .15em; padding-top: 2px; }
.loc-val { color: rgba(243,236,226,.9); font-size: 15.5px; }
.loc-val a { border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.loc-val a:hover { color: var(--gold-2); }
.loc-val em { color: rgba(243,236,226,.5); font-style: normal; font-size: 13px; }
.loc-map { position: relative; overflow: hidden; }
.loc-map-img { width: 100%; height: 420px; object-fit: cover; }
.loc-video { width: 100%; height: 460px; object-fit: cover; display: block; background: #100c09; }
.loc-video-tag {
	position: absolute; left: 18px; top: 18px; z-index: 2;
	background: rgba(16,12,9,.6); color: #f3ece2; backdrop-filter: blur(4px);
	font-size: 11px; letter-spacing: .22em; padding: 7px 14px; border: 1px solid rgba(202,165,110,.5);
}
.loc-map-link {
	position: absolute; right: 18px; bottom: 18px;
	background: rgba(255,255,255,.95); color: var(--ink);
	padding: 12px 22px; font-size: 13px; letter-spacing: .1em; font-weight: 500;
}
.loc-map-link:hover { background: var(--gold); color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(243,236,226,.65); padding-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; }
.footer-logo { font-family: var(--logo); font-size: 38px; color: #fff; display: block; margin-bottom: 18px; }
.footer-keywords { font-size: 13px; color: rgba(243,236,226,.45); max-width: 360px; line-height: 1.9; }
.footer-biz p { margin: 6px 0; font-size: 14px; }
.footer-reserve { margin-top: 16px !important; }
.footer-reserve a { color: var(--gold-2); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: 12.5px; letter-spacing: .05em; color: rgba(243,236,226,.4); }

/* ---- 항상 보이는 예약 버튼 ---- */
.float-reserve {
	position: fixed; right: 26px; bottom: 26px; z-index: 95;
	display: inline-flex; align-items: center; gap: 9px;
	background: var(--gold); color: #fff;
	padding: 15px 26px; border-radius: 999px;
	font-size: 14px; font-weight: 600; letter-spacing: .08em;
	box-shadow: 0 12px 34px rgba(176,141,87,.45);
	transition: background .35s, transform .35s;
}
.float-reserve:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.float-reserve-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: fr-pulse 1.8s infinite; }
@keyframes fr-pulse { 0%{ box-shadow:0 0 0 0 rgba(255,255,255,.5);} 70%{ box-shadow:0 0 0 9px rgba(255,255,255,0);} 100%{ box-shadow:0 0 0 0 rgba(255,255,255,0);} }

.loc-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.to-top {
	position: fixed; right: 26px; bottom: 92px; z-index: 90;
	width: 48px; height: 48px; background: var(--gold); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 20px;
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink-2); }

/* ---------- 스크롤 등장 (JS 지원 시에만 숨김) ---------- */
.has-js .section .container,
.has-js .menu-card,
.has-js .gallery-item {
	opacity: 0; transform: translateY(34px);
	transition: opacity .9s ease, transform .9s ease;
}
.has-js .section .container.in-view,
.has-js .menu-card.in-view,
.has-js .gallery-item.in-view {
	opacity: 1; transform: none;
}
.has-js .menu-card:nth-child(2), .has-js .gallery-item:nth-child(2) { transition-delay: .08s; }
.has-js .menu-card:nth-child(3), .has-js .gallery-item:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
	.has-js .section .container,
	.has-js .menu-card,
	.has-js .gallery-item { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 980px) {
	.section { padding: 90px 0; }
	.about-grid, .location-grid { grid-template-columns: 1fr; gap: 44px; }
	.about-img { height: 440px; }
	.menu-grid { grid-template-columns: repeat(2, 1fr); }
	.menu-card p { min-height: 0; }
	.designer-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; width: 76%; max-width: 320px;
		background: var(--ink); flex-direction: column; align-items: flex-start;
		gap: 0; padding: 100px 32px; transform: translateX(100%); transition: transform .4s ease;
		box-shadow: -20px 0 60px rgba(0,0,0,.3);
	}
	.main-nav.open { transform: none; }
	.main-nav a { color: rgba(255,255,255,.85) !important; padding: 16px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
	.nav-reserve { border: 1px solid var(--gold) !important; margin-top: 18px; text-align: center; }
	.site-header.scrolled .main-nav a { color: rgba(255,255,255,.85); }
	.menu-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.footer-inner { flex-direction: column; gap: 32px; }
	.about-visual::before { inset: 12px -10px -10px 10px; }
	.price-name { font-size: 16px; }
	.price-name em { display: block; margin: 4px 0 0; }
	.price-val { font-size: 16px; }
	.float-reserve { padding: 13px 20px; font-size: 13px; right: 16px; bottom: 16px; }
	.to-top { right: 16px; bottom: 74px; }
}
@media (max-width: 480px) {
	.container { padding: 0 20px; }
	.hero-actions { flex-direction: column; width: 100%; max-width: 280px; }
	.hero-actions .btn { width: 100%; }
}
