@import url('https://fonts.googleapis.com/css? family=Poppins:200,300,400,500,600,700,800,900&display=swap');

:root {
    --primary-color: #ffca00;
    --secondary-color: #240d00;
    --tertiary-color: #005100;
    --quaternary-color: #f28500;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: var(--secondary-color);
}

p {
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

section {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 6rem;
    margin-top: 5rem;
    text-align: center;
}

.btn {
    margin: auto;
    justify-content:center;
    align-items:center;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    padding: .5rem 1.3rem;
    margin: 1.2rem 12.5rem 0;
    border: 0;
}

.btn:hover {
    transform: scale(0.95);
}

.butt1 {
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    background: lightgray;
    padding: 0.1rem .7rem;
}

.butt1:hover {
    transform: scale(1.2);
}

.logo {
    max-width: 18rem;
    position: absolute;
    top: 2rem;
    left: 6rem;
    z-index: 20;
}

/* MENU BUTTON */

.toggle {
    position: fixed;
    top: 0;
    right: 0;
    width: 6rem;
    height: 5.8rem;
    background: var(--primary-color) url(../images/menu.png);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 20;
    cursor: pointer;
}

.toggle.active {
    background: var(--primary-color) url(../images/close.png);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 20;
}

.navigation {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation.active {
    left: 0;
}

.navigation ul {
    position: relative;
}

.navigation ul li {
    position: relative;
    list-style: none;
    text-align: center;
}

.navigation ul li a {
    font-size: 2.2rem;
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 500;
}

.navigation ul li a:hover {
    color: var(--quaternary-color);
}


        /*  ###  MARQUEE SCROLLING BANNER  ###   */ 
    .marquee {
        width: 90%;
        margin-inline: auto;
        position: relative;
        height: 50px;
        margin-top: 2rem;
        margin-bottom: 2rem;
        overflow: hidden;  /* hides scroll bar */
        mask-image: linear-gradient(
            to right,
            rgba(0,0,0,0),
            rgba(0,0,0,1) 20%,
            rgba(0,0,0,1) 80%,
            rgba(0,0,0,0)

        )
    }

    @keyframes scrollLeft {
        
        to {
            left: -200px;
        }
    }

    .item {
        display: inline-block;
        width: 200px;
        height: 45px;
        margin: none;
        background-color: var(--primary-color);
        color:  var(--secondary-color);
        padding-top: 12px;
        font-size: 1rem;
        font-weight: bold;
        text-align: center;
        position: absolute;
        left: max(calc(175px * 8), 100%);
        animation-name: scrollLeft;
        animation-duration: 20s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    .item1 {
        animation-delay: calc(20s / 8 * (8 - 1) * -1);
    }
    .item2 {
        animation-delay: calc(20s / 8 * (8 - 2) * -1) ;
    }
    .item3 {
        animation-delay: calc(20s / 8 * (8 - 3) * -1) ;
    }
    .item4 {
        animation-delay: calc(20s / 8 * (8 - 4) * -1) ;
    }
    .item5 {
        animation-delay: calc(20s / 8 * (8 - 5) * -1) ;
    }
    .item6 {
        animation-delay: calc(20s / 8 * (8 - 6) * -1) ;
    }
    .item7 {
        animation-delay: calc(20s / 8 * (8 - 7) * -1) ;
    }
    .item8 {
        animation-delay: calc(20s / 8 * (8 - 8) * -1) ;
    }


/* HOME PAGE */

.home-content {
    margin-top: 10px;
    position: relative;
    z-index: 10;
    max-width: 50rem;
    background: #fff;
    padding: 10px 20px 20px;
    box-shadow: 0 15px 25px rgba(255, 165, 0, 0.09);
    border-radius: 5px;
}


.home-content h1 {
    color: var(--tertiary-color);
}

.home-content p {
    text-align: left;
}

.home-content h3 {
    text-align: left;
}

.home-img {
    max-width: 70rem;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    opacity: .9;
}

.about-img {
    max-width: 70rem;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
}

.worker-img {
    max-width: 45rem;
    margin-top: 20px;
}

/* SERVICES PAGE */
section .title {
    max-width: 1000px;
    margin-left: 13rem;
}

.services {
    margin-top: 1rem;
    margin-left: 15rem;
    max-width: 60rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2.5rem;
    text-align: center;
    align-items: center;
}

.services .service {
    padding: 2rem;
    position: relative;
    width: 18rem;
    height: 18rem;
    transition: .3s;
}

.services .service:hover {
    opacity: .4;
}

.services .service h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.2rem;
    color: var(--tertiary-color);
}

/* INDIVIDUAL SERVICE PAGES */

.services-img {
    max-width: 50rem;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    opacity: .95;
}

.home-content h2 {

    margin-top: 30px;
    font-size: 20px;
    color: var(--tertiary-color);
}

.lab-text p {
    text-align: center;
}

.labs {
    text-align: left;
}

.labs p {
    text-decoration: none;
    margin: 0;
}

.pe-text p {
    text-align: center;
}

.physicals p {
    text-align: left;
}

.home-content .pdf-img {
    position: relative;
    margin-top: 30px;
    width: 50px;
    height: 60px;
}

/*  FAQ Page */

.container {

    z-index: 10;
    max-width: 800px;
    margin: 0 40px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    column-gap: 20px;
}

.container h1 {
    color: var(--tertiary-color);
}

.container .tab {
    position: relative;
    background: #fff;
    padding: 0 20px 20px;
    box-shadow: 0 15px 25px rgba(255, 165, 0, 0.09);
    border-radius: 5px;
    overflow: hidden;
}

.container .tab input {
    appearance: none;
}

.container .tab label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.container .tab label::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 2em;
    color: rgba(0, 0, 0, 0.1);
    transition: transform 1s;
}

.container .tab:hover label::after {
    color: #333;
}

.container .tab input:checked ~ label::after {
    transform: rotate(135deg);
    color: #fff;
}

.container .tab label h2 {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.25em;
    border-radius: 5px;
    margin-right: 10px;
}

.container .tab input:checked ~ label h2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    font-size: 8em;
    justify-content: flex-end;
    padding: 20px;
}

