/* SaaS Multi-Platform Post Scheduling Template - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decoration {
    display: none;
  }
  
  /* Section spacing mobile */
  section {
    padding: 40px 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  /* Service cards mobile */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Pricing cards mobile */
  .pricing-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-price {
    font-size: 2.5rem;
  }
  
  /* Team member mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    padding: 10px 20px;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Navbar mobile adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Disable animations on mobile for performance */
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.125rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  section {
    padding: 60px 0;
  }
  
  .pricing-card.featured {
    transform: scale(1.02);
  }
  
  /* Reduce animations on small screens */
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    min-height: 95vh;
  }
  
  section {
    padding: 70px 0;
  }
  
  .pricing-card.featured {
    transform: scale(1.03);
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full desktop styles from main.css apply */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .hero-decoration {
    width: 250px;
    height: 250px;
  }
  
  .hero-decoration::before {
    width: 120px;
    height: 120px;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  section {
    padding: 100px 0;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  section {
    padding: 40px 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* High DPI / Retina display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon,
  .feature-icon,
  .process-number {
    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;
  }
  
  #header,
  #footer {
    display: none;
  }
  
  .btn {
    border: 1px solid black;
    color: black;
    background: transparent;
  }
  
  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .card,
  .btn-primary,
  .animate-on-scroll,
  .form-control {
    transition: none !important;
    animation: none !important;
  }
  
  .card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008000;
    --text-primary: #000000;
    --background-light: #ffffff;
    --neutral-light: #cccccc;
  }
  
  .card {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-color);
  }
}

/* Dark mode support */

.hero-content {
    padding-top: 200px;
}