/* Responsive CSS for Investing Guide Template */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  html {
    font-size: 15px;
  }
  
  .container {
    max-width: 720px;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .priceplan-item.featured {
    transform: scale(1.03);
  }
  
  .priceplan-item.featured:hover {
    transform: scale(1.03) translateY(-10px);
  }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  .container {
    max-width: 540px;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    box-shadow: var(--box-shadow-light);
    border-radius: var(--border-radius-md);
  }
  
  .priceplan-item {
    margin-bottom: var(--spacing-md);
  }
  
  .priceplan-item.featured {
    transform: none;
  }
  
  .priceplan-item.featured:hover {
    transform: translateY(-10px);
  }
  
  .team-member,
  .services-item,
  .blog-item {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  footer [class^="col-"] {
    margin-bottom: var(--spacing-md);
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    box-shadow: var(--box-shadow-light);
    border-radius: var(--border-radius-md);
  }
  
  .navbar-toggler {
    font-size: 1rem;
  }
  
  .priceplan-item {
    margin-bottom: var(--spacing-md);
  }
  
  .priceplan-item.featured {
    transform: none;
  }
  
  .priceplan-item.featured:hover {
    transform: translateY(-10px);
  }
  
  .team-member,
  .services-item,
  .blog-item,
  .about-feature,
  .coreinfo-item {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .services-price {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  footer [class^="col-"] {
    margin-bottom: var(--spacing-md);
  }
  
  .float-animation {
    animation: none; /* Disable animations on mobile for performance */
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .float-animation {
    animation: none !important;
  }
  
  .about-feature:hover,
  .services-item:hover,
  .priceplan-item:hover,
  .team-member:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Focus visible styles for accessibility */
*:focus-visible {
  outline: 3px solid var(--primary-color-2);
  outline-offset: 2px;
} 