/* Child Custody Strategy Clinics - Responsive CSS */

/* Mobile First Approach - Base styles for mobile devices */

/* Default mobile styles (0px and up) */
/* Conservative mobile typography */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.navbar-brand {
  font-size: 1.125rem;
}

/* Mobile hero adjustments */
.hero-section {
  min-height: 80vh;
  padding: 2rem 0;
}

.hero-section h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Card styling only - Bootstrap handles layout */
.service-card,
.team-member,
.feature-card,
.price-card,
.process-step,
.gallery-item,
.review-card,
.info-card,
.blog-card,
.case-study-card,
.career-card {
  margin-bottom: 1.5rem;
}

/* Mobile navigation */
.navbar-nav {
  text-align: center;
  padding: 1rem 0;
}

.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
  margin: 0;
}

/* Mobile contact form */
.contact-form {
  padding: 1.5rem;
}

.form-control {
  padding: 1rem;
  font-size: 1rem;
}

/* Mobile timeline */
.timeline::before {
  left: 1rem;
}

.timeline-content {
  margin-left: 3rem;
  margin-right: 0;
  max-width: 100%;
}

/* Mobile footer */
.footer {
  text-align: center;
  padding: 2rem 0 1rem;
}

.footer .col-md-3,
.footer .col-md-4 {
  margin-bottom: 2rem;
}

/* Hide decorative elements on mobile */
.hero-blob {
  display: none;
}

/* Mobile padding adjustments */
.section {
  padding: 2rem 0;
}

/* Mobile button adjustments */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Mobile card adjustments */
.service-card-body,
.blog-card-body,
.case-study-content {
  padding: 1.5rem;
}

.feature-card,
.review-card,
.info-card {
  padding: 1.5rem;
}

/* Team member images on mobile */
.team-member img {
  width: 200px;
  height: 200px;
}

/* Disable Swiper effects on mobile */
.swiper-container {
  --swiper-autoplay-delay: 0;
}

.swiper-slide {
  transition: none;
  transform: none;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Restore normal typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Slightly larger hero on small devices */
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.125rem;
  }
  
  /* Show decorative elements */
  .hero-blob {
    display: block;
  }
  
  /* Larger padding */
  .section {
    padding: 3rem 0;
  }
  
  /* Team member images larger */
  .team-member img {
    width: 250px;
    height: 250px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Enable Swiper autoplay and effects for tablets and up */
  .swiper-container {
    --swiper-autoplay-delay: 5000;
  }
  
  .swiper-slide {
    transition: transform 0.5s ease;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 90vh;
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.25rem;
  }
  
  /* Timeline responsive */
  .timeline::before {
    left: 50%;
  }
  
  .timeline-content {
    max-width: 45%;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
    margin-left: 0;
  }
  
  /* Restore normal typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  /* Desktop navigation */
  .navbar-nav {
    text-align: left;
    padding: 0;
  }
  
  /* Larger cards padding */
  .service-card-body,
  .blog-card-body,
  .case-study-content {
    padding: 2rem;
  }
  
  .feature-card,
  .review-card,
  .info-card {
    padding: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Footer alignment */
  .footer {
    text-align: left;
    padding: 3rem 0 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Hero section full desktop */
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section p {
    font-size: 1.5rem;
  }
  
  /* Section padding */
  .section {
    padding: 4rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Section padding */
  .section {
    padding: 5rem 0;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Extra small mobile devices (under 576px) - override some mobile defaults */
@media (max-width: 575.98px) {
  /* Extra small mobile adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Smaller padding for very small screens */
  .section {
    padding: 1.5rem 0;
  }
  
  .contact-form,
  .feature-card,
  .review-card,
  .info-card {
    padding: 1rem;
  }
  
  .service-card-body,
  .blog-card-body,
  .case-study-content {
    padding: 1rem;
  }
  
  /* Team member images smaller on small mobile */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* FAQ adjustments */
  .faq-question,
  .faq-answer {
    padding: 0.75rem;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Crisp images for retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-blob,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
    color: #000 !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
  }
  
  .footer {
    background: none !important;
    color: #000 !important;
  }
}

/* Focus and accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
  /* Smooth scrolling for users who prefer motion */
  html {
    scroll-behavior: smooth;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .service-card,
  .feature-card,
  .review-card,
  .info-card {
    border: 1px solid currentColor;
  }
} 