/* ===== RESPONSIVE STYLES ===== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .service-card {
    margin-bottom: 0;
  }
  
  .team-member {
    margin-bottom: 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .process-item,
  .timeline-item {
    flex-direction: column;
    text-align: center;
  }
  
  .process-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .service-card,
  .team-member,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-info {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-navigation-size: 30px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .hero-shape {
    display: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .service-card,
  .team-member,
  .price-card,
  .about-feature {
    padding: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
  
  .price-value {
    font-size: 2.25rem;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .process-item,
  .timeline-item,
  .casestudy-item,
  .career-item {
    padding: 1.5rem;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../FLA_images/hero-bg@2x.webp');
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --black: #ffffff;
    --gray-100: #2d2d2d;
    --gray-200: #3d3d3d;
    --gray-300: #4d4d4d;
    --gray-800: #b8b8b8;
    --gray-900: #e8e8e8;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-section,
  .contact-form,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .hero-content h1,
  .section-title h2 {
    color: #000 !important;
  }
  
  .service-card,
  .team-member,
  .price-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .service-card:hover,
  .team-member:hover,
  .about-feature:hover,
  .casestudy-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-burgundy);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-burgundy);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Container max-widths for better readability */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1200px;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-burgundy);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth scrolling for browsers that don't support it natively */
@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
} 