/* ============================================================
   BELLEVUE HOTEL & SPA — design system
   Palette: obsidian black / aged gold / deep burgundy / ivory
   Signature motif: "shoji lines" — thin vertical gold hairlines,
   a nod to the house's Japanese lobby restaurant, carried through
   as section dividers and background texture across a Western
   grand-hotel palette.
   ============================================================ */

/* Fonts are loaded via preconnected <link> tags in views/partials/head.ejs
   for faster, non-render-blocking loading (rather than @import here).
   Design tokens (colors, type, spacing) now live in tokens.css, which is
   linked before this file in <head> — see partials/head.ejs. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--burgundy); color: var(--ivory); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ivory-dim);
  font-weight: 400;
}

p { color: var(--ivory-dim); }
.muted { color: var(--stone); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Shoji-line signature motif ---------- */
.shoji-divider {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  height: 46px;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 var(--gutter);
  opacity: 0.55;
}
.shoji-divider span {
  background: linear-gradient(to bottom, transparent, var(--gold) 50%, transparent);
  width: 1px;
  justify-self: center;
  height: 100%;
}

.shoji-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 14 - 1px),
    var(--line) calc(100% / 14 - 1px),
    var(--line) calc(100% / 14)
  );
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, letter-spacing 0.35s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--black); letter-spacing: 0.24em; }
.btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

.btn-solid {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
}
.btn-solid:hover, .btn-solid:focus-visible { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--gold-soft); }

.btn-ghost { border-color: rgba(244,239,230,0.35); color: var(--ivory); }
.btn-ghost:hover { background: var(--ivory); color: var(--black); border-color: var(--ivory); }

