* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --color-dark-blue: #213555;
  --color-blue: #3e5879;
  --navy-blue: #2f374b;
  --color-beige: #bb8060;
  --color-light-beige: #f1eee9;
  --dark-brown: #26201e;
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Quattrocento";
  src: url("../fonts/Quattrocento-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Quattrocento", serif;
}

h1,
h2,
h3,
a,
.logo {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- SLIDER BASE --- */
.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000; /* fallback background */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- ARROWS --- */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(40%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: clamp(1rem, 2vw, 1.5rem);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  font-weight: 100;
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* --- DOTS --- */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}
/* Test ends */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 10%,
    rgba(0, 0, 0, 0.05) 100%
  )
}

.content-wrapper {
  width: 80%;
  min-height: 50vh;
  margin-top: 6rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.content {
  text-align: center;
  color: white;
  width: 100%;
}

.content h1 {
  font-size: clamp(1.5rem, 4vw, 9rem);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 900;
}

.button-section {
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.fancy-button {
  position: relative;
  padding: 1rem 2rem;
  margin: 1.5rem;
  color: white;
  background: transparent;
  border: none;
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  cursor: pointer;
  font-family: inherit;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.fancy-button .corner {
  position: absolute;
  width: 15px;
  height: 15px;
  background: transparent;
  border-color: white;
  z-index: -1;
  transition: all 0.3s ease;
}

/* Corners */
.top-left {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.top-right {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.fancy-button:hover {
  background: white;
  color: var(--color-blue);
  font-weight: 600;
}

/* Hover animation to connect the corners */
.fancy-button:hover .corner {
  width: 100%;
  height: 100%;
  border-width: 2px;
  color: black;
}

.top-left {
  transition-delay: 0s;
}
.top-right {
  transition-delay: 0.05s;
}
.bottom-right {
  transition-delay: 0.1s;
}
.bottom-left {
  transition-delay: 0.15s;
}

/* Navigation Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  position: fixed;
  height: 6rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

header.hide-on-scroll {
  transform: translateY(-100%);
  opacity: 0;
}

header.gradient-on-scroll {
  background: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.4)),
    var(--color-dark-blue);
}

.logo {
  top: 1.5rem;
  left: 1.5rem;
  text-align: left;
  width: clamp(10rem, 60vw, 25rem);
}

@media (max-width: 375px) {
  .logo {
    width: clamp(8.5rem, 20vw, 25rem);
  }
}

.logo h3 {
  font-size: clamp(1.25rem, 2vw, 2.5rem);
  color: white;
  text-transform: uppercase;
  font-weight: 500;
}

.menu {
  width: clamp(35rem, 45vw, 37.5rem);
}

.menu ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
}

.menu ul li a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(0.85rem, 1vw, 1rem);
  transition: text-decoration 0.3s ease;
}

.menu ul li a:hover {
  font-weight: 900;
}

/* Burger Menu Styles */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 1.5rem;
}

.burger .line {
  width: 2rem;
  height: 0.053rem;
  background-color: white;
  margin: 0.17rem 0;
}

/* Position close button inside header, same as burger */
.close-btn {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  cursor: pointer;
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
}

.close-btn .line {
  width: 2rem;
  height: 0.1rem;
  background-color: white;
  margin: 0.2rem 0;
}

.close-btn .line:first-child {
  transform: rotate(45deg);
  position: absolute;
}

.close-btn .line:last-child {
  transform: rotate(-45deg);
  position: absolute;
}

/* Menu hidden by default */
.fullscreen-menu {
  display: none;
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 6rem);
  background: linear-gradient(to top, black, rgba(0, 0, 0, 0.4)),
    var(--color-dark-blue);
  overflow: hidden;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.2);
  justify-content: center;
  align-items: center;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fullscreen-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
  pointer-events: none;
}

.fullscreen-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-menu > ul {
  position: relative;
  z-index: 2;
  list-style-type: none;

  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#fullscreenMenu a {
  color: white !important;
  text-decoration: none;
  font-size: 1.1rem;
}

/* Lock scroll */
body.no-scroll {
  overflow: hidden;
}

/* Show/hide logic */
.burger {
  display: flex;
}

.close-btn {
  display: none;
}

header.menu-open .burger {
  display: none;
}

header.menu-open .close-btn {
  display: flex;
}

/* Mobile only */
@media (min-width: 769px) {
  .burger,
  .close-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }
}

.floor-background {
  position: absolute;
  z-index: 999;
  width: 100%;
  background: url("../static_assets/images/Floor\ plan.png");
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  height: 100vh;
}

.floor-background-overlay {
  background-color: #000;
  width: 100%;
  height: 100vh;
  position: absolute;
  z-index: 999;
  opacity: 0.75;
}

#preloader {
  position: fixed;
  inset: 0;
  background: #111;
  color: #fff;
  z-index: 9999999999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", sans-serif;
  transition: all 0.5s ease;
}

