@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --black: #000;
  --gold: #d4af37;
  --dark-gold: #947d34;
  --white: #fff;
  --red: #841c26;
  --dark-gray: #333;
  --light-gray: #f7f7f7;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0 auto;
  width: 100vw;
  box-sizing: border-box;
  font-family: "Ubuntu", serif;
  line-height: 1.6;
  background-color: var(--black);
  color: var(--gold);
}

h2 {
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  position: relative;
  color: var(--gold);
  background: transparent;
}
header .logo,
header nav {
  position: relative;
  z-index: 1;
}
header .logo img {
  max-width: 250px;
  height: auto;
  border-radius: 50%;
}
header .header-left .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header .header-left h1 {
  font-family: "Cinzel Decorative", serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--gold);
  margin: 0;
  white-space: nowrap; /* Prevents wrapping */
}
header .header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
header .header-desc {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.2rem;
  color: var(--gold);
  text-align: right;
  /*max-width: 15ch; /* Limit to 15 characters */
  white-space: wrap; /* Allows wrapping */
  margin-top: 1rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 1.5rem;
  font-family: "Cinzel Decorative", serif;
}

nav a {
  color: var(--gold);
  margin-left: 1rem;
  text-decoration: none;
}

/* Hamburger button styles */
.hamburger {
  background: var(--black); /* Black background */
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  z-index: 200;
  gap: 6px;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--gold); /* Gold lines */
  border-radius: 2px;
  transition: 0.3s;
}

.hero {
  padding: 4rem 1rem;
  background: var(--light-gray);
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.hero-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 300px;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.hero-box:hover {
  transform: translateY(-5px);
}

.hero-box h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--black);
}

.hero-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}
.hero h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.hero-box h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--dark-gray);
}

.services {
  padding: 2rem 1rem;
  text-align: center;
}

.services h2 {
  color: var(--gold);
  margin-bottom: 2rem;
}

.service-boxes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.service {
  position: relative;
  background-color: var(--black);
  color: var(--gold);
  flex: 1 1 200px;
  max-width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.service::after {
  content: attr(data-desc);
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0; /* Hidden by default */
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: pre-line;
  z-index: 2;
  text-align: center;
  max-width: 90%;
}

.service:hover::after {
  opacity: 1;
}

.service i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.service:hover {
  transform: scale(1.05);
  background-color: var(--white);
}

.service-desc {
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 1rem;
}

.gallery,
.contact,
.reservation {
  margin-left: auto;
  margin-right: auto;
}

.gallery,
.contact {
  padding: 2rem 1rem;
}
.services h2,
.gallery h2,
.contact h2 {
  margin-bottom: 1rem;
}

.services ul {
  list-style: inside disc;
}
.services li {
  margin-bottom: 0.5rem;
}

.gallery {
  max-width: 50vw;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.gallery .grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery img {
  width: calc(33% - 0.67rem);
  border-radius: 4px;
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 50%; /* Limit carousel width to 50% of its parent */
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%; /* Each image takes full width of carousel */
  flex: 0 0 100%; /* Only one image visible at a time */
  border-radius: 5px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  z-index: 1;
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

.reservation {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  width: 100vw; /* Use full viewport width for centering */
  margin: 0 auto;
}

form {
  display: grid;
  gap: 0.5rem;
  max-width: 400px; /* Set a fixed max width for the form */
  width: 100%; /* Let the form fill available space up to max-width */
  margin: 0 auto;
}
input,
textarea,
select {
  padding: 0.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
}
button {
  padding: 0.75rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  cursor: pointer;
}
button:hover {
  background: var(--dark-gold);
}

/* Thank you message styling */
#thankyou-message {
  display: none;
  color: var(--gold);
  text-align: center;
  margin: 1em 0;
  font-size: 1.2em;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 8px;
  padding: 1em;
}
#thankyou-message.show {
  display: block;
}

footer {
  background: var(--dark-gray);
  color: var(--light-gray);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer p a {
  color: var(--gold);
  text-decoration: none;
}

.contact h2 {
  text-align: left;
  font-size: 1.75rem;
}
.contact-flex {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}

.map-container {
  flex: 0 0 50vw;
  width: 50vw;
  min-width: 0;
  max-width: none;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}

.contact-tiles {
  flex: 0 0 50vw;
  width: 50vw;
  min-width: 0;
  max-width: none;
  display: grid;
  grid-template-rows: repeat(5, 1fr); /* 5 equally spaced rows */
  grid-template-columns: 1fr;
  gap: 1rem;
  align-content: stretch;
  justify-items: center;
  padding: 2rem 1rem;
  height: 100%; /* Make the grid fill the available height */
}

.contact-tile {
  background: var(--black);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.5rem;
  font-size: 1rem;
  color: var(--gold);
  text-align: center;
  min-height: 80px;
}

.contact-tile i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-tile a {
  color: var(--gold);
  text-decoration: none;
}

.contact-tile a:hover {
  color: var(--white);
}

.contact-tile .spacer {
  color: var(--black);
}

.contact-tile .fi {
  font-size: 1.5em;
  margin-top: 1rem;
}

/* Telephone icons styles */
#telephone-contact {
  font-size: 0.8em;
  vertical-align: text-top; /* Optional: aligns icon with text */
  margin-left: 0.5em; /* Space between text and icon */
  margin-top: 0.2rem; /* Adjust vertical alignment */
}

#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  transition: background 0.2s;
}
#backToTop:hover {
  background: var(--dark-gold);
}

