/* Banyan Tree Haeundae Busan · 개인 학습용 리디자인 (공식 사이트 아님) */
:root {
    --green: #255B4D;
    --green-deep: #1C463B;
    --teal: #4AB096;
    --gold: #C9A56B;
    --sand: #F3ECE0;
    --sand-deep: #E6D9C3;
    --ink: #1B1B1B;
    --muted: #6B6459;
    --white: #FFFFFF;
    --serif: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
    --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--white); line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--white); }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }

/* Portfolio ribbon */
.pf-ribbon { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 20px; background: var(--ink); color: #D9D2C5; font-size: 12px; text-align: center; }
.pf-ribbon strong { color: var(--white); font-weight: 500; }
.pf-ribbon a { color: var(--gold); text-decoration: none; }
.pf-ribbon a:hover { text-decoration: underline; }

/* Header */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(28, 70, 59, .0); transition: background-color .8s var(--ease), box-shadow .8s var(--ease); }
.hd.is-solid { background: var(--green-deep); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hd-inner { max-width: 1600px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; gap: 48px; color: var(--white); }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(201,165,107,.7); line-height: 1.1; }
.logo-main { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .18em; }
.logo-sub { font-size: 9px; letter-spacing: .36em; margin-top: 4px; color: var(--gold); }
.gnb { margin-left: auto; }
.gnb ul { display: flex; gap: 40px; }
.gnb a { text-decoration: none; font-size: 14px; letter-spacing: .06em; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--ease); }
.gnb a:hover { background-size: 100% 1px; }
.hd-util { display: flex; align-items: center; gap: 20px; font-size: 13px; letter-spacing: .12em; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; position: relative; }
.menu-btn .bar { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn .bar:nth-of-type(2) { top: 16px; }
.menu-btn .bar:nth-of-type(3) { top: 24px; }
.menu-btn[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; margin-top: calc(var(--hd-h, 86px) * -1); height: clamp(560px, 82vh, 820px); overflow: hidden; color: var(--white); }
.hero picture, .hero-img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 55% 50%; transform: scale(1.04); animation: heroSettle 6s var(--ease) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,25,.55) 0%, rgba(10,30,25,.1) 35%, rgba(10,30,25,.15) 65%, rgba(10,30,25,.55) 100%); }
.hero-copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; text-align: center; padding: 0 24px 60px; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 76px); letter-spacing: .08em; line-height: 1.2; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .5em; }
.hero-title .dot { color: var(--gold); }
@keyframes heroSettle { to { transform: scale(1); } }

/* Booking */
.booking { position: relative; z-index: 5; margin-top: -56px; padding: 0 max(24px, calc(50% - 566px)) 0; background: linear-gradient(180deg, transparent 56px, var(--green) 56px); }
.book-form { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 200px; align-items: stretch; background: #111; color: var(--white); box-shadow: 0 24px 48px rgba(0,0,0,.18); }
.bf-field { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.bf-field label, .bf-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #BFB6A6; }
.bf-field input[type="date"] { width: 100%; min-width: 0; background: none; border: 0; color: var(--white); font: 400 16px var(--sans); padding: 0; color-scheme: dark; }
.bf-arrow { display: flex; align-items: center; justify-content: center; padding: 0 8px; border-right: 1px solid rgba(255,255,255,.12); }
.bf-arrow span { font-family: var(--serif); font-size: 15px; color: var(--gold); white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.35); background: none; border-radius: 50%; line-height: 1; transition: border-color .4s var(--ease), color .4s var(--ease); }
.stepper button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 16px; text-align: center; font-size: 16px; font-weight: 400; }
.bf-submit { border: 0; background: var(--green); color: var(--white); letter-spacing: .18em; text-transform: uppercase; font-size: 13px; transition: background-color .6s var(--ease); }
.bf-submit:hover { background: var(--teal); }
.bf-status { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.82); text-align: center; }
.bf-status:empty { display: none; }

/* Section heads */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: .04em; line-height: 1.2; margin-top: 14px; }

