/* Responsive Stylesheet for Legal Document Express Bars */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  h1, .hero-title {
    font-size: 3rem;
  }
  
  h2, .section-title h2 {
    font-size: 2.25rem;
  }
  
  .hero-content {
    max-width: 500px;
  }
  
  .price-amount {
    font-size: 2.25rem;
  }
}

/* Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  h1, .hero-title {
    font-size: 2.75rem;
  }
  
  h2, .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .price-grid, .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .contact-info {
    margin-bottom: 40px;
  }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  h1, .hero-title {
    font-size: 2.5rem;
  }
  
  h2, .section-title h2 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .about-content, .contact-content {
    flex-direction: column;
  }
  
  .about-image, .contact-info {
    margin-bottom: 30px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
  
  /* Mobile Navigation */
  .header-container {
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-1);
    position: relative;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle span:before,
  .mobile-menu-toggle span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-1);
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle span:before {
    transform: translateY(-8px);
  }
  
  .mobile-menu-toggle span:after {
    transform: translateY(8px);
  }
  
  .mobile-menu-toggle.active span {
    background-color: transparent;
  }
  
  .mobile-menu-toggle.active span:before {
    transform: rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:after {
    transform: rotate(-45deg);
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 30px;
  }
  
  .navbar.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: 15px 0;
    text-align: center;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  h1, .hero-title {
    font-size: 2.25rem;
  }
  
  h2, .section-title h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero {
    min-height: 450px;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .about-content, .contact-content {
    flex-direction: column;
  }
  
  .about-image, .contact-info {
    margin-bottom: 30px;
  }
  
  .service-item, .price-item, .team-member, .features-item, .core-info-item {
    margin-bottom: 20px;
  }
  
  .services-grid, .price-grid, .team-grid, .features-grid, .core-info-grid, .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-image, .blog-image {
    height: 180px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery-item {
    height: 150px;
  }
  
  .review-item {
    padding: 25px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .form-services {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer {
    padding-top: 50px;
  }
  
  .footer-bottom {
    margin-top: 40px;
  }
  
  /* Mobile Navigation - Same as 576-767px with adjusted sizes */
  .header-container {
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-1);
    position: relative;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle span:before,
  .mobile-menu-toggle span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-1);
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle span:before {
    transform: translateY(-8px);
  }
  
  .mobile-menu-toggle span:after {
    transform: translateY(8px);
  }
  
  .mobile-menu-toggle.active span {
    background-color: transparent;
  }
  
  .mobile-menu-toggle.active span:before {
    transform: rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:after {
    transform: rotate(-45deg);
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 30px;
  }
  
  .navbar.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: 15px 0;
    text-align: center;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* 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;
  }
  
  .hero-content,
  .service-item:hover,
  .features-item:hover,
  .price-item:hover,
  .team-member:hover,
  .core-info-item:hover,
  .blog-item:hover,
  .service-item:hover .service-image img,
  .team-member:hover .team-image img,
  .blog-item:hover .blog-image img,
  .gallery-item:hover .gallery-image {
    transform: none !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 999999s;
  }
} 