/**
 * Hero Section with Swiper.js Carousel
 *
 * Premium fullscreen hero with cinematic overlay and Swiper.js.
 * Luxury real estate design approach.
 * 
 * @package TwinsRealEstate
 * @version 2.1.0
 */

/* Base hero section - layout properties handled by fullscreen system (lines 516-544) */
:root {
  --hero-image-offset-y: 62%;
}
.hero-section {
  /* Layout properties (height, margin-top, padding-top, position, width, overflow) */
  /* are handled by fullscreen system with !important (lines 516-544) */
  /* Only non-layout properties here */
  color: #fff;
  z-index: 1;
  opacity: 1;
}

/* --- Swiper Container --- */
.hero-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- Swiper Wrapper - Critical for proper height --- */
.hero-swiper .swiper-wrapper {
  height: 100%;
}

/* --- Swiper Slide --- */
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100% !important;
  min-height: 600px;
  /* Ensure minimum height on all devices */
}

.swiper-slide .hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  /* Use flexbox for centering content */
  align-items: center;
  /* Vertical centering */
  justify-content: center;
  /* Horizontal centering */
  text-align: center;
  /* Center text within the content block */
  /* Background image properties - applied via inline style in template */
  background-size: cover !important;
  background-position: center var(--hero-image-offset-y, 60%) !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
}

/* --- Overlay - Premium Cinematic Gradient --- */
/* Light mode: Clear/minimal overlay - show the full beauty of the image */
.hero-slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Light mode: Very subtle gradient - minimal overlay to show image clearly */
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.01) 30%,
      rgba(0, 0, 0, 0.05) 60%,
      rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
  /* Minimal vignette for light mode */
  box-shadow: inset 0 0 100px 20px rgba(0, 0, 0, 0.05);
}

/* Dark mode: Darker overlay for cinematic effect and text readability */
html[data-theme="dark"] .hero-slide .overlay {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.2) 30%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.75) 100%);
  /* Strong vignette for dark mode cinematic effect */
  box-shadow: inset 0 0 200px 50px rgba(0, 0, 0, 0.5);
}

/* --- Override gallery.css that hides hero-slide --- */
.hero-swiper .hero-slide {
  opacity: 1 !important;
  /* Force visible - override gallery.css */
  position: relative;
  /* Not absolute like gallery */
}

/* --- Hero Content Block - Premium Centered --- */
.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2.5rem 1.5rem;
  /* Better vertical positioning - slightly above center */
  margin-top: -5vh;
  opacity: 1;
}

/* --- Animation for Active Slide Content --- */
.swiper-slide-active .hero-content {
  animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Make sure hero content is visible on all slides */
.swiper-slide .hero-content {
  opacity: 1 !important;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Content Styling (Minimalistic) --- */

/* Logo - Fixed proportions for consistent display */
.hero-content .hero-logo {
  display: block;
  max-height: 190px;
  /* Maximum height */
  width: auto;
  height: auto;
  /* Ensure proportional scaling */
  margin: 0 auto 1rem auto;
  /* Center block element and add margin below */
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(180, 180, 180, 0.85));
  /* Brighter grey shadow for light mode */
  padding: 10px;
  border-radius: 8px;
  object-fit: contain;
  /* Maintain aspect ratio */
}

/* Dark mode logo shadow */
html[data-theme="dark"] .hero-content .hero-logo {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  /* White shadow for dark mode */
}

/* Default: Hide dark logo, show light logo */
.hero-logo-dark {
  display: none !important;
}

.hero-logo-light {
  display: block !important;
}

/* Dark Mode: Hide light logo, show dark logo */
html[data-theme="dark"] .hero-logo-light {
  display: none !important;
}

html[data-theme="dark"] .hero-logo-dark {
  display: block !important;
}

/* Tagline */
.hero-content .hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  /* Space below tagline */
  opacity: 0.95;
  letter-spacing: 0.5px;
  color: #222;
  /* Darker color for light mode */
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.619);
  /* Light shadow for light mode */
  background-color: rgba(146, 146, 146, 0.197);
  /* Light background for light mode */
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
}

/* Dark mode tagline */
html[data-theme="dark"] .hero-content .hero-tagline {
  color: #fff;
  /* Light color for dark mode */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  /* Dark shadow for dark mode */
  background-color: rgba(0, 0, 0, 0.3);
  /* Dark background for dark mode */
}

/* Title - Always white for hero (dark backgrounds) */
.hero-content .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* Responsive font size */
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  /* Strong shadow for readability */
  color: #fff;
  /* Always white text on dark hero images */
}

