/* Responsive Styles for SSM Monitor Website */

/* Large Screens (Desktop and above) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }

    .benefits-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header h1 {
        font-size: 3.5rem;
    }
}

/* Medium Screens (Tablets and smaller desktops) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .header h1 {
        font-size: 3rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .benefits-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small Tablets */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .header {
        padding: 6rem 1rem 4rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-card .number {
        font-size: 2rem;
    }

    .benefits-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }

    nav {
        padding: 0.75rem 1rem;
    }

    .logo-container {
        width: 40px;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .header {
        padding: 5rem 1rem 3rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card,
    .feature {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-info,
    .footer-contact,
    .footer-copyright {
        width: 100%;
    }

    .contact-form {
        padding: 1rem;
        margin: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .button {
        width: 100%;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
    .header h1 {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .benefit-card,
    .feature {
        padding: 1.25rem;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .contact-form {
        margin: 1rem 0;
    }

    /* Adjust form elements for better mobile interaction */
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem;
    }

    .button {
        padding: 0.75rem 1.5rem;
    }
}

/* Height-based media queries for short screens */
@media screen and (max-height: 700px) {
    .header {
        padding: 4rem 1rem 2rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        padding: 1rem 0;
    }
}

/* Print styles */
@media print {
    nav,
    .cta,
    .button {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .header,
    .benefits,
    .features,
    .stats {
        padding: 1rem 0;
    }

    .header {
        background: none;
        color: #000;
    }

    .benefit-card,
    .feature {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        background: none;
        color: #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .benefit-card,
    .feature {
        background: rgba(255, 255, 255, 0.05);
    }

    .form-group input {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .button {
        background: var(--blue);
        color: white;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .benefit-card:hover {
        transform: none !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .button {
        border: 2px solid currentColor;
    }

    .benefit-card,
    .feature {
        border: 1px solid currentColor;
    }
}

/* Landscape orientation specific */
@media screen and (max-width: 991px) and (orientation: landscape) {
    .header {
        padding: 4rem 1rem 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}