/* Estate Mediation Retreats - Responsive Styles */

/* Mobile First - Base styles for mobile devices */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  
  .services-item,
  .features-item,
  .priceplan-item,
  .team-member,
  .coreinfo-item {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .footer-policies a {
    display: block;
    margin: 0.5rem 0;
  }
  
  /* Disable animations on mobile */
  .services-item:hover,
  .about-feature:hover,
  .priceplan-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Adjust swiper for mobile */
  .swiper-slide {
    padding: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-policies a {
    margin: 0 0.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Re-enable some hover effects on tablets */
  .services-item:hover,
  .about-feature:hover,
  .blog-item:hover {
    transform: translateY(-5px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Adjust image quality and sizing for retina displays */
  .services-item img,
  .blog-item img,
  .gallery-item img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .hero-shape-1,
  .hero-shape-2,
  .navbar,
  .contact-form,
  footer {
    display: none !important;
  }
  
  body {
overflow-x: hidden;
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  h1, h2, h3 {
    color: black !important;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #6d8c63;
    --primary-dusty-rose: #b5806f;
    --primary-soft-lavender: #9a7db8;
    --primary-muted-teal: #5a9999;
  }
  
  .btn-primary {
    border: 2px solid black;
  }
  
  .form-control {
    border: 2px solid black;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-warm-cream: #2d2d2d;
    --cream-light: #3d3d3d;
    --cream-dark: #1d1d1d;
  }
  
  body {
overflow-x: hidden;
    background-color: #2d2d2d;
    color: #e0e0e0;
  }
  
  .services-item,
  .about-feature,
  .team-member,
  .coreinfo-item,
  .blog-item,
  .contact-form {
    background: #3d3d3d;
    color: #e0e0e0;
  }
  
  .faq-item {
    background: #3d3d3d;
    border-color: #555;
  }
  
  .faq-question {
    background: #4d4d4d;
    color: #e0e0e0;
  }
  
  .faq-answer {
    background: #3d3d3d;
    color: #c0c0c0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Focus states for keyboard navigation */
@media (pointer: coarse) {
  .navbar-nav .nav-link,
  .btn-primary,
  .form-control,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-shape-1,
  .hero-shape-2 {
    animation: none;
  }
  
  .services-item,
  .about-feature,
  .priceplan-item,
  .blog-item,
  .gallery-item {
    transition: none;
  }
  
  .swiper-slide {
    transition: none;
  }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
} 