/* Cookie banner styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--gold);
  padding: 20px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-content h2 {
  font-size: 1.2rem;
  text-align: left;
}

.cookie-content p {
  font-size: 0.9rem;
}
.cookie-content {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-accept,
.btn-reject {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-accept {
  background: var(--gold);
  color: var(--black);
}

.btn-reject {
  background: var(--dark-gray);
  color: var(--gold);
}

.hidden {
  display: none !important;
}

/* Responsive nav */
@media (max-width: 1200px) {
  nav#mainNav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--black);
    flex-direction: column;
    width: 25vw; /* Max 25% of the viewport */
    min-width: 160px;
    max-width: 350px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    font-size: 1.1rem; /* Slightly smaller text */
  }
  nav#mainNav.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  nav#mainNav a {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--dark-gold);
    text-align: center;
    width: 100%;
    font-size: 1em; /* Ensure text scales with nav */
    word-break: break-word;
  }
}

/* Tablet: stack sections vertically and use more width */
@media (max-width: 1200px) {
  h1 {
    display: none;
  }
  .gallery {
    max-width: 80vw;
  }
  .contact-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .map-container,
  .contact-tiles {
    width: 100vw;
    flex: 1 1 100vw;
    max-width: none;
  }
  .contact-tiles {
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: 1fr;
    height: auto;
    padding: 2rem 0.5rem;
  }
}

/* Mobile: full width, smaller padding, stacked tiles */
@media (max-width: 768px) {
  .gallery {
    max-width: 98vw;
    padding: 1rem 0.5rem;
  }
  .contact-tiles {
    padding: 1rem 0.25rem;
    gap: 0.5rem;
  }
  .contact-tile {
    font-size: 0.95rem;
    padding: 0.8rem 0.3rem;
  }
  header .header-desc {
    font-size: 0.9rem;
    max-width: 12ch;
    margin-top: 0.5rem;
  }
}

/* Extra small: reduce font and padding further */
@media (max-width: 375px) {
  .gallery {
    max-width: 100vw;
    padding: 0.5rem 0.1rem;
  }
  .contact-tiles {
    padding: 0.5rem 0.1rem;
    gap: 0.3rem;
  }
  .contact-tile {
    font-size: 0.9rem;
    padding: 0.5rem 0.1rem;
    min-height: 60px;
  }
  .hamburger {
    display: flex !important;
    width: 32px;
    height: 32px;
    /* position: fixed;
    top: 16px;
    right: 8px;
    margin: 0;
    z-index: 300;
    background: var(--black); /* Ensure black background for contrast */
    border: none;
    box-shadow: none;
  }
  .hamburger span {
    background: var(--gold) !important; /* Force gold lines */
    height: 3px;
    min-height: 3px;
    width: 100%;
    border-radius: 2px;
  }
  header .logo img {
    max-width: 80px;
    height: auto;
  }
  header .header-desc {
    font-size: 0.9rem;
    max-width: 12ch;
    margin-top: 0.5rem;
  }
}
