/* Responsive Styles - Mobile First Approach */

/* Mobile Styles (Default - up to 768px) */
@media (max-width: 767px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .page-banner h1 {
    font-size: 2rem;
  }

  /* Layout adjustments */
  .container {
    padding: 0 0.75rem;
  }
  
  .col,
  .col-2,
  .col-3,
  .col-4 {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }
  
  /* Header mobile styles */
  .nav {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    transition: left 0.3s ease;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .mobile-menu-toggle {
    display: block;
    font-size: 1.8rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
  }
  
  .logo {
    height: 40px;
  }
  
  /* Hero adjustments */
  .hero {
    height: 60vh;
    min-height: 500px;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 200px;
    margin-bottom: 0.5rem;
  }
  
  /* Page banner adjustments */
  .page-banner {
    height: 250px;
  }
  
  /* Section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1rem;
  }
  
  /* Footer adjustments */
  .footer .row {
    flex-direction: column;
  }
  
  .footer .col-3 {
    flex: 0 0 100%;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Tablet Styles (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  /* Adjust grid for tablet */
  .col-4 {
    flex: 0 0 50%;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  /* Navigation adjustments for tablet */
  .nav li {
    margin-left: 1.5rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
}

/* Desktop Styles (1025px and up) */
@media (min-width: 1025px) {
  /* Larger containers for desktop */
  .container {
    max-width: 1200px;
  }
  
  /* Enhanced hover effects for desktop */
  .card:hover {
    transform: translateY(-8px);
  }
  
  .btn:hover {
    transform: translateY(-3px);
  }
  
  /* Larger hero text for desktop */
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
}

/* Landscape phone adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    height: 70vh;
  }
  
  .page-banner {
    height: 200px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-menu-toggle,
  .hero-buttons,
  .btn {
    display: none;
  }
  
  .hero {
    margin-top: 0;
    height: auto;
    min-height: auto;
    padding: 2rem 0;
  }
  
  .page-banner {
    margin-top: 0;
    height: auto;
    padding: 2rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
  }
  
  .card {
    border: 2px solid var(--primary-text);
  }
  
  .btn-outline {
    border-width: 3px;
  }
}
