/* =====================================================================
   SECTIONS  —  hero, gallery, booking, about, contact, footer.
   ===================================================================== */

.section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: var(--space-xl) var(--space-lg);
  position: relative;
}
.section__content { width: 100%; }

/* Section heads with a control cluster on the right */
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Dark sections → header flips to its "light" theme */
.hero, .contact { background: var(--color-black); color: var(--color-white); }

/* Light sections → header flips to its "dark" theme */
.gallery, .about { background: var(--color-white); color: var(--color-black); }
.booking { background: var(--color-grey-soft); color: var(--color-black); }

.section h2 { margin-block: var(--space-sm) var(--space-md); }

/* =====================================================================
   HERO  —  full-bleed video, darkened + blurred for legibility
   ===================================================================== */
.hero { overflow: hidden; color: var(--color-white); }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* darken + soft blur so the heading reads cleanly */
  filter: brightness(0.45) saturate(1.05) blur(2px);
  transform: scale(1.06); /* hide blur edge bleed */
  z-index: 0;
}
/* Extra red-black gradient scrim for depth + brand tint */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.25) 40%, rgba(20,20,20,0.8) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(236,29,43,0.18), transparent 60%);
}
.hero__content { position: relative; z-index: 2; }
.hero__content > * + * { margin-top: var(--space-md); }
.hero .eyebrow { color: #fff; opacity: 0.85; }
.hero h1 { margin-top: var(--space-sm); }

/* =====================================================================
   GALLERY  —  one centered slide at a time, sliding (translateX) carousel.
   Images are letterboxed (object-fit: contain) so nothing is ever cropped.
   ===================================================================== */
.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slider-btn:active { transform: scale(0.92); }

.gallery__eyebrow {
  text-align: center;
  margin-bottom: var(--space-md);
}

.gallery__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  max-width: 1000px;
  margin-inline: auto;
}

.gallery__stage {
  position: relative;
  width: 100%;
  height: min(64vh, 600px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-grey-soft);
}

.gallery__track {
  display: flex;
  height: 100%;
  /* JS sets transform: translateX(-N * 100%) and transitions it */
  transition: transform 550ms var(--ease);
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  /* contain → the whole photo is always visible, never cropped */
  object-fit: contain;
}

/* Landscape shots: full-bleed letterbox filling the stage edge to edge. */
.gallery__slide--landscape img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--radius);
}

/* Portrait shots: a narrower, taller framed card with its own shadow,
   instead of stretching to the stage's wide aspect ratio. */
.gallery__slide--portrait img {
  width: auto;
  height: 100%;
  max-width: 55%;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .gallery__slide--portrait img { max-width: 80%; }
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.gallery__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-grey-soft);
  box-shadow: inset 0 0 0 1px #ccc;
  transition: background var(--transition), transform var(--transition);
}
.gallery__dot:hover { transform: scale(1.2); }
.gallery__dot.is-active { background: var(--accent); box-shadow: none; }

@media (max-width: 768px) {
  .gallery__viewport { gap: var(--space-sm); }
  .gallery__arrow { width: 40px; height: 40px; font-size: 1rem; }
  .gallery__stage { height: 50vh; }
}

/* =====================================================================
   BOOKING  —  calendar + form
   ===================================================================== */
.booking__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: start;
}

/* ---- Calendar ---- */
.calendar {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.calendar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.calendar__bar .slider-btn { width: 40px; height: 40px; font-size: 1rem; }
.calendar__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar__weekdays {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
}

.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border-radius: var(--radius);
  background: var(--color-grey-soft);
  color: var(--color-black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  user-select: none;
}
.day:hover:not(.day--disabled):not(.day--booked) { background: #ddd; }
.day--empty { background: none; cursor: default; }
.day--disabled { color: #c7c7c7; background: transparent; cursor: not-allowed; }
.day--booked {
  background: var(--accent);
  color: #fff;
  cursor: not-allowed;
  position: relative;
}
.day--booked::after { content: "✕"; font-size: 0.7rem; opacity: 0.85; }
.day--selected { background: var(--color-black); color: #fff; }
.day--in-range { background: #cfcfcf; }
.day--today { box-shadow: inset 0 0 0 2px var(--accent); }

.calendar__legend {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.calendar__legend li { display: flex; align-items: center; gap: 0.4em; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot--free { background: var(--color-grey-soft); box-shadow: inset 0 0 0 1px #ccc; }
.dot--sel { background: var(--color-black); }
.dot--booked { background: var(--accent); }

/* ---- Booking form ---- */
.booking__form {
  background: var(--color-black);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.booking__field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.booking__field--total { border-bottom: 0; }
.booking__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.booking__field output { font-family: var(--font-heading); font-size: 1.05rem; }

.booking__form .btn { margin-top: var(--space-xs); text-align: center; }
.booking__form .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.booking__msg { font-size: 0.9rem; min-height: 1.2em; }
.booking__msg.is-ok { color: #6ee7a8; }
.booking__msg.is-err { color: #ff8a8a; }
.booking__msg-link { color: inherit; text-decoration: underline; cursor: pointer; }
.booking__msg-link:hover { color: var(--accent); }

@media (max-width: 900px) {
  .booking__layout { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__body { max-width: 60ch; }
.about p + p { margin-top: var(--space-sm); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact .lead { max-width: none; }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 0.85em 1.4em;
  font-family: var(--font-heading);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.contact__link:hover { background: var(--accent); border-color: var(--accent); color: var(--color-white); transform: translateY(-2px); }
.contact__link-icon { font-size: 1.1em; line-height: 1; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  min-height: auto;
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.site-footer p { opacity: 0.6; font-size: 0.9rem; }
.site-footer__contact { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.site-footer__contact a { opacity: 0.6; font-size: 0.9rem; transition: opacity var(--transition); }
.site-footer__contact a:hover { opacity: 1; }
