/* ============================================
   CONDOMÍNIOS DO LITORAL - Premium Landing Page
   Custom luxury styles beyond Tailwind
   ============================================ */

/* Smooth scroll for anchor navigation */
html {
  scroll-behavior: smooth;
}

/* Premium typography refinements */
h1, h2, h3 {
  font-feature-settings: "kern" "liga" "tnum";
}

/* Elegant card hover for portfolio */
.portfolio-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 
              0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Modal styling - luxury feel */
.modal {
  animation: modalEnter 0.2s ease-out forwards;
}

/* Modal card is now the single unified scroll container.
   The hero photo scrolls naturally together with the text, highlights, video, gallery and CTA.
   This creates a more fluid, comfortable reading experience without a "fixed header" feel.
   Close button is positioned absolute to this container (stays accessible while scrolling). */
.modal-content {
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #B8976A22 #0A1628;
  position: relative;
}

/* Very subtle, non-intrusive scrollbar to reduce visual clutter */
.modal-content::-webkit-scrollbar {
  width: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #B8976A22;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #B8976A44;
}

/* Luxury dark theme for the modal cards */
.modal-luxury {
  background: #0A1628;
  color: #F5F2E9;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  position: relative;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Floating WhatsApp button */
.floating-wa {
  transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.2s ease;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15), 
              0 4px 6px -4px rgb(0 0 0 / 0.15);
}

.floating-wa:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 
              0 8px 10px -6px rgb(0 0 0 / 0.15);
}

/* Form input luxury styling */
.input-luxury {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-luxury:focus {
  border-color: #B8976A;
  box-shadow: 0 0 0 3px rgba(184, 151, 106, 0.15);
  outline: none;
}

/* Section divider subtle gold line */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #B8976A, transparent);
}

/* Mobile menu slide */
.mobile-menu {
  animation: slideDown 0.25s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Performance: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .floating-wa,
  .modal {
    transition: none !important;
    animation: none !important;
  }
}

/* High quality image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Gold accent buttons */
.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  transition: left 0.5s;
}

.btn-gold:hover::after {
  left: 250%;
}

/* Subtle stat numbers */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   LUXURIOUS DARK MODALS (Condomínios em Destaque)
   Dark premium theme, gold accents, elegant video
   ============================================ */

/* Dark modal container */
.modal-luxury {
  background: #0A1628;
  color: #F5F2E9;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

/* (Video wrapper styles kept for compatibility but no longer used for fixed hero behavior.
   The hero photo now flows and scrolls as normal content inside the modal card.) */

/* Premium close button */
.modal-close-btn {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #F5F2E9;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn:hover {
  background: rgba(184, 151, 106, 0.9);
  color: #0A1628;
  border-color: #B8976A;
  transform: scale(1.05);
}

/* Gold accent elements */
.gold-accent {
  color: #B8976A;
}

/* Highlights list styling */
.highlight-item {
  position: relative;
  padding-left: 1.35rem;
  color: #D4CDBF;
}

.highlight-item::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #B8976A;
  font-size: 9px;
  line-height: 1.85;
}

/* Large premium WhatsApp CTA */
.wa-cta {
  background: #25D366;
  color: white;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgb(37 211 102 / 0.3),
              0 4px 6px -4px rgb(37 211 102 / 0.3);
}

.wa-cta:hover {
  background: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 20px 25px -5px rgb(37 211 102 / 0.35),
              0 8px 10px -6px rgb(37 211 102 / 0.3);
}

.wa-cta:active {
  transform: scale(0.985);
}

/* Modal title luxury */
.modal-title {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -1.5px;
  line-height: 0.96;
}

/* Description text */
.modal-desc {
  color: #C9C3B5;
  line-height: 1.65;
}

/* Location badge in modal */
.modal-loc-badge {
  background: rgba(255,255,255,0.95);
  color: #0A1628;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
}