/*
=====================================
EXHIBITION-WALL RENTAL MARKETPLACE
Responsive CSS File
=====================================
*/

/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles are for mobile (320px+) */

/* ===== EXTRA SMALL DEVICES (portrait phones, less than 576px) ===== */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  /* Section padding */
  .section {
    padding: 3rem 0;
  }
  
  .section-sm {
    padding: 2rem 0;
  }
  
  /* Cards and components */
  .service-card {
    padding: 1.5rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .price-amount {
    font-size: var(--font-size-3xl);
  }
  
  /* Navigation */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Blog grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Forms */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  /* Timeline */
  .timeline-item {
    margin-left: 0.5rem;
  }
  
  .timeline-content {
    margin-left: 1.5rem;
  }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) {
  /* Hero adjustments */
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service cards */
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  /* Blog grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) {
  /* Typography */
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  /* Navigation */
  .navbar-expand-md .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Service cards in 2 columns */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Team members in rows */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Price plans horizontal layout */
  .price-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Features grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Process steps in rows */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Career grid */
  .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Core info grid */
  .coreinfo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Reviews grid */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Case studies grid */
  .casestudy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Footer columns */
  .footer .row {
    text-align: left;
  }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) {
  /* Hero section full layout */
  .hero-content {
    padding: 4rem 0;
    padding-top: 250px;
}
  
  /* Services in 3 columns */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team members in 3 columns */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features in 2 columns */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Process steps in 3 columns */
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Career in 2 columns */
  .career-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Core info in 3 columns */
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Reviews in 3 columns */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* About features in 2 columns */
  .about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Timeline improvements */
  .timeline-item {
    margin-left: 2rem;
  }
  
  .timeline-content {
    margin-left: 3rem;
  }
  
  /* FAQ in 2 columns for better space usage */
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
  /* Services full 6-column layout option */
  .services-grid-full {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* Team members in full 5-column layout */
  .team-grid-full {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Process steps in 5 columns */
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* About features in 4 columns */
  .about-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Career in 4 columns */
  .career-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Core info in 6 columns for full layout */
  .coreinfo-grid-full {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* Reviews in 5 columns */
  .reviews-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Timeline items in 5 columns */
  .timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .timeline-grid .timeline-item {
    border-left: none;
    border-top: 2px solid var(--primary-1);
    margin-left: 0;
    padding-top: 2rem;
  }
  
  .timeline-grid .timeline-item::before {
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
  }
  
  .timeline-grid .timeline-content {
    margin-left: 0;
    text-align: center;
  }
}

/* ===== ULTRA WIDE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1320px;
  }
  
  /* Hero section with more padding */
  .hero-content {
    padding: 6rem 0;
    padding-top: 250px;
}
  
  /* Larger hero typography */
  .hero-title {
    font-size: 3.63rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-2xl);
  }
  
  /* Section padding increase */
  .section {
    padding: 6rem 0;
  }
  
  /* Gallery with 4 columns */
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Remove backgrounds and shadows for print */
  .hero-section,
  .service-card,
  .team-member,
  .testimonial-card,
  .price-card,
  .card {
    background: white;
    box-shadow: none;
    color: black;
  }
  
  /* Hide navigation and footer for print */
  .navbar,
  .footer {
    display: none;
  }
  
  /* Ensure proper page breaks */
  .section {
    page-break-inside: avoid;
  }
  
  /* Remove gradients and complex backgrounds */
  .bg-gradient-primary,
  .bg-gradient-secondary {
    background: white;
    color: black;
  }
  
  /* Simplify links */
  a {
    color: black;
    text-decoration: underline;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
  
  /* Crisp images and better typography */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media screen and (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero section height on landscape mobile */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Reduce section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Smaller hero typography */
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  /* Override smooth scrolling */
  html {
    scroll-behavior: auto;
  }
  
  /* Disable hover transforms */
  .card:hover,
  .service-card:hover,
  .team-member:hover,
  .price-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Simplified button hover */
  .btn-primary:hover {
    transform: none;
  }
}

/* ===== DARK MODE SUPPORT (if browser supports) ===== */

/* ===== GRID SYSTEM ENHANCEMENTS ===== */
/* Additional responsive utilities for the grid system */
@media (min-width: 576px) {
  .col-sm-auto-fit {
    flex: 1 1 auto;
  }
}

@media (min-width: 768px) {
  .col-md-auto-fit {
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) {
  .col-lg-auto-fit {
    flex: 1 1 auto;
  }
}

@media (min-width: 1200px) {
  .col-xl-auto-fit {
    flex: 1 1 auto;
  }
}

/* ===== CONTAINER RESPONSIVE BEHAVIORS ===== */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* ===== SPACING UTILITIES FOR DIFFERENT SCREEN SIZES ===== */
@media (max-width: 767.98px) {
  .mb-mobile-4 {
    margin-bottom: 1.70rem;
  }
  
  .mt-mobile-4 {
    margin-top: 1.63rem;
  }
  
  .p-mobile-3 {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .mb-tablet-5 {
    margin-bottom: 3rem;
  }
  
  .mt-tablet-5 {
    margin-top: 3rem;
  }
}

@media (min-width: 992px) {
  .mb-desktop-6 {
    margin-bottom: 3.55rem;
  }
  
  .mt-desktop-6 {
    margin-top: 3.66rem;
  }
} 