/* Meeting Insights SaaS Template - Responsive CSS */

/* Mobile First Approach - Base styles are mobile-friendly */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  .hero-title {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .section-description {
    font-size: var(--font-size-base);
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-blue);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 90vh;
    padding: 3rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 225px;
}
  
  /* Section adjustments */
  .section {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .service-card,
  .card,
  .testimonial-card {
    margin-bottom: 1.59rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Service adjustments */
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }
  
  .service-price {
    font-size: var(--font-size-2xl);
  }
  
  /* Team adjustments */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Feature adjustments */
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  /* Pricing adjustments */
  .pricing-price {
    font-size: var(--font-size-3xl);
  }
  
  /* Process adjustments */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Grid adjustments for tablets */
  .service-card {
    height: auto;
    min-height: 350px;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .feature-item {
    flex-direction: row;
    text-align: left;
  }
  
  .feature-icon {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .service-card {
    min-height: 400px;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: calc(var(--font-size-4xl) + 0.5rem);
  }
  
  .service-card {
    min-height: 420px;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }
}

/* High DPI/Retina display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../STA_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form,
  .breadcrumb {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
    color: var(--text-primary);
  }
  
  .hero-section::before {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .card,
  .service-card,
  .testimonial-card {
    box-shadow: none;
    border: 1px solid var(--text-light);
    break-inside: avoid;
  }
  
  a {
    color: var(--text-primary);
    text-decoration: underline;
  }
  
  .text-gradient {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
  }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .service-card:hover,
  .btn-primary:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .fade-in,
  .slide-up {
    transition: none;
  }
  
  .fade-in.sal-animate,
  .slide-up.sal-animate {
    opacity: 1;
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  }
  
  .card,
  .service-card,
  .testimonial-card,
  .contact-form {
    border: 2px solid var(--text-primary);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Dark mode support (system preference) */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: var(--font-size-lg);
  }
  
  .nav-link {
    padding: 1rem 0.5rem;
  }
  
  .form-control {
    padding: 1rem;
    font-size: var(--font-size-lg);
  }
  
  .faq-question {
    padding: 1.5rem;
    font-size: var(--font-size-lg);
  }
  
  /* Remove hover effects for touch devices */
  .card:hover,
  .service-card:hover,
  .btn-primary:hover,
  .nav-link:hover,
  .faq-question:hover {
    transform: none;
    background: initial;
    color: initial;
  }
  
  /* Add active states for better touch feedback */
  .btn:active {
    transform: scale(0.98);
  }
  
  .card:active,
  .service-card:active {
    transform: scale(0.99);
  }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bg-primary);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.39rem;
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--light-blue);
  }
}

/* Grid system adjustments */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Form responsive adjustments */
@media (max-width: 575.98px) {
  .form-row .col {
    margin-bottom: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.60rem;
  }
}

/* Blog responsive adjustments */
@media (max-width: 767.98px) {
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .blog-card img {
    height: 180px;
  }
}

/* Pricing table responsive adjustments */
@media (max-width: 767.98px) {
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .pricing-features {
    font-size: var(--font-size-sm);
  }
}

/* Timeline responsive adjustments */
@media (max-width: 575.98px) {
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 8px;
    height: 8px;
  }
  
  .timeline-item::after {
    left: 3px;
    width: 1px;
  }
} 