/* Base Desktop Layout */
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #2f8589;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    float: left;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover {
    background-color: black;
}

.active {
    background-color: rgb(0, 85, 115);
}

#title {
    margin-top: 60px;
    padding: 20px;
}

#title h1 {
    color: black;
    font-size: 48pt;
    font-weight: 400;
    text-align: center;
    text-shadow: 3px 3px 0px #d1d1d1;
}

.container {
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.Image {
    width: 50%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 5px;
    margin-right: 20px;
}

.text {
    flex: 1;
}

.foot {
    background-color: #333;
    padding: 10px 0;
    width: 100%;
}

.foot footer ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.foot footer ul li {
    flex: 1;
    text-align: center;
}

.foot footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.foot footer ul li a:hover {
    text-decoration: underline;
}

/* Tablet Layout (800px and below) */
@media (max-width: 800px) {
    #title {
        margin-top: 60px; /* Single row nav height */
    }
    
    #title h1 {
        font-size: 32pt;
        text-shadow: 2px 2px 0px #d1d1d1;
    }

    .container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .Image {
        width: 80%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .text p {
        font-size: 14px;
    }

    /* Tablet Nav: Single row with right-aligned contact */
    ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    li {
        float: none;
        flex: 0 0 auto;
    }

    li[style="float: right"] {
        margin-left: auto;
    }

    li a {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Mobile Layout (360px and below) */
@media (max-width: 360px) {
    #title {
        margin-top: 180px; /* Height for 3 nav rows */
    }
    
    #title h1 {
        font-size: 20pt;
        text-shadow: 2px 2px 0px #d1d1d1;
    }

    .Image {
        width: 95%;
    }

    .text p {
        font-size: 12px;
    }

    /* Mobile Nav: 3 rows */
    ul {
        flex-wrap: wrap;
    }

    li {
        width: 33.33%;
        float: none;
    }

    li[style="float: right"] {
        width: 100%;
        margin-left: 0;
        order: 1000;
    }

    li a {
        padding: 10px 8px;
        font-size: 12px;
    }

    /* Footer 2x2 grid */
    .foot footer ul {
        flex-wrap: wrap;
    }

    .foot footer ul li {
        flex: 0 0 50%;
        padding: 8px 0;
    }

    .foot footer ul li a {
        font-size: 12px;
    }
}
/* Contact Form */
.contact-container {
    background: #fff;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}
label {
    display: block;
    margin-bottom: 6px;
    color: #555;
}
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
button {
    background: #2f8589;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}
button:hover {
    background: #12bcc5;
}