/* Responsive Styles for the SafeDown Website */

/* Large Desktop Screens (1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    section {
        padding: 80px 20px;
    }
}

/* Desktop to Laptop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Tablets to Small Laptops (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    header {
        padding: 0.75rem 1rem;
    }
    
    .nav-links li {
        margin-left: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .cert-image {
        max-width: 80%;
    }
    
    .benefit-card {
        flex-basis: 100%;
    }
}

/* Mobile Landscape to Tablet Portrait (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    header {
        padding: 0.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-links {
        display: none; /* Would be replaced with a mobile menu button */
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 15px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .about-subsection h3 {
        font-size: 1.5rem;
    }
    
    .benefits-container {
        flex-direction: column;
    }
    
    .benefit-card {
        margin-bottom: 2rem;
    }
    
    .certification-process {
        padding: 1rem;
    }
    
    .visuals-container {
        flex-direction: column;
    }
    
    .cert-doc {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Phones (up to 575px) */
@media (max-width: 575px) {
    header {
        padding: 0.5rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-links {
        display: none; /* Would be replaced with a mobile menu button */
    }
    
    .language-switcher span {
        padding: 4px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 30px 10px;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    section h2::after {
        width: 40px;
        height: 3px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-image {
        margin-top: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-subsection h3 {
        font-size: 1.3rem;
    }
    
    .about-subsection ul {
        margin-left: 10px;
    }
    
    .benefits-container {
        flex-direction: column;
    }
    
    .benefit-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .certification-process {
        padding: 0.75rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-container h3 {
        font-size: 1.2rem;
        text-align: center;
        padding-left: 0;
    }
    
    .step-container p {
        font-size: 0.95rem;
        text-align: center;
        padding-left: 0;
        /* color: black */
    }
    
    .visuals-container {
        flex-direction: column;
    }
    
    .cert-doc {
        min-width: unset;
        margin-bottom: 1.5rem;
    }
    
    #contact-form {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Mobile Menu (would be implemented with JavaScript) */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}

@media (max-width: 767px) {
    .mobile-menu-button {
        display: block;
    }
    
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        animation: slideDown 0.3s ease forwards;
    }
    
    .nav-links.mobile-active li {
        margin: 0;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-links.mobile-active a {
        display: block;
        padding: 5px 0;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Print Styles */
@media print {
    header, .nav-links, .language-switcher, .cta-button, #contact, footer {
        display: none;
    }
    
    body, html {
        background-color: white;
        color: black;
    }
    
    main {
        padding-top: 0;
    }
    
    #about, #certification, #benefits {
        page-break-inside: avoid;
    }
    
    .certification-process, .benefits-container {
        border: 1px solid #ddd;
    }
    
    @page {
        margin: 2cm;
    }
}
