@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');

:root {
    --primary-color: #F8EDE2;
    --secondary-color: #43603E;
    --tertiary-color: #C6A640;
    --footer-height: 60px;
}

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

*::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.container a {
  color: var(--secondary-color);
  transition: color 0.3s;
}

.container a:hover {
    color: var(--tertiary-color)
}

.container img {
    margin-bottom: 2rem;
}

header, footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    min-height: 140px;
}

header .logo {
    position: relative;
    margin-bottom: 0;
    margin: 0;
    top: 10px;
    left: 10px;
    width: 100px;
}

header h1 {
    text-align: center;
    margin: 0;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0 4px;
}

nav ul li a.active {
    color: var(--tertiary-color);
    border-bottom: 2px solid var(--tertiary-color);
}

nav ul li a:hover {
    color: var(--tertiary-color);
}

section {
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    padding-bottom: 100px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

section h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

section h4 {
    font-size: 1.2rem;
    margin-top: 1rem;
}

section ul {
    list-style-type: disc;
    padding-left: 20px;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.index-logo {
    max-height: 40vh;
    max-width: 90%;
    width: auto;
}

footer {
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    max-height: 50vh;
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        background-color: var(--primary-color);
        height: 100%;
        width: 250px;
        padding: 20px;
        margin: 0;
        justify-content: flex-start;
        display: flex;
        padding-top: 60px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(120%);
        transition: transform 0.3s ease-in-out;
        z-index: 10;
    }

    nav ul.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--secondary-color);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    nav ul {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .menu-toggle {
        display: none;
    }
}

.close-menu {
    display: none;
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul.open .close-menu {
    display: block;
}

blockquote {
    border-left: 4px solid var(--tertiary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--secondary-color);
}