/*
Theme Name: Oligofeed Theme
Template: Tres
Description: Tres Child Theme.
Text Domain: oligofeed
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700;800&family=Arvo:wght@400;700&family=Playfair+Display:wght@600;700;800&family=Source+Sans+Pro:wght@400;700&display=swap');

:root {
    --color-primary-800: #F18B2B;
    --color-primary-300: #FFC700;
    --color-primary-200: #FFDC4F;
    --color-tertiary-800: #0F760D;
    --color-tertiary-600: #62981B;
    --color-basic-1000: #160D3C;
    --color-basic-600: #47415B;
    --color-basic-400: #888399;
    --color-basic-100: #EEEFFB;
    --color-basic-000: #FFFDFA;
}

body {
    background-color: var(--color-basic-000);
    color: var(--color-basic-1000);
}

header .responsive-logo {
    left: 45px;
    width: auto;
}

header .responsive-logo img {
    max-height: 38px;
}

@media only screen and (max-width: 768px) {
    header .menu-icon {
        right: 45px;
    }
}

header > nav > ul li a {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

header:not(.showNav).position-absolute > nav > ul > li > a,
.page-cover .head h1,
.page-cover .head p,
.custom-section p {
    color: var(--color-basic-000);
}

header .logo img {
    max-height: 60px;
    height: 60px;
}

header.showNav {
    z-index: 1000;
}

.button {
    text-align: center;
}

.heading {
    width: 100%;
    padding: 50px 48px 24px;
    margin: 0 auto;
    max-width: 1180px;

    color: var(--color-basic-1000);

    text-align: left;
}

.heading h1 {
    margin: 0 0 12px;
    padding: 0;
    color: inherit;

    font-size: 52px;
    line-height: 64px;
    font-family: 'Arvo', serif !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.heading p {
    color: inherit;

    font-family: 'Open Sans', sans-serif !important;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.heading h1::before,
.heading h1::after {
    display: none;
}


.text-block blockquote {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 48px;

    border-radius: 16px 0px 48px;
    background: var(--color-tertiary-800);
}

.text-block blockquote p {
    color: var(--color-basic-000);

    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0.005em;
}

.text-block blockquote p:last-child {
    margin-bottom: 0;
}

.screen-reader-text {
    display: none;
}


.page-cover .head h1,
.text-block h2,
.text-block .h2,
.text-block h3,
.text-block .h3,
.text-block h4,
.text-block .h4,
.custom-section .big-text,
.image-box span,
.contact-form__header,
.contact-form__message-title,
.news-archive__header-h,
.error404-contents__h {
    font-family: 'Arvo', serif !important;
}

/* p1 */
.p1,
.text-block blockquote,
.news-archive__header-p {
    font-size: 24px;
    line-height: 32px;
}

/* p2 */
.p2,
.text-block p,
.accordion p,
.container-boxed > .column .text-block,
.accordion .inner-content,
.accordion h3,
.error404-contents__p {
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.02em;
}

/* h1 */
.h1,
.h2,
.page-cover .head h1,
.text-block h2,
.text-block .h2,
.news-archive__header-h,
.error404-contents__h {
    font-weight: 700;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 0.01em;
}

.page-cover .head h1 {
    margin-bottom: 20px;
}

.page-cover .head h1::after,
.error404-contents__h::after {
    content: "";

    display: block;
    width: 22px;
    height: 24px;
    margin: 20px auto 0;

    background: url("assets/images/hive.svg") no-repeat center;
}

/* h3 */
.h3,
.text-block h3,
.text-block .h3 {
    font-weight: 400;
    font-size: 42px;
    line-height: 52px;
    letter-spacing: 0.02em;
}

/* h4 */
.h4,
.custom-section .big-text p,
.text-block .h4,
.contact-form__header {
    font-size: 36px;
    line-height: 48px;
    letter-spacing: 0.01em;
    font-weight: 700;
}

/* h5 */
.h5,
.image-box span,
.text-block .h5,
.contact-form__message-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;;
    letter-spacing: -0.01em;
}

.image-box .text {
    display: none !important;
}

.text-block .h4 {
    margin-bottom: 12px;
}

.text-block .green {
    color: var(--color-tertiary-800);
}

.text-block p {
    margin: 0 0 12px;
}

.page-cover .head p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.icon-box .title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.icon-box .text {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.005em;
    font-weight: 300;
}

