/* Mobile Optimization for Petra'Areej Website */

/* Base Mobile Styles */
@media only screen and (max-width: 767px) {
  /* Typography scaling */
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  /* Layout adjustments */
  .container {
    padding: 0 15px;
  }
  
  /* Navigation */
  header {
    padding: 10px 15px;
  }
  
  nav ul {
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(42, 42, 42, 0.95);
    transition: right 0.3s ease;
    z-index: 100;
    padding-top: 20px;
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
    font-size: 24px;
    color: #C5A47E;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Hero section */
  .hero {
    height: 80vh;
  }
  
  .hero-content {
    width: 90%;
  }
  
  /* Collection grid */
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Artwork grid */
  .artwork-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Forms */
  input, textarea, select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 12px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* Touch-friendly targets */
  a, button, .btn, input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Contact page */
  .contact-split {
    flex-direction: column;
  }
  
  .contact-info, .contact-form-container {
    width: 100%;
  }
  
  /* Exhibition and studio sections */
  .exhibition-content, .studio-content {
    flex-direction: column;
  }
  
  .exhibition-image, .exhibition-text, 
  .studio-image-grid {
    width: 100%;
  }
  
  /* Cursor effects for touch devices */
  @media (hover: none) {
    .cursor-container {
      display: none;
    }
    
    /* Alternative hover effects for touch */
    .image-zoom:active img {
      transform: scale(1.05);
    }
    
    a:active, button:active {
      opacity: 0.8;
    }
  }
}

/* Small mobile devices */
@media only screen and (max-width: 375px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-content {
    width: 95%;
  }
}

/* Tablet devices */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .collection-grid, .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-split {
    flex-direction: column;
  }
  
  .contact-info, .contact-form-container {
    width: 100%;
  }
}

/* Landscape orientation */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }
  
  .hero-content {
    padding: 20px 0;
  }
  
  nav ul {
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding-top: 0;
  }
  
  nav ul li {
    margin: 0 10px;
  }
}
