:root {
  --black: #0b0908;
  --panel: #171210;
  --gold: #cda438;
  --gold-border: rgba(205, 164, 56, 0.35);
  --gold-light: #e8c766;
  --red: #5c1414;
  --text: #f3ede0;
  --muted: #a99f8f;
  --champagne: 43 60% 82%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.script { font-family: 'Pinyon Script', cursive; color: var(--gold-light); font-size: 1.3em; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; margin: 0 0 12px; }
h1 { font-size: clamp(3rem, 7.5vw, 5.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--gold); }
h3 { color: var(--gold); font-size: 1.2rem; }
p { line-height: 1.7; color: var(--muted); }
a { color: inherit; text-decoration: none; }
.center { text-align: center; }
.sub { max-width: 560px; margin: 0 auto 40px; }
.overline { letter-spacing: 3px; text-transform: uppercase; font-size: 0.75rem; color: var(--gold); }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: rgba(11,9,8,0.85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--gold-border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 46px; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 0.85rem; font-weight: 300; letter-spacing: 2.5px; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.4rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 100px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: #0b0908 url("../img/hero.jpg") center/cover no-repeat; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(11,9,8,0.7), rgba(11,9,8,0.85)); }
.hero-content { position: relative; max-width: 960px; margin: 0 auto; text-align: center; }
.hero .overline { font-size: 0.9rem; }
.hero-gold { color: var(--gold); }
.hero-sub { max-width: 680px; margin: 0 auto 32px; font-size: 1.35rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn { padding: 18px 36px; font-size: 1rem; }

.btn {
  display: inline-block; padding: 14px 28px; font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 2px; transition: opacity 0.2s;
  border: none; font-family: inherit; cursor: pointer;
}
.btn-gold { background: linear-gradient(90deg, var(--gold-light), var(--gold)); color: #1a1410; }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); }
.btn:hover { opacity: 0.85; }
.btn-block { display: block; text-align: center; width: 100%; }

/* Sections */
.section { padding: 90px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--gold-border); padding: 28px; border-radius: 6px; }

/* Showcase */
.showcase-panel { position: relative; background: var(--panel); border: 1px solid var(--gold-border); border-radius: 6px; padding: 20px 20px 0; text-align: center; }
#robotCanvas { width: 100%; height: 460px; cursor: grab; }
#robotCanvas:active { cursor: grabbing; }
#robotCanvas canvas { display: block; }
.tag { position: absolute; font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(0,0,0,0.4); padding: 6px 10px; border-radius: 3px; }
.tag strong { color: var(--gold); font-family: 'Playfair Display', serif; }
.tag-tl { top: 20px; left: 20px; }
.tag-br { bottom: 20px; right: 20px; }
.tag-caption { position: static; display: inline-block; margin-top: 20px; }

/* Gallery carousel: exactly 5 cards visible (2 either side of the centered active one).
   Viewport width = 5 * (card + gap) so a 6th/7th card can never peek in. */
.carousel { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px auto 0; max-width: 1044px; }
.carousel-viewport {
  position: relative; width: 100%; min-height: 500px; overflow: hidden;
  display: flex; align-items: center; touch-action: pan-y; cursor: grab;
}
.carousel-track { display: flex; gap: 16px; transition: transform 0.5s ease; }
.carousel-card {
  position: relative; flex: 0 0 196px; aspect-ratio: 9 / 18;
  opacity: 0.45; transform: scale(0.85); transition: opacity 0.4s ease, transform 0.4s ease;
  border: 1px solid var(--gold-border); border-radius: 8px; overflow: hidden; background: #000;
}
.carousel-card.active { opacity: 1; transform: scale(1.15); z-index: 2; border-color: var(--gold); }
.carousel-card.clone { pointer-events: none; }
.carousel-card video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%; padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); pointer-events: none;
}
.card-overlay h4 {
  margin: 0 0 4px; color: var(--gold); font-family: 'Playfair Display', serif;
  font-size: 0.85rem; text-align: center;
}
.card-overlay p { margin: 0; color: var(--text); font-size: 0.65rem; line-height: 1.3; text-align: center; }
.mute-btn {
  position: absolute; bottom: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); border: 1px solid var(--gold); cursor: pointer;
}
.mute-btn svg { width: 18px; height: 18px; fill: var(--gold); }
.mute-btn svg.is-hidden { display: none; }
#gallery .sub { margin-bottom: 16px; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; background: var(--gold-border); cursor: pointer; }
.dot.active { background: var(--gold); }

