/*
Theme Name: Vision Business
Author: Zoan
Author URI: https://zoan.fr
Description: Lightweight and eco-friendly theme for WordPress.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: starter
Text Domain: visionbusiness
*/

:root {
    --vb-global-color-primary: #006533;
    --vb-global-color-secondary: #2fac66;
    --vb-global-color-text: #0c3765;
    --vb-global-color-accent: #a1f8bc;
    --vb-global-color-bg1: #f5f2f2;
    --vb-global-color-bg2: #165425;
    --vb-global-color-pink: #f8b9f6;
}

::selection {
    background-color: black;
    color: white;
}

:where(figure) {
    margin: 0;
}

* {
    box-sizing: border-box;
    transition: all 0.3s;
}

body {
    margin: 0;
    font-family: "Noto Sans Myanmar", Sans-serif;
    font-size: 20px;
    line-height: 1.4em;
    font-weight: 200;
    overflow-x: hidden;
    color: var(--vb-global-color-text);
}

a {
    color: var(--vb-global-color-text);
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
        color: #ffffff;
        background-color: var(--vb-global-color-primary);
    }
    a {
        color: var(--vb-global-color-accent);
    }
}

@font-face {
    font-family: "Noto Sans Myanmar";
    font-style: normal;
    font-weight: 200;
    font-display: auto;
    src: url("/content/themes/visionbusiness/fonts/NotoSansMyanmar-Regular.woff2")
        format("woff2");
}

@font-face {
    font-family: "Noto Sans Myanmar";
    font-style: normal;
    font-weight: 800;
    font-display: auto;
    src: url("/content/themes/visionbusiness/fonts/NotoSansMyanmar-ExtraBold.woff2")
        format("woff2");
}

h1 {
    font-size: 34px;
    line-height: 1.2em;
}

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

.container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1030px) {
    h1 {
        font-size: 52px;
    }
    .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/** Gutenberg **/

body .is-layout-flex {
    display: flex;
    flex-direction: column;
}

body .is-layout-grid {
    display: grid;
}

.has-text-align-center {
    text-align: center;
}

.wp-block-heading {
    line-height: 1.2em;
}

.wp-block-columns {
    align-items: stretch;
    gap: 20px;
}

.wp-block-column {
    flex-basis: 100%;
    align-content: center;
}

.wp-block-buttons {
    width: 100%;
    justify-content: center;
}

.wp-block-button {
    text-align: center;
}

.wp-block-button__link,
.wp-block-navigation-item__content {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: var(--vb-global-color-primary);
    border-style: solid;
    border-width: 2px;
    border-color: var(--vb-global-color-primary);
    background-color: transparent;
    padding: 8px 12px;
    display: inline-block;
}

.wp-block-button__link:hover,
.wp-block-navigation-item__content:hover {
    background-color: var(--vb-global-color-primary);
    color: white;
}

@media (min-width: 1030px) {
    .wp-block-button__link,
    .wp-block-navigation-item__content {
        font-size: 22px;
        padding: 12px 24px 8px 24px;
    }
}

/** Content **/

section {
    padding: 40px;
}

@media (min-width: 1030px) {
    section {
        padding: 40px calc((100vw - 1140px) / 2);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    background: #000;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    background: none;
    border: none;
    font-size: 60px;
    line-height: 40px;
    cursor: pointer;
}

.modal video {
    width: auto;
    height: 90vh;
}

.play-btn svg {
    fill: white;
}

/** Header **/

html.menu-opened {
    overflow: hidden;
}

header[role="banner"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    background-color: white;
}

@media (prefers-color-scheme: dark) {
    header[role="banner"] {
        background-color: var(--vb-global-color-primary);
    }
}

header[role="banner"] > a {
    margin: 40px 0 0 40px;
}

@media (min-width: 1030px) {
    .menu-opened header[role="banner"] {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 100;
    }
    .menu-opened main {
        padding-top: 176px;
    }
}

header[role="banner"] .logo,
footer[role="contentinfo"] .logo {
    height: 72px;
    width: 240px;
}

header[role="banner"] .logo {
    position: relative;
    z-index: 10;
}

header[role="banner"] .logo,
header[role="banner"] .logo path {
    transition: all 0.5s;
    opacity: 1;
}

header[role="banner"] .logo .color-1 {
    fill: var(--vb-global-color-secondary);
}

header[role="banner"] .logo .color-2 {
    fill: var(--vb-global-color-primary);
}

#menu-toggle {
    fill: var(--vb-global-color-primary);
    width: 35px;
    height: 35px;
    margin: 40px 40px 0 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

@media (prefers-color-scheme: dark) {
    header[role="banner"] .logo .color-1 {
        fill: white;
    }
    header[role="banner"] .logo .color-2 {
        fill: var(--vb-global-color-secondary);
    }
    #menu-toggle {
        fill: #ffffff;
    }
}

.menu-opened #menu-toggle g > path:first-child {
    opacity: 0;
}
.menu-opened #menu-toggle g > path:nth-child(2) {
    transform: rotate(45deg) translate(15px, -17px);
}
.menu-opened #menu-toggle g > path:last-child {
    transform: rotate(-45deg) translate(-32px, 0);
}
.menu-opened #menu-toggle path {
    fill: var(--vb-global-color-secondary);
}

