/* Estate Planning & Probate Boutique Template
 * responsive.css
 */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Font sizes adjustments for mobile */
  body {
    font-size: 0.9rem;
  }

  h1, #hero-title-1 {
    font-size: 2rem !important;
  }

  h2, .section-title {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
  }

  /* Spacing adjustments */
  section {
    padding: 3rem 0;
  }

  .mb-lg {
    margin-bottom: 2rem;
  }

  .mt-lg {
    margin-top: 2rem;
  }

  .py-lg {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Hero section adjustments */
  #hero {
    min-height: auto;
    padding: 6rem 0;
  }

  /* Service items */
  .service-item {
    margin-bottom: 1.5rem;
  }

  /* Team member */
  .team-member {
    margin-bottom: 1.5rem;
  }

  .team-member-image {
    height: 250px;
  }

  /* Review items */
  .review-item {
    padding: 1.5rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }

  /* Footer */
  footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }

  .footer-widget {
    margin-bottom: 2rem;
  }

  /* Gallery items */
  .gallery-item {
    height: 200px;
  }

  /* Disable animations on mobile */
  @media (prefers-reduced-motion: no-preference) {
    .fade-in {
      animation: none;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Font size adjustments */
  #hero-title-1 {
    font-size: 2.5rem;
  }

  h2, .section-title {
    font-size: 1.8rem;
  }

  /* Spacing adjustments */
  section {
    padding: 4rem 0;
  }

  /* Service items */
  .service-item {
    margin-bottom: 1.5rem;
  }

  /* Team member */
  .team-member {
    margin-bottom: 1.5rem;
  }

  /* Footer */
  .footer-widget {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Font size adjustments */
  #hero-title-1 {
    font-size: 3rem;
  }

  /* Spacing adjustments */
  section {
    padding: 5rem 0;
  }

  /* Service items */
  .service-item {
    height: calc(100% - 30px);
    margin-bottom: 30px;
  }

  /* Team member */
  .team-member {
    margin-bottom: 2rem;
  }

  /* Footer */
  .footer-widget {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Spacing adjustments */
  section {
    padding: 5rem 0;
  }

  .service-item-image {
    height: 180px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero section */
  #hero {
    height: 100vh;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.3rem;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .service-item:hover,
  .about-feature:hover,
  .core-info-item:hover,
  .team-member:hover,
  .blog-item:hover,
  .price-item:hover {
    transform: none !important;
  }

  .service-item:hover .service-item-image img,
  .blog-item:hover .blog-item-image img,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --neutral-light: #1e2124;
    --neutral-dark: #121416;
    --dark-light: #d4d4d4;
    --dark-dark: #e9e9e9;
  }

  .about-feature,
  .service-item,
  .core-info-item,
  .team-member,
  .blog-item,
  .price-item,
  .contact-form,
  .accordion-item,
  .accordion-button,
  .accordion-body {
    background-color: var(--dark-dark) !important;
    color: var(--neutral-light) !important;
  }

  .accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: white !important;
  }

  body {
    background-color: var(--neutral-dark);
    color: var(--dark-light);
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--dark-light);
  }

  header {
    background-color: var(--neutral-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    color: var(--dark-light);
  }

  .form-control {
    background-color: var(--neutral-dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-light);
  }

  .form-control:focus {
    background-color: var(--neutral-dark);
    color: var(--dark-light);
  }
} 