.team-members .member .name {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.team-members .member .title {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.accordion h3 {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.01em;
    font-weight: 700;
    font-family: 'Lato', sans-serif !important;
}

.accordion p {
    margin-bottom: 12px;
}

/*
 * Ugly grid fix
 */

.container-boxed > .column figure {
    max-width: none !important;
}

.container-boxed > .column .text-block {
    font-weight: 400;
}

.container-boxed > .column .text-block ul,
.container-boxed > .column .text-block ol {
    padding-left: 1em;
}

.container-boxed > .column .text-block ul,
.container-boxed > .column .text-block ol,
.container-boxed > .column .text-block li,
.container-boxed > .column .text-block p {
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}

.container-boxed > .column .text-block p,
.container-boxed > .column .text-block ul,
.container-boxed > .column .text-block ol {
    margin-bottom: 16px;
}

.container-boxed > .column .text-block p:last-child,
.container-boxed > .column .text-block ul:last-child,
.container-boxed > .column .text-block p:last-child {
    margin-bottom: 0;
}

.custom-section {
    padding: 80px 20px;
}

.custom-section .big-text {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.accordion h3 {
    position: relative;
    padding: 12px 24px 12px 58px;

    color: var(--color-basic-600);
    background-color: var(--color-primary-200);
    border-radius: 16px 0 0 0;

    font-weight: 600;
}

.accordion h3::before {
    content: "";

    position: absolute;
    top: 12px;
    left: 25px;

    width: 22px;
    height: 24px;

    background: url("assets/images/hive-accordion.svg") no-repeat center;
    transition: transform .2s;
}

.accordion .tab {
    margin-bottom: 6px;
}

.accordion .active h3::before {
    transform: rotate(30deg);
}

.accordion .content {
    color: var(--color-basic-600);
    background-color: #FEF1AC;
    border-radius: 0 0 32px 0;

    font-weight: 400;
}

.accordion .inner-content {
    padding: 12px 24px 16px;
}

.accordion .inner-content p {
    color: inherit;

    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}


.image-box img {
    width: auto;
    max-width: 100%;
    margin: 0 auto 14px;
}

.image-box span {
    display: block;
    text-align: center;
    margin: 0;
}

@media only screen and (max-width: 920px) {
    .page-cover:not(.relative) .inner-wrapper {
        width: 80%;
    }
}

@media only screen and (max-width: 768px) {
    .container-boxed {
        display: flex;
        flex-direction: column;
        width: 93%;
    }

    .container-boxed > .column {
        margin-bottom: 15px !important;
        order: 2;
    }

    .container-boxed > .column:has(figure) {
        order: 1;
    }

    .container-boxed > .column img {
        display: block;
        width: 100%;
        max-height: 100vh;
        object-fit: contain;
        object-position: center;
    }

    .container-boxed > .column {
        display: flex;
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
    }
}

@media only screen and (max-width: 640px) {
    /* p1 */
    .p1,
    .text-block blockquote,
    .news-archive__header-p {
        font-size: 18px;
        line-height: 24px;
    }

    /* p2 */
    .p2,
    .text-block p,
    .accordion p,
    .container-boxed > .column .text-block,
    .accordion .inner-content,
    .accordion h3 {
        font-size: 16px;
        line-height: 20px;
    }

    /* h1 */
    .h1,
    .h2,
    .page-cover .head h1,
    .text-block h2,
    .text-block .h2,
    .news-archive__header-h,
    .error404-contents__h {
        font-size: 36px;
        line-height: 48px;
    }

    /* h3 */
    .h3,
    .text-block h3,
    .text-block .h3 {
        font-size: 28px;
        line-height: 34px;
    }

    /* h4 */
    .h4,
    .custom-section .big-text p,
    .text-block .h4,
    .contact-form__header {
        font-size: 22px;
        line-height: 28px;
    }

    /* h5 */
    .h5,
    .image-box span,
    .text-block .h5 {
        font-size: 18px;
        line-height: 24px;
    }

    .page-cover.half-height {
        padding: 150px 30px 60px;
    }

    .page-cover:not(.relative) .inner-wrapper {
        top: 0;
        left: 0;
        position: relative;
        transform: none;

        max-width: 420px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media only screen and (min-width: 769px) {
    .container-boxed {
        width: 100%;
        display: flex;
        justify-content: stretch;
        align-items: stretch;
    }

    .container-boxed > .column {
        display: flex;
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
    }

    .container-boxed > .column > figure {
        position: static;
    }

    .container-boxed > .column > figure > img {
        position: absolute;
        top: 0;
        left: 48px;

        width: 100%;
        width: calc(100% - 48px);
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    .container-boxed > .column.last > figure > img {
        right: 48px;
        left: auto;
    }

    .container-boxed > .column {
        padding: 3.5% 5%;
    }
}


@media only screen and (min-width: 1281px) {
    header > nav > ul {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 1020px;
        margin: 0 auto;
    }

    header > nav > ul .logo {
        margin-right: auto;
    }

    header:not(.position-absolute) > nav > ul {
        width: 1124px;
    }

    .container-boxed {
        width: 1180px;
    }

    .small-container-boxed {
        width: 1084px;
    }

    .container-boxed > .column {
        padding: 36px 48px;
    }

    /*	.container-boxed > .column.last {
            padding: 36px 48px;
        }*/
    .text-align-right {
        text-align: right;
    }
}


/**
 * Footer and Contact Form
 */
.page-footer {
    height: auto;
    padding: 48px 0;
    margin-top: 50px;

    background-color: var(--color-tertiary-800);
    color: var(--color-basic-000);
}

.page-footer--light {
    margin-top: 20px;
    background-color: var(--color-basic-000);
    color: var(--color-basic-1000);
}

.form-input {
    display: block;
    margin: 0 0 28px;
}

.form-input__label {
    display: block;
    padding: 4px 0;

    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-input__input {
    display: block;
    width: 100%;
    padding: 12px 8px;

    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-bottom: 1px solid var(--input-border);
    border-radius: 16px 0 0 0;
    color: var(--input-color);
    background-color: var(--input-background);

    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    font-family: inherit;

    transition: background 0.2s, color 0.2s;
}

.form-input__input--textarea {
    min-height: 160px;
    resize: vertical;
}

.form-input__input:focus {
    outline: none;
    border-bottom: 1px solid var(--input-focus-border);
    background-color: var(--input-focus-background);
}

.form-input__input::placeholder {
    color: var(--input-placeholder-color, --input-color);
}

.fake-checkbox {
    display: block;
    position: relative;

    width: 24px;
    height: 24px;

    cursor: pointer;
}

.fake-checkbox__input {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    opacity: 0;
}

.fake-checkbox__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);


    width: 18px;
    height: 18px;

    border: 2px solid var(--input-color);
    background-color: var(--input-background);
    border-radius: 4px;

    transition: background 0.2s;
}

.fake-checkbox:has(:focus-visible) .fake-checkbox__icon {
    outline: 5px solid var(--input-focus-background);
}

.fake-checkbox__input:checked + .fake-checkbox__icon {
    background-color: var(--input-color);
}

.fake-checkbox__icon::before,
.fake-checkbox__icon::after {
    content: '';
    position: absolute;

    width: 3px;

    background-color: var(--input-background);
    border-radius: 2px;
}

.fake-checkbox__icon::before {
    left: 7px;
    top: 3px;

    height: 9px;
    transform: rotate(45deg);
}

.fake-checkbox__icon::after {
    left: 3px;
    top: 6px;

    height: 5px;
    transform: rotate(-45deg);
}

.form-checkbox {
    display: flex;
    margin-top: 12px;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.form-checkbox__label {
    user-select: none;

    font-size: 16px;
    line-height: 24px;
}

.form-checkbox__label a {
    text-decoration: underline;
}

.submit-button {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;

    background: var(--submit-background);
    color: var(--submit-color);
    border: none;
    border-radius: 0;
    cursor: pointer;

    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
    font-weight: 800;
    font-family: inherit;

    transition: background 0.2s, color 0.2s;
}

.submit-button:focus-visible {
    outline: 3px solid var(--input-focus-background);
    background: var(--submit-focus-background);
    color: var(--submit-focus-color);
}

@keyframes spinner-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.submit-button__spinner {
    display: none;
    width: 16px;
    height: 16px;

    border-width: 2px;
    border-style: solid;
    border-color: transparent currentColor currentColor currentColor;
    border-radius: 50%;

    animation: spinner-animation 0.8s linear infinite;
}

.loading .submit-button__spinner {
    display: block;
}

.contact-form {
    --input-color: var(--color-basic-000);
    --input-background: var(--color-tertiary-800);
    --input-border: var(--color-basic-000);
    --input-focus-color: var(--color-basic-000);
    --input-focus-background: var(--color-tertiary-600);
    --input-focus-border: var(--color-basic-000);

    --submit-color: var(--color-basic-000);
    --submit-background: var(--color-primary-800);
    --submit-focus-color: var(--color-basic-000);
    --submit-focus-background: var(--color-primary-300);

    --overlay-background: rgba(18, 118, 13, 0.7);

    --header-color: inherit;

    position: relative;
    padding: 20px;
    margin: -20px;
}

.page-footer--light .contact-form {
    --input-color: var(--color-basic-1000);
    --input-background: var(--color-basic-000);
    --input-border: var(--color-basic-400);
    --input-focus-color: var(--color-basic-000);
    --input-focus-background: var(--color-basic-100);
    --input-focus-border: var(--color-basic-400);
    --input-placeholder-color: var(--color-basic-400);

    --submit-color: var(--color-basic-000);
    --submit-background: var(--color-primary-800);
    --submit-focus-color: var(--color-basic-000);
    --submit-focus-background: var(--color-primary-300);

    --overlay-background: rgba(255, 253, 250, 0.7);

    --header-color: var(--color-tertiary-800);
}

.contact-form__header {
    color: var(--header-color);
}

.contact-form__action {
    margin: 24px 0 0;
}

.contact-form__details {
    display: block;
    gap: 24px;
}

.contact-form__message-overlay {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;


    background-color: var(--overlay-background);
    backdrop-filter: blur(4px);

    visibility: hidden;
    opacity: 0;

    text-align: center;

    transition: visibility 0.4s, opacity 0.4s;
}

.has-message .contact-form__message-overlay {
    visibility: visible;
    opacity: 1;
}

.has-error .contact-form__mesage--success {
    display: none !important;
}

.has-success .contact-form__mesage--error {
    display: none !important;
}

.contact-form__message-title {
    margin: 0 0 12px;
}

.contact-form__message-body {
    margin: 0;

    color: var(--text-color);

    font-size: 16px;
    line-height: 24px;
}

.contact-form__message-body p {
    color: inherit;
}

.contact-form__message-close {
    margin-top: 24px;
}


@media only screen and (min-width: 769px) {
    .page-footer {
        margin-top: 100px;
    }

    .page-footer--light {
        margin-top: 50px;
    }

    .contact-form__details {
        display: flex;
        gap: 48px;

        justify-content: stretch;
        align-items: flex-start;
    }

    .contact-form__column--left {
        flex: 0 0 330px;
    }

    .contact-form__column--right {
        flex: 1 0 auto;
    }

    .contact-form__column--left .form-input:not(:last-child) {
        margin-bottom: 38px;
    }
}

/**
 * News
 */
.news-archive {
    margin-top: 0;
    width: 100%;
}

.news-archive__header {
    padding: 24px 0;
}

.news-archive__header-h {
    margin: 0 0 12px;
}

.news-archive__header-p {
    margin: 0 !important;
    color: var(--color-basic-1000);
}

.news-archive__grid {
    list-style-type: none;
    margin: 0;
    padding: 24px 0 0;
    display: grid;

    grid-template-columns: 1fr;
    grid-column-gap: 24px;
    grid-row-gap: 48px;
    grid-auto-rows: minmax(100px, auto);
}

.news-archive__grid-item {
    list-style-type: none !important;
}

.news-item {
    position: relative;

    display: flex;
    width: 100%;

    padding-left: 102px
}

.news-item__logo {
    position: absolute;
    top: 0;
    left: 10px;

    width: 80px;
}

.news-item__logo-img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 6;
    object-fit: contain;
    object-position: center;
}

.news-item__body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-item__header {
    margin: 0 0 4px;
}

.news-item__title {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
}

.news-item__header-date {
    margin: 0;

    color: var(--color-basic-600);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 24px;
}

.news-item__content {
    color: var(--color-basic-1000);
    font-size: 16px;
    line-height: 24px;
}


.news-item__content > * {
    color: inherit;
    margin: 0 0 0.5em;
}

.news-item__read-more {
    display: flex;
    padding: 8px 8px 8px 10px;
    margin-top: 16px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    align-self: flex-end;

    color: var(--color-primary-800);

    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.news-item__read-more-icon {
    stroke: currentColor;
}

@media only screen and (min-width: 769px) {
    .news-archive {
        margin-top: 36px;
    }

    .news-archive__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(287px, auto);
    }

    .news-archive__grid-item {
        display: flex;
        flex-direction: column;
        justify-content: stretch;
    }

    .news-item,
    .news-item__content {
        flex: 1 0 auto;
    }
}

/* 404 */
.fullscreen body {
    height: 100%;
}

.error404 {
    --submit-color: var(--color-basic-000);
    --submit-background: var(--color-primary-800);
    --submit-focus-color: var(--color-basic-000);
    --submit-focus-background: var(--color-primary-300);

    position: relative;
    z-index: 1;

    padding: 120px 0;
    display: flex;
    justify-content: center;
    align-items: center;

    background-size: cover;
    background-position: center;
}

.error404::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: var(--404-overlay);
}

.error404 > footer {
    display: none !important;
}

.error404-contents {
    text-align: center;

    color: var(--404-text-color);
}

.error404-contents p {
    margin: 0;
    color: inherit;
}

.error404-contents__h {
    margin-bottom: 20px;
}

.error404-contents__cta {
    margin-top: 64px;
}

.single-page > .container-boxed {
    padding-top: 0;

    flex-direction: column;
}

.single-page .heading {
    margin: 0;
    padding: 60px 0;
}
