/* 
Theme Name: KNS
Theme URI: 
Author: Devology Studios
Author URI: https://devologystudios.com
Description: Kalmbach Nutritional Services website build based off the Veritas theme.
Version: 1.0.0
*/

:root {
    --dark-red: #A02E29;
    --red: #CF3B34;
    --dark-blue: #1C4179;
    --medium-blue: #035F9D;
    --light-blue: #0483D8;
    --dark-green: #276630;
    --medium-green: #32853E;
    --primary-green: #41A94F;
    --light-green: #50CE61;
    --dark-yellow: #E1CD0F;
    --primary-yellow: #FAE311;
    --dark-grey: #616161;
    --medium-grey: #C3C3C3;
    --light-grey: #E9E9E9;
    --white: #FCFBFC;
    --black: #00243D;

    --button-background: #CF3B34;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

main {
    min-height: 80vh;
    padding-bottom: 50px;
}

main:has(.imgSliderSlider) {
    padding-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
    font-family: 'Inter', serif;
    display: block;
}

/* may need to add p a {display: inline-block;} */

hr {
    background-color: var(--primary-green);
    /* width: 40%; */
    min-width: 250px;
    height: 2px;
    border: none;
    margin: 75px auto 50px auto;
}

a:hover {
    text-decoration: underline var(--primary-blue) solid 1.5px;
    text-underline-offset: 3px;
}

a:visited {}

p,
li {
    font-size: 1rem;
    font-weight: 300;
    color: var(--black);
    line-height: 1.3;
    letter-spacing: 0.25px;
}

p.x-large {
    font-size: 2rem;
}

p.large {
    font-size: 1.5rem;
}

p.medium {
    font-size: 1.25rem;
}

p.small {
    font-size: 0.8rem;
}

img {
    display: block;
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    color: var(--black);
    font-weight: 500;
}

h1,
.h1 {
    font-size: 2rem;
}

h2,
.h2 {
    font-size: 1.7em;
}

h3,
.h3 {
    font-size: 1.3em;
}

h4,
.h4 {
    font-size: 1em;
}

:focus,
:focus-visible {
    outline: auto;
}

.skip-link {
    width: 1px;
    height: 1px;
    position: absolute;
    left: -5000px;
    top: auto;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
}

.page-width {
    width: 100%;
    max-width: 1250px;
    padding: 0 50px;
    margin: 0 auto;
}

.page-width>.h3,
.page-width-narrow>.h3 {
    text-align: center;
    margin-bottom: 50px;
}

.page-width-narrow {
    width: 60%;
    max-width: 700px;
    min-width: 310px;
    padding: 0 50px;
    margin: 0 auto;
}

.page-width.oops {
    text-align: center;
    padding-top: 50px;
}

.page-text {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.button {
    cursor: pointer;
    background-color: var(--button-background);
    color: var(--white);
    padding: 12px 36px;
    border: none;
    outline: none;
    width: fit-content;
    font-weight: 600;
    filter: drop-shadow(0px 4px 4px rgba(0, 120, 108, 0.25));
    margin: auto;
}

.hidden {
    display: none;
}

@media screen and (max-width: 680px) {
    .page-width {
        padding: 30px 20px;
    }
}



/*
---------- HEADER ---------- 
*/

header {
    background-color: #FCFBFC;
}

.header-container {
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: none;
}

.header-logo img {
    width: 150px;
}

.nav-item {
    margin: 0 15px;
    display: inline-block;
    color: var(--dark-blue);
}

.nav-active {
    border-bottom: var(--red) 2px solid;
}

.nav-item:hover {
    text-decoration: underline var(--red) solid 2px;
    text-underline-offset: 4px;
}

/* .mobile-nav-container {
    position: absolute;
    width: 100%;
    height: 90%;
    top: 74px;
    padding: 30px 70px 30px 0;
    background-color: #FCFBFC;
    text-align: right;
    z-index: 2;
    transition: right 0.75s;
}

.mobile-nav-open {
    right: 0;
} */

.mobile-nav-container {
    position: fixed;
    width: 0%;
    height: 90%;
    /* only needs to be 154 when admin bar is there */
    top: 99px;
    right: 0;
    padding-top: 30px;
    /* padding: 30px 70px 30px 0; */
    background-color: #FCFBFC;
    text-align: right;
    z-index: 2;
    overflow-x: hidden;
    transition: 0.5s;
}

.mobile-nav-open {
    /* width: 100%; */
}

.mobile-nav-x {
    font-size: 2em;
    margin-bottom: 50px;
    display: block;
    display: none;
}

.mobile-nav-item {
    font-size: 2.1em;
    display: block;
    margin: 30px 0;
}


#nav-icon4 {
    width: 35px;
    height: 23px;
    margin: 8px 5px;
    position: relative;
    cursor: pointer;
}

#nav-icon4 span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000000;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon4 span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon4 span:nth-child(2) {
    top: 9px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon4 span:nth-child(3) {
    top: 18px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon4.open span:nth-child(1) {
    -webkit-transform: rotate(42.5deg);
    -moz-transform: rotate(42.5deg);
    -o-transform: rotate(42.5deg);
    transform: rotate(42.5deg);
    left: 3px;
    top: -2px;
}

#nav-icon4.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#nav-icon4.open span:nth-child(3) {
    -webkit-transform: rotate(-42.5deg);
    -moz-transform: rotate(-42.5deg);
    -o-transform: rotate(-42.5deg);
    transform: rotate(-42.5deg);
    left: 3px;
    top: 22px;
}

@media screen and (max-width: 860px) {
    .header-container {
        width: 90%;
    }

    .header-logo img {
        width: 90px;
    }

    .nav-items-container {
        display: none;
    }

    .mobile-nav-x {
        display: block;
    }
}

@media screen and (max-width: 680px) {
    .header-container {}
}



/* 
---------- FOOTER ---------- 
*/
.footer-container {
    background-color: var(--dark-red);
    color: var(--white);
}

.footer-container-inner {
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.footer-images {
    display: flex;
    gap: 10px;
}

.footer-text {
    font-weight: 500;
}

.footer-left p {
    color: var(--white);
}

.footer-right {
    margin: auto 0;
}

.footer-right a {
    margin: 8px 0;
    text-align: end;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 40px;
}

@media screen and (max-width: 680px) {
    .footer-right {
        margin-top: 10px;
    }

    .footer-bottom p {
        margin: 4px;
    }

    .footer-bottom.page-width {
        justify-content: center;
        padding: 15px;
    }
}



/* 
---------- BANNER SECTION ---------- 
*/
.page-banner {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
}

.page-banner .button {
    margin-left: 0;
}

@media screen and (max-width: 680px) {
    .page-banner {
        padding: 25px 0;
    }

    .page-banner .button {
        margin-left: auto;
    }
}



/* 
---------- GRID SECTION ---------- 
*/
.grid-2 {
    display: grid;
    row-gap: 30px;
    max-width: 800px;
    grid-template-columns: 50% 50%;
    margin: auto;
}

.grid-3,
.grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 20px;
}

.grid-5 {
    display: grid;
    row-gap: 20px;
    grid-template-columns: repeat(5, 20%);
    margin: auto;
}

.grid-2 .grid-item {
    width: 60%;
    min-width: 150px;
    justify-self: center;
}

.grid-3 .grid-item {
    width: 30%;
    min-width: 200px;
}

.grid-4 .grid-item {
    /* text-align: center; */
    width: 24%;
    min-width: 210px;
    padding: 10px;
}

.grid-5 .grid-item {
    width: 100%;
    min-width: 150px;
}

.grid-item.distribute-evenly {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.distribute-evenly .grid-item-bottom {
    height: 50%;
    /* this works for the standards section on the home page at least */
}

.distribute-evenly .grid-item-title {
    margin-top: 15px;
}

.grid-item-img {
    display: block;
    margin: auto;
    width: 100%;
}

.grid-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.grid-item-text {
    margin-top: 0;
}

.grid-3 .blog-card p:not(.blog-card-link),
.grid-3 .grid-item p,
.grid-4 .grid-item p {
    /* color: var(--dark-grey); */
}

@media screen and (max-width: 860px) {
    .grid-4 .grid-item {
        width: 49%;
        min-width: 150px;
    }
}

@media screen and (max-width: 680px) {
    .grid-3 {
        justify-content: center;
    }

    .grid-3 .grid-item {
        width: 80%;
    }
}

@media screen and (max-width: 500px) {
    .grid-5 {
        grid-template-columns: 100%;
    }
}



/* 
---------- BLOG SECTION ---------- 
*/
.blog-card {
    padding: 10px;
    width: 32%;
    min-width: 200px;
    text-align: left;
    color: var(--dark-grey);
}

.blog-card-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100px;
}

.blog-card-link {
    text-align: end;
    color: var(--primary-blue);
    font-weight: 500;
    letter-spacing: 0.75px;
}

.blog-card-link a span {
    color: var(--light-blue);
}

@media screen and (max-width: 860px) {
    .blog-card {
        width: 100%;
    }
}



/* 
---------- BLOG SECTION ---------- 
*/
.page-banner.blog-post {
    padding: 100px;
}

.blog-post {
    padding: 50px 0 0 0;
}

.blog-post__title {
    color: var(--dark-grey);
}

.blog-post__text {
    text-align: center;
}

.blog-post__img {
    width: 100%;
}

.post-navigation {
    margin-top: 50px;
}

.post-navigation .nav-links {
    display: flex;
    gap: 100px;
    justify-content: center;
}

.post-navigation .nav-links .nav-subtitle span {
    color: var(--light-blue);
    font-size: 0.8em;
}

@media screen and (max-width: 680px) {
    .page-banner.blog-post {
        padding: 50px;
    }
}




/* ------  home page slider styles  ------ */

.imgSliderSlide {
    display: none;
    margin-bottom: -1px;
}

.imgSliderSlide>img {
    width: 100%;
    /* height: 37vw; */
    height: auto;
    vertical-align: middle;
}

/* putting this here to remember this for now */
.needs2-imgs-small {
    display: none;
}

.imgSliderSlider {
    position: relative;
    margin: auto;
    overflow: hidden;
    /* height: 35vw; */
    /* max-width: 1450px; */
}

.imgSliderTextContainer {
    position: absolute;
    margin: 0 auto;
    bottom: 35%;
    left: 10%;
    width: 50%;
    max-width: 700px;
    min-width: 300px;
    display: block;
}

.imgSliderText {
    color: var(--white);
    margin-bottom: 0;
    font-weight: 500;
}

.imgSliderHeader.large {
    color: var(--white);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin: 5px 0 10px 0;
}

.imgSliderBtn {
    display: block;
    margin-top: 30px;
    margin-left: 0;
}

.imgSliderPrev {
    position: absolute;
    bottom: 43%;
    left: 5%;
    padding: 12px 12px 12px 12px;
    margin: auto;
    border-radius: 0 15px 15px 0;
    color: var(--white);
    font-size: 3em;
    display: none;
}

.imgSliderNext {
    position: absolute;
    bottom: 43%;
    right: 5%;
    padding: 12px 9px 12px 12px;
    margin: auto;
    border-radius: 15px 0 0 15px;
    color: var(--white);
    font-size: 3em;
    display: none;
}

.imgSliderPrev i,
.imgSliderNext i {
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
}

@media only screen and (max-width: 1200px) {
    .imgSliderTextContainer {
        bottom: 24%;
        right: 12%
    }

    .imgSliderHeader {
        font-size: 2.5vw;
    }

    .imgSliderBtn {
        font-size: 0.8em;
        padding: 8px 14px;
    }

    .imgSliderPrev i,
    .imgSliderNext i {
        font-size: 35px;
    }
}

@media only screen and (max-width: 860px) {
    .imgSliderTextContainer {
        right: 14%
    }

    .imgSliderBtn {
        font-size: 0.75em;
        padding: 7px 18px;
    }

    .imgSliderPrev,
    .imgSliderNext {
        bottom: 37%;
    }
}

@media only screen and (max-width: 680px) {
    .imgSliderTextContainer {
        right: 16%
    }

    .imgSliderHeader {
        font-size: 4vw;
    }

    .imgSliderBtn {
        padding: 5px 15px;
    }

    .imgSliderPrev,
    .imgSliderNext {
        bottom: 34%;
    }

    .imgSliderPrev i {
        font-size: 30px
    }

    .imgSliderNext i {
        font-size: 30px;
    }

    .needs2-imgs-big {
        display: none;
    }

    .needs2-imgs-small {
        display: block;
    }
}

@media only screen and (max-width: 520px) {
    .imgSliderSlider {
        /* height: 39vw; */
    }

    .imgSliderHeader.large {
        padding: 0 15px;
        text-align: center;
        font-size: 0.85rem;
    }

    .imgSliderText {
        text-align: center;
    }

    .imgSliderTextContainer {
        width: 100%;
        left: 0;
        bottom: 22%;
    }

    .imgSliderBtn {
        margin: 0 auto !important;
        padding: 5px 15px;
    }

    .imgSliderPrev {
        left: 3%;
        font-size: 25px;
    }

    .imgSliderNext {
        font-size: 25px;
        right: 3%;
    }
}

@media only screen and (max-width: 370px) {
    .imgSliderSlider {
        height: 40vw;
    }

    .imgSliderTextContainer {
        bottom: 14%;
    }

    .imgSliderNext,
    .imgSliderPrev {
        display: none;
    }
}

.imgSliderPrev:hover,
.imgSliderNext:hover {
    cursor: pointer;
}

.imgSliderDotContainer {
    position: absolute;
    width: 100%;
    margin: 0 auto;
    bottom: 4%;
    display: block;
}

.imgSliderDotContainer>ul {
    list-style: none;
}

.imgSliderDotContainer>ul>li {
    display: inline;
}

.imgSliderDot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    display: inline-block;
    border: 2px solid var(--white);
    transition: background-color 0.6s ease;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

@media only screen and (max-width: 950px) {
    .imgSliderDotContainer {
        bottom: 8%;
    }
}

@media only screen and (max-width: 600px) {
    .imgSliderDot {
        height: 9px;
        width: 9px;
    }

    .imgSliderDotContainer {
        bottom: 5%;
    }
}

@media only screen and (max-width: 520px) {
    .imgSliderDotContainer {
        display: none;
    }
}

.imgSliderDot:hover {
    cursor: pointer;
}

.activeSlide {
    display: block;
}

.active {
    background-color: var(--white);
}

@-webkit-keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}






