/* Variable Colors */
:root {
  --main-color: #000000;
  --outline-color: #C0C0C0;
  --accent-color: #CC0000;
  --secondary-color: #404040;
  --text-color: #FFFFFF;
}

/*Default Stylings*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    list-style-type: square;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/*Header Styling*/

.logo {
    width: 250px;
    height: 150px;
    margin-left: 10%;
    margin-bottom: 5px;
}

h1 {
    text-align: center;
    padding-bottom: 25px;
}

header {
    border: 2px solid black;
    background-color: var(--accent-color);
    padding: 10px;
    width: 100%;
}

.location {
    position: absolute;
    top: 22%;
    left: 60%;
    width: auto;
    margin-left: 0;
}

#navigation {
    position: absolute;
    top: 15%;
    left: 80%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.about, .services, .contact {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 5px;
}

a:link {
    text-decoration: none;
    color: var(--text-color)
}

a:hover {
    background-color: var(--secondary-color);
    padding: 5px;
}

/*Hero Styling*/
.heroimg {
    width: 100%;
    height: 50%;
}

.CTA {
    position: absolute;
    top: 68%;
    left: 45%;
    background-color: #CC0000;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    margin-left: 10px;
    margin-top: 10px;
    font-family: monospace;
    font-weight: 800;
}

.CTA:hover {
    background-color: var(--outline-color);
}

.herotext1 {
    position: absolute;
    top: 60%;
    text-align: center;
    width: 100%;
    text-shadow: 7px 7px 7px black;
}

.herotext2 {
    position: absolute;
    top: 64%;
    text-align: center;
    width: 100%;
    text-shadow: 7px 7px 7px black;
}

body {
    background-color: var(--accent-color);
    overflow-x: hidden;
}

.services-container, .about-container, .contact-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

#services, #about, #contact {
    margin-left: 50px;
    border-right: 2px solid var(--outline-color);
    width: 50%;
    padding-top: 10px;
    padding-bottom: 20px;
    border-top: 2px solid var(--outline-color);
    flex: 0 0 50%;
}

.secondaryimgs {
    width: 50%;
}

.imgone, .imgtwo {
    width: 100%;
    height: 375px;
    border: 2px solid var(--outline-color);
    margin-right: 10px;
}

.social-media {
    display: flex;
    width: 425px;
    padding: 20px;
}

.socialIcons {
  border: 2px solid var(--text-color);
  border-radius: 20px;
  width: 50px;
  height: 50px;
  fill: white;
  margin: 0 40px;
}

/*Footer Styling*/

footer {
    border: 2px solid var(--outline-color);
    background-color: var(--accent-color);
    width: 100%;
    padding-right: 10px;
    margin-top: 10px;
    text-align: right
}


@media (max-width: 768px) {

    /* Header */
    header {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 15px;
    }
    .logo {
        width: 150px;
        height: 90px;
        margin-left: 0;
    }
    h1 {
        font-size: 1rem;
        padding-bottom: 10px;
    }
    #navigation {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        text-align: center;
        font-size: 16px;
    }
    .location {
        position: static;
        top: auto;
        left: auto;
        text-align: center;
        margin-top: 8px;
    }

    /* Hero */
    .hero {
        position: relative;
    }
    .heroimg {
        height: 300px;
        object-fit: cover;
    }
    .herotext1 {
        top: 50%;
        font-size: 1.1rem;
    }
    .herotext2 {
        top: 62%;
        font-size: 0.9rem;
    }
    .CTA {
        top: 74%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Body sections */
    .services-container, .about-container, .contact-container {
        flex-direction: column;
    }
    #services, #about, #contact {
        width: 100%;
        margin-left: 0;
        flex: none;
        border-right: none;
    }
    .secondaryimgs {
        width: 100%;
    }
    .imgone, .imgtwo {
        height: 220px;
        object-fit: cover;
        margin-right: 0;
    }

    /* Contact */
    .social-media {
        width: 100%;
        justify-content: center;
    }
    .socialIcons {
        margin: 0 20px;
    }
}