/* ========================================
   RESPONSIVE DESIGN - MEDIATION CENTER
   ======================================== */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  
  /* Typography Adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Header Adjustments */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Hide decorative shapes on mobile */
  .shape-blob {
    display: none;
  }
  
  /* Section Spacing */
  section {
    padding: 3rem 0;
  }
  
  /* Cards */
  .card-custom {
    margin-bottom: 1.5rem;
  }
  
  /* Services */
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Team */
  .team-image {
    width: 150px;
    height: 150px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Disable hover effects on mobile */
  .card-custom:hover,
  .team-member:hover .team-image,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Testimonials */
  .testimonial-slide {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  /* FAQ */
  .accordion-header button {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-image {
    width: 180px;
    height: 180px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  .hero-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  section {
    padding: 4rem 0;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  /* Show decorative shapes on tablets and up */
  .shape-blob {
    display: block;
  }
  
  .shape-blob-1 {
    width: 150px;
    height: 150px;
  }
  
  .shape-blob-2 {
    width: 120px;
    height: 120px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .shape-blob-1 {
    width: 180px;
    height: 180px;
  }
  
  .shape-blob-2 {
    width: 140px;
    height: 140px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .container-xl {
    max-width: 1400px;
  }
  
  /* Full decorative shapes on large screens */
  .shape-blob-1 {
    width: 200px;
    height: 200px;
  }
  
  .shape-blob-2 {
    width: 150px;
    height: 150px;
  }
}

/* ========================================
   MOBILE NAVIGATION ADJUSTMENTS
   ======================================== */

@media (max-width: 991.98px) {
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: var(--primary-sage);
    border-radius: var(--border-radius);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(168, 181, 160, 0.25);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: var(--border-radius);
    transition: var(--transition);
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--primary-sage);
    color: white !important;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* ========================================
   SWIPER SLIDER RESPONSIVE
   ======================================== */

@media (max-width: 767.98px) {
  
  /* Disable autoplay and reduce motion on mobile */
  .swiper {
    --swiper-navigation-size: 35px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
  
  .testimonial-slide {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--primary-sage);
  }
  
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    color: var(--primary-coral);
  }
}

/* ========================================
   FORM RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 575.98px) {
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  select.form-control {
    font-size: 16px;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

@media (max-width: 767.98px) {
  
  /* Increase touch target sizes */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve text readability */
  .hero-subtitle {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  /* Ensure proper contrast */
  .testimonial-text {
    color: var(--neutral-charcoal);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  
  header,
  .navbar,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev,
  .shape-blob,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    color: black;
    padding: 2rem 0;
  }
  
  .hero-title {
    color: black;
    font-size: 24pt;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card-custom {
    border: 1pt solid #ccc;
    box-shadow: none;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .btn {
    display: none;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media screen and (orientation: landscape) and (max-height: 600px) {
  
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    margin-bottom: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Ensure crisp images on retina displays */
  .hero-image img,
  .team-image,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  /* Adjust shadow blur for better definition */
  .card-custom {
    box-shadow: 0 2px 10px rgba(168, 181, 160, 0.2);
  }
  
  .shadow-custom {
    box-shadow: 0 2px 10px rgba(168, 181, 160, 0.2);
  }
}

/* ========================================
   REDUCED MOTION QUERIES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  
  /* Disable all animations and transitions */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
  
  .card-custom:hover,
  .team-member:hover .team-image,
  .gallery-item:hover img,
  .btn-primary:hover {
    transform: none;
  }
}

/* ========================================
   DARK MODE SUPPORT (Future Enhancement)
   ======================================== */

@media (prefers-color-scheme: dark) {
  
  /* Optional: Prepare for dark mode support */
  :root {
    --neutral-white: #1a1a1a;
    --neutral-light: #2d2d2d;
    --neutral-medium: #404040;
    --neutral-dark: #e0e0e0;
    --neutral-charcoal: #f5f5f5;
  }
  
  /* Only apply if explicitly enabled */
  .dark-mode-enabled {
    
    body {
      background-color: var(--neutral-white);
      color: var(--neutral-dark);
    }
    
    .card-custom {
      background: var(--neutral-light);
    }
    
    header {
      background: rgba(26, 26, 26, 0.95);
    }
  }
} 