:root {
    --primary-color: #F4F1EC;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #F4F1EC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.h1-style {
    font-size: 2em;
    font-weight: bold;
    margin-top: 0.67em; /* Adjust margins to match h1 default more closely */
    margin-bottom: 0.67em;
}

.h2-style {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0.83em; /* Adjust margins to match h2 default more closely */
    margin-bottom: 0.83em;
}

.h3-style {
    font-size: 1.17em;
    font-weight: bold;
    margin-top: 1em; /* Adjust margins to match h3 default more closely */
    margin-bottom: 1em;
}

.header {
    display: flex;
    width: 100vw;
    height: 600px;
    background: linear-gradient(rgba(77, 77, 77, 0.5), rgba(77, 77, 77, 0.5)), url('Images/MS7.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #F4F1EC;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 2;
    position: relative;
}

.header-top{
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding-left: 1rem;
    margin-right: 3rem;
}

header h1 {
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

nav {
    transform: translateY(-50%);
    z-index: 2;
}

nav ul {
    list-style: none;
    margin: 0 2rem;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.95;
}

nav ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1001;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(51, 51, 51, 0.98);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.hero {
    position: absolute;
    display: flex;
    top: 40%;
    z-index: 2;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero h2 {
    z-index: 2;
    color: var(--primary-color);
    font-size: 4rem;
    text-align: center;
    margin: 0;
    font-weight: normal;
}

.container {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    border: 0;
    margin: 0;
    background-image: url('Images/Background.png');
    background-size: 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container .left{
    flex: 3;
    padding: 0;
    background: transparent;
}

.container .right{
    flex: 2;
    padding: 0;
    background: transparent;
}

.right a {
    color: #B79671;
}

.banner {
    display: flex;
    background: linear-gradient(rgba(77, 77, 77, 0.5), rgba(77, 77, 77, 0.5)), url('Images/banner.jpg') center/cover no-repeat;
    height: 40vh;
    align-items: center;
    justify-content: center;
}

.banner-content{
    margin: 0 2rem;
    display: flex;
    flex-direction: row;
}

.banner-content .left{
    flex: 2;
}

.banner-content .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner .left p {
    text-align: left;
    color: var(--primary-color);
    font-size: 2em;
}

section {
    background: transparent;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content {
    background-image: url("Images/Background2.png");
    background-size: 98%;
    background-position-x: center;
    background-repeat: no-repeat;
    padding-top: 10rem;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom: 5rem;
    text-align: center;
    border-bottom: 30px solid #B79671;
}

.content a {
    color: #B79671;
}

footer {
    background-color: #ecf0f1;
    padding: 2rem;
    text-align: center;
    color: #363B4C;
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer .footer-section {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
    text-align: left;
}

footer .footer-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

footer a {
    color: #B79671;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d6e6df;
    border-radius: 6px;
    background-color: #fbfeff;
    color: #2c3e50;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #bfe6c8;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.06);
}

button {
    background-color: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

button:hover {
    background-color: #219a52;
    transform: translateY(-1px);
}

/* --------------------------------------------------------*/

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .hamburger {
        display: flex;
        position: fixed;
        top: 18px;
        right: 1.5rem;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1200;
    }

    header{
        max-height: 500px;
    }

    header h1 {
        font-size: .95rem;
        left: 1rem;
        max-width: calc(100% - 90px);
    }

    nav {
        position: fixed;
        top: 72px;
        right: -110%;
        width: 100%;
        max-width: 360px;
        height: calc(100vh - 72px);
        background-color: rgba(51, 51, 51, 0.98);
        box-shadow: -6px 0 20px rgba(0,0,0,0.3);
        transform: none;
        transition: right 0.28s ease;
        overflow-y: auto;
        z-index: 1100;
        display: flex;
        align-items: flex-start;
    }
     
    nav.active {
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
        margin: 0;
        align-items: stretch;
        width: 100%;
    }
    nav ul li {
        margin: 0.25rem 0;
        width: 100%;
        text-align: left;
        list-style: none;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 0.75rem 1rem;
        color: #fff;
        text-decoration: none;
        width: 100%;
    }

    .hero h2{
        font-size: 2.25rem;
        margin: 0;
    }

    .container {
        flex-direction: column;
        padding:0;
    }

    .container p{
        font-size: 1rem;
    }

    section {
        padding: 0 1rem;
    }

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

    .banner .left p{
        text-align: center;
        padding: 0;
        font-size: 1rem;
    }

    .content {
        padding: 0.5rem;
        font-size: .75rem;
        text-align: left;
    }

    .content h4{
        text-align: center;
    }

    footer {
        padding: 0 2rem;
    }

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

    footer .footer-section {
        padding: 0;
        text-align: center;
    }

    footer ul li a{
        font-size: 1.1rem;
    }
}