body.preloader-active,
html.preloader-active {
  overflow: hidden;
  height: 100%;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  width: 80%;
  z-index: 9999;
}

.preloader-wrapper {
  width: 100%;
}

.loader-text-wrapper {
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 99999;
}

.loader-logo {
  font-weight: 100;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 15vw, 26rem);
  z-index: 99999;
}

.loader-brand {
  font-size: clamp(1rem, 2vw, 18.5rem);
  z-index: 99999;
  letter-spacing: 5px;
  font-weight: 200;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  width: 28%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader-counter {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-top: 1rem;
}

.loader-spinner {
  width: 150px;
  height: 150px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tablet and mobile Version */

@media (max-width: 1024px) {
  .content-wrapper {
    display: flex;
    flex-direction: column;
  }

  .fancy-button {
    margin-bottom: 2rem;
    padding: 0.7rem 2rem;
  }
}

/* ------------------ Pdf Modal Settings ----------------- */

.fancy-button-index-pdf {
  position: relative;
  padding: 0.4rem 5rem;
  color: white;
  background: transparent;
  border: none;
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  cursor: pointer;
  font-family: inherit;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.fancy-button-index-pdf .corner-index-pdf {
  position: absolute;
  width: 15px;
  height: 15px;
  background: transparent;
  border-color: white;
  z-index: -1;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .fancy-button-index-pdf {
    padding: 0.4rem 4rem;
  }
}

/* Corners */
.top-left-index-pdf {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.top-right-index-pdf {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.bottom-left-index-pdf {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.bottom-right-index-pdf {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.fancy-button-index-pdf:hover {
  background: white;
  color: var(--color-blue);
  font-weight: 600;
}

/* Hover animation to connect the corners */
.fancy-button-index-pdf:hover .corner-index-pdf {
  width: 100%;
  height: 100%;
  border-width: 2px;
  color: black;
}

.top-left-index-pdf {
  transition-delay: 0s;
}
.top-right-index-pdf {
  transition-delay: 0.05s;
}
.bottom-right-index-pdf {
  transition-delay: 0.1s;
}
.bottom-left-index-pdf {
  transition-delay: 0.15s;
}

#pdf-modal {
  overflow: auto;
  touch-action: pan-y;
}

#pdf-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
}

#close-pdf {
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Cookies */

.cookie-banner,
.cookie-settings {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 30rem;
  background: #ffffff;
  color: #222;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 100000;
  display: none;
}

.cookie-settings {
  top: 30%;
  bottom: auto;
}

.cookie-buttons button {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 0.3rem;
  transition: background 0.3s;
}

.cookie-buttons button:first-child {
  background: black;
  color: white;
  border: 1px solid white;
}

.cookie-buttons button:first-child:hover {
  background: white;
  color: black;
  border: 1px solid black;
}

.cookie-buttons button:nth-child(2) {
  background: #888;
  color: white;
}

.cookie-buttons button:nth-child(2):hover {
  background: #555;
}

.cookie-buttons button:nth-child(3) {
  background: #144fe6;
  color: white;
  border: 1px solid #222;
}

.cookie-buttons button:nth-child(3):hover {
  background: #222;
  color: white;
}

#change-cookie-settings {
  position: fixed;
  bottom: -2rem;
  right: 1rem;
  padding: 1rem 2rem;
  font-size: clamp(0.875rem, 1vw, 1rem);
  background: black;
  color: white;
  border: none;
  border-radius: 0.7rem;
  cursor: pointer;
  z-index: 10;
  transition: bottom 0.5s ease-in-out;
}

#change-cookie-settings:hover {
  bottom: 0rem; /* Fully visible */
}

p,
h3 {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

label {
  display: block;
  font-size: clamp(0.9rem, 1vw, 1rem);
  margin: 0.5rem 0;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

#essential-cookies {
  width: 1rem;
  height: 1rem;
}

#analytics-cookies {
  width: 1rem;
  height: 1rem;
}

#marketing-cookies {
  width: 1rem;
  height: 1rem;
}
