/*
=======================================
Meeting Insights SaaS - Responsive CSS
=======================================
*/

/* Mobile First Approach - Base styles for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.82rem; }
  h3 { font-size: 1.65rem; }
  h4 { font-size: 1.39rem; }
  
  /* Hero section adjustments */
  #hero-title-1 {
    font-size: 2.52rem;
    line-height: 1.1;
  }
  
  #hero {
    padding: 3rem 0;
    text-align: center;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 3rem 0;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.37rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-card,
  .career-card {
    margin-bottom: 1.74rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Info grid */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Process items */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.39rem;
  }
  
  /* Team images */
  .team-card img {
    width: 150px;
    height: 150px;
  }
  
  /* Service card images */
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  /* Footer adjustments */
  footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero-title-1 {
    font-size: 3rem;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  /* Info grid */
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero-title-1 {
    font-size: 3.34rem;
  }
  
  /* Section titles */
  .section-title h2 {
    font-size: 2.28rem;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Info grid */
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Price cards - 2 columns on tablet */
  #priceplan .row .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Services - 2 columns on tablet */
  #services .row .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Team - 2-3 columns on tablet */
  #team .row .col-lg-2 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero section */
  #hero-title-1 {
    font-size: 3.58rem;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Info grid */
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Navigation adjustments */
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero section */
  #hero-title-1 {
    font-size: 4rem;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Container max-width adjustment for very large screens */
  .container {
    max-width: 1200px;
  }
  
  /* Navigation spacing */
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Hero section */
  #hero-title-1 {
    font-size: 4.61rem;
  }
  
  /* Section padding for very large screens */
  .section {
    padding: 6rem 0;
  }
  
  /* Gallery grid */
  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Container adjustment */
  .container {
    max-width: 1320px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  #hero-title-1 {
    font-size: 2.54rem;
  }
  
  /* Reduce section padding */
  .section {
    padding: 2rem 0;
  }
}

/* High DPI / Retina display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI displays */
  .service-card img,
  .team-card img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide unnecessary elements when printing */
  .navbar,
  .breadcrumb-container,
  footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  /* Adjust colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Ensure readability */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* Dark mode preference (if user prefers dark mode) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Remove animations and transitions for users who prefer reduced motion */
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-card,
  .career-card,
  .gallery-item,
  .btn,
  .navbar-nav .nav-link {
    transition: none !important;
    transform: none !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Disable hover effects */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High contrast preference */
@media (prefers-contrast: high) {
  /* Enhanced contrast for accessibility */
  .feature-card,
  .service-card,
  .price-card,
  .review-card {
    border: 2px solid var(--color-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--color-dark);
  }
  
  /* Ensure text contrast */
  p, .service-features li {
    color: var(--color-dark);
  }
}

/* Focus management for accessibility */
@media (prefers-reduced-motion: no-preference) {
  /* Smooth focus transitions only when motion is not reduced */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    transition: all 0.2s ease;
  }
}

/* Container spacing adjustments for different screen sizes */
@media (max-width: 1199.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Specific component responsive adjustments */

/* FAQ section responsiveness */
@media (max-width: 767.98px) {
  .faq-question {
    padding: 1rem;
    font-size: 1.09rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.96rem;
  }
}

/* Timeline responsiveness */
@media (max-width: 767.98px) {
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 16px;
    height: 16px;
  }
  
  .timeline-item::after {
    left: 7px;
  }
}

/* Blog cards responsiveness */
@media (max-width: 767.98px) {
  .blog-card img {
    height: 150px;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
}

/* Contact info responsiveness */
@media (max-width: 767.98px) {
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

/* Service features list responsiveness */
@media (max-width: 767.98px) {
  .service-features {
    font-size: 1.03rem;
  }
}

/* Process section responsiveness */
@media (max-width: 767.98px) {
  .process-item {
    margin-bottom: 2rem;
  }
} 