/* SaaS E-commerce KPI Dashboard Template - Responsive Styles */
/* Mobile-First Responsive Design - Complements Bootstrap 5 */

/* Mobile Base Styles (325px and up) */
@media (min-width: 320px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-decorative-shape {
    width: 100px;
    height: 100px;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .service-card {
    margin-bottom: 1.65rem;
  }
  
  .team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  h1, .h1 {
    font-size: 1.80rem;
  }
  
  h2, .h2 {
    font-size: 1.61rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Enhanced mobile layout for team and process sections */
  .team-card,
  .feature-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .team-card h5,
  .feature-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .team-card p,
  .feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-decorative-shape {
    width: 150px;
    height: 150px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .price-value {
    font-size: 2.53rem;
  }
  
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.86rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (7612px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-decorative-shape {
    width: 180px;
    height: 180px;
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  
  .price-value {
    font-size: 3rem;
  }
  
  h1, .h1 {
    font-size: 2.30rem;
  }
  
  h2, .h2 {
    font-size: 1.96rem;
  }
  
  .navbar-brand {
    font-size: 1.64rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .feature-icon {
    font-size: 3.62rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Hero section two-column layout on tablet+ */
  .hero-content-wrapper {
    display: flex;
    align-items: center;
    min-height: 100vh;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .hero-decorative-shape {
    width: 200px;
    height: 200px;
  }
  
  .section-description {
    max-width: 700px;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .team-card {
    padding: 2.5rem;
  }
  
  .testimonial-card {
    padding: 2.5rem;
  }
  
  .faq-card {
    padding: 2rem;
  }
  
  .feature-icon {
    font-size: 4rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  /* Enhanced spacing for larger screens */
  .section {
    padding: 5rem 0;
  }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-decorative-shape {
    width: 250px;
    height: 250px;
  }
  
  .section-description {
    max-width: 800px;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .price-card {
    padding: 3.5rem 3rem;
  }
  
  .team-card {
    padding: 3rem;
  }
  
  .testimonial-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  /* Maximum section padding for largest screens */
  .section {
    padding: 6rem 0;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-decorative-shape {
    width: 300px;
    height: 300px;
  }
  
  .section-description {
    max-width: 900px;
  }
  
  .gallery-item img {
    height: 320px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero-decorative-shape {
    display: none;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-decorative-shape {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .service-card, .price-card, .team-card, .testimonial-card {
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.1);
  }
}

/* Print styles */
@media print {
  .hero-decorative-shape,
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .testimonial-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .team-card,
  .testimonial-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-dark);
  }
  
  .btn-outline-primary {
    border: 2px solid var(--primary-color);
  }
}

/* Dark mode support */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 0.875rem 2rem;
  }
  
  .form-control {
    min-height: 44px;
    padding: 0.875rem 1rem;
  }
  
  .nav-link {
    padding: 1rem 0.75rem;
  }
  
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .service-card:active,
  .team-card:active {
    transform: scale(0.98);
  }
}

/* Reduced motion - respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative-shape {
    animation: none;
  }
  
  .service-card,
  .team-card,
  .gallery-item,
  .price-card {
    transition: none;
  }
  
  .loading-placeholder {
    animation: none;
    background: var(--bg-medium);
  }
}

/* Extra small devices optimization */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .testimonial-card {
    margin-bottom: 1rem;
  }
  
  .price-features {
    margin: 1rem 0;
  }
  
  .price-features li {
    padding: 0.25rem 0;
    font-size: 0.94rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.66rem;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
    font-size: 1rem;
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: hover) {
  .service-card:focus-within,
  .team-card:focus-within,
  .price-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
  }
}

/* Smooth scrolling for devices that support it */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Container adjustments for better spacing */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Improved text readability on smaller screens */
@media (max-width: 767.98px) {
  .section-description {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  
  .testimonial-text {
    font-size: 1.02rem;
    line-height: 1.6;
  }
  
  .faq-answer {
    font-size: 0.99rem;
    line-height: 1.6;
  }
}

/* Grid adjustments for better mobile layout */
@media (max-width: 991.98px) {
  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

@media (max-width: 575.98px) {
  .row.g-4 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
}

/* Mobile responsive enhancements */
@media (max-width: 767.98px) {
  .team-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

@media (max-width: 575.98px) {
  .team-card {
    padding: 1rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
} 