/* Import an elegant serif display font for headings.  If the page is
   viewed offline, browsers will fall back to Georgia/Times. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wght@600&family=Noto+Serif:wght@400&display=swap');
/* Reset some basic elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* Use a high‑legibility serif font for body text */
  font-family: 'Noto Serif', 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  background: linear-gradient(rgba(28, 12, 33, 0.75), rgba(28, 12, 33, 0.75)), url('background22222.png');
  background-size: cover; /* Slightly larger to allow for movement */
  background-position: center;
  background-attachment: fixed;
  /* Set the base text color to a soft gold that echoes the lettering in the logo */
  color: #D8B07B;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-position 0.2s ease-out;
}

/* Container centres content and provides max-width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

header img {
  /* Enlarge the logo for better visibility on desktop while
     allowing it to scale responsively down on smaller devices */
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  color: #D8B07B;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 2px solid transparent;
  transition: border-color: 0.3s;
  font-family: 'Noto Serif Display', 'Georgia', 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 1px;

}

nav a:hover {
  border-color: #D8B07B;
}

/* Hero section now acts as a prominent panel on top of the page
   background.  The decorative pattern is now applied to the body,
   so the hero no longer needs pseudo‑element backgrounds. */
.hero {
  position: relative;
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 12px;
  background: rgba(76, 43, 64, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  /* Use a display serif font with uppercase styling reminiscent of the
     tagline beneath the logo.  We avoid cursive for readability. */
  font-family: 'Noto Serif Display', 'Georgia', 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #F3E5D2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 1.5rem auto 0 auto;
  color: #D8B07B;
}

.hero .button, .button {
  background-color: #7B4B7E;
  color: #F3E5D2;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.hero .button:hover, .button:hover {
  background-color: #9C5FA1;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2, section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #F3E5D2;
  text-align: center;
}


section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-align: center;
  color: #D8B07B;
}

.services p, #about-text, .contact p {
     text-align: center;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.service {
  background: rgba(76, 43, 64, 0.8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.service p {
    flex-grow: 1;
}

.service h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #F3E5D2;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.service img {
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.service-button {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* A reusable panel style for content sections to create window-like cards */
.panel {
  background: rgba(76, 43, 64, 0.8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
}

.panel .divider {
    border: 0;
    height: 1px;
    background: rgba(243, 229, 210, 0.2);
    margin: 2.5rem auto;
}

.panel .location-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}


/* Contact section */
.contact {
  background: #3A2044;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.contact p {
  color: #D8B07B;
  margin-bottom: 1rem; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
}

.contact a {
  color: #C59AC5;
  text-decoration: none;
}

.map-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #8F6E8F;
}

.read-more-btn {
    color: #C59AC5;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-left: 5px;
}
.read-more-btn:hover {
    color: #F3E5D2;
}

/* Headings use the display serif font with uppercase and letter spacing
   similar to the tagline in the logo for an elegant yet readable look. */
h1, h2, h3 {
  font-family: 'Noto Serif Display', 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #F3E5D2;
}

/* Booking Button */
.booking-button {
  position: fixed;
  bottom: calc(25px + env(safe-area-inset-bottom));
  right: 25px;
  background-color: #7B4B7E;
  color: #F3E5D2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s, background-color 0.3s;
}

.booking-button:hover {
  background-color: #9C5FA1;
  transform: scale(1.1);
}

/* Booking Modal */
.booking-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(28, 12, 33, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #3A2044;
  margin: auto;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  color: #D8B07B;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-content p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #F3E5D2;
  text-decoration: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #F3E5D2;
    text-align: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #7B4B7E;
    background-color: rgba(28, 12, 33, 0.8);
    color: #F3E5D2;
    font-family: 'Noto Serif', 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8F6E8F;
}

#booking-form button, #review-form button {
    width: 100%;
    padding: 0.8rem;
    border: none;
}

#form-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    min-height: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Music Toggle Button */
.music-toggle-button {
    position: fixed;
    bottom: calc(25px + env(safe-area-inset-bottom));
    left: 25px;
    background-color: rgba(58, 32, 68, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    color: #F3E5D2;
    transition: transform 0.3s, background-color 0.3s, opacity 0.5s ease-out;
}

.music-toggle-button:hover {
    background-color: #3A2044;
    transform: scale(1.1);
}

/* Social Media Icons */
.social-icons-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #7B4B7E;
    color: #F3E5D2;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icon:hover {
    background-color: #9C5FA1;
    transform: scale(1.1);
}

.social-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Tilt Effect Styles */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

/* Ken Burns Effect Styles */
.ken-burns-container {
    display: none; 
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 2.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ken-burns-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.2);
}

.ken-burns-img.active {
    opacity: 1;
}

.ken-burns-1 { animation: ken-burns-1 10s linear 1 forwards; }
.ken-burns-2 { animation: ken-burns-2 10s linear 1 forwards; }
.ken-burns-3 { animation: ken-burns-3 10s linear 1 forwards; }
.ken-burns-4 { animation: ken-burns-4 10s linear 1 forwards; }

