/* Responsive styles */

/* Mobile first approach - Base styles are for mobile */

/* Small devices (landscape phones, 480px and up) */
@media (min-width: 480px) {
  .container {
    padding: 0 var(--spacing-3);
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .broker-card {
    height: 100%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-4);
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: var(--spacing-8) 0;
  }
  
  .hero h1 {
    font-size: 3.25rem;
  }
  
  .hero p {
    font-size: 1.35rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-5);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .education-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
  .container {
    padding: 0;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  .hero h1 {
    font-size: 3.75rem;
  }
}

/* Mobile menu styles */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-2);
  }
  
  .broker-actions {
    flex-direction: column;
  }
  
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .broker-content {
    padding: var(--spacing-2);
  }
  
  .feature-card, .education-card {
    padding: var(--spacing-2);
  }
}

/* Medium screen adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-group {
    flex: 1;
    min-width: 0;
  }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .hero-buttons, .cta-section, .search-section, .filter-section {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  main {
    padding: 0;
  }
  
  .broker-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .broker-actions {
    display: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-gray-100: #1A202C;
    --color-gray-200: #2D3748;
    --color-gray-300: #4A5568;
    --color-gray-700: #CBD5E0;
    --color-gray-800: #E2E8F0;
    --color-gray-900: #F7FAFC;
    --color-white: #171923;
    --color-black: #FFFFFF;
  }
  
  body {
    color: var(--color-gray-300);
  }
  
  .site-header {
    background-color: #171923;
  }
  
  .search-input, .filter-select {
    background-color: var(--color-gray-800);
    color: var(--color-gray-100);
  }
  
  .broker-card, .education-card {
    background-color: #171923;
  }
  
  .cta-section {
    background: linear-gradient(135deg, #0E1E33, #0A1622);
  }
  
  .footer-section h3 {
    color: var(--color-gray-300);
  }
  
  .disclaimer {
    background-color: #0E1E33;
  }
  
  /* Override specific elements that need to maintain original colors */
  .broker-feature {
    background-color: var(--color-gray-800);
    color: var(--color-gray-300);
  }
  
  .logo-text {
    color: var(--color-primary-light);
  }
  
  .broker-logo, .feature-card {
    background-color: var(--color-gray-800);
  }
}