:root {
  /* Color direction based on the logo palette. */
  --brand-blue: #082a8d;
  --brand-blue-soft: #123aa2;
  --brand-beige: #c0b89b;
  --brand-beige-light: #d8d2bb;
  --text-light: #f4f6ff;
  --text-dark: #142036;
  --overlay: rgba(4, 16, 52, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text-light);
  background: #050f2f;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(3, 11, 37, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease,
    border-bottom-color 0.25s ease;
}

.topbar.scrolled {
  background: var(--brand-blue);
  backdrop-filter: none;
  border-bottom-color: rgba(192, 184, 155, 0.22);
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--brand-beige-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--brand-beige);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--brand-beige);
  background: transparent;
  color: var(--brand-beige-light);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

.section {
  min-height: 100vh;
}

.container {
  padding: 6.5rem 6vw 4rem;
  color: var(--text-light);
}

.home-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 5s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 4rem 1.2rem 2rem;
}

.hero-overlay img {
  width: min(180px, 40vw);
  margin: 0 auto 1rem;
}

.hero-overlay h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 0.08em;
  color: var(--brand-beige-light);
}

.hero-overlay p {
  margin: 0.8rem auto 0;
  max-width: 620px;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.slider-dots {
  position: absolute;
  z-index: 2;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--brand-beige-light);
}

.section-title h2 {
  margin: 0 0 1.3rem;
  font-family: "Cormorant Garamond", serif;
  color: var(--brand-beige-light);
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.about-layout {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.about-layout p {
  margin-top: 0;
  line-height: 1.85;
}

.about-layout img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(6, 24, 79, 0.16);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(6, 24, 79, 0.14);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.room-card {
  background: var(--brand-blue);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(6, 24, 79, 0.11);
  position: relative;
  overflow: hidden;
}

.room-content {
  padding: 1rem;
}

.room-media {
  position: relative;
  margin-bottom: 0.65rem;
}

.room-image {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.room-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(216, 210, 187, 0.95);
  color: #142036;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.room-placeholder {
  display: grid;
  place-items: center;
  border: 2px dashed var(--brand-beige);
  color: var(--brand-blue);
  font-weight: 500;
  background: linear-gradient(135deg, rgba(192, 184, 155, 0.2), rgba(8, 42, 141, 0.12));
}

.room-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0;
  padding: 0;
}

.room-gallery img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  cursor: zoom-in;
}

.room-card.family .room-gallery img:nth-child(3) {
  grid-column: 1 / -1;
}

.room-card [data-zoom] {
  cursor: zoom-in;
}

.room-card h3 {
  margin: 0;
  color: var(--brand-beige-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
}

.room-card p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  color: var(--text-light);
}

.contact-section {
  background: linear-gradient(180deg, rgba(8, 42, 141, 0.18) 0%, rgba(8, 42, 141, 0.28) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-grid h3 {
  margin-top: 0;
  color: var(--brand-beige-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.contact-form {
  background: rgba(3, 11, 37, 0.35);
  border: 1px solid rgba(192, 184, 155, 0.25);
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(192, 184, 155, 0.25);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(244, 246, 255, 0.7);
}

.contact-form button {
  border: 0;
  background: var(--brand-beige-light);
  color: #142036;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
}

.floating-book {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1200;
  text-decoration: none;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(8, 42, 141, 0.35);
  transition: 0.25s ease;
}

.floating-book:hover {
  transform: translateY(-2px);
  background: var(--brand-beige);
  color: #1c1f27;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(3, 11, 37, 0.88);
  backdrop-filter: blur(5px);
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease;
  will-change: transform;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(192, 184, 155, 0.35);
  background: rgba(216, 210, 187, 0.95);
  color: #142036;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    right: 1.2rem;
    top: 3.9rem;
    flex-direction: column;
    background: rgba(6, 22, 72, 0.95);
    border: 1px solid rgba(192, 184, 155, 0.33);
    border-radius: 10px;
    padding: 0.7rem;
    min-width: 170px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .room-gallery img {
    height: 92px;
  }

  .room-gallery {
    gap: 0.35rem;
    padding: 0.65rem;
  }

  .room-label {
    left: 10px;
    bottom: 10px;
    font-size: 0.85rem;
  }

  .container {
    padding-top: 5.8rem;
  }
}