/* Subtitle - Always white for hero */
.hero-content .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  /* Responsive font size */
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-weight: 300;
  max-width: 600px;
  /* Limit subtitle width */
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  /* Always white text on dark hero images */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  /* Strong shadow for readability */
}

/* Price */
.hero-content .hero-price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-color, #f8c146);
  /* Use accent color or fallback */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Features - Compact pill-style design */
.hero-content .hero-features {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-features .feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.hero-features .feature i {
  font-size: 0.85rem;
  color: var(--accent-color, #f8c146);
  opacity: 0.9;
}

.hero-features .feature span {
  font-weight: 500;
  font-size: 0.8rem;
}

/* --- Call to Action Buttons --- */
.hero-content .hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  /* Reduced spacing between buttons */
}

.hero-cta .btn {
  font-weight: 500;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* View Property button - Primary action, compact */
.hero-cta .btn-primary {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  background-color: var(--primary-color, #007bff);
  border: none;
  color: #fff;
  min-width: auto;
}

.hero-cta .btn-primary:hover {
  background-color: var(--primary-dark, #0056b3);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Save button - Secondary action, more compact (icon + text) */
.hero-cta .btn-favorite {
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  min-width: auto;
}

.hero-cta .btn-favorite:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-favorite i {
  margin-right: 0.35rem;
  font-size: 0.75rem;
}

.hero-cta .btn-favorite.favorited {
  background-color: rgba(255, 71, 87, 0.25);
  border-color: #ff4757;
}

.hero-cta .btn-favorite.favorited i {
  color: #ff4757;
}

/* Legacy support for btn-outline-light if used elsewhere */
.hero-cta .btn-outline-light {
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  min-width: auto;
}

.hero-cta .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* --- Swiper Navigation Buttons --- */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  /* White arrows */
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  /* Semi-transparent background */
  border-radius: 50%;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Adjust arrow size and use Font Awesome icons */
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
}

.hero-swiper .swiper-button-next::after {
  content: '\f054'; /* fa-chevron-right */
}

.hero-swiper .swiper-button-prev::after {
  content: '\f053'; /* fa-chevron-left */
}

/* --- Swiper Pagination --- */
.hero-swiper .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.6);
  /* Semi-transparent bullets */
  opacity: 0.8;
  width: 10px;
  height: 10px;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background-color: #fff;
  /* White active bullet */
  opacity: 1;
  transform: scale(1.2);
}

/* --- Scroll Down Indicator --- */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: #fff;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-down a:hover {
  opacity: 1;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  /* Fullscreen behavior handled by fullscreen system (lines 589-608) */
  /* Only content-specific mobile styles here */

  .hero-slide .hero-content {
    /* Adjust content margin for mobile navbar */
    margin-top: 0;
    padding: 1.5rem 1rem;
  }

  .hero-content .hero-logo {
    max-height: 140px;
    width: auto;
    object-fit: contain;
  }

  .hero-content .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .hero-content .hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }

  .hero-content .hero-price {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }

  /* Compact features on tablet */
  .hero-features {
    font-size: 0.75rem;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
  }

  .hero-features .feature {
    gap: 0.3rem;
    padding: 0.2rem 0.45rem;
  }

  .hero-features .feature i {
    font-size: 0.8rem;
  }

  .hero-features .feature span {
    font-size: 0.75rem;
  }

  /* Compact buttons on tablet */
  .hero-cta .btn-primary {
    padding: 0.55rem 1.3rem;
    font-size: 0.75rem;
  }

  .hero-cta .btn-favorite,
  .hero-cta .btn-outline-light {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
  }

  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    width: 38px;
    height: 38px;
    /* Position closer to edges on mobile */
  }

  .hero-swiper .swiper-button-next::after,
  .hero-swiper .swiper-button-prev::after {
    font-size: 0.9rem;
  }

  .scroll-down {
    bottom: 20px;
  }

  .scroll-down a {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-content .hero-logo {
    max-height: 120px;
    /* Even smaller on small screens */
    width: auto;
    object-fit: contain;
    padding: 5px;
    /* Reduce padding to maximize logo size */
  }

  .hero-content .hero-tagline {
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: 0.4rem 0.8rem;
  }

  .hero-features {
    font-size: 0.75rem;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.6rem;
  }

  .hero-features .feature {
    gap: 0.3rem;
    padding: 0.2rem 0.4rem;
  }

  .hero-features .feature i {
    font-size: 0.75rem;
  }

  .hero-features .feature span {
    font-size: 0.75rem;
  }

  /* View Property button - Compact on mobile */
  .hero-cta .btn-primary {
    padding: 0.55rem 1.2rem;
    font-size: 0.75rem;
    flex: 1 1 auto;
    min-width: 120px;
  }

  /* Save button - More compact on mobile */
  .hero-cta .btn-favorite,
  .hero-cta .btn-outline-light {
    padding: 0.45rem 0.75rem;
    font-size: 0.7rem;
    flex: 0 0 auto;
    min-width: auto;
  }

  .hero-cta .btn-favorite i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
  }
  
  /* Ensure proper button layout on mobile */
  .hero-cta {
    gap: 0.6rem;
  }

  .hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* ==========================================================================
   FULLSCREEN HERO SYSTEM - ALL HERO TYPES
   ========================================================================== */