/* 
---------- HOME PAGE ---------- 
*/
.home-welcome {
    padding: 0 0 50px 0;
}

.home-featured-items {
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

.home-featured-items .grid-item-text {
    color: var(--dark-blue);
}

.home-featured-items .grid-item-img {
    width: auto;
    margin-bottom: 15px;
}

.home-blog {
    text-align: center;
}

.home-blog .grid-3 {
    margin-bottom: 35px;
}

@media screen and (max-width: 680px) {
    .home-welcome {
        padding-top: 40px;
        text-align: center;
    }
}



/* 
---------- SERVICES PAGE ---------- 
*/
.services {
    padding: 50px 20px 0 20px;
}

.services .grid-item {
    border: 2px solid var(--light-blue);
    border-radius: 4px;
    padding: 10px 25px 5px 25px;
    text-align: center;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.services .grid-3 {
    margin-bottom: 35px;
}

.services .grid-3 small {
    display: block;
}

.grid-item-code {
    font-weight: 500;
}


/* 
---------- BLOG PAGE ---------- 
*/
.blog {
    padding: 50px 0;
}



/* 
---------- ABOUT PAGE ---------- 
*/




/* 
---------- CONTACT PAGE ---------- 
*/
.contact {
    padding: 75px 0 0 0;
}

.contact .wpforms-field-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
    justify-content: space-between;
}

.wpforms-field-label {
    text-align: left;
    padding: 0 0 3px 5px;
    font-weight: 600 !important;
    font-size: 0.8em;
}

.wpforms-field-description {
    text-align: left;
}

.wpforms-field input {
    background-color: #E9E9E9;
    height: 40px;
    border: 0;
    padding: 0 10px;
}

.wpforms-field textarea {
    background-color: #E9E9E9;
    border: 0;
    padding: 10px;
}

.input-half {
    margin: 0 0 0 5px;
    color: #000000;
    width: 49%;
}

.input-full {
    margin: 0 0 0 5px;
    color: #000000;
    width: 100%;
}

.contact-form-btn {
    width: 200px;
    margin-top: 50px;
    background-color: var(--light-blue);
    text-align: center;
    padding: 12px;
    color: var(--white);
    border: none;
    display: block;
    margin: 25px auto 0 auto;
    font-weight: bold;
}

.contact-form-wrapper .wpforms-container .wpforms-field {
    padding: 8px 0;
}

@media screen and (max-width: 860px) {
    .input-half {
        width: 47%;
    }
}

@media screen and (max-width: 680px) {
    .input-half {
        width: 100%;
    }
}


/* 
---------- TEAM PAGE ----------
*/
.team h1 {
    margin: 50px 0;
}

.team .grid-2 {
    margin-bottom: 75px;
}


/* 
---------- INGREDIENT PAGE ----------
*/
.ingredients h1 {
    margin: 50px 0;
}

.ingredients p.has-text-align-center {
    margin: 5px 0;
}


/* 
---------- RESEARCH PAGE ----------
*/
.research-section {
    display: grid;
    grid-template-columns: 50% 50%;
}

.research-text {
    padding: 20px 30px;
}

.research.page-text {
    padding: 75px 15px 50px 15px;
}

p.research.x-large {
    color: #ffffff;
    font-weight: 600;
}

@media screen and (max-width: 860px) {
    .research-section {
        grid-template-columns: 80%;
        justify-content: center;
    }

    .research-text {
        grid-row-start: 2;
        padding: 20px 5px;
    }
}

@media screen and (max-width: 500px) {
    .research-section {
        grid-template-columns: 95%;
    }
}



/* ------ FAQ ------ */
details {
    margin: 10px 0 20px;
}

details p {
    padding: 0 20px;
}

summary {
    padding: 10px 0;
    background-color: #e8e6e6;
    border-radius: 5px;
}

summary:focus {
    outline: none;
}