@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

* {
  --body-font: "Manrope", Helvetica, Arial, sans-serif;
  --body-font-size: 17px;
  --body-font-color: #505050;
  --body-font-color-dark: rgba(255, 255, 255, .6);
  --body-font-weight: 300;

  --heading-font: "Cormorant Garamond", Helvetica, Arial, sans-serif;  
  --heading-font-weight: 500;
  --heading-font-color: #223035;
  --heading-text-transform: none;

  --alt-font-1: "Cormorant Garamond";
  
  --h1-font-size: 64px;
  --h1-font-weight: var(--heading-font-weight);
  --h1-letter-spacing: 0;
  --h1-line-height: 1.2em;
  --h1-margin-bottom: 20px;

  --h2-font: var(--heading-font-weight);
  --h2-font-size: 52px;
  --h2-font-weight: var(--heading-font-weight);
  --h2-letter-spacing: 0;
  --h2-line-height: 1.2em;
  --h2-margin-bottom: 20px;

  --h3-font-size: 24px;
  --h3-font-weight: var(--heading-font-weight);
  --h3-letter-spacing: 0;
  --h3-line-height: 1.5em;
  --h3-margin-bottom: 10px;

  --h4-font-size: 20px;
  --h4-font-weight: var(--heading-font-weight);
  --h4-letter-spacing: 0;
  --h4-line-height: 1.6em;
  --h4-margin-bottom: 10px;

  --h5-font-size: 14px;
  --h5-font-weight: var(--heading-font-weight);
  --h5-letter-spacing: 0;
  --h5-line-height: 1.6em;
  --h5-margin-bottom: 10px;

  --mainmenu-font-size: 16px;
  --mainmenu-font-weight: 500;
  --mainmenu-letter-spacing: 0;
  --mainmenu-text-transform: none;

  --logo-width: 140px;

  --border-default: solid 1px rgba(30, 30, 30, 1);
  --bg-color-even: #E8E8E8;
  --bg-color-odd: #F4F4F4;
  --bg-light: #F8F9FA;
  --bg-dark-1: #000000;
  --bg-dark-2: #111111;
  --bg-dark-3: #1e1e1e;  
  --bg-dark-1-rgb: 0, 0, 0;
  --bg-grey: #eeeeee;
  --bg-gradient-1: 0deg, rgba(var(--primary-color-rgb), .1) 0%, rgba(var(--secondary-color-rgb), .2) 100%;
  --swiper-theme-color: var(--secondary-color);
  --rounded-1: 6px;
  --button-rounded: 3px;
  --border-color:#bbbbbb;
  --container-max-width:1240px;
}

/* ============================================
   HERO SECTION — bottom-anchored text + gradient
   ============================================ */

/* Lighter gradient edge — replaces heavy solid black with refined navy scrim */
.gradient-edge-bottom {
  height: 52% !important;
  background: linear-gradient(
    to top,
    rgba(15, 28, 32, 0.62) 0%,
    rgba(15, 28, 32, 0.18) 55%,
    rgba(15, 28, 32, 0) 100%
  ) !important;
}

/* sw-overlay: keep very light — just enough to lift contrast on the image */
.sw-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.12) 100%
  ) !important;
  opacity: 1 !important;
}

/* Features bar subtle styling */
.hero-features {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.hero-features h6 {
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.8;
  font-weight: 400;
}

/* Reduce hero height on desktop */
.vertical-center {
  min-height: 80vh;
}

/* ============================================
   HEADER — refined luxury styling
   ============================================ */

/* Transparent header: padding more generous */
header.transparent {
  padding: 22px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease, backdrop-filter 0.4s ease !important;
}

/* Nav links — uppercase, tracked, light weight */
header #mainmenu > li > a {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  opacity: 0.82;
  transition: opacity 0.2s ease !important;
  padding: 4px 0 !important;
  position: relative;
}
header #mainmenu > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.25s ease;
}
header #mainmenu > li > a:hover {
  opacity: 1 !important;
  color: #fff !important;
}
header #mainmenu > li > a:hover::after {
  width: 100%;
}

/* CTA button — refined outline style */
header .btn-main {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 12px 26px !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  background: transparent !important;
  color: #fff !important;
  transition: border-color 0.25s, background 0.25s, color 0.25s !important;
}
header .btn-main:hover,
header .btn-main span:hover {
  border-color: var(--primary-color) !important;
  background: var(--primary-color) !important;
  color: #fff !important;
}

/* Sticky header — solid dark + blur */
header.smaller {
  background: rgba(22, 34, 38, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
  padding: 14px 0 !important;
}
header.smaller .btn-main {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}
header.smaller .btn-main:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

/* ============================================
   MOBILE MENU — background when opened
   ============================================ */
@media only screen and (max-width: 993px) {
  header.header-mobile {
    background: var(--heading-font-color) !important;
  }
  header.menu-open {
    background: var(--heading-font-color) !important;
  }
  header.menu-open #mainmenu {
    background: var(--heading-font-color) !important;
  }
  #logo .logo-mobile {
    max-width: 130px !important;
  }
}

/* ============================================
   HERO — video background
   ============================================ */
#section-hero {
  min-height: 100vh;
  position: relative;
}

/* Vídeo ocupa 100% do hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Enquanto não houver vídeo, o poster (imagem) fica visível */
}

