/* Load JostBold for all text */
@font-face {
    font-family: 'JostBold';
    src: url('fonts/Jost-700-Bold.woff2') format('woff2'),
         url('fonts/Jost-700-Bold.woff') format('woff'),
         url('fonts/Jost-700-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'JostBold', Arial, sans-serif;
    font-weight: 700;
    background: #ffffff;
    color: #252323;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.middle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto; /* allow dynamic shrinking on mobile */
    text-align: center;
}

/* Title above image */
.middle-content h1 {
    margin: 0 0 10px 0;
    font-size: 65px; /* desktop size */
    line-height: 1.1;
}

/* Hero image centered */
.hero {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* Tagline */
.tagline {
    font-size: 30px;
    margin: 0;
}

/* Contact section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto; /* sticks to bottom */
}

.contact a {
    color: #252323;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #FFA500;
    text-decoration: underline;
}

.contact p {
    margin: 5px 0;
    font-size: 16px;
}

/* Tablet */
@media (max-width: 768px) {
    .middle-content h1 { font-size: 50px; }
    .tagline { font-size: 24px; }
    .hero { max-width: 150px; }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .middle-content {
        flex: 1 1 auto; /* shrink dynamically to fit contact */
        justify-content: center;
    }

    .middle-content h1 { font-size: 36px; } /* slightly larger than before */
    .tagline { font-size: 18px; }
    .hero { max-width: 150px; width: 70%; margin-bottom: 8px; }
    .contact p { font-size: 14px; }
}
