/* Custom Font */
@font-face {
    font-family: 'StackSansText';
    src: url('fonts/StackSansText-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'StackSansText', 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preload hover images using CSS */
body::after {
    content: "";
    display: none;
    background-image: url('img/left-2.png'), url('img/right-2.png');
}

/* Header */
.header {
    padding: 35px 50px 30px;
    background: white;
}

.logo-container {
    display: flex;
    align-items: flex-end;
    gap: 0;
    height: 33px;
}

.logo {
    height: 33px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #000;
    transition: color 0.3s ease;
    margin-left: 12px;
    padding-bottom: 2px;
    line-height: 1;
    text-transform: uppercase;
    font-family: 'StackSansText', 'Helvetica Neue', Arial, sans-serif;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .logo-text {
        color: #e0e0e0;
    }
    
    .header {
        background: #1a1a1a;
    }
    
    body {
        background: #1a1a1a;
    }
    
    .footer {
        background: #1a1a1a;
        color: #999;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    width: 100%;
}

.section {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    min-height: 600px;
    transition: background-image 0.3s ease;
    cursor: pointer;
}

.section-left {
    background-image: url('img/left-1.png');
}

.section-right {
    background-image: url('img/right-1.png');
}

.section-left:hover {
    background-image: url('img/left-2.png') !important;
}

.section-right:hover {
    background-image: url('img/right-2.png') !important;
}

.section-content {
    padding: 40px;
    width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
    letter-spacing: 0.5px;
    font-family: 'StackSansText', 'Helvetica Neue', Arial, sans-serif;
}

.section-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    max-width: 450px;
    font-family: 'StackSansText', 'Helvetica Neue', Arial, sans-serif;
}

/* Footer */
.footer {
    padding: 30px 50px;
    background: white;
    text-align: left;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    font-family: 'StackSansText', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 20px;
        text-align: left;
    }

    .logo-container {
        justify-content: flex-start;
        height: 26px;
    }

    .logo {
        height: 26px;
        width: auto;
    }
    
    .logo-text {
        font-size: 11px;
        letter-spacing: 0.3px;
        margin-left: 8px;
        padding-bottom: 1px;
    }

    .main-content {
        flex-direction: column;
    }

    .section {
        min-height: 400px;
        background-size: cover;
        background-position: top center;
    }

    /* Mobile: show hover images by default */
    @media (hover: none) and (pointer: coarse) {
        .section-left {
            background-image: url('img/left-2.png');
        }

        .section-right {
            background-image: url('img/right-2.png');
        }
    }

    .section-content {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer {
        padding: 20px;
        text-align: left;
        font-size: 11px;
    }
}

/* Ensure text readability on hover images */
.section-left:hover .section-title,
.section-left:hover .section-description {
    color: white;
}

.section-right:hover .section-title,
.section-right:hover .section-description {
    color: white;
}

/* Mobile always white text */
@media (max-width: 768px) {
    .section-left .section-title,
    .section-left .section-description {
        color: white;
    }

    .section-right .section-title,
    .section-right .section-description {
        color: white;
    }
}