/* Overlay escuro sobre o vídeo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 20, 0.45) 0%,
    rgba(10, 18, 20, 0.20) 50%,
    rgba(10, 18, 20, 0.65) 100%
  );
  z-index: 1;
}

/* Título no hero */
.hero-title-wrap {
  position: relative;
  z-index: 3;
}
.hero-title {
  font-family: var(--heading-font) !important;
  font-size: clamp(3.5rem, 8vw, 7.5rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

/* ============================================
   BODY — fix double scroll + footer cut-off
   overflow:hidden on body clips footer and creates
   a second scroll container when y is set to auto.
   Setting to visible lets html remain the single
   scroll container with full page height.
   ============================================ */
body {
  overflow: visible !important;
}

/* ============================================
   OVERVIEW — play button over images
   ============================================ */

/* Radial gradient vignette centered on the whole image composition */
.overview-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 45% at 50% 50%,
    rgba(10, 18, 20, 0.38) 0%,
    transparent 68%
  );
}

.overview-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 32px rgba(176, 126, 80, 0.45);
}
.overview-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  position: relative;
  z-index: 2;
}
.overview-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #c49060;
}

/* Ripple rings */
.play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(176, 126, 80, 0.5);
  animation: playRipple 2.2s ease-out infinite;
  pointer-events: none;
}
.play-ring--delay {
  animation-delay: 1.1s;
}
@keyframes playRipple {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0;   }
}

/* "Assista o vídeo" label */
.overview-play-label {
  position: absolute;
  top: calc(50% + 46px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--heading-font);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  opacity: 0.9;
}
.overview-play-label:hover { opacity: 1; }

/* ============================================
   VIDEO MODAL
   ============================================ */

.vmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 16, 18, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.vmodal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.vmodal-content {
  position: relative;
  width: min(90vw, 1100px);
  max-height: 90vh;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.94);
  transition: transform 0.35s ease;
}
.vmodal-overlay.is-open .vmodal-content {
  transform: scale(1);
}
.vmodal-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: #000;
}
.vmodal-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.vmodal-close:hover {
  background: rgba(176, 126, 80, 0.3);
  border-color: var(--primary-color);
}
.vmodal-close svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   NEARBY CARDS — uniform image height
   ============================================ */
#section-nearby .bg-light img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   FOOTER — dark navy instead of pure black
   ============================================ */
footer {
  background: var(--heading-font-color) !important;
}
.subfooter {
  background: rgba(0, 0, 0, 0.25) !important;
}

/* ============================================
   ENVIRONMENT TABS — minimalist underline style
   ============================================ */
.de-tab.plain .d-tab-nav {
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
  padding-bottom: 0 !important;
}

.de-tab.plain .d-tab-nav li {
  padding: 12px 22px !important;
  opacity: 0.45 !important;
  cursor: pointer;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--heading-font-color) !important;
  font-family: var(--body-font) !important;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
  transition: opacity 0.25s ease;
}

/* Animated underline indicator */
.de-tab.plain .d-tab-nav li::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.de-tab.plain .d-tab-nav li:hover {
  opacity: 0.7 !important;
}

.de-tab.plain .d-tab-nav li:hover::after {
  transform: scaleX(0.4);
}

.de-tab.plain .d-tab-nav .active-tab {
  opacity: 1 !important;
  font-weight: 700;
  background: transparent !important;
  color: var(--heading-font-color) !important;
  border-color: transparent !important;
}

.de-tab.plain .d-tab-nav .active-tab::after {
  transform: scaleX(1);
}

/* ---- Tablet ---- */
@media only screen and (max-width: 991px) {
  .hero-content .row {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .hero-content .col-md-6,
  .hero-content .col-md-5,
  .hero-content .col-lg-5,
  .hero-content .col-lg-4 {
    width: 100%;
  }
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---- Mobile ---- */
@media only screen and (max-width: 767px) {
  /* Limit hero height — no full viewport takeover */
  .vertical-center {
    min-height: 65vh !important;
    max-height: 65vh;
  }

  .hero-content {
    padding-bottom: 20px;
  }

  /* Slightly stronger bottom scrim on mobile for stats legibility */
  .gradient-edge-bottom {
    height: 60% !important;
    background: linear-gradient(
      to top,
      rgba(15, 28, 32, 0.75) 0%,
      rgba(15, 28, 32, 0.22) 55%,
      rgba(15, 28, 32, 0) 100%
    ) !important;
  }

  /* Hero title: push caption up to separate from stats bar */
  .sw-caption {
    top: 36% !important;
  }

  /* Hero h1: comfortable font size + strong shadow for readability */
  .sw-caption h1,
  .sw-text-wrapper h1 {
    font-size: 9.5vw !important;
    line-height: 1.15em !important;
    text-shadow: 0 2px 30px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.5) !important;
  }

  /* Tab nav: horizontal scroll on mobile */
  .de-tab.plain .d-tab-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
  }
  .de-tab.plain .d-tab-nav::-webkit-scrollbar {
    display: none;
  }
  .de-tab.plain .d-tab-nav li {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 14px !important;
  }

}

/* ============================================
   FACILITIES CARDS — body font for titles
   ============================================ */
#section-facilities .py-3 h4 {
  font-family: var(--body-font) !important;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
}

/* ============================================
   PRICING — "Valor Estabelecido" h5 readability
   ============================================ */
#section-pricing h5 {
  font-family: var(--body-font) !important;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}

@media only screen and (max-width: 767px) {
  #section-pricing h5 {
    font-size: 18px;
  }
}

/* ============================================
   ROOMS SECTION — clickable image lightbox hint
   ============================================ */
.rooms-image-link {
  display: block;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  border-radius: var(--rounded-1);
}

.rooms-image-link img {
  display: block;
  transition: transform 0.45s ease;
}

.rooms-image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 32, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.rooms-image-link:hover::after {
  background: rgba(15, 28, 32, 0.18);
}

.rooms-image-link:hover img {
  transform: scale(1.025);
}

/* ============================================
   GALLERY — fix Isotope layout with lazy images
   Aspect-ratio ensures items always have height
   before images finish loading, preventing
   layout collapse and footer jumping up.
   ============================================ */

#gallery .item .relative {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

#gallery .item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