/* Target ALL hero sections across different page types */
.hero-section,
.property-gallery-section,
.residence-hero-section,
.renovation-hero-modern,
.referral-hero-fullscreen,
.fullscreen-hero,
section.hero-section,
section.fullscreen-hero {
  position: relative !important;
  width: 100% !important;
  min-height: calc(100vh + var(--site-header-height, 56px)) !important;
  height: calc(100vh + var(--site-header-height, 56px)) !important;
  max-height: calc(100vh + var(--site-header-height, 56px)) !important;
  margin-top: calc(var(--site-header-height, 56px) * -1) !important;
  /* Negative margin = height of navbar */
  margin-bottom: 0 !important;
  /* NO gap below hero */
  padding-top: 0 !important;
  /* No padding - background should extend under navbar */
  padding-bottom: 0 !important;
  /* NO bottom padding */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
  /* Ensure hero stays BELOW navbar (navbar is 10000) */
}

/* Swiper container inside hero should be full height */
.hero-section .swiper,
.hero-section .hero-swiper,
.fullscreen-hero .swiper,
.fullscreen-hero .hero-swiper {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  /* Ensure swiper covers full viewport including under navbar */
}

/* Swiper slides should fill container */
.hero-section .swiper-slide,
.fullscreen-hero .swiper-slide {
  width: 100% !important;
  height: 100% !important;
}

/* Hero slide content */
.hero-section .hero-slide,
.fullscreen-hero .hero-slide {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

/* Ensure hero content is centered vertically WITHIN the visible area */
.hero-section .hero-content,
.property-gallery-section .gallery-content,
.residence-hero-section .hero-content,
.renovation-hero-modern .hero-content,
.referral-hero-fullscreen .hero-content {
  position: relative !important;
  z-index: 10 !important;
  padding-top: calc(var(--site-header-height, 56px) + 8px) !important;
  /* Ensure content clears the fixed navbar */
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* === CRITICAL MOBILE FIXES === */
@media (max-width: 768px) {
  .hero-section,
  .property-gallery-section,
  .residence-hero-section,
  .renovation-hero-modern,
  .referral-hero-fullscreen,
  .fullscreen-hero,
  section.hero-section,
  section.fullscreen-hero {
    /* CRITICAL: Use 100svh (small viewport height) for true fullscreen on mobile */
    /* This accounts for mobile browser chrome (address bar, etc.) */
    height: calc(100vh + var(--site-header-height, 50px)) !important;
    height: calc(100svh + var(--site-header-height, 50px)) !important;
    height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 50px)) !important;
    min-height: calc(100vh + var(--site-header-height, 50px)) !important;
    min-height: calc(100svh + var(--site-header-height, 50px)) !important;
    min-height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 50px)) !important;
    max-height: calc(100vh + var(--site-header-height, 50px)) !important;
    max-height: calc(100svh + var(--site-header-height, 50px)) !important;
    max-height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 50px)) !important;
    margin-top: calc(var(--site-header-height, 50px) * -1) !important;
    /* Negative margin pulls hero under navbar */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* No padding - image should cover full screen including under navbar */
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Swiper container must be absolutely positioned to cover full viewport */
  .hero-section .hero-swiper,
  .hero-section .swiper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* Use 100% of parent which is 100vh */
  }

  /* Ensure swiper wrapper and slides cover full viewport */
  .hero-swiper .swiper-wrapper,
  .hero-swiper .swiper-slide {
    height: 100% !important;
  }

  /* Hero slide must cover full screen including under navbar - absolutely positioned */
  .hero-swiper .swiper-slide .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center var(--hero-image-offset-y, 60%) !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    /* Ensure image extends behind navbar */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Overlay must also cover full screen */
  .hero-swiper .swiper-slide .hero-slide .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Content should be positioned within visible area, accounting for navbar */
  .hero-section .hero-content,
  .residence-hero-section .hero-content,
  .renovation-hero-modern .hero-content,
  .referral-hero-fullscreen .hero-content {
    padding-top: calc(var(--site-header-height, 50px) + 8px) !important;
    /* Keep hero content below the navbar on small screens */
    position: relative !important;
    z-index: 10 !important;
    margin-top: 0 !important;
  }
}

