/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #111;
    background: #FFF1E1;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: relative;
    width: 100%;
    background: #FFF1E1;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
    padding: 0 24px;
    background-color: #FFF1E1;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================
   LOGO
========================= */

.logo {
    width: 90px;
    height: 65px;
    background-image: url("../images/Christman\ Horseshoing.webp");
    background-position: center;
    background-size: cover;
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;

    list-style: none;
}

.nav-links a {
    position: relative;

    color: #111;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #555;
}


/* =========================
   HAMBURGER BUTTON
========================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: #111;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .navbar {
        height: 64px;
        padding: 0 20px;
    }


    /* Show hamburger */

    .menu-toggle {
        display: flex;
    }


    /* Mobile menu */

    .nav-links {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        padding: 8px 20px 20px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: #fff;
        border-bottom: 1px solid #e5e5e5;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* Menu items */

    .nav-links li {
        width: 100%;

        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }


    /* Menu links */

    .nav-links a {
        display: block;

        width: 100%;

        padding: 16px 0;

        font-size: 17px;
    }


    /* Open menu */

    .nav-links.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    section h2 {
        text-align: center;
        margin: 50px 0;
    }

    #home div h1 {
        position: absolute;
        bottom: 10px;
        right: 10px;
        max-width: 60%;
        color: rgba(255, 255, 255);
        text-shadow: black 4px 4px 10px;
    }

    #about div {
        background-image: url("../images/about-image.webp");
        background-size: cover;
    }


    #about div img {
        display: none;
    }

    #about div p {
        color: white;
        text-shadow: 4px 4px 10px black;
        background-color: rgba(0, 0, 0, 0.60);
        backdrop-filter: blur(1px);
        padding: 10px;
    }

    #about .experience {
        background: none;
    }

    #about .experience p {
        color: black;
        padding: 10px;
        text-shadow: none;
        background: none;
    }

    #about img {
        width: 100%;
        margin: 10px 0;
    }


    /* =========================
       HAMBURGER → X
    ========================= */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* =========================
   CONTENT
========================= */

main {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    position: relative;
    min-height: 500px;
    /*padding: 100px 24px;*/
}

#home {
    background-color: #795328;
}

#home div {
    background-image: url("../images/home-image-desktop.webp");
    background-position: center;
    background-size: cover;
    height: 90dvh;
    margin: 0 auto;
    position: relative;
}

#home div h1 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: fit-content;
    color: rgba(255, 255, 255);
    text-shadow: black 4px 4px 10px;
}

section h2 {
    text-align: center;
    margin: 50px 0;
    font-size: 38px;
}

#about h3 {
    text-align: center;
    margin: 30px 0;
    font-size: 28px;
}

#about p {
    padding: 0 10px;
}

#about div {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /*max-width: 900px;*/
    margin: 0 auto;
}

#about div p {
    max-width: 400px;
    font-size: 18px;
}

#about div img {
    max-width: 450px;
}


#contact {
    padding: 20px;
}

form {
    max-width: 600px;
    width: 100%;
    padding: 15px;
    margin: 0 auto;
    border-radius: 12px;

    background-color: #795328;


    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

form h3 {
    margin: 10px 0;
}

form input {
    max-width: 400px;
    width: 100%;
    padding: 2px;
    margin: 5px 0;
}

form textarea {
    max-width: 400px;
    width: 100%;
    padding: 2px;
    margin: 5px 0;
}

form button {
    padding: 10px 15px;
    margin: 10px 0;
    background-color: #FFF1E1;
    border-radius: 12px;
}

footer {
    padding: 20px;
    background-color: #795328;
    color: white;
}

footer p{
    margin: 10px 0;
}

footer ul {
    width: 100%;
    max-width: 400px;
    list-style: none;
    margin: 10px 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

footer p a {
    color: white;
}

footer ul li a {
    color: white;
}

footer a img {
    width: 40px;
    margin: 10px;
}
