/* ============================================
   Quinta del Valle — style.css
   ============================================ */

/* ── Tailwind config ── */
/* Loaded via CDN; custom config in script.js */

/* ── Reset & Base ── */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #F7F3EC;
  color: #3E342B;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F7F3EC;
}
::-webkit-scrollbar-thumb {
  background: #6F8873;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5A7060;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #6F8873 #F7F3EC;
}

/* ── Hero ── */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) { .hero-bg { background-attachment: scroll; } }

/* ── Hero Slideshow ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 20s infinite;
}
.hero-slideshow .hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slideshow .hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slideshow .hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slideshow .hero-slide:nth-child(5) { animation-delay: 16s; }

@keyframes hero-fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(31,27,22,0.82), rgba(31,27,22,0.85));
}

.hero-bg > *:not(.hero-slideshow):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

/* ── WhatsApp Animations ── */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-3deg); }
  75%      { transform: rotate(3deg); }
}
.wa-icon-wiggle { animation: wiggle 1.8s ease-in-out infinite; display: inline-block; }

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.pulse-ring { animation: pulseRing 2s infinite; }

@keyframes heroPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 15px 40px -10px rgba(37,211,102,0.5); }
  50%      { transform: scale(1.04); box-shadow: 0 20px 50px -10px rgba(37,211,102,0.7); }
}
.hero-cta { animation: heroPulse 2.6s ease-in-out infinite; }

/* ── WhatsApp Tooltip ── */
.wa-tooltip {
  position: absolute;
  right: 78px;
  bottom: 16px;
  background: #fff;
  color: #3E342B;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.25);
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #fff;
}
@media (max-width: 480px) { .wa-tooltip { display: none; } }

/* ── Cabin Cards ── */
.cabin-card {
  transition: transform .4s ease, box-shadow .4s ease;
}
.cabin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -15px rgba(62,52,43,0.35);
}

/* ── Navbar Scrolled ── */
.nav-scrolled {
  background-color: rgba(247,243,236,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px -10px rgba(0,0,0,0.15);
}
#navbar img[src*="logo"] {
  filter: brightness(0) invert(1);
}
#navbar.nav-scrolled img[src*="logo"] {
  filter: none;
}

/* ── Footer Logo ── */
footer img[src*="logo"]:not([src*="logo-fsousa"]) {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}
footer img[src*="logo"]:not([src*="logo-fsousa"]):hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
footer img[src*="logo-fsousa"] {
  transition: transform 0.3s ease;
}
footer img[src*="logo-fsousa"]:hover {
  transform: scale(1.1);
}

/* ── Navbar Logo ── */
#navbar img[src*="logo"] {
  transition: transform 0.3s ease;
}
#navbar img[src*="logo"]:hover {
  transform: scale(1.05);
}

/* ── Footer Emoji Hover ── */
.emoji-hover {
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: default;
}
.emoji-hover:hover {
  transform: scale(1.3);
}

/* ── Swiper — Cabin Cards ── */
.swiper-cabin { height: 260px; position: relative; }
.swiper-cabin .swiper-slide { overflow: hidden; }
.swiper-cabin .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

/* Swiper arrows */
.swiper-cabin .swiper-button-prev,
.swiper-cabin .swiper-button-next {
  color: #fff;
  background: rgba(31,27,22,0.55);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.swiper-cabin .swiper-button-prev:hover,
.swiper-cabin .swiper-button-next:hover {
  background: rgba(107,122,75,0.85);
}
.swiper-cabin .swiper-button-prev::after,
.swiper-cabin .swiper-button-next::after {
  font-size: 11px;
  font-weight: 800;
}

/* Swiper dots */
.swiper-cabin .swiper-pagination-bullet {
  background: rgba(255,255,255,0.65);
  opacity: 1;
  width: 6px;
  height: 6px;
}
.swiper-cabin .swiper-pagination-bullet-active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* ── Modal ── */
.cabin-modal { background: rgba(245,240,232,0.97); }
.cabin-modal.is-open { display: flex !important; flex-direction: column; }
.modal-photo-swiper { height: 100%; }
.modal-photo-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .modal-photo-swiper { height: 100vh; position: sticky; top: 0; }
}
.modal-detail-icon { width: 1.5rem; flex-shrink: 0; color: #6b7f5f; }
body.modal-lock { overflow: hidden; }

/* ── Modal Swiper overrides ── */
.swiper-modal-vid .swiper-slide img,
.swiper-modal-castana .swiper-slide img,
.swiper-modal-olivo .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-modal-vid .swiper-button-prev,
.swiper-modal-vid .swiper-button-next,
.swiper-modal-castana .swiper-button-prev,
.swiper-modal-castana .swiper-button-next,
.swiper-modal-olivo .swiper-button-prev,
.swiper-modal-olivo .swiper-button-next {
  color: #fff;
  background: rgba(31,27,22,0.55);
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.swiper-modal-vid .swiper-pagination-bullet,
.swiper-modal-castana .swiper-pagination-bullet,
.swiper-modal-olivo .swiper-pagination-bullet {
  background: rgba(62,52,43,0.5);
  opacity: 1;
}
.swiper-modal-vid .swiper-pagination-bullet-active,
.swiper-modal-castana .swiper-pagination-bullet-active,
.swiper-modal-olivo .swiper-pagination-bullet-active {
  background: #6F8873;
}

/* ── Marquee de Serviços ── */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-inner {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  margin: 0 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  color: #F7F3EC;
  transition: background .2s;
  cursor: default;
}
.marquee-item:hover { background: rgba(255,255,255,0.14); }
.marquee-item .mi-icon { color: #E8DEC9; font-size: 1.1rem; flex-shrink: 0; }

/* ── Experiência / Lifestyle Section ── */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .experience-grid { grid-template-columns: 1fr; }
}
.experience-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform .5s ease;
}
.experience-img:hover { transform: scale(1.02); }

/* ── CTA Final Background ── */
.cta-bg {
  background-image:
    linear-gradient(rgba(31,27,22,0.9), rgba(31,27,22,0.9)),
    url('./img/P1105644.jpg');
  background-size: cover;
  background-position: center;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
