/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

/* Responsive font scaling */
@media (max-width: 480px) {
  html { font-size: 14px; }
}

@media (min-width: 1440px) {
  html { font-size: 18px; }
}

@media (min-width: 1920px) {
  html { font-size: 20px; }
}

/* Main Container - Full Height Layout */
body {
  font-family: "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ece9e4;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: 70px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive navbar height adjustments */
@media (max-width: 768px) {
  body { padding-top: 60px; }
}

@media (max-width: 480px) {
  body { padding-top: 55px; }
}

/* Main element - Takes remaining space */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(0.5rem, 2vw, 2rem);
  width: 100%;
}

/* Hero Section - Responsive Container */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

/* Hero Image Container - Responsive Sizing */
/* Hero Image Container - Fixed Desktop Sizing */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: clamp(12px, 2vw, 24px);
  overflow: hidden;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f5f5f5;
}

/* Desktop/Large screens - Fixed aspect ratio without max-height restriction */
@media (min-width: 1200px) {
  .hero-image-container {
    aspect-ratio: 16/9; /* or use 4/3 if you prefer */
    width: 90%;
    max-width: 1200px;
    /* Remove restrictive max-height */
  }
  
  .hero-image-container:hover {
    transform: scale(1.02);
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.25),
      0 25px 50px rgba(0, 0, 0, 0.2);
  }
}

/* Laptop adjustments (1024px - 1199px) - Fixed */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-image-container {
    aspect-ratio: 16/9; /* or use 4/3 */
    width: 85%;
    max-width: 1000px;
    /* Remove restrictive max-height */
  }
  
  .hero-image-container:hover {
    transform: scale(1.01);
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.25),
      0 25px 50px rgba(0, 0, 0, 0.2);
  }
}

/* Large desktop screens - Enhanced */
@media (min-width: 1440px) {
  .hero-image-container {
    aspect-ratio: 16/9; /* or use 4/3 */
    width: 80%;
    max-width: 1400px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
  .hero-image-container {
    aspect-ratio: 16/9; /* or use 4/3 */
    width: 75%;
    max-width: 1600px;
  }
}

/* Tablet adjustments - Keep existing */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-image-container {
    aspect-ratio: 4/3;
    height: clamp(300px, 45vh, 400px);
    max-height: 400px;
  }
}

/* Mobile adjustments - Keep existing */
@media (max-width: 767px) {
  .hero-image-container {
    aspect-ratio: 4/3;
    height: clamp(250px, 40vh, 320px);
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    aspect-ratio: 1/1;
    height: clamp(220px, 35vh, 280px);
    max-height: 280px;
  }
}

/* Slideshow container */
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Slide wrapper for image labels */
.slide-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide-wrapper.active {
  opacity: 1;
  z-index: 2;
}

/* Hero images - optimized for all screen sizes */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

/* Image label styles - responsive */
.image-label {
  position: absolute;
  bottom: clamp(10px, 2vw, 24px);
  left: clamp(10px, 2vw, 24px);
  background: rgba(0, 0, 0, 0.75);
  color: #ece9e4;
  padding: clamp(4px, 1vw, 8px) clamp(8px, 2vw, 12px);
  border-radius: clamp(4px, 1vw, 8px);
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  border: 1px solid #db8636;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* Mobile image label adjustments */
@media (max-width: 480px) {
  .image-label {
    font-size: 0.55rem;
    padding: 3px 6px;
    bottom: 8px;
    left: 8px;
  }
}

/* Error handling for images */
.hero-image.image-error {
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  text-align: center;
  opacity: 1;
}

.hero-image.image-error::before {
  content: "Loading...";
}

/* Hero overlay for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

/* Hero content - responsive typography */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 4;
  width: 90%;
  max-width: 800px;
}

/* Hero title - stacked design */
.hero-title {
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  letter-spacing: clamp(2px, 0.5vw, 6px);
  color: #ece9e4;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.3);
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  gap: clamp(-0.2rem, -1vw, -0.5rem);
}

.title-line {
  display: block;
  animation: fadeInUp 1s ease-out;
}

.title-line:first-child {
  animation-delay: 0.2s;
}

.title-line:last-child {
  animation-delay: 0.4s;
}

/* Large screens - adjust title spacing */
@media (min-width: 1440px) {
  .hero-title {
    font-size: clamp(4rem, 6vw, 8rem);
    letter-spacing: clamp(4px, 0.8vw, 12px);
  }
}

/* Mobile title adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    letter-spacing: clamp(1px, 0.3vw, 3px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    letter-spacing: 1px;
    line-height: 0.95;
  }
}

/* Subtitle styling */
.hero-content .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  margin-bottom: clamp(0.3rem, 1vw, 0.8rem);
  font-weight: 500;
  color: #db8636;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.2vw, 2px);
}

/* Address styling */
.hero-content .address {
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 400;
  color: #ece9e4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: clamp(0.5px, 0.1vw, 1px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Touch optimizations */
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Performance optimizations */
.hero-image-container {
  will-change: transform;
  transform: translateZ(0);
}

.slide-wrapper {
  will-change: opacity;
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Ultra-wide screen optimizations */
@media (min-width: 2560px) {
  .hero-section {
    max-width: 1800px;
  }
  
  .hero-image-container {
    max-width: 1600px;
    max-height: 70vh;
  }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-image-container {
    max-height: 80vh;
    aspect-ratio: 21/9;
  }
  
  .hero-title {
    font-size: clamp(1.2rem, 6vw, 2rem);
    margin-bottom: 0.3rem;
  }
  
  .hero-content .subtitle,
  .hero-content .address {
    font-size: clamp(0.7rem, 1.8vw, 1rem);
  }
}

/* Print styles */
@media print {
  .hero-image-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .hero-overlay {
    display: none;
  }
  
  .hero-content {
    color: #333 !important;
    text-shadow: none !important;
  }
}