body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-family: 'Playfair Display', serif;
    min-height: 100vh; /* Ensure body takes full height */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    display: grid;
    grid-template-columns: 15% 70% 15%;
    width: 100%;
    flex: 1; /* Allow container to grow and take available space */
}

header, main, footer {
    grid-column: 2 / 3;
    width: 100%;
}

header {
    background: transparent;
    color: #404040;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .logo {
    position: absolute;
    top: 0;
    left: 15%; /* Align with the right of the left column */
    padding: 1rem;
    transform: translateX(-50%);
}

header .logo img {
    width: 72px;
    height: 72px;
}

header nav {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 30px;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto; /* Adjust width to fit the items */
    margin: 0 auto; /* Center the navigation */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    /*font-family: 'Playfair Display', serif;*/
    font-weight: 700;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

nav ul li {
    margin: 0 1rem;
    position: relative;
}

nav ul li a {
    color: #404040;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

nav ul li a:hover {
    color: #663399;
}

nav ul li a:hover::after {
    content: '-';
    position: absolute;
    bottom: -15px;
    left: 60%;
    transform: translateX(-50%);
    color: #663399;
    font-size: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #404040;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 10% 80% 10%;
    }

    header .logo img {
        width: 48px;
        height: 48px;
    }

    nav {
        width: auto;
        justify-content: center;
    }

    nav ul {
        flex-direction: row;
        position: static;
        display: flex;
        background: transparent;
        width: auto;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    nav ul li a {
        justify-content: center;
        padding: 0.5rem;
    }

    nav ul li a .nav-text {
        display: none;
    }
    nav ul li a:hover::after {
        content: '.';
        position: absolute;
        bottom: -10px;
        left: 40%;
        transform: translateX(-50%);
        color: #663399;
        font-size: 1.5rem;
    }

    .top {
        height: 5vh; /* Reduce the top section height by 50% on mobile */
        padding: 0.5rem 1rem 1rem 1rem; /* Reduce the padding by 50% on mobile */
    }

    .cta button {
        font-size: 21px; /* Reduce font size on mobile */
    }

    main {
        min-height: 90vh; 
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header .logo img {
        width: 48px;
        height: 48px;
    }

    .top {
        height: 5vh; /* Reduce the top section height by 50% on tablet */
        padding: 0.5rem 1rem 1rem 1rem; /* Reduce the padding by 50% on tablet */
    }

    .cta button {
        font-size: 21px; /* Reduce font size on tablet */
    }

    main {
        min-height: 90vh; 
    }
}

.top {
    padding: 2rem 2rem 2rem 2rem; /* Adjust padding to account for fixed header */
    text-align: center;
}

.hero {
    padding: 2rem 2rem 2rem 2rem;
    text-align: center;
}

.hero h1, .hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.hero h1 {
    font-size: 48px; /* Update font size */
    font-family: 'Montserrat', sans-serif; /* Change font family */
    margin-bottom: 0.5rem; /* Reduce margin to bring h2 closer */
}

.hero h2 {
    font-size: 1.5rem;
    color: #555;
    font-weight: 300;
    font-family: 'Playfair Display', serif; /* Change font family */
}

.cta {
    text-align: center;
    margin: 2rem 0;
}

.cta button {
    padding: 0.5rem 1.5rem;
    font-size: 27px; /* Update font size */
    font-family: 'Playfair Display', serif; /* Update font family */
    font-weight: 600; /* Update font weight */
    background-color: #ffcc00; /* Update background color */
    color: #404040; /* Update font color */
    border: none;
    border-radius: 30px; /* Make cornersrounded */
    cursor: pointer;
    transition: background 0.3s, color 0.3s; /* Add color transition */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.cta button:hover {
    background-color: #ffd633; /* Slightly lighter shade for hover effect */
    color: #663399; /* Update font color on hover */
}

section {
    margin-bottom: 2rem;
}

footer {
    background: transparent; /* Change background to match the rest of the page */
    color: #999999; /* Update text color */
    text-align: center;
    max-height: max-content;
    padding: 0.5rem 0; /* Reduce padding to half */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure footer takes full width */
    position: relative;
    bottom: 0;
    font-family: 'Montserrat-thin', sans-serif; /* Update font family */
    font-weight: 100; /* Update font weight */
    font-size: 14px; /* Set font size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

footer section {
    display: inline-block;
    margin: 0 1rem;
}

main {
    flex: 1; /* Allow main to grow and take available space */
    padding-bottom: 2rem; /* Add padding to push the footer down */
    min-height: 88vh; 
}