﻿/* Reset and base setup */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Layout wrapper holds the full page height */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Fixed header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-orange);
    font-size: 1rem;
    font-weight: 900;
}

.navlogo {
    width: 60px;
    height: 60px;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .header-nav a {
        color: var(--dark-bg);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .header-nav a:hover {
            color: var(--primary-orange);
        }

    .header-nav .btn {
        padding: 0.5rem 1rem;
    }

/* Default state: hidden scrollbar */
.layout-body {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    flex: 1;
    overflow: hidden; /* hide scrollbar by default */
    background-color: #f8f9fa;
    scrollbar-width: none; /* Firefox hides scrollbar */
}

    .layout-body:focus-within {
        overflow-y: auto; /* show scrollbar when any child inside is focused */
        scrollbar-width: thin;
        scrollbar-color: #999 transparent;
    }

        /* WebKit scrollbars */
        .layout-body:focus-within::-webkit-scrollbar {
            width: 8px;
        }

        .layout-body:focus-within::-webkit-scrollbar-track {
            background: transparent;
        }

        .layout-body:focus-within::-webkit-scrollbar-thumb {
            background: #999;
            border-radius: 10px;
        }


/* Main content grows and scrolls */
main {
    flex: 1 0 auto;
    padding: 2rem;
    overflow: auto;
}

/* Footer sticks to bottom */
.footer {
    flex-shrink: 0;
    background: var(--dark-bg);
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--primary-orange);
        }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        height: auto;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

        .header-nav a {
            width: 100%;
            text-align: center;
        }

    .footer {
        padding: 2rem 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-orange);
    color: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-content .btn-tmu-outline-primary {
    color: #fff;
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

    .features-section h2 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--dark-bg);
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-orange);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.feature-card h3 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 3rem;
}

    .benefits-section h2 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--dark-bg);
    }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .benefit-item h4 {
        color: var(--dark-bg);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .benefit-item h4 i {
            color: var(--primary-green);
        }

    .benefit-item p {
        color: #6c757d;
        margin: 0;
    }

/* Call to Action */
.cta-section {
    background: var(--gradient-green);
    color: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

/* Header text styles */
.header-content .text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    display: block;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

    .header-content .text .fw-light {
        font-weight: 300;
        opacity: 0.8;
    }


