/* Responsive CSS for WorkWatcher02 */

/* --- Base Styles for Responsive Elements --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Tablet and smaller screens (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    :root {
        --website-max-width: 100%;
    }

    .timeman-wrapper {
        padding: 3.5rem 2rem;
        width: 100%;
    }

    header>.wrapper {
        padding: 0 2rem;
        max-width: 100%;
    }

    .timeman-hero-slogan {
        font-size: 40px;
    }

    /* Features Section */
    .timeman-features-section-body {
        flex-direction: column-reverse;
    }

    .timeman-features-section-body .timeman-section-details,
    .timeman-features-section-body .timeman-feature-image {
        width: 100%;
    }

    .timeman-feature-image {
        margin-bottom: 2rem;
    }

    /* Industries Section */
    .timeman-industries-section-body {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .timeman-card-holder {
        width: 45%;
        /* 2 cards per row */
        margin-bottom: 10px;
    }

    /* Benefits Section */
    .timeman-benefits-section {
        flex-direction: column;
        gap: 2rem;
    }

    .timeman-benefits-left-div,
    .timeman-benefits-right-div {
        width: 100%;
    }

    /* Why Section */
    .why-timeman-body .why-timeman-body-content {
        flex-direction: column;
        text-align: center;
    }

    .why-timeman-label,
    .why-timeman-image-holder {
        width: 100%;
    }

    .why-timeman-label {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .why-timeman-body:nth-child(even) .why-timeman-body-content {
        flex-direction: column-reverse;
    }
}

/* --- Mobile screens (max-width: 768px) --- */
@media screen and (max-width: 1205px) {
    header {
        height: 5rem;
        /* Keep fixed height for bar */
        position: fixed;
    }

    header>.wrapper {
        flex-direction: row;
        /* Keep row for Logo + Hamburger */
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
        height: 100%;
    }

    .timeman-logo {
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    /* Navigation - Hamburger Menu */
    .menu-toggle {
        display: block;
    }

    .timeman-nav {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 5rem;
        /* Height of header */
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        flex-direction: column;
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .timeman-nav.active {
        display: flex;
        /* Shown when active */
    }

    .timeman-left-nav,
    .timeman-right-nav {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        align-items: center;
        padding: 0;
    }

    .timeman-right-nav .line {
        display: none;
        /* Remove vertical line */
    }

    /* Hero */
    .timeman-hero-section {
        margin-top: 6rem;
    }

    .timeman-hero-slogan {
        font-size: 32px;
    }

    .timeman-hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .timeman-hero-image-wrapper {
        padding: 0 1rem;
    }

    /* Industries - Stack single column */
    .timeman-card-holder {
        width: 100%;
        height: auto;
        min-height: 250px;
    }

    /* Benefits */
    .timeman-benefits-buttons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Pricing */
    .timeman-pricing-section-body {
        flex-direction: column;
        gap: 2rem;
    }

    .pricing-holder {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .timeman-cta-section>h2 {
        font-size: 24px;
        padding: 0 1rem;
    }

    .cta-timeman-logo>img {
        height: auto;
        width: 100%;
        max-width: 200px;
    }

    /* FAQ */
    .faq-question {
        padding: 10px 1rem;
    }

    .faq-answer>p {
        padding: 20px;
    }

    .faq-answer>ul {
        margin-left: 40px;
    }

    /* Footer */
    footer {
        width: 100%;
        overflow-x: hidden;
    }

    footer>.wrapper {
        padding: 3rem 1.5rem 1rem 1.5rem !important;
    }

    .timeman-footer-body {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .timeman-footer-body .footer-logo,
    .timeman-footer-body .footer-links {
        width: 100% !important;
    }

    .footer-logo {
        margin-bottom: 2rem;
    }

    .footer-links .footer-main-links {
        justify-content: center;
    }

    .footer-main-links-wrapper {
        padding: 0 1rem 2rem 1rem !important;
        width: 50% !important;
    }

    .footer-privacy-social-links {
        margin-top: 0 !important;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2rem;
    }

    .footer-line {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .footer-main-links-wrapper {
        width: 100% !important;
    }
}

/* --- Small mobile screens (max-width: 480px) --- */
@media screen and (max-width: 480px) {
    .timeman-hero-slogan {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .timeman-features>p {
        font-size: 16px;
    }

    .timeman-benefits-details>p {
        font-size: 16px;
    }

    .timeman-card-holder {
        width: 100%;
    }
}

@media screen and (max-width: 923px) {
    .timeman-login-wrapper {
        justify-content: center;
    }

    .login-left-div,
    .register-black-div {
        display: none;
    }

    .login-right-div,
    .register-white-div {
        width: 100%;
    }
}

@media screen and (max-width: 478px) {

    img[src*="timeman_short_orig.png"],
    img[alt="Time M.A.N. emblem"] {
        display: none;
    }
}

@media screen and (max-width: 845px) {

    #taskDescriptionInput,
    #addClientProjectBtn,
    .vr {
        display: none !important;
    }
}

/* --- OverviewWeb.php (About Page) --- */
@media screen and (max-width: 768px) {
    .about-top-section {
        padding: 3rem 1.5rem !important;
    }

    .about-top-section h1 {
        font-size: 32px !important;
    }

    .about-intro-content-section .content-introduction {
        flex-direction: column;
        text-align: center;
    }

    .content-introduction .content-introduction-image,
    .content-introduction .content-introduction-text {
        width: 100% !important;
        padding: 1.5rem !important;
    }

    .content-introduction-image>img {
        width: 100%;
        max-width: 300px;
    }

    .about-middle-content {
        font-size: 24px !important;
        padding: 2rem 1.5rem !important;
    }

    .about-middle-content h2 {
        font-size: 28px !important;
    }

    .timeman-details>ul li {
        margin-left: 20px;
    }

    .timeman-promise {
        margin-top: 2rem !important;
    }

    .about-bottom-section {
        padding: 3rem 1.5rem !important;
    }
}

/* --- Contact & Demo Pages --- */
@media screen and (max-width: 768px) {
    .contact-top-section {
        padding: 3rem 1.5rem !important;
        gap: 30px !important;
    }

    .timeman-contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form-section,
    .get-demo-form-section {
        padding: 3rem 1.5rem !important;
    }

    .contact-name,
    .contact-method,
    .company-other-details {
        flex-direction: column;
        gap: 20px !important;
    }

    .first-name,
    .last-name,
    .email,
    .number,
    .company-name,
    .number-of-employees,
    .reason {
        width: 100% !important;
    }

    .form-footer,
    .get-demo-form-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .submit-btn {
        width: 100% !important;
    }

    .get-demo-top-section {
        padding: 3rem 1.5rem !important;
    }

    .get-demo-top-section h2 {
        font-size: 24px !important;
    }
}

/* --- Privacy Policy & Terms and Conditions --- */
@media screen and (max-width: 1024px) {

    .timeman-terms-header,
    .timeman-terms-content,
    .timeman-privacy-policy-header,
    .timeman-privacy-policy-content {
        width: 100% !important;
    }
}

@media screen and (max-width: 768px) {

    .timeman-terms-content,
    .timeman-privacy-policy-content {
        padding: 2rem 1.5rem !important;
    }

    .timeman-terms-header h1,
    .timeman-privacy-policy-header h1 {
        font-size: 28px !important;
        text-align: center;
        padding: 0 1rem;
    }

    .timeman-terms-content ul li,
    .timeman-privacy-policy-content ul li {
        margin-left: 20px !important;
    }
}