/* Keyframes for different pan/zoom directions */
@keyframes ken-burns-1 {
    from { transform: scale(1.2) translate(0, 0); }
    to { transform: scale(1) translate(10px, 5px); }
}

@keyframes ken-burns-2 {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.2) translate(-10px, -5px); }
}

@keyframes ken-burns-3 {
    from { transform: scale(1.2) translate(-10px, 5px); }
    to { transform: scale(1) translate(0, 0); }
}

@keyframes ken-burns-4 {
    from { transform: scale(1) translate(10px, -5px); }
    to { transform: scale(1.2) translate(0, 0); }
}

/* --- STYLES FOR ABOUT US FADER --- */
.about-us-fader {
    position: relative;
    width: 100%;
    max-width: 800px; /* Increased max width for 16:9 */
    aspect-ratio: 16 / 9; /* Changed aspect ratio */
    margin: 2.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.about-us-fader .fader-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    border: 2px solid #7B4B7E;
}
.about-us-fader .fader-img.active {
    opacity: 1;
}

.mobile-image-fader {
    display: none;
}

/* Call Now Button */
.call-now-button {
  position: fixed;
  bottom: calc(100px + env(safe-area-inset-bottom));
  right: 25px;
  background-color: #5cb85c;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.call-now-button.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  animation: vibrate 0.5s linear infinite;
}

@keyframes vibrate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
}

/* --- REVIEWS SECTION STYLES --- */
#reviews .panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.carousel-container {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(58, 32, 68, 0.7);
    border: 1px solid #7B4B7E;
    color: #F3E5D2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.carousel-btn:hover {
    background-color: #7B4B7E;
}

#reviews-carousel .carousel-btn.prev { left: -20px; }
#reviews-carousel .carousel-btn.next { right: -20px; }

@media (hover: hover) and (pointer: fine) {
    .carousel-btn {
        display: flex;
    }
}

.avatar-picker {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* FIXED: Changed to wrap for mobile */
    padding: 0.5rem 2px;
}

.avatar-picker img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.avatar-picker img:hover {
    transform: scale(1.1);
}

.avatar-picker img.selected {
    border-color: #C59AC5;
    transform: scale(1.1);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.star-rating svg {
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #8F6E8F;
    transition: color 0.2s;
}

.star-rating:hover svg,
.star-rating svg.selected {
    color: #D8B07B;
}

.star-rating svg:hover ~ svg {
    color: #8F6E8F;
}

#reviews-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 3rem 0 1.5rem 0;
    margin-top: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#reviews-list::-webkit-scrollbar {
    display: none;
}
#reviews-list::before,
#reviews-list::after {
    content: '';
    width: max(calc((100% - 350px) / 2), 1rem); /* 350px is card width */
    flex-shrink: 0;
}

.review-card {
    background: linear-gradient(145deg, rgba(58, 32, 68, 0.9), rgba(40, 20, 48, 0.9));
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #7B4B7E;
    flex: 0 0 90%;
    max-width: 350px;
    scroll-snap-align: center;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.review-avatar {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
}

.review-avatar img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C59AC5;
}

.review-content {
    flex: 1;
}

.review-content h4 {
    color: #F3E5D2;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
    font-family: 'Noto Serif Display', serif;
}

.review-content p {
    text-align: center;
    margin: 1rem 0 0 0;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

.review-content p::before {
    content: '“';
    font-size: 2rem;
    color: #7B4B7E;
    margin-right: 0.25rem;
}
.review-content p::after {
    content: '”';
    font-size: 2rem;
    color: #7B4B7E;
    margin-left: 0.25rem;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    justify-content: center;
}

.review-stars svg {
    width: 22px;
    height: 22px;
    color: #D8B07B;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

 /* --- MOBILE ADAPTATION --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  nav {
    display: none;
  }
  
  .form-grid {
      grid-template-columns: 1fr;
  }
  
  .mobile-image-fader {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  .mobile-image-fader .fader-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
  }
  
  .mobile-image-fader .fader-img.active {
    opacity: 1;
  }
  .ken-burns-container {
      display: none;
  }
}

@media (min-width: 769px) {
    .review-card {
        flex-basis: 350px;
    }
    .ken-burns-container {
        display: block;
    }
    .mobile-image-fader {
        display: none;
    }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .panel {
    padding: 1.5rem;
  }
  #reviews-carousel .carousel-btn.prev { left: -10px; }
  #reviews-carousel .carousel-btn.next { right: -10px; }

  section h2 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1rem;
  }
}

@media (min-width: 600px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 1. Уменьшаем "толстую рамку" (padding) для окна с меню */
#service-modal .modal-content {
  /* Было 2.5rem (40px), делаем 1rem (16px) */
  padding: 1rem; 
}

/* 2. Подгоняем крестик под новый padding, чтобы он не уехал */
#service-modal .close-button {
  top: 10px;
  right: 15px;
}