/* Responsive CSS for Family History Template */

/* Mobile First Approach */

/* Small devices (phones, 576px and up) */
@media (max-width: 575px) {
  /* Ensure header background on mobile */
  .navbar, .navbar-dark, .navbar.fixed-top {
    background: var(--primary-deep-forest) !important;
    background-color: var(--primary-deep-forest) !important;
  }
  
  #hero-title-1 { font-size: 2rem; }
  #hero-subtitle-1 { font-size: 1.1rem; }
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: 1.1rem; }
  
  .hero-section { min-height: 80vh; }
  .hero-section::before { display: none; }
  
  .service-card, .team-card, .review-card { margin-bottom: 1.62rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  
  .contact-form { padding: 1.5rem; }
  footer { padding: 40px 0 20px; }
  
  /* Disable animations on mobile per requirements */
  .service-card:hover, .team-card:hover, .gallery-item:hover {
    transform: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  #hero-title-1 { font-size: 2.2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Disable autoplay and effects on mobile/tablet */
  .swiper-autoplay { display: none; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  
  .hero-section .container .row {
    align-items: center;
  }
  
  .service-card, .team-card {
    margin-bottom: 2.14rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  
  .container {
    max-width: 1140px;
  }
}

/* Disable Swiper effects on mobile devices */
@media (max-width: 768px) {
  .swiper-slide {
    transform: none !important;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    transform: none !important;
  }
  
  .swiper-autoplay {
    pointer-events: none;
  }
}

/* Print styles */
@media print {
  .navbar, .hero-section, footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .section-title, .section-subtitle {
    color: black;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-deep-forest: #000000;
    --primary-warm-amber: #ffa019;
    --primary-rich-burgundy: #970004;
    --text-dark: #000000;
    --text-light: #363636;
    --border-color: #000000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card, .team-card, .gallery-item, .blog-card {
    transition: none;
  }
  
  .service-card:hover, .team-card:hover, .gallery-item:hover, .blog-card:hover {
    transform: none;
  }
  
  .hero-section::before {
    animation: none;
  }
} 