.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(11,11,13,0.92);
  backdrop-filter: blur(10px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--gold-soft);
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding-bottom: 4px; color: var(--ivory-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line); color: var(--gold-soft);
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 12px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle svg { transition: transform 0.2s ease; }
.lang-menu[aria-expanded="true"] ~ .lang-toggle svg,
.lang-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  list-style: none; margin: 0; padding: 6px 0; min-width: 150px;
  background: var(--charcoal); border: 1px solid var(--line);
  box-shadow: var(--shadow-float); z-index: 50;
}
.lang-menu.open { display: block; }
.lang-menu li {
  padding: 10px 16px; font-family: var(--sans); font-size: 0.82rem; color: var(--ivory-dim);
  cursor: pointer; white-space: nowrap;
}
.lang-menu li:hover { background: var(--charcoal-2); color: var(--gold-soft); }
.lang-menu li[aria-selected="true"] { color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; background: none; border: none; color: var(--ivory); font-size: 1.4rem; cursor: pointer; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
  transform: scale(1.06);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,13,0.98) 2%, rgba(11,11,13,0.25) 55%, rgba(11,11,13,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 88px;
  max-width: 920px;
}
.hero .eyebrow { margin-bottom: 22px; color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 20px;
}
.hero .lede { max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; right: var(--gutter);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll::after { content: ''; width: 1px; height: 46px; background: var(--gold); }

/* ---------- Quick search bar ---------- */
.quick-search {
  position: relative;
  z-index: 3;
  margin: -46px var(--gutter) 0;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 20px;
  align-items: end;
}
.quick-search .field { display: flex; flex-direction: column; gap: 8px; }
.quick-search label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.quick-search input, .quick-search select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 6px 0;
}
.quick-search input:focus, .quick-search select:focus { outline: none; border-bottom-color: var(--gold); }
@media (max-width: 900px) {
  .quick-search { grid-template-columns: 1fr 1fr; margin: 20px var(--gutter); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 130px 0; }
.section-tight { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.on-charcoal { background: var(--charcoal); }
.on-burgundy { background: linear-gradient(155deg, var(--burgundy-deep), var(--burgundy)); }

/* ---------- Outlets — asymmetric editorial grid ---------- */
.outlets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}
.outlet-card {
  position: relative;
  overflow: hidden;
  grid-column: span 3;
  grid-row: span 1;
}
.outlet-card.large { grid-column: span 4; grid-row: span 2; }
.outlet-card.tall { grid-column: span 2; grid-row: span 2; }
.outlet-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
  filter: brightness(0.72) saturate(1.05);
}
.outlet-card:hover img { transform: scale(1.06); filter: brightness(0.5) saturate(1.1); }
.outlet-card .overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%);
}
.outlet-card .tag { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.outlet-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.outlet-card .arrow { position: absolute; top: 22px; right: 22px; color: var(--gold); font-size: 1.2rem; opacity: 0; transform: translate(-6px,6px); transition: all 0.3s ease; }
.outlet-card:hover .arrow { opacity: 1; transform: translate(0,0); }

@media (max-width: 900px) {
  .outlets-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .outlet-card, .outlet-card.large, .outlet-card.tall { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Room cards ---------- */
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.room-card { background: var(--charcoal); display: grid; grid-template-columns: 1.1fr 1fr; }
.room-card .photo { position: relative; min-height: 340px; overflow: hidden; }
.room-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.room-card .info { padding: 40px; display: flex; flex-direction: column; }
.room-card .rate { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); margin: 18px 0; }
.room-card .rate span { font-family: var(--sans); font-size: 0.7rem; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; }
.amenity-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.amenity-list li { font-size: 0.82rem; color: var(--ivory-dim); display: flex; align-items: center; gap: 8px; }
.amenity-list li::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

@media (max-width: 900px) {
  .room-grid { grid-template-columns: 1fr; }
  .room-card { grid-template-columns: 1fr; }
  .room-card .photo { min-height: 260px; }
}

/* ---------- Testimonials ---------- */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.testimonial { border-top: 1px solid var(--line); padding-top: 24px; }
.testimonial .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; font-size: 0.9rem; }
.testimonial p.quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ivory); margin-bottom: 18px; }
.testimonial .who { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 900px) { .testimonial-track { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; filter: brightness(0.85); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ivory-dim);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
.gallery-filters { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.gallery-filters button {
  background: transparent; border: 1px solid var(--line); color: var(--ivory-dim);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 18px; cursor: pointer;
}
.gallery-filters button.active, .gallery-filters button:hover { border-color: var(--gold); color: var(--gold-soft); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms (booking / contact / inquiries) ---------- */
.form-panel { background: var(--charcoal); border: 1px solid var(--line); padding: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 13px 14px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--stone); margin-top: 6px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-panel { padding: 28px; } }

.alert { padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(201,162,75,0.08); font-size: 0.9rem; margin-bottom: 30px; }
.alert.success { border-color: #7fae7f; background: rgba(127,174,127,0.08); }
.alert.error { border-color: var(--burgundy); background: rgba(110,20,35,0.12); }

/* ---------- Stat / numbers strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .item { padding: 34px var(--gutter); text-align: center; border-left: 1px solid var(--line); }
.strip .item:first-child { border-left: none; }
.strip .num { font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); }
.strip .label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip .item:nth-child(3) { border-left: none; } }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-grid h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-family: var(--sans); font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--ivory-dim); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--line); color: var(--ivory-dim);
}
.social-icon:hover { border-color: var(--gold); color: var(--gold-soft) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--stone); flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WhatsApp / Telegram live chat widget ---------- */
.chat-widget { position: fixed; bottom: 26px; right: 26px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-launcher {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--burgundy); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim);
  cursor: pointer; font-size: 1.4rem;
  box-shadow: var(--shadow-float);
}
.chat-launcher:hover { background: var(--burgundy-deep); }
.chat-dot {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--black);
}
.chat-dot.online { background: var(--ok); }
.chat-dot.offline { background: var(--stone); }

.chat-panel {
  display: none; flex-direction: column; gap: 10px;
  background: var(--charcoal); border: 1px solid var(--line);
  padding: 18px; width: 240px;
  box-shadow: var(--shadow-float);
}
.chat-panel.open { display: flex; }
.chat-status { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ivory-dim); }
.chat-status .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chat-status.online .dot { background: var(--ok); }
.chat-status.offline .dot { background: var(--stone); }
.chat-offline-msg { font-size: 0.82rem; color: var(--stone); line-height: 1.5; margin: -2px 0 4px; }
.chat-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); color: var(--ivory);
  font-family: var(--sans); font-size: 0.85rem;
}
.chat-option:hover { border-color: var(--gold); color: var(--gold-soft); }
.chat-option.whatsapp svg { color: #25D366; }
.chat-option.telegram svg { color: #29A9EA; }

/* ---------- Simple page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--black) 8%, rgba(11,11,13,0.3) 60%); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: 70px; }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 30px; } }
.tag-pill { display: inline-block; border: 1px solid var(--line); color: var(--stone); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; margin: 4px 6px 4px 0; }
