/* Reset and base styles */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;padding:0;font-family:var(--font-inter),system-ui,-apple-system,sans-serif}

/* Font loading optimization */
@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
  src: local('Playfair Display'), local('PlayfairDisplay-Regular');
}
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter'), local('Inter-Regular');
}

/* Hero section critical styles - Enhanced */
.hero-section, section.relative.h-screen { 
  min-height: 100vh;
  height: 100vh;
  position: relative;
  margin-top: -5rem;
  background: linear-gradient(rgba(45,40,38,0.9), rgba(45,40,38,0.7)), #2D2826;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Critical hero layout */
section.relative.h-screen > div.absolute.inset-0 {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
}

section.relative.h-screen > div.relative.z-10 {
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Hero image optimization */
.hero-image, section > div > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}

/* Hero content styles */
.hero h1, .hero-title {
  color: white;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 0.9;
  font-family: var(--font-playfair), 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-family: var(--font-inter), system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}

.hero .hero-button {
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 1rem 2rem;
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero .hero-button:hover {
  background: white;
  color: #2D2826;
}

/* Navigation critical styles */
.navbar-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Layout shift prevention */
img{height:auto;max-width:100%}
.min-h-screen{min-height:100vh}
.pt-20{padding-top:5rem}

/* Touch target optimization */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  padding: 12px;
}

button, a[role="button"], .winery-card {
  min-height: 44px;
  touch-action: manipulation;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-section { min-height: 60vh }
  .hero-title { font-size: clamp(1.75rem, 6vw, 3rem) }
  
  /* Better mobile interactions */
  button, .winery-card {
    min-height: 48px;
  }
  
  /* Prevent zoom on input focus */
  input, select, textarea {
    font-size: 16px;
  }
}

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