/* Mobile-first optimizations for Naisha By Manisha */

/* Improved tap targets for touch devices */
button, 
a.cta-button, 
.whatsapp-button, 
.email-button,
.contact-button,
#main-nav a,
.menu-toggle {
  min-height: 44px; /* Apple's recommended minimum touch target height */
}

/* Use svh (small viewport height) on mobile to account for browser chrome */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90svh;
  }
}

/* Optimizations for input fields on mobile */
input, select, textarea {
  -webkit-appearance: none; /* Remove iOS default styling */
  appearance: none; /* Standard property */
  border-radius: 5px;
}

/* Fix font boosting on Chrome mobile */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Better image loading for mobile */
img {
  content-visibility: auto;
}

/* Optimize heading sizes on mobile */
@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.2rem; }
  p { font-size: 0.95rem; }
  
  /* Fix margins and paddings */
  .container {
    padding: 0 15px;
  }
  
  section {
    margin: 0;
    padding: 40px 0;
  }
    /* Maintain original button styles but ensure good touch area */
  .contact-buttons .whatsapp-button,
  .contact-buttons .email-button {
    padding: 12px 20px;
    margin: 5px;
  }
}

/* Reduce hero blur on mobile for GPU performance — overlay opacity raised to maintain text contrast */
@media (max-width: 768px) {
  .hero-section::before {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.50);
  }
}

/* Adjust navigation for landscape mode on phones */
@media (max-height: 500px) and (orientation: landscape) {
  #main-nav.active {
    max-height: 250px;
    overflow-y: auto;
  }
  
  #main-nav ul {
    padding: 5px 0;
  }
  
  #main-nav li {
    margin: 8px 0;
  }
    /* No special override needed for hero section in landscape */
}