/* Desktop navbar height: 56px */
@media (min-width: 1025px) {

  .hero-section,
  .property-gallery-section,
  .residence-hero-section,
  .renovation-hero-modern,
  .referral-hero-fullscreen,
  .fullscreen-hero,
  section.hero-section,
  section.fullscreen-hero {
    margin-top: calc(var(--site-header-height, 56px) * -1) !important;
    /* Updated to match navbar height */
    padding-top: 0 !important;
    /* No padding - background should extend under navbar */
    height: calc(100vh + var(--site-header-height, 56px)) !important;
    min-height: calc(100vh + var(--site-header-height, 56px)) !important;
    max-height: calc(100vh + var(--site-header-height, 56px)) !important;
  }
}

/* Tablet navbar height: 56px (same as desktop) */
@media (min-width: 769px) and (max-width: 1024px) {

  .hero-section,
  .property-gallery-section,
  .residence-hero-section,
  .renovation-hero-modern,
  .referral-hero-fullscreen,
  .fullscreen-hero,
  section.hero-section,
  section.fullscreen-hero {
    margin-top: calc(var(--site-header-height, 56px) * -1) !important;
    /* Same as desktop */
    padding-top: 0 !important;
    /* No padding - background should extend under navbar */
    height: calc(100vh + var(--site-header-height, 56px)) !important;
    min-height: calc(100vh + var(--site-header-height, 56px)) !important;
    max-height: calc(100vh + var(--site-header-height, 56px)) !important;
  }

  .hero-section .hero-content,
  .property-gallery-section .gallery-content,
  .residence-hero-section .hero-content,
  .renovation-hero-modern .hero-content,
  .referral-hero-fullscreen .hero-content {
    padding-top: calc(var(--site-header-height, 50px) + 8px) !important;
    /* Align with tablet navbar height */
  }
}

/* Property Gallery Hero */
.property-gallery-section {
  padding: 0;
  /* Gallery handles its own spacing */
}

/* Residence Hero (video/swiper) */
.residence-hero-section,
.referral-hero-fullscreen {
  overflow: hidden;
  z-index: 1 !important;
  /* Ensure hero stays below navbar (navbar is 10000) */
}

.residence-hero-section .swiper,
.residence-hero-section .hero-video-container,
.referral-hero-fullscreen .swiper,
.referral-hero-fullscreen .hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Video stays behind content but within hero section */
}

/* Renovations Hero */
.renovation-hero-modern {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
}

.renovation-hero-modern .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.renovation-hero-modern .container {
  position: relative;
  z-index: 1;
}

/* Hero sections should be full viewport width */
.hero-section,
.property-gallery-section,
.residence-hero-section,
.renovation-hero-modern,
.referral-hero-fullscreen {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* But content should be contained */
.hero-section .container,
.residence-hero-section .container,
.renovation-hero-modern .container,
.referral-hero-fullscreen .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Text should be readable over images */
/* Light mode: Minimal overlay - show the full image beauty */
.hero-section .hero-overlay,
.residence-hero-section .overlay,
.renovation-hero-modern .hero-overlay,
.referral-hero-fullscreen .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  /* Very light overlay for light mode - show more of the image */
  z-index: 1;
}

/* Dark mode overlay: Darker for cinematic effect and better text contrast */
[data-theme="dark"] .hero-section .hero-overlay,
[data-theme="dark"] .residence-hero-section .overlay,
[data-theme="dark"] .renovation-hero-modern .hero-overlay,
[data-theme="dark"] .referral-hero-fullscreen .overlay {
  background: rgba(0, 0, 0, 0.6);
  /* Strong overlay in dark mode for cinematic effect and text readability */
}

/* Safari/WebKit fixes */
@supports (-webkit-touch-callout: none) {

  .hero-section,
  .property-gallery-section,
  .residence-hero-section,
  .renovation-hero-modern,
  .referral-hero-fullscreen,
  .fullscreen-hero {
    min-height: -webkit-fill-available;
  }
}

/* Print styles */
@media print {

  .hero-section,
  .property-gallery-section,
  .residence-hero-section,
  .renovation-hero-modern,
  .referral-hero-fullscreen,
  .fullscreen-hero {
    margin-top: 0;
    padding-top: 0;
    min-height: auto;
    page-break-inside: avoid;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {

  .hero-section .hero-overlay,
  .residence-hero-section .overlay,
  .renovation-hero-modern .hero-overlay,
  .referral-hero-fullscreen .overlay {
    background: rgba(0, 0, 0, 0.7);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero-section,
  .property-gallery-section,
  .residence-hero-section,
  .renovation-hero-modern,
  .referral-hero-fullscreen {
    transition: none;
  }
}
