/* =========================================================
   MR. JAMES JKT — Public Site Stylesheet
   Palette: Onyx black + antique gold, elegant English tone
   ========================================================= */

:root {
  --onyx:        #0a0908;
  --onyx-deep:   #050504;
  --charcoal:    #16130f;
  --charcoal-2:  #1f1a13;
  --gold:        #c9a24b;
  --gold-soft:   #e3c777;
  --gold-dim:    #7c6634;
  --ivory:       #efe9db;
  --ivory-dim:   #b8b0a0;
  --line:        rgba(201,162,75,0.22);

  --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

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

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

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

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  background: rgba(6,5,4,0.86);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}
.main-nav { display: flex; gap: 40px; }
.main-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-soft);
  transition: width .35s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-soft); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle { display: none; }

/* ---------------------------------------------------------
   Hero / Carousel
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--onyx-deep);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 6s ease;
  z-index: 1;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,4,3,0.55) 0%, rgba(5,4,3,0.25) 40%, rgba(5,4,3,0.85) 100%);
  z-index: 3;
}
.hero-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  color: var(--gold-soft);
  margin-bottom: 22px;
  padding-left: 0.5em; /* offset the trailing letter-spacing visually */
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 26px;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--ivory-dim);
  font-weight: 300;
}
.hero-cta {
  margin-top: 42px;
}
.hero-dots {
  position: absolute;
  bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: transparent;
  cursor: pointer;
  transition: background .35s ease, color .35s ease;
}
.btn:hover { background: var(--gold); color: var(--onyx-deep); }
.btn-solid {
  background: var(--gold);
  color: var(--onyx-deep);
}
.btn-solid:hover { background: var(--gold-soft); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------------------------------------
   Section framing
   --------------------------------------------------------- */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-family: var(--serif);
  font-style: normal;
  color: var(--gold-soft);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.section-desc { margin-top: 18px; color: var(--ivory-dim); font-size: 1rem; max-width: 60ch; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* moving ambience overlay used behind darker sections */
.ambience {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambience::before, .ambience::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.10;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: drift 22s ease-in-out infinite;
}
.ambience::before { top: -20%; left: -10%; }
.ambience::after { bottom: -25%; right: -10%; animation-duration: 28s; animation-delay: -6s; }
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.12); }
}

/* ---------------------------------------------------------
   About / intro strip
   --------------------------------------------------------- */
.intro {
  background: var(--charcoal);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-figure { position: relative; }
.intro-figure img { border: 1px solid var(--line); }

/* ---------------------------------------------------------
   Video showcase (portrait, hover to play)
   --------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--onyx-deep);
}
.video-card video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85;
  transition: transform 1.2s ease, opacity .5s ease;
}
.video-card:hover video { transform: scale(1.06); opacity: 1; }
.video-card .video-label {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--serif);
  font-style: normal;
  color: var(--gold-soft);
  font-size: 0.95rem;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.video-card .play-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory-dim);
  font-size: .72rem; letter-spacing: .12em;
  background: rgba(5,4,3,0.25);
  opacity: 1;
  transition: opacity .4s ease;
}
.video-card:hover .play-hint { opacity: 0; }

/* ---------------------------------------------------------
   Rooms (reservation) grid
   --------------------------------------------------------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.room-card {
  border: 1px solid var(--line);
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  transition: border-color .35s ease, transform .35s ease;
  cursor: pointer;
}
.room-card:hover, .room-card.is-selected { border-color: var(--gold); transform: translateY(-6px); }
.room-card.is-selected { box-shadow: 0 0 0 1px var(--gold); }
.room-media { aspect-ratio: 2 / 3; overflow: hidden; position: relative; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease; }

/* Busy / not-available room state --------------------------------------- */
.room-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(5,4,3,0.85);
  border: 1px solid #c96a4b;
  color: #e5a084;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.room-card.is-busy { cursor: not-allowed; }
.room-card.is-busy:hover { border-color: var(--line); transform: none; }
.room-card.is-busy .room-media img { filter: grayscale(0.5) brightness(0.45); }
.room-availability {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #d99a5c;
  min-height: 1.1em;
}
.room-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.room-name { font-size: 1.4rem; margin-bottom: 10px; }
.room-specs {
  list-style: none; padding: 0; margin: 0 0 18px;
  font-size: 0.82rem; color: var(--ivory-dim);
  display: flex; flex-direction: column; gap: 6px;
}
.room-specs li::before { content: "— "; color: var(--gold-dim); }
.room-price {
  margin-top: auto;
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------------------------------------------------------
   Menu / gallery grid (8 portrait photos)
   --------------------------------------------------------- */
.menu-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.menu-gallery figure {
  margin: 0; aspect-ratio: 2/3; overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.menu-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.menu-gallery figure:hover img { transform: scale(1.08); }
.menu-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  font-size: .78rem; letter-spacing: .06em; color: var(--ivory-dim);
  background: linear-gradient(0deg, rgba(5,4,3,0.85), transparent);
}

/* ---------------------------------------------------------
   Forms (register / reservation)
   --------------------------------------------------------- */
.form-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,162,75,0.08), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(201,162,75,0.06), transparent 45%),
    var(--onyx);
}
.form-card {
  width: 100%; max-width: 460px;
  border: 1px solid var(--line);
  background: var(--charcoal);
  padding: 48px 42px;
}
.form-card .eyebrow {
  font-family: var(--serif); font-style: normal; color: var(--gold-soft);
  margin-bottom: 8px;
}
.form-card h1 { font-size: 1.9rem; margin-bottom: 30px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 0.76rem; letter-spacing: .1em;
  color: var(--ivory-dim); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--onyx-deep);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-note { margin-top: 18px; font-size: 0.82rem; color: var(--ivory-dim); text-align: center; }
.form-error { color: #d98e6e; font-size: .85rem; margin-top: 10px; display: none; }
.form-success { color: var(--gold-soft); font-size: .85rem; margin-top: 10px; display: none; }

/* Reservation page layout */
.reservation-shell {
  padding: 150px 0 100px;
  min-height: 100vh;
}
.reservation-summary {
  position: sticky; top: 110px;
  border: 1px solid var(--line);
  background: var(--charcoal);
  padding: 30px;
}
.reservation-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.summary-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ivory-dim); }
.summary-row strong { color: var(--ivory); font-weight: 400; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--onyx-deep);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  text-align: center;
}
.site-footer .brand-text { display: block; margin-bottom: 14px; font-size: 1.1rem; }
.site-footer address { font-style: normal; color: var(--ivory-dim); font-size: .88rem; line-height: 1.8; }
.site-footer .footer-meta { margin-top: 6px; color: var(--gold-dim); font-size: .82rem; }
.site-footer .footer-base { margin-top: 30px; font-size: .72rem; color: #55503f; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-gallery { grid-template-columns: repeat(3, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .reservation-layout { grid-template-columns: 1fr; }
  .reservation-summary { position: static; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-gallery { grid-template-columns: repeat(2, 1fr); }
  .section-pad { padding: 80px 0; }
  .form-card { padding: 36px 26px; }
}