/* Gallery carousel used as the hero background (hero-carousel.html) */
.hero-bg-plain { background: var(--black); }
.hero-bg-carousel { position: absolute; left: 0; right: 0; top: 15%; bottom: 8%; width: 100%; max-width: none; margin: 0; gap: 0; }
.hero-bg-carousel .carousel-viewport { width: 100%; height: 100%; min-height: 0; }
.hero-bg-carousel .carousel-track { height: 100%; }
.hero-bg-carousel .carousel-card { flex-basis: 20%; height: 100%; aspect-ratio: auto; opacity: 1; transform: scale(0.78); }
.hero-bg-carousel .carousel-card.active { opacity: 1; transform: scale(1.08); z-index: 2; }
.hero-bg-carousel .card-overlay, .hero-bg-carousel .mute-btn { display: none; }
.hero-bg-carousel .carousel-dots { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 2; }

/* Packages */
.pkg { position: relative; display: flex; flex-direction: column; }
.pkg h3 { text-align: center; font-size: 1.4rem; }
.pkg-sub { font-size: 0.9rem; text-align: center; margin-top: -8px; margin-bottom: 24px; }
.pkg-list { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.pkg-list li { margin-bottom: 14px; color: var(--muted); }
.pkg-icon { color: var(--gold); margin-right: 8px; }
.pkg-popular { border-color: var(--gold); box-shadow: 0 0 30px rgba(205, 164, 56, 0.15); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1410; font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 4px; white-space: nowrap; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.cal-title { margin-bottom: 20px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-header h4 { font-weight: 700; font-size: 1.1rem; margin: 0; }
.cal-header button { background: none; border: 1px solid var(--gold-border); color: var(--gold); width: 28px; height: 28px; cursor: pointer; border-radius: 4px; }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-weekdays span { font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; padding-bottom: 8px; }
.cal-days span.other-month { color: #4a4238; font-size: 0.8rem; padding: 8px 0; }
.cal-days button { aspect-ratio: 1; background: none; border: none; color: var(--text); font-weight: 600; font-size: 0.8rem; cursor: pointer; border-radius: 4px; }
.cal-days button:hover:not(:disabled) { background: #2a231d; }
.cal-days button.past { color: #4a4238; font-weight: 400; cursor: not-allowed; }
.cal-days button.booked { background: #3a332c; color: #8a8072; cursor: not-allowed; }
.cal-days button.today { background: var(--red); color: var(--text); }
.cal-days button.selected { background: var(--gold); color: #1a1410; }
.cal-legend { display: flex; gap: 16px; margin-top: 16px; font-size: 0.75rem; color: var(--muted); flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.dot.selected { background: var(--gold); }
.dot.booked { background: #3a332c; }
.dot.available { background: none; border: 1px solid var(--gold-border); }

.booking-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%; background: var(--black); border: 1px solid var(--gold-border); color: var(--text);
  padding: 12px; border-radius: 4px; font-family: inherit; font-size: 0.9rem;
}
::placeholder { color: var(--muted); }
.form-note { color: var(--gold); font-size: 0.85rem; }

.contact-grid .card { text-align: center; }
.icon { width: 28px; height: 28px; fill: var(--gold); margin-bottom: 10px; }
.contact-follow { margin-top: 48px; margin-bottom: 20px; }
.social { margin-top: 16px; display: flex; justify-content: center; gap: 24px; }
.social a { display: flex; align-items: center; gap: 6px; }
.social .icon-sm { width: 20px; height: 20px; fill: var(--muted); margin: 0; }
.social a:hover { color: var(--gold); }
.social a:hover .icon-sm { fill: var(--gold); }

/* Footer */
.footer { text-align: center; padding: 60px 0 30px; border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); }
.footer-title { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.3rem; margin-bottom: 4px; }
.footer-script { margin: 0 0 16px; font-family: 'Great Vibes', cursive; color: hsl(var(--champagne)); }

@media (max-width: 760px) {
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--black); flex-direction: column; gap: 16px; padding: 20px 24px; display: none; z-index: 20; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .book-grid, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  #robotCanvas { height: 320px; }
  .section { padding: 60px 0; }
  .badge { font-size: 0.6rem; padding: 5px 12px; }
  .carousel { max-width: 100%; }
  .carousel-viewport { min-height: 420px; }
  .carousel-card { flex-basis: 100%; aspect-ratio: 9 / 14; opacity: 1; transform: none; }
  .carousel-card.active { transform: none; }
  .hero-bg-carousel .carousel-dots { display: none; }
}
