/* Responsive CSS for Probate Process Helpdesk Template */

/* Extra Large Screens (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-section p {
    font-size: 1.25rem;
  }
  
  .card-body {
    padding: 2.5rem;
  }
}

/* Large Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .card-body {
    padding: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 5px;
    font-size: 0.95rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .team-img {
    width: 100px;
    height: 100px;
  }
}

/* Small Screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  :root {
    --section-padding: 50px 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 3px;
    font-size: 0.9rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
    margin: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .team-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .review-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
}

/* Extra Small Screens (up to 575px) */
@media (max-width: 575px) {
  :root {
    --section-padding: 40px 0;
  }
  
  body {
    font-size: 14px;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 120px 15px 40px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Header adjustments */
  header {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
    text-align: center;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  /* Section spacing */
  section {
    padding: 40px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  /* Team */
  .team-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .team-img {
    width: 80px;
    height: 80px;
  }
  
  /* Reviews */
  .review-card {
    margin: 0.25rem;
    padding: 1.25rem;
  }
  
  .swiper {
    padding-bottom: 40px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
  
  /* FAQ */
  .accordion-item {
    margin-bottom: 0.75rem;
  }
  
  .accordion-header button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .accordion-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  .footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Utility adjustments */
  .price-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .btn-outline-sage {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding-top: 80px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  :root {
    --section-padding: 50px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-img-top,
  .gallery-item img,
  .team-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .hero-shape,
  .btn,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements for screen readers */
@media (prefers-reduced-motion: reduce) {
  .hero-shape,
  .card:hover,
  .team-card:hover,
  .gallery-item:hover {
    animation: none;
    transform: none;
  }
  
  .swiper {
    scroll-behavior: auto;
  }
}

/* Dark mode preference (basic support) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #E8E6E3;
    --text-secondary: #BDC3C7;
    --white: #2C3E50;
    --shadow: rgba(255, 255, 255, 0.1);
  }
} 