/**
 * Theme Name:        Ecogoods
 * Description:       Ecogoods theme...
 * Version:           1.0.0
 * Author:            Vyacheslav Melnikov
 * Text Domain:       ecogoods
 * Tested up to:      6.9
 * Requires at least: 6.9
 * Requires PHP:      8.0
 * License:           GNU General Public License v2.0 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 */

:root {
    --spacing-x: 10%;
    --spacing-y: 40px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
}

.pll-switcher-select {
	border-radius: 12px;
    padding: 0.4rem;
    border: 1px solid #dedede;
}

.wp-block-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.m-width-740 {
	max-width: 740px;
}

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    padding: var(--spacing-y) var(--spacing-x);
}

.content-area {
    width: 100%;
}

.site-main {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

.site-header {
    margin: 0 var(--spacing-x);
    padding: 10px 0;
}

.desktop-header {
    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #dedede;
}

.mobile-header {
    display: none;
    flex-direction: row;
    justify-content: end;
}

.header-logo-wrapper {
    width: 128px;
    height: 128px;
    grid-column: 1;
    display: block;
}

.contact-info {
    display: flex;
    gap: 40px;
    align-items: center;
    grid-column: 3;
    justify-self: end;
}

.contact-info-email {
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.nav {
    width: 100%;
    padding: 0 var(--spacing-x);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    overscroll-behavior: none;
    overflow: hidden;
    overflow-y: hidden;
}

.nav-list {
    padding: 0;
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.nav-list-item {
    list-style: none;
}

.nav-list-item-link {
    margin-top: 0;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
}

.site-footer {
    width: 100%;
    padding: var(--spacing-y) var(--spacing-x);
    background-color: #000;
    margin-top: auto;
}

.site-info-text {
    color: #fff;
    font-weight: bold;
    font-size: 22px;
}

/**
Nav Styles
**/

.nav-wrapper {
    position: relative;
    overflow: hidden;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
}
nav a {
    position: relative;
    text-decoration: none;
    color: #000;
    font-size: 2em;
    display: inline-block;
    margin-top: 1.25em;
    transition: color 0.2s ease-in-out;
    letter-spacing: 1px;
}

/**
Animations
**/
#toggle:checked + .hamburger .top-bun {
    transform: rotate(-45deg);
    margin-top: 25px;
}
#toggle:checked + .hamburger .bottom-bun {
    opacity: 0;
    transform: rotate(45deg);
}
#toggle:checked + .hamburger .meat {
    transform: rotate(45deg);
    margin-top: -7px;
}

#toggle:checked + .hamburger + .nav {
    top: 0;
    opacity: 1;
}

#toggle:checked + .hamburger div {
    background-color: #000;
}

#toggle:checked + .hamburger {
    position: fixed;
}

#toggle {
    display: none;
}

/**
  Hamburger
**/
.hamburger {
    z-index: 5;
}

.hamburger div {
    position: relative;
    width: 3em;
    height: 7px;
    border-radius: 3px;
    background-color: #fff;
    margin-top: 8px;
    transition: all 0.3s ease-in-out;
}

/**
  Tables
 */

table,
th,
td {
    border: 1px solid #eaeaea;
    border: 1px solid rgba(51, 51, 51, 0.1);
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    border-width: 1px;
    margin: 0 0 1.6em;
    table-layout: fixed; /* Prevents HTML tables from becoming too wide */
    width: 100%;
    max-width: 740px;
}

tbody tr:first-child td {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #000;
}

tr:nth-child(even) {
    background-color: #eee;
}

caption,
th,
td {
    font-weight: normal;
    text-align: left;
}

th {
    border-width: 0 1px 1px 0;
    font-weight: 700;
}

td {
    border-width: 0 1px 1px 0;
}

th, td {
    padding: 20px;
}

/**
Text utils
 */

.t-medium {
    font-size: 20px;
    line-height: 1.55;
}

p {
    font-size: 20px;
    line-height: 1.55;
    max-width: 740px;
}

@media (max-width: 1200px) {
    .t-medium {
        font-size: 18px;
    }
    p {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .header-logo-wrapper {
        grid-column: 1;
    }
}

@media (max-width: 1024px) {
    .header-logo-wrapper {
        grid-column: 1;
    }
}

@media (min-width: 768px) {
    .site-header {
        padding: 0;
    }
    .desktop-header {
        overflow: hidden;
        height: 175px;
    }
    .header-logo-wrapper {
        position: relative;
        grid-column: 2;
        justify-self: center;
        width: 250px;
    }

    .header-logo {
        width: 250px;
        height: 250px;
        position: absolute;
        bottom: -115px;
        left: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        margin: initial;
        padding: 25px var(--spacing-x);
        background-color: #000;
    }
    .desktop-header {
        display: none;
    }
    .mobile-header {
        display: flex;
    }

    .nav {
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: #fff;
        top: -100%;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }
}

@media (max-width: 640px) {
    .t-medium {
        font-size: 16px;
        line-height: 1.45;
    }
    p {
        font-size: 16px;
        line-height: 1.45;
    }
}
