/* Responsive CSS for Curated Online Antiques Auctions Template */

/* ========== MOBILE FIRST APPROACH ========== */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* DISABLE ANIMATIONS ON MOBILE */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  /* Team member images mobile */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Price cards mobile */
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .price-card .price {
    font-size: 2rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Process number mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Blog cards mobile */
  .blog-card-body {
    padding: 1rem;
  }
  
  /* Feature icon mobile */
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Cards padding mobile */
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card {
    padding: 1.5rem;
  }
  
  /* FAQ cards mobile */
  .faq-card {
    padding: 1rem;
  }
  
  /* Timeline items mobile */
  .timeline-item {
    padding: 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on tablet */
  .service-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  .gallery-item img:hover {
    transform: none;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  /* Hero section tablet */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Gallery grid tablet */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  /* Service cards tablet */
  .service-card img {
    height: 180px;
  }
  
  /* Team member images tablet */
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery grid desktop small */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Service cards desktop small */
  .service-card img {
    height: 190px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery grid large desktop */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Larger containers for big screens */
  .container-xl {
    max-width: 1400px;
  }
}

/* ========== LANDSCAPE PHONE ORIENTATION ========== */
@media (max-width: 767.98px) and (orientation: landscape) {
  /* Reduce hero section height in landscape */
  .hero-section {
    min-height: 70vh;
  }
  
  /* Reduce section padding in landscape */
  .section-padding {
    padding: 2rem 0;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  /* Hide navigation and footer for print */
  .navbar,
  .footer {
    display: none;
  }
  
  /* Remove shadows and animations for print */
  .service-card,
  .review-card,
  .price-card,
  .blog-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .faq-card,
  .timeline-item {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  /* Ensure readable colors for print */
  body {
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
  /* Increase contrast for accessibility */
  .navbar {
    border-bottom: 2px solid var(--primary-burgundy);
  }
  
  .service-card,
  .review-card,
  .price-card,
  .blog-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .faq-card,
  .timeline-item {
    border: 2px solid var(--primary-burgundy);
  }
  
  .btn-primary {
    border-width: 2px;
  }
}

/* ========== DARK MODE SUPPORT ========== */

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(139, 21, 56, 0.1);
  }
  
  .gallery-item img:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--dark-burgundy);
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    padding: 1rem 0.5rem;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ========== REDUCED MOTION SUPPORT ========== */
@media (prefers-reduced-motion: reduce) {
  /* Override any remaining animations */
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ========== CONTAINER BREAKPOINT ADJUSTMENTS ========== */
@media (max-width: 575.98px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ========== FORM RESPONSIVENESS ========== */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .contact-form .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .contact-form .col-md-6 {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========== NAVIGATION RESPONSIVENESS ========== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-cream);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(139, 21, 56, 0.1);
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    border-bottom: 1px solid var(--light-cream);
    margin: 0;
    padding: 0.75rem 0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ========== UTILITY CLASSES FOR RESPONSIVE DESIGN ========== */
.mobile-hide {
  display: block;
}

@media (max-width: 767.98px) {
  .mobile-hide {
    display: none;
  }
}

.mobile-show {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-show {
    display: block;
  }
}

/* ========== TEXT SIZING ADJUSTMENTS ========== */
@media (max-width: 575.98px) {
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .section-subtitle {
    margin-bottom: 0.75rem;
  }
  
  .section-description {
    margin-bottom: 2rem;
  }
}

/* ========== SPACING ADJUSTMENTS FOR SMALL SCREENS ========== */
@media (max-width: 575.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
} 

.hero-content {
    padding-top: 150px;
}