/* =============================================
   SOFITEL — Animations & Design Enhancements
   ============================================= */

/* === HERO BANNER ENTRANCE (CSS, no JS) === */

.home-bunner__title h1 {
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.home-bunner__subtitle p {
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.home-bunner__bunner-contacts {
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.page-bunner__title {
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.page-bunner__subtitle,
.page-bunner__text {
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.page-bunner .btn {
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === OVERFLOW FIX (горизонтальные анимации не должны растягивать страницу) === */

.wrapper {
  overflow-x: hidden;
}

/* === SCROLL REVEAL SYSTEM === */

[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none !important;
}

[data-reveal="up"]    { transform: translateY(50px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="fade"]  { transform: translateY(16px); }

@media (max-width: 768px) {
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .home-bunner__title h1,
  .home-bunner__subtitle p,
  .home-bunner__bunner-contacts,
  .page-bunner__title,
  .page-bunner__subtitle,
  .page-bunner__text,
  .page-bunner .btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* === BUTTON SHIMMER === */

.btn {
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 160%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 148, 226, 0.35);
}

.btn:active {
  transform: translateY(0);
}

/* === NAV UNDERLINE ANIMATION === */

.nav ul li a:not(.active) {
  position: relative;
}

.nav ul li a:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--clr-main);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav ul li a:not(.active):hover::after {
  width: 80%;
}

.footer__nav ul li a:not(.active) {
  position: relative;
}

.footer__nav ul li a:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer__nav ul li a:not(.active):hover::after {
  width: 80%;
}

/* === FORM INPUT FOCUS GLOW === */

.form__item:focus {
  border-color: var(--clr-main) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(47, 148, 226, 0.15) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* === PRELOADER BREATH EFFECT === */

#preloader {
  letter-spacing: 0.3em;
  animation: preloaderBreathe 1.8s ease-in-out infinite;
}

@keyframes preloaderBreathe {
  0%, 100% { opacity: 1;   letter-spacing: 0.3em; }
  50%       { opacity: 0.5; letter-spacing: 0.55em; }
}

/* === GALLERY HOVER ZOOM === */

.gallery picture {
  overflow: hidden;
  border-radius: 8px;
  display: block;
}

.gallery picture img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery picture:hover img {
  transform: scale(1.09);
}

/* === SERVICE CARD IMAGE HOVER === */

.service-card__img img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-card__img:hover img {
  transform: scale(1.06);
}

/* === CARD PRODUCT HOVER LIFT === */

.cards-product__card-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards-product__card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.13);
}

/* === CARD-FLIP IMAGE SCALE === */

.card__img img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card__img img {
  transform: scale(1.07);
}

/* === INFO GRID ITEM HOVER (Rooms) === */

.info-grid__item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.info-grid__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(47, 148, 226, 0.13);
}

/* === ROOM GALLERY THUMBNAILS HOVER === */

.room-gallery__img img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.room-gallery__img:hover img {
  transform: scale(1.05);
}

/* === PRICE LIST ITEM HOVER === */

.info-list ul li {
  position: relative;
  padding-left: 0;
  transition: background 0.3s ease, padding-left 0.35s ease;
  cursor: default;
}

.info-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--clr-main);
  border-radius: 3px;
  transition: height 0.35s ease;
}

.info-list ul li:hover {
  background: rgba(47, 148, 226, 0.04);
  padding-left: 14px;
}

.info-list ul li:hover::before {
  height: 55%;
}

/* === MAP INFO CARD GLOW === */

.map__info {
  transition: box-shadow 0.35s ease;
}

.map__info:hover {
  box-shadow: 0 20px 50px rgba(47, 148, 226, 0.14);
}

/* === SECTION HEADING ACCENT LINE === */

.cards-flips__title::after,
.cards-product__title::after,
.info-grid__title::after,
.info-list__title::after,
.service-card__title::after,
.heading__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-main), rgba(47, 148, 226, 0));
  border-radius: 3px;
  margin-top: 10px;
}

.info-grid__title::after,
.info-list__title::after {
  margin-bottom: 4px;
}

/* === MAP TITLE === */

.map__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-main), rgba(47, 148, 226, 0));
  border-radius: 3px;
  margin-top: 8px;
}

/* === TXT CONTENT HEADING (Homepage About) === */

.txt-content__title h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-main), rgba(47, 148, 226, 0));
  border-radius: 3px;
  margin-top: 8px;
}

/* === SCROLL INDICATOR ON HERO === */

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  animation: heroSlideUp 1s ease 1.2s both;
}

.scroll-indicator::before {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { opacity: 1;   transform: translateY(0); }
  60%  { opacity: 0;   transform: translateY(14px); }
  61%  { opacity: 0;   transform: translateY(0); }
  100% { opacity: 1;   transform: translateY(0); }
}

.home-bunner {
  position: relative;
}

@media (max-width: 768px) {
  .scroll-indicator { display: none; }
}

/* === SECTION SEPARATOR WAVE (decorative) === */

.section-wave {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(47, 148, 226, 0.2) 20%,
    rgba(47, 148, 226, 0.5) 50%,
    rgba(47, 148, 226, 0.2) 80%,
    transparent 100%
  );
  margin: 0;
  border: none;
}

/* === BOOKING FORM SECTION ENHANCEMENT === */

#booking .heading__title {
  position: relative;
}

#booking .heading__title::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, rgba(47,148,226,0), var(--clr-main));
  border-radius: 3px;
  margin: 0 auto 10px;
}

#booking .heading__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-main), rgba(47,148,226,0));
  border-radius: 3px;
  margin: 10px auto 0;
}

/* === LOGO HOVER GLOW === */

.logo {
  transition: opacity 0.2s ease;
  display: inline-block;
}

.logo:hover {
  opacity: 0.8;
}

/* === HEADER STICKY TRANSITION === */

.header__menu {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* === GALLERY PAGE GRID MASONRY REVEAL FIX === */

.gallery {
  gap: 10px;
}
