/*All Pages*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

body {
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

html, body {
    height: 100%;
}

main {
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
}

header {
    display: flex;
    background-color: #007849;
    padding-top: 10px;
}

.logo {
    max-width: 100px;
    margin-left: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "IBM Plex Sans", sans-serif;
    color: #007849;
    text-align: center;
    margin-bottom: 15px;
}

p {
    font-family: "Source Sans 3", sans-serif;
    color: #626867;
    font-size: 1.06rem;
    line-height: 1.5;
}

nav a {
    font-family: "IBM Plex Sans", sans-serif;
    margin-left: 40px;
    color: #FFFFFF;
}

nav a:hover {
    color: #FFC533;
}

.header-links {
    margin-top: 14px;
    margin-left: 50px;
    font-size: 20px;
}

footer {
    background-color: #007849;
    padding: 10px;
    padding-bottom: 10px;
    margin-top: 50px;
}

footer p {
    margin-left: 20px;
    color: #FFC533;
}

footer a {
    color: #FFFFFF;
}

footer a:hover {
    color: #FFC533;
}

.content-wrapper {
    flex-grow: 1;
}

/*Hamburger Menu Styles*/

.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #FFC533;
    transition: all 0.3s ease;
}

/*Homepage*/

.company-values {
    max-width: 800px;
    margin: 10px auto 0px auto;
    padding: 0 20px;
}

.product-portfolio {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 5px;
}

.portfolio-title {
    grid-column: 1/-1;
}

.badge-product {
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-product {
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-image {
    max-width: 500px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.company-values p, .badge-product p, .radio-product p {
    margin-top: -5px;
}

/*Questions Page*/

.main-faq {
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right:30px;
    max-width: 800px;
    margin: 0 auto;
}

.question-box {
    border: 2px solid #007849;
    font-family: "IBM Plex Sans", sans-serif;
    color: #007849;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 15px;
    cursor: pointer;
}

.question-box > summary {
    list-style: none;
    font-weight: 600;
}

.question-box > summary::-webkit-details-marker {
    display: none;
}

.question-box > summary::before {
    content: ">_";
    color: #007849;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.2em;
    margin-right: 15px;
    display: inline-block;
}

.question-box[open] > summary::before {
    color: #FFC533;
}

.question-box p {
    font-family: "Source Sans 3", sans-serif;
    color: #626867;
    margin-top: 10px;
    margin-left: 35px;
}

.contact-prompt {
    text-align: center;
    margin-top: 40px;
}

.contact-prompt h2 {
    margin-bottom: -10px;
}

/*Contact Page*/

.hero-banner {
    background-image: url('../images/Circuit-Board-Closeup-V2-\(Progressive\).jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    margin: 0;
    color: #FFC533;
    font-size: 4rem;
    font-weight: 700;
}

.contact-details {
    margin-top: -5px;
    margin-bottom: 0;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px;
}

.contact-form {
    margin-top: -10px;
    margin-bottom: 40px;
    max-width: 600px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    color: #007849;
    margin-bottom: 5px;
    margin-top: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 2px solid #007849;
    border-radius: 4px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    color: #626867;
    background-color: #FFFFFF;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #FFC533;
    background-color: #FFFFFF;
}

.contact-form button {
    margin-top: 25px;
}

/*Thank You Page*/

.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    text-align: center;
}

.success-content {
    max-width: 600px;
}

.success-content h1 {
    color: #007849;
    margin-bottom: 15px;
}

.success-content p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/*Dedicated Product Pages*/

.back-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007849;
    color: #FFFFFF;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    width: fit-content;
    text-align: center;
}

.button:hover {
    background-color: #FFC533;
    color: #007849;
}

.product-content {
    max-width: 800px;
    margin: 10px auto;
    padding: 0 20px;
    text-align: left;
}

.product-content h1 {
    color: #007849;
    text-align: center;
}

.product-content p {
    margin-bottom: 25px;
    margin-top: -5px;
}

.image-gallery {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.image-gallery h2 {
    margin-bottom: 15px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.image-grid img {
    height: 200px;
    width: auto;
    max-width: 100%;
    flex-grow: 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-grid::after {
    content: "";
    flex-grow: 10;
    display: block;
}

.image-grid img:hover {
    transform: scale(1.04);
}

/*Lightbox Styles*/

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    margin-top: 50px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #FFFFFF;
    padding: 10px 0;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 35px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 2001;
}

.close-btn::before, .close-btn::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #FFC533;
    top: 50%;
    left: 0;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #FFC533;
    font-weight: bold;
    font-size: 50px;
    transition: 0.3s ease;
    user-select: none;
    text-decoration: none;
    z-index: 2002;
}

.prev {
    left: 80px;
}

.next {
    right: 80px;
}

/*Media Queries*/

@media screen and (max-width: 900px) {
    main {
        margin-left: 0;
        margin-right: 0;
    }
    
    .product-portfolio {
        grid-template-columns: 1fr;
        width: auto;
        max-width: 100%;
        padding: 0 20px;
        row-gap: 0px;
    }

    .portfolio-title, .badge-product, .radio-product {
        grid-column: auto;
    }

    .portfolio-title {
        margin-top: 0;
    }
    
    .badge-product, .radio-product {
        padding: 0;
        margin-bottom: 50px;
    }

    .portfolio-image {
        width: 100%;
        height: auto;
        margin-top: 0;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-right: 20px;
        position: relative;
    }

    .company-values {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 20px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .header-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #007849;
        padding: 20px 0;
        border-top: 2px solid #FFC533;
        z-index: 1000;
        margin-top: 0px;
    }

    .header-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        margin: 15px 0;
        font-size: 20px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg)
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg)
    }

    .hero-banner {
        height: 100px;
        background-position: center top;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .lightbox-content {
        margin-top: 85px;
        max-height: 70vh;
    }

    .image-grid img {
        height: 160px;
        flex-grow: 0;
    }
}