/* Vintage Furniture Restoration Studio - Responsive Styles */

/* ===== TABLET STYLES (768px and up) ===== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section::before {
    opacity: 0.15;
  }
  
  .custom-card:hover {
    transform: translateY(-4px);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* ===== DESKTOP STYLES (992px and up) ===== */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  .hero-section::before {
    opacity: 0.2;
  }
}

/* ===== LARGE DESKTOP STYLES (1200px and up) ===== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== MOBILE STYLES (767px and below) ===== */
@media (max-width: 767px) {
  /* Disable animations and transitions on mobile */
  .custom-card,
  .gallery-item img,
  .hero-section::before {
    transition: none;
    transform: none;
  }
  
  .custom-card:hover,
  .gallery-item:hover img {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  /* Mobile Typography */
  .hero-title {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Mobile Spacing */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section::before {
    display: none;
  }
  
  /* Mobile Cards */
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Mobile Team */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile Forms */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Mobile Navigation */
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-cream);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Mobile Footer */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile Testimonials */
  .testimonial-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Mobile FAQ */
  .faq-card {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Mobile Contact Info */
  .contact-info {
    text-align: center;
    margin-top: 2rem;
  }
}

/* ===== EXTRA SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .custom-card {
    margin-bottom: 1rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  .testimonial-card {
    padding: 0.75rem;
  }
  
  .faq-card {
    padding: 0.75rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::before {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-warm-brown: #654321;
    --primary-charcoal: #000000;
    --light-cream: #FFFFFF;
    --primary-cream: #F8F8F8;
  }
  
  .custom-card,
  .faq-card,
  .testimonial-card {
    border: 2px solid var(--primary-charcoal);
  }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-warm-brown);
    outline-offset: 2px;
  }
}

/* ===== LANDSCAPE MOBILE ADJUSTMENTS ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

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