/* Responsive Styles - Estate Mediation Retreats */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: var(--fs-4xl);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

/* Mobile devices (max-width: 767px) */
@media (max-width: 767px) {
  /* Typography adjustments for mobile */
  .hero-title {
    font-size: var(--fs-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--fs-lg);
  }
  
  .hero-desc {
    font-size: var(--fs-base);
  }
  
  /* Navigation mobile adjustments */
  .navbar-brand {
    font-size: 12px !important;
    font-size: var(--fs-lg) !important;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: var(--spacing-md);
    border-radius: 10px;
    margin-top: var(--spacing-sm);
    box-shadow: var(--shadow-md);
  }
  
  /* Section spacing for mobile */
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }
  
  /* Cards mobile spacing */
  .card-custom {
    margin-bottom: var(--spacing-md);
  }
  
  /* Process steps mobile */
  .process-step {
    padding: var(--spacing-md);
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--fs-lg);
  }
  
  /* Testimonial mobile */
  .testimonial-item {
    padding: 0 var(--spacing-md);
  }
  
  .testimonial-text {
    font-size: var(--fs-base);
  }
  
  /* FAQ mobile */
  .accordion-custom .accordion-header button {
    padding: var(--spacing-sm);
    font-size: var(--fs-sm);
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  .footer .row > div {
    margin-bottom: var(--spacing-lg);
  }
}

/* Extra small devices (max-width: 575px) */
@media (max-width: 575px) {
  /* Even smaller adjustments */
  .hero-title {
    font-size: var(--fs-2xl);
  }
  
  .section-title {
    font-size: var(--fs-xl);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    gap: var(--spacing-sm);
  }
  
  /* Button adjustments */
  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  /* Form adjustments */
  .form-control {
    padding: var(--spacing-sm);
  }
  
  /* Contact form extra small */
  .contact-form {
    padding: var(--spacing-md);
    margin: 0 var(--spacing-sm);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: var(--fs-xl);
  }
  
  .hero-subtitle {
    font-size: var(--fs-base);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #2d4a22;
    --primary-earth: #3d2f1a;
    --primary-slate: #1a1f27;
    --primary-cream: #ffffff;
    --primary-rust: #7a2f1a;
  }
  
  .card-custom {
    border: 2px solid var(--primary-slate);
  }
  
  .btn-primary-custom {
    border: 2px solid var(--primary-slate-dark);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover,
  .card-custom:hover,
  .process-step:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover {
    transform: none;
  }
  
  .swiper-slide {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-cream: #1a1a1a;
    --primary-cream-light: #2d2d2d;
    --primary-cream-dark: #0f0f0f;
    --primary-slate-dark: #ffffff;
    --primary-slate: #cccccc;
    --primary-slate-light: #999999;
  }
  
  .navbar {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: var(--primary-cream-dark);
  }
  
  .card-custom {
    background: var(--primary-cream-light);
  }
  
  .contact-form {
    background: var(--primary-cream-light);
  }
  
  .form-control {
    background: var(--primary-cream);
    color: var(--primary-slate-dark);
    border-color: var(--primary-slate);
  }
} 