/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --font-size-4xl: 28px;
    --font-size-3xl: 24px;
    --font-size-2xl: 20px;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  .card {
    padding: var(--spacing-md);
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-container {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    text-align: center;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    text-align: left;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-xs) var(--spacing-md);
  }
  
  /* Enable Swiper autoplay and effects on larger screens */
  .swiper-container {
    --swiper-navigation-size: 44px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: flex;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-item,
  .team-member {
    margin-bottom: var(--spacing-xl);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content {
    padding-right: var(--spacing-xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--light-gray);
  }
  
  body {
    overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  h4 { font-size: 12pt; }
  h5 { font-size: 11pt; }
  h6 { font-size: 10pt; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #006400;
    --primary-gold: #B8860B;
    --primary-navy: #000080;
    --primary-teal: #008080;
    --primary-burgundy: #800000;
    --gray: #404040;
    --light-gray: #E0E0E0;
  }
  
  .card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1F2937;
    --light-gray: #374151;
    --gray: #9CA3AF;
    --dark-gray: #E5E7EB;
    --black: #F9FAFB;
    --dark-navy: #F3F4F6;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .navbar {
    background: var(--light-gray);
  }
  
  .card {
    background: var(--light-gray);
  }
  
  .contact-form {
    background: var(--light-gray);
  }
  
  .form-control {
    background: var(--white);
    color: var(--dark-gray);
    border-color: var(--gray);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper-container {
    --swiper-transition-duration: 0ms;
  }
  
  .card,
  .gallery-item,
  .btn {
    transition: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-green);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Container responsive behavior */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 