/* Demo 1 site shell: header, mobile menu, closing band and footer, shared by every page.
   Own d1- class names so it never collides with the inner pages' styles. */
.d1-hd, .d1-close, .d1-foot { --d1-bg: #F7F4EF; --d1-ink: #2B2224; --d1-muted: #5E5553; --d1-line: #E3DBD1; --d1-crimson: #8C3041; --d1-crimson-d: #6E2232; --d1-dark: #1C0A10;
  --d1-serif: "Noto Serif TC", "Songti TC", serif; --d1-sans: "Noto Sans TC", system-ui, sans-serif; --d1-label: "Montserrat", "Noto Sans TC", sans-serif; }
.d1-wrap { width: min(100% - 48px, 1440px); margin-inline: auto; }
.d1-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 32px; border-radius: 99px; background: var(--d1-crimson); color: #fff; font: 500 .9rem/1 var(--d1-serif); letter-spacing: .14em; text-decoration: none; transition: background-color .3s, gap .3s; }
.d1-btn:hover { background: var(--d1-crimson-d); gap: 18px; color: #fff; }

/* header */
.d1-hd { position: sticky; top: 0; z-index: 60; background: rgba(247, 244, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--d1-line); color: var(--d1-ink); font-family: var(--d1-serif); }
.d1-hd a { color: inherit; text-decoration: none; }
.d1-hd__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 84px; }
.d1-logo { display: flex; flex-direction: column; color: var(--d1-crimson) !important; }
.d1-logo b { font: 600 1.7rem/1.1 var(--d1-serif); letter-spacing: .14em; }
.d1-logo small { font: 500 .58rem/1.4 var(--d1-label); letter-spacing: .28em; margin-top: 4px; }
.d1-nav { display: flex; gap: clamp(20px, 3vw, 48px); font-size: .9rem; letter-spacing: .14em; }
.d1-nav a { padding: 6px 0; transition: color .3s; }
.d1-nav a:hover, .d1-nav a.is-on { color: var(--d1-crimson); }
.d1-hd__end { display: flex; align-items: center; gap: 28px; }
.d1-lang { font: 500 .8rem/1 var(--d1-sans); color: var(--d1-muted); letter-spacing: .1em; }
.d1-lang b { color: var(--d1-crimson); font-weight: 500; }
.d1-hd .d1-btn { padding: 12px 24px; font-size: .85rem; }
.d1-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.d1-burger span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--d1-ink); transition: transform .3s, top .3s; }
.d1-burger span:first-child { top: 17px; } .d1-burger span:last-child { top: 25px; }
.d1-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.d1-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.d1-menu { border-top: 1px solid var(--d1-line); background: var(--d1-bg); }
.d1-menu[hidden] { display: none; }
.d1-menu .d1-wrap { display: flex; flex-direction: column; padding-block: 12px 28px; }
.d1-menu a { padding: 14px 0; border-bottom: 1px solid var(--d1-line); font-size: 1.05rem; letter-spacing: .14em; }
.d1-menu a.is-on { color: var(--d1-crimson); }
.d1-menu .d1-btn { margin-top: 24px; justify-content: center; border-bottom: 0; }

/* closing band */
.d1-close { position: relative; overflow: hidden; background: var(--d1-dark); color: #fff; }
.d1-close > img { position: absolute; left: 0; top: -25%; width: 100%; height: 150%; object-fit: cover; object-position: 70% 50%; will-change: transform; }
.d1-close::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--d1-dark) 0%, rgba(28, 10, 16, .85) 30%, rgba(28, 10, 16, .2) 65%, rgba(28, 10, 16, .4) 100%); }
.d1-close .d1-wrap { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 280px; }
.d1-close h2 { margin: 0; color: #fff; font: 400 clamp(1.5rem, 1.4vw + .9rem, 2.2rem)/1.75 var(--d1-serif); letter-spacing: .1em; }
.d1-close .d1-btn { box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }

/* footer */
.d1-foot { padding: 22px 0; background: var(--d1-dark); color: rgba(255, 255, 255, .55); font: 400 .75rem/1.6 var(--d1-sans); letter-spacing: .08em; }
.d1-foot .d1-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.d1-foot a { color: #fff; text-decoration: none; }

@media (max-width: 1199px) {
  .d1-nav { display: none; }
  .d1-burger { display: block; }
}
@media (max-width: 860px) {
  .d1-lang { display: none; }
  .d1-close .d1-wrap { flex-direction: column; align-items: flex-start; padding-block: 56px; }
  .d1-close::before { background: linear-gradient(90deg, rgba(28, 10, 16, .92), rgba(28, 10, 16, .55)); }
}
@media (max-width: 560px) {
  .d1-wrap { width: calc(100% - 40px); }
  .d1-hd__end { gap: 8px; }
  .d1-hd .d1-btn { padding: 10px 16px; font-size: .78rem; } .d1-logo b { font-size: 1.4rem; }
}

/* the button is a link inside the header: keep its text white */
.d1-hd a.d1-btn, .d1-close a.d1-btn { color: #fff; }
/* inner pages already pad their first section by --hd-h for a floating header; this header sits in the flow, so pull the content back up underneath it */
.d1-hd ~ main#main { margin-top: -84px; }
.d1-btn, .d1-logo b, .d1-logo small { white-space: nowrap; }
/* small phones: the booking button lives in the menu instead */
@media (max-width: 560px) { .d1-hd__end > .d1-btn { display: none; } }