.container .tab:nth-child(2) label h2 {
    background: linear-gradient(135deg, #fd6e6a, #ffc600);
}

.container .tab:nth-child(3) label h2 {
    background: linear-gradient(135deg, #648e00, #005100);

}

.container .tab:nth-child(4) label h2 {
    background: linear-gradient(135deg, #fd6e6a, #ffc600);
}

.container .tab:nth-child(5) label h2 {
    background: linear-gradient(135deg, #648e00, #005100);
}

.container .tab:nth-child(6) label h2 {
    background: linear-gradient(135deg, #fd6e6a, #ffc600);
}

.container .tab:nth-child(7) label h2 {
    background: linear-gradient(135deg, #648e00, #005100);
}

.container .tab label h3 {
    position: relative;
    font-weight: 500;
    color: #333;
    z-index: 10;
}

.container .tab input:checked ~ label h3 {
    background: #fff;
    padding: 2px 10px;
    color: #333;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.09);
}

.container .tab .content {
    max-height: 0;
    transition: 1s;
    overflow: hidden;
}

.container .tab input:checked ~ .content {
    max-height: 100vh;
}

.container .tab .content p {
    position: relative;
    padding: 10px 0;
    text-align: justify;
    color: #333;
    z-index: 10;
}

.container .tab input:checked ~ .content p {
    color: #fff;

}

/* INFO PAGE */

.portfolio {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
    text-align: center;
    justify-content: center;

}

.portfolio .info-item {
    transition: 0.3s;
}

.portfolio .info-item:hover {
    opacity: 0.5;
}

.portfolio .info-item .labels {
    margin-top: .5rem;
    font-size: 1.2rem;

}

.portfolio .info-item .labels h3 {
    color: var(--tertiary-color);

}


/* CONTACT  PAGE */

.title h1 {
    color: var(--tertiary-color)
}

.contact {
    position: relative;
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-form {
    position: relative;
    background: #f9f9f9;
    width: calc(100% - 400px);
    padding: 60px 40px 20px;
}

.contact-form form {
    width: 100%;
}

.contact-form .row {
    width: 100%;
    display: flex;
}

.contact-form .input50 {
    width: 50%;
    height: 80px;
    margin: 0 10px;
}

.contact-form .row input:focus {
    border: 2px solid var(--quaternary-color);
}

.contact-form .row input::placeholder {
    color: var(--tertiary-color);
}

.contact-form .input100 {
    width: 100%;
    margin: 0 10px;
}

.contact-form .row input,
.contact-form .row textarea {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
    background: transparent;
    width: 100%;
    padding: .6rem;
    outline: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 300;
    margin: .6rem 0;
    resize: none;
}

.contact-form .row textarea {
    height: 11rem;
}

.contact-form .row textarea:focus {
    border: 2px solid var(--quaternary-color);
}

.contact-form .row textarea::placeholder {
    color: var(--tertiary-color);
}

.contact-form .row input[type='submit'] {
    background-color: var(--tertiary-color);
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
}

.contact-info {
    max-width: 350px;
    background: #f9f9f9;
    padding: 1rem 2.5rem 1rem;
}

.contact-info .info-box {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.contact-info .info-box .contact-icon {
    width: 2rem;
    margin-right: 1.5rem;
}

.contact-info .info-box .details h4 {
    color: var(--tertiary-color);
    justify-items: center;
}

.contact-info .info-box .details p,
.contact-info .info-box .details a {
    color: var(--secondary-color);
    font: inherit;
    text-decoration: none;

}

.map {
    width: 100%;
    position: relative;
    margin-bottom: 1.2rem;
    margin-top: 1.2rem;
}

.map iframe {
    width: 100%;
    height: 800px;
}


/* RESPONSIVE */

@media(max-width: 1950px) {

    section .about {
        display: flex;
        flex-direction: column;

    }
    .about-img {
        position: relative;
        width: 750px;
        margin: 0;
    }

}

@media(max-width: 1500px) {

    .services-img {
        display: none;
    }

    .home-img {
        display: none;
    }
}

@media(max-width: 1200px) {
    .home-img {
        display: none;
    }

    .services-img {
        display: none;
    }

    .logo {
        top: .6rem;
        left: 2.5rem;
        max-width: 15rem;
    }

    section {
        padding: 100px 40px;
    }

    section .title {
        margin: auto;
    }

    .services {
        margin: auto;
        grid-template-columns: 1fr;
    }

    .portfolio {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        flex-direction: column;
    }

    .contact-form {
        width: 100%;
        padding: 2rem 2rem 1.2rem;
    }

    .contact-form .row {
        flex-direction: column;
    }

    .contact-form .input50,
    .contact-form .input100 {
        width: 100%;
        margin: 0;
    }

    .contact-info {
        width: 100%;
        margin-top: 1.2rem;
        padding: 2rem 2rem 1.2rem;
    }
}

@media(max-width: 768px) {

    .toggle {
        background: var(--primary-color) url(../images/menu2.png);
        width: 4.2rem;
        height: 3.6rem;
    }    

    .logo {
        max-width: 10rem;
    }

    section .home {
        margin-top: 4rem;
        align-items: center;
    }

    .home {
        padding: 0;

    }

    .about-img {
        position: relative;
        width: 100%;
        margin: 0;
    }

    .home-content {
        width: 100%;
        padding: none;
        box-shadow: none;
    }

    .worker-img {
        max-width: 500px;
        margin-top: 20px;
    }

    .btn {
        position: relative;
        margin: 1.2rem 5rem 0;
    }

    .services {
        margin: auto;
        grid-template-columns: 1fr;
    }

    .portfolio {
        grid-template-columns: 1fr;
    }

    .contact {
        flex-direction: column;
    }

    .contact-form {
        width: 100%;
        padding: 1.2rem 1.2rem .6rem;
    }

    .contact-info {
        width: 100%;
        margin-top: 1.2rem;
        padding: 1.2rem 1.2rem .6rem;
    }

    .map {
        width: 100%;
        margin-top: 1.2rem;
    }

    .map iframe {
        width: 100%;
    }
    
}

@media(max-width: 562px) {

    .home-content {
        width: 100%;
    }

    .worker-img {
        max-width: 400px;
        margin-top: 20px;
    }

}

@media(max-width: 480px) {



    .home-content {
        width: 100%;
    }

    .worker-img {
        max-width: 300px;
        margin-top: 20px;
    }

}