/* Font Face for Work Sans */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap');

body {
    font-family: 'Work Sans', sans-serif; /* Applied Work Sans font */
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 18px; /* Base font size */
}

header {
    background-color: hsla(45, 20%, 96.07843137%, 1); /* Same off-white color as main section background */
    padding: 15px 20px 10px 20px; /* Added top padding */
}

.nav-header {
    font-size: 1.8em;
    font-weight: 500; /* Medium weight for nav header */
    color: #333;
    padding-left: 10px; /* Added left padding */
}

main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    padding-left: 10.8%; /* Reduced left padding by 10% */
    padding-right: 10.8%; /* Reduced right padding by 10% */
    flex-grow: 1;
    background-color: hsla(45, 20%, 96.07843137%, 1); /* Slightly off-white background */
}

.content {
    max-width: 50%;
    text-align: center;
}

h1 {
    color: hsl(11.38deg 77.68% 56.08%); /* Red color in HSL */
    font-size: 5.5em; /* Increased font size */
    font-weight: 400; /* Regular weight */
    letter-spacing: 0.05em; /* Increased letter spacing */
    margin-bottom: 15px; /* Reduced margin-bottom to decrease spacing */
}

.subheader {
    font-size: 2em;
    margin-bottom: 20px; /* Reduced margin-bottom to decrease spacing */
    color: #333;
}

.cta-button img {
    width: 280px; /* CTA button size */
}

.image-container {
    max-width: 25%; /* Slightly increased size of the phone app image on desktop */
}

.image-container img {
    width: 100%;
    height: auto;
}

footer {
    background-color: hsl(11.38deg 77.68% 56.08%); /* Red background color in HSL */
    color: white;
    padding: 40px 20px;
    margin-top: auto;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh; /* Footer height adjusted to allow teaser and hidden text */
}

.footer-content {
    text-align: center;
    width: 100%;
}

footer p {
    color: hsla(50.50359712, 100%, 72.74509804%, 1); /* Goldish color for footer text */
    margin: 0;
    margin-bottom: 50px; /* Increased spacing between footer text and links */
    font-size: 1.2em; /* Reduced font size in footer */
}

footer a {
    color: white; /* White color for links */
    text-decoration: underline;
    font-size: 1em; /* Reduced font size in footer links */
}

.footer-links a {
    margin: 0 20px;
}

footer::before {
    content: "";
    display: block;
    height: 5vh; /* Footer teaser height adjusted to 5% */
    background-color: hsl(11.38deg 77.68% 56.08%);
    position: absolute;
    top: -5vh;
    width: 100%;
    left: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
        padding: 20px; /* Reduce padding for smaller screens */
    }

    .content, .image-container {
        max-width: 100%;
    }

    .content {
        text-align: center; /* Ensure content is centered on small screens */
    }

    h1 {
        font-size: 8vw; /* Use viewport width to scale down */
    }

    .subheader {
        font-size: 5vw;
    }

    .cta-button img {
        width: 60%; /* Reduce button size */
    }

    .image-container img {
        width: 80%; /* Adjust image size for better fit */
        margin-top: 20px;
        display: block;
        margin: 20px auto; /* Center align the phone app image */
    }

    .nav-header {
        font-size: 6vw;
        text-align: left; /* Left align the nav header title on mobile */
        padding: 10px 0 10px 10px; /* Adjust padding for mobile */
    }

    footer {
        padding: 20px 10px;
    }

    footer p {
        margin-bottom: 30px; /* Increase spacing between footer text and links */
        font-size: 3.5vw; /* Adjust footer text size */
    }

    .footer-links a {
        margin: 0 10px; /* Reduce spacing between footer links */
        font-size: 3.5vw; /* Adjust footer links size */
    }

    footer::before {
        height: 7vh; /* Adjust teaser height for mobile screens */
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    main {
        padding-left: 7.2%;
        padding-right: 7.2%;
    }

    .image-container {
        max-width: 25%; /* Slightly increase size of the phone app image */
    }

    .image-container img {
        width: 100%;
        height: auto;
    }

    footer p {
        margin-bottom: 50px; /* Increase spacing between footer text and links */
    }
}

/* Privacy Policy Page Styling */
body.privacy-policy-page .privacy-policy {
    padding: 50px;
    background-color: hsla(45, 20%, 96.07843137%, 1);
    font-size: 1.1em;
    line-height: 1.6em;
}

body.privacy-policy-page .privacy-policy section {
    margin-bottom: 40px;
}

body.privacy-policy-page .privacy-policy h1 {
    color: hsl(11.38deg 77.68% 56.08%);
    text-align: center;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

body.privacy-policy-page .privacy-policy h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

body.privacy-policy-page .privacy-policy p,
body.privacy-policy-page .privacy-policy ul {
    margin-bottom: 20px;
}

body.privacy-policy-page .privacy-policy a {
    color: hsl(11.38deg 77.68% 56.08%);
    text-decoration: underline;
}

body.privacy-policy-page .privacy-policy ul {
    margin-left: 20px;
}

/* Ensure sections are stacked vertically */
body.privacy-policy-page .privacy-policy section {
    display: block;
    width: 100%;
}

body.privacy-policy-page .privacy-policy h1,
body.privacy-policy-page .privacy-policy h2,
body.privacy-policy-page .privacy-policy p,
body.privacy-policy-page .privacy-policy ul {
    clear: both;
}
