/* Art Leasing Corporate Website - Responsive CSS */
/* Mobile and Tablet Optimizations */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.1rem; }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
    text-align: center;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative element on mobile */
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 225px;
}
  
  .hero-content h1 {
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Navigation Mobile */
  .navbar-brand {
    font-size: 1.1rem; /* Even more conservative on mobile */
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    background-color: var(--bg-light);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  
  /* Sections Mobile */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Cards Mobile */
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .blog-card,
  .price-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-card img,
  .team-card img {
    height: 150px;
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog Grid Mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
  .footer p {
    font-size: 0.8rem;
  }
  
  /* Price Cards Mobile */
  .price-card.featured {
    transform: none; /* Remove scaling on mobile */
  }
  
  /* Feature Items Mobile */
  .feature-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2rem;
  }
  
  /* Form Controls Mobile */
  .form-control {
    padding: 0.6rem;
    font-size: 1rem; /* Prevent zoom on iOS */
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    width: 100%;
  }
  
  /* No animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Tablet Portrait */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card img,
  .team-card img {
    height: 180px;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
}

/* Desktop Small */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop Large */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section::before {
    width: 25%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ultra-wide Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-section {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-dark: #000000;
    --border-color: #000000;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .blog-card,
  .price-card,
  .contact-form {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Focus Styles for Accessibility */
.form-control:focus,
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Smooth Scrolling (respecting motion preferences) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Container Spacing Adjustments */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Card Hover Effects - Disabled on Touch Devices */
@media (hover: none) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
}

/* Text Selection */
::selection {
  background-color: var(--accent-light);
  color: var(--text-dark);
}

::-moz-selection {
  background-color: var(--accent-light);
  color: var(--text-dark);
}