.menu-opened header[role="banner"] .logo .color-1 {
    fill: white;
}

.menu-opened header[role="banner"] .logo .color-2 {
    fill: var(--vb-global-color-secondary);
}

@media (min-width: 1280px) {
    body .is-layout-flex {
        flex-direction: row;
    }
    header[role="banner"] .logo,
    footer[role="contentinfo"] .logo {
        height: 90px;
        width: 300px;
    }
}

#main-menu {
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: all 0.3s;
    visibility: hidden;
    opacity: 0;
    background: linear-gradient(
        -45deg,
        var(--vb-global-color-text),
        var(--vb-global-color-primary),
        var(--vb-global-color-text),
        var(--vb-global-color-primary)
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.menu-opened #main-menu {
    pointer-events: all;
    visibility: visible;
    opacity: 1;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#main-menu ul,
#footer-menu ul {
    margin: 0;
    padding: 0;
}

#main-menu ul li,
#footer-menu ul li {
    list-style: none;
    display: flex;
    justify-content: center;
    transition: all 0.8s ease;
}

#main-menu ul li {
    transform: translateX(-100px);
    opacity: 0;
}

#main-menu ul li a,
#footer-menu ul li a {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2em;
    text-transform: uppercase;
    padding: 10px 0;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

@media (min-width: 1030px) {
    #main-menu ul li a {
        font-size: 64px;
        padding: 0;
    }
}

#main-menu ul li a:hover,
#footer-menu ul li a:hover {
    color: var(--vb-global-color-secondary);
}

.menu-opened #main-menu ul li {
    transform: translateX(0);
    opacity: 1;
    margin: 20px 0;
}

.menu-opened #main-menu ul li:nth-child(2) {
    transition-delay: 200ms;
}
.menu-opened #main-menu ul li:nth-child(3) {
    transition-delay: 400ms;
}
.menu-opened #main-menu ul li:nth-child(4) {
    transition-delay: 600ms;
}
.menu-opened #main-menu ul li:nth-child(5) {
    transition-delay: 800ms;
}

footer[role="contentinfo"] {
    flex-wrap: wrap;
    padding: 0;
    background-color: white;
}

footer[role="contentinfo"] > .container {
    flex-direction: column;
    margin-top: 40px;
}

#footer-menu ul li {
    list-style: none;
}

footer[role="contentinfo"] p,
footer[role="contentinfo"] p a {
    text-align: center;
    font-size: 22px;
    font-weight: 200;
    line-height: 1.2em;
    color: #ffffff;
    text-decoration: none;
}

footer[role="contentinfo"] .logo {
    margin-bottom: 20px;
}

footer[role="contentinfo"] .logo .color-1 {
    fill: var(--vb-global-color-secondary);
}
footer[role="contentinfo"] .logo .color-2 {
    fill: var(--vb-global-color-primary);
}

.social-links,
.footer-menu {
    margin: 0;
    padding: 20px;
    list-style: none;
}

.social-links li {
    text-align: center;
}

.social-links a {
    color: #ff00ff;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover,
.social-links li:first-child a:hover,
.social-links li:last-child a:hover,
.footer-menu a:hover {
    color: var(--vb-global-color-accent);
}

.social-links li:first-child a {
    color: var(--vb-global-color-secondary);
}
.social-links li:last-child a {
    color: #0ea7f8;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 200;
    background-color: var(--vb-global-color-secondary);
    width: 100%;
}

.footer-menu li {
    padding: 10px 0;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

footer[role="contentinfo"] .ecoindex {
    padding: 0 80px 40px 80px;
    background-color: var(--vb-global-color-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (prefers-color-scheme: dark) {
    footer[role="contentinfo"] {
        background-color: var(--vb-global-color-primary);
    }
    footer[role="contentinfo"] .logo .color-1 {
        fill: white;
    }
    footer[role="contentinfo"] .logo .color-2 {
        fill: var(--vb-global-color-secondary);
    }
}

@media (max-width: 1029px) {
    footer[role="contentinfo"] .ecoindex {
        width: 100%;
    }
}

@media (min-width: 1030px) {
    footer[role="contentinfo"] {
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
    }
    footer[role="contentinfo"] > .container {
        align-items: flex-end;
        margin-top: 0;
    }
    #footer-menu ul li a {
        font-size: 43px;
    }
    footer[role="contentinfo"] p,
    footer[role="contentinfo"] p a {
        text-align: right;
    }
    footer[role="contentinfo"] .logo {
        margin: 0 40px;
        align-self: center;
    }
    footer[role="contentinfo"] .ecoindex {
        padding: 40px 80px;
    }
    #footer-menu ul li {
        justify-content: flex-start;
    }
    .social-links li {
        text-align: right;
    }
    .footer-menu {
        flex-direction: row;
        justify-content: flex-start;
        padding: 40px 80px;
    }
    .footer-menu li:not(:last-child)::after {
        content: "|";
        margin: 0 10px;
    }
}