/* Offers */
.offers { background: var(--green); color: var(--white); padding: 110px 0 110px; }
.offers .eyebrow { color: var(--gold); }
.carousel { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 64px; }
.offer-list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.offer-list::-webkit-scrollbar { display: none; }
.offer { scroll-snap-align: start; }
.offer picture { overflow: hidden; display: block; }
.offer img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.6s var(--ease); }
.offer:hover img { transform: scale(1.04); }
.offer-body { padding-top: 22px; }
.offer-cat { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 6px; }
.more { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid rgba(201,165,107,.7); }
.car-btn { position: absolute; top: 38%; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: none; display: grid; place-items: center; transition: border-color .5s var(--ease); }
.car-btn:hover:not(:disabled) { border-color: var(--gold); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-btn[hidden] { display: none; }
.car-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.car-btn.prev { left: 0; }
.car-btn.next { right: 0; }
.view-all { text-align: center; margin-top: 56px; }
.view-all a { font-size: 14px; letter-spacing: .1em; text-underline-offset: 6px; }

/* Gallery */
.gallery { background: var(--sand); padding: 120px 40px; }
.gallery .eyebrow { color: var(--muted); }
.gallery .sec-title { color: var(--green); }
.g-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 1600px; margin: 0 auto; }
.g-list figure { margin: 0; position: relative; overflow: hidden; }
.g-list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.6s var(--ease); }
.g-list figure:hover img { transform: scale(1.05); }
.g-list figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%); }
.g-list figcaption { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; text-align: center; color: var(--white); font-family: var(--serif); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.g-list li:nth-child(2) { transition-delay: .12s; }
.g-list li:nth-child(3) { transition-delay: .24s; }
.g-list li:nth-child(4) { transition-delay: .36s; }
.g-list li:nth-child(5) { transition-delay: .48s; }
.g-list li:nth-child(6) { transition-delay: .6s; }

/* Duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.duo-col { padding: 110px 48px; text-align: center; color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.duo-news { background: var(--green); }
.duo-member { background: #0E0E0E; transition-delay: .2s; }
.duo-title { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: .04em; }
.duo-title::after { content: ""; display: block; width: 48px; height: 1px; margin: 18px auto 0; background: var(--gold); }
.duo p { font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.86); }
.btn-line { margin-top: 8px; padding: 14px 40px; border: 1px solid rgba(255,255,255,.7); background: none; font-size: 14px; letter-spacing: .12em; transition: background-color .6s var(--ease), color .6s var(--ease); }
.btn-line:hover { background: var(--white); color: var(--ink); }
.demo-status { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.8); pointer-events: none; }

/* About */
.about { position: relative; height: clamp(380px, 32vw, 560px); overflow: hidden; }
.about picture, .about-img { width: 100%; height: 100%; }
.about-img { object-fit: cover; object-position: 0% 50%; }
.about::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,250,244,.75) 0%, rgba(255,250,244,.35) 28%, rgba(255,250,244,0) 45%); pointer-events: none; }
.about-copy { position: absolute; z-index: 2; top: 50%; left: max(40px, 6vw); transform: translateY(-50%); max-width: 360px; }
.js .about-copy[data-reveal] { transform: translateY(calc(-50% + 18px)); }
.js .about-copy[data-reveal].is-visible { transform: translateY(-50%); }
.about-copy .eyebrow { color: var(--green); font-weight: 500; }
.about-text { margin-top: 20px; font-size: 20px; line-height: 1.8; color: #2A2A2A; }
.about-text strong { font-weight: 500; }

/* Footer */
.ft { background: var(--sand-deep); color: #3A352C; }
.ft-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 40px 64px; display: flex; gap: 56px; align-items: flex-start; }
.logo-ft { color: var(--green); border-color: rgba(37,91,77,.5); flex: none; }
.logo-ft .logo-sub { color: #8B7651; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; margin-bottom: 18px; color: #5A5347; }
.ft-note { font-size: 13px; line-height: 1.8; color: #5A5347; }
.ft-note + .ft-note { margin-top: 6px; }
.ft-note strong { font-weight: 500; color: #3A352C; }

/* Reveal: 은은하고 천천히 */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero [data-reveal] { transition-duration: 2s; }
.js .hero .hero-title[data-reveal] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero-img { animation: none; transform: none; }
    .offer img, .g-list img { transition: none; }
    .js .about-copy[data-reveal] { transform: translateY(-50%); }
}

/* Tablet */
@media (max-width: 1100px) {
    .gnb ul { gap: 24px; }
    .book-form { grid-template-columns: 1fr auto 1fr; }
    .bf-guest { border-top: 1px solid rgba(255,255,255,.12); }
    .bf-guest:nth-of-type(4) { grid-column: 1 / 2; }
    .bf-guest:last-of-type { grid-column: 2 / 4; border-right: 0; }
    .bf-submit { grid-column: 1 / -1; padding: 18px; }
    .offer-list { grid-auto-columns: calc((100% - 24px) / 2); }
    .g-list { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    .hd-inner { padding: 12px 20px; gap: 16px; }
    .logo-main { font-size: 16px; }
    .logo-sub { font-size: 8px; }
    .menu-btn { display: block; }
    .gnb { position: absolute; top: 100%; left: 0; right: 0; background: var(--green-deep); max-height: 0; overflow: hidden; transition: max-height .8s var(--ease); }
    .gnb.is-open { max-height: 360px; }
    .gnb ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; }
    .gnb a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); background: none; }
    .hd-util { margin-left: auto; }
    .hero { height: 78vh; min-height: 520px; }
    .hero-title { flex-direction: column; gap: 4px; }
    .hero-title .dot { display: none; }
    .booking { margin-top: -40px; padding: 0 16px; background: linear-gradient(180deg, transparent 40px, var(--green) 40px); }
    .book-form { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
    .bf-field { padding: 16px 14px; }
    .bf-arrow { padding: 0 4px; }
    .bf-arrow span { font-size: 13px; }
    .bf-guest:nth-of-type(4) { grid-column: 1 / 3; }
    .bf-guest:last-of-type { grid-column: 3 / 4; }
    .bf-field input[type="date"] { font-size: 15px; }
    .offers { padding: 72px 0 80px; }
    .carousel { padding: 0 0 0 20px; }
    .car-btn { display: none; }
    .offer-list { grid-auto-columns: 78%; gap: 16px; padding-right: 20px; }
    .gallery { padding: 88px 16px; }
    .g-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .g-list figcaption { font-size: 18px; bottom: 14px; }
    .duo { grid-template-columns: 1fr; }
    .duo-col { padding: 80px 24px; }
    .duo-title { font-size: 28px; }
    .duo p { font-size: 15px; }
    .br-pc { display: none; }
    .about { height: auto; background: var(--sand); }
    .about::before { display: none; }
    .about picture { height: 300px; }
    .about-img { object-position: 50% 30%; }
    .about-copy, .js .about-copy[data-reveal], .js .about-copy[data-reveal].is-visible { position: static; transform: none; max-width: none; padding: 40px 24px 56px; }
    .js .about-copy[data-reveal] { transform: translateY(18px); }
    .js .about-copy[data-reveal].is-visible { transform: none; }
    .about-text { font-size: 17px; }
    .ft-inner { flex-direction: column; gap: 28px; padding: 48px 20px 56px; }
    .sec-head { margin-bottom: 40px; }
}
