/* Responsive Styles for Prenuptial Agreement Bar Template */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Base Typography */
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  /* Section Padding */
  section {
    padding: 3rem 0;
  }
  
  /* Hero Section */
  .hero {
    text-align: center;
  }
  
  /* Services */
  .service-item {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  /* Footer */
  .footer-column {
    margin-bottom: 2rem;
  }
  
  /* Team */
  .team-member-img {
    width: 150px;
    height: 150px;
  }
  
  /* Shapes & Decorative Elements */
  .hero-shape,
  .hero-shape-2 {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Base Typography */
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team */
  .team-member-img {
    width: 180px;
    height: 180px;
  }
  
  /* Footer */
  .footer-column {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Service Item */
  .service-item {
    height: 100%;
  }
  
  /* General Spacing */
  .row > div {
    margin-bottom: 2rem;
  }
  
  /* Enable animations but respect prefers-reduced-motion */
  @media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Service Item */
  .service-item {
    height: 100%;
  }
  
  /* Enable smooth animations */
  @media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Base Typography */
  html {
    font-size: 16px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Service Item */
  .service-item {
    height: 100%;
  }
  
  /* Enable more elaborate animations */
  @media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
      transition: opacity 1s ease, transform 1s ease;
    }
  }
}

/* Prefers Reduced Motion - Disable animations */
@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;
  }
  
  .animate-on-scroll,
  .fade-in,
  .slide-up {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Disable autoplay on sliders */
  .swiper-container {
    --swiper-autoplay: false;
  }
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link,
  .navbar-nav .nav-link.scrolled {
    color: var(--color-primary);
  }
  
  .navbar-toggler {
    background-color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .hero,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .contact-form,
  .gallery-section,
  .reviews-section {
    display: none;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
  }
}

/* Responsive Form Styling */
@media (max-width: 767.98px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 0.5rem;
  }
  
  .submit-btn {
    width: 100%;
  }
}

/* Responsive FAQ Accordion */
@media (max-width: 767.98px) {
  .accordion-header {
    padding: 0.75rem;
  }
  
  .accordion-content {
    padding: 0.75rem;
  }
}

/* Responsive Blog Items */
@media (max-width: 767.98px) {
  .blog-item-img {
    height: 150px;
  }
  
  .blog-item-content {
    padding: 1rem;
  }
}

/* Responsive Team Section */
@media (max-width: 767.98px) {
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Responsive Reviews Slider */
@media (max-width: 767.98px) {
  .review-item {
    padding: 1rem;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .service-item:hover,
  .about-feature:hover,
  .feature-item:hover,
  .price-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
} 