/* Responsive CSS for Survivor Benefit Advocacy Center */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .services-grid,
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid,
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-features {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-grid,
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid,
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .services-grid,
  .priceplan-grid,
  .features-grid,
  .coreinfo-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .navbar-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .services-grid,
  .priceplan-grid,
  .features-grid,
  .coreinfo-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .navbar-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  h1, h2, h3 {
    margin-bottom: 0.75rem;
  }
  
  .service-card,
  .priceplan-card,
  .feature-card,
  .team-member,
  .blog-item {
    margin-bottom: 1.5rem;
  }
}

/* Utility classes for responsive behavior */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }
  
  .d-sm-block {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
  
  .d-md-block {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }
  
  .d-lg-block {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }
  
  .d-xl-block {
    display: block !important;
  }
}

/* Responsive text alignment */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

@media (min-width: 576px) {
  .text-sm-center {
    text-align: center !important;
  }
  
  .text-sm-left {
    text-align: left !important;
  }
  
  .text-sm-right {
    text-align: right !important;
  }
}

@media (min-width: 768px) {
  .text-md-center {
    text-align: center !important;
  }
  
  .text-md-left {
    text-align: left !important;
  }
  
  .text-md-right {
    text-align: right !important;
  }
}

@media (min-width: 992px) {
  .text-lg-center {
    text-align: center !important;
  }
  
  .text-lg-left {
    text-align: left !important;
  }
  
  .text-lg-right {
    text-align: right !important;
  }
}

/* Accessibility - reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .service-card:hover,
  .priceplan-card:hover,
  .feature-card:hover,
  .team-member:hover,
  .blog-item:hover {
    transform: none !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 0 !important;
  }
}

/* Tablet and mobile menu handling */
@media (max-width: 991.98px) {
  .mobile-menu-open {
    overflow: hidden;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    padding: 1rem;
    background-color: var(--bg-light);
    z-index: 1050;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
  }
  
  .navbar-collapse.show {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    flex-direction: column;
  }
  
  .nav-link {
    padding: 0.75rem 0;
  }
  
  .navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
  }
  
  .navbar-backdrop.show {
    display: block;
  }
} 