/* Variables */
:root {
    --gray-200: #f7f7f7;
    --gray-700: #495057;
    --day-primary-main: #2aa65c;
    --tertiary: #566681;
    --secondary: #acbbbe;
    --border-color: #e2e9e9;
    --light-grey: #f2f7f7;
    --white: #fff;
    --color-text-supporting: var(--tertiary);
    --color-footer-bg: var(--day-primary-main);
    --color-social-proof-bg: #f9fafb;
    --color-footer-panel-bg: #F9FAFB;
    --color-footer-border: #C8C7CC;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Prevent Mobile Overflow */
html, body {
    overflow-x: hidden; /* This is the key fix for horizontal scrolling */
}

body {
    /* Use Manrope if available, otherwise fall back to sans-serif */
    font-family: 'Manrope', sans-serif;
    color: var(--gray-700); /* A base text color */
}

/* Host/Container for the entire page content */
.page-host {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%; /* Ensure the host itself doesn't cause issues */
}

.main-page-container {
    max-width: 1440px;
    width: 100%; /* Ensure it fills the space up to max-width */
}

.heading-1 {
    font-size: 2.5rem; /* Example size */
    margin-bottom: 1rem;
}

.subtitle-2 {
    font-size: 1.2rem; /* Example size */
}

.body-1 {
    font-size: 1rem; /* Example size */
}

.text-supporting {
    color: var(--color-text-supporting);
}

/* --- INTRO SECTION --- */

.intro-section {
    display: flex;
    justify-content: space-between;
    padding: 40px;
}

.intro-section > img {
    width: 512px;
    height: 512px;
    max-width: 100%; /* Added a safety measure for the image */
}

.intro-section-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 50%;
}

.intro-section-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.intro-section-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--color-footer-border);
    padding: 1rem 0;
}

/* --- SOCIAL PROOF SECTION --- */

.social-proof-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    width: 100%;
    background-color: var(--color-social-proof-bg);
    margin-bottom: 100px;
}

.social-proof-images {
    width: 100%;
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin: 0 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    max-width: 100%; /* Ensure this container doesn't overflow */
}

.social-proof-images > img {
    width: 148px;
    height: 48px;
    max-width: 45%; /* Added a safety measure for wrapping images on small screens */
    height: auto; /* Allow height to adjust for proportional scaling */
}

/* --- FOOTER PANEL (Inside Intro Section) --- */

.footer-panel {
    width: 100%;
    background-color: var(--color-footer-panel-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    align-self: center;
}

.footer-panel-image {
    width: 120px;
    height: 150px;
    margin-left: auto;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.footer-qr-code {
    width: 136px;
    height: 136px;
    margin: 0 36px;
}

.footer-app-icons {
    display: flex;
    margin-top: 24px;
    gap: 0.5rem;
}

.footer-app-icon {
    height: 45px;
    width: auto;
}

/* --- FOOTER SECTION (Main Page Footer) --- */

.footer-section {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    width: 100%;
    background-color: var(--color-footer-bg);
    padding: 0 2rem;
    padding-top: 0.875rem;
}

.footer-info {
    display: flex;
    width: 80%;
    align-self: center;
    padding: 1rem;
}

.footer-links-halyk {
    width: 160px;
    height: 32px;
}

.footer-links {
    display: flex;
    margin-left: auto;
}

.footer-links > a {
    color: var(--white);
    text-decoration: none;
    margin-right: 12px;
}

/* --- MEDIA QUERIES (FROM _responsive.scss) --- */

/* table-landscape: max-width: 1080px */
@media (max-width: 1080px) {
    /* Intro Section */
    .intro-section {
        text-align: center;
        flex-direction: column;
        padding: 1rem;
    }

    .intro-section > img {
        align-self: center;
        width: 256px;
        height: 256px;
    }

    .intro-section-description {
        max-width: 100%;
    }

    .footer-panel-image {
        display: none;
    }

    /* Footer Panel */
    .footer-panel-text {
        text-align: left;
    }

    /* Footer Info */
    .footer-info {
        flex-direction: column;
        width: 100%;
        padding: 0;
        padding-bottom: 1rem;
    }

    .footer-links {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: space-between;
    }
}

/* phone: max-width: 559px */
@media (max-width: 559px) {
    /* Intro Section */
    .intro-section {
        padding: 1rem; /* Adjust padding to prevent overflow */
    }

    .intro-section > img {
        width: 100%;
        height: auto;
    }

    /* Social Proof Section */
    .social-proof-section {
        padding: 0.5rem 0 2rem 0;
        margin-top: 3rem;
        margin-bottom: 70px;
        text-align: center;
    }

    .social-proof-images {
        justify-content: center;
        gap: 1rem;
        margin: 0; /* Remove margin that could push content out */
        padding: 1rem 0.5rem; /* Adjust padding */
    }

    .social-proof-images > img {
        max-width: 148px; /* Override safety measure for better layout */
        height: 48px;
    }

    /* Footer Section */
    .footer-section {
        padding: 0 0.5rem;
        padding-top: 0;
    }

    /* Footer Panel */
    .footer-panel {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .footer-panel-image {
        display: none;
    }

    .footer-panel-text {
        text-align: center;
    }

    .footer-panel-text > p {
        display: none;
    }

    .footer-qr-code {
        display: none;
    }

    .footer-app-icons {
        justify-content: center;
    }

    .footer-app-icon {
        height: 42px;
        width: auto;
    }

    /* Footer Info */
    .footer-info {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Ensure it doesn't try to be wider than the viewport */
        padding: 1rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links > a {
        margin-right: 0;
        text-align: center;
    }
}