/*
Theme Name: PSE - fautech
Theme URI: https://what-the-phuc.com
Author: Phuc Le
Author URI: https://phuc.at
Description: Custom fautech Theme
Requires at least: 6.1
Tested up to: 6.2
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: fautech
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news
*/

/*------------------------------------*\

    Styles intended only for the front.

\*------------------------------------*/

:root {
	--wp--style--global--content-size: 85rem;
	--wp--style--global--wide-size:  90.125rem;
}

@media (min-width: 1500px) {
	html {
		font-size: clamp(100%, 1vw ,300%);
	}
}

html {
    scroll-behavior: smooth;
	/*scroll-padding-top: var(--wp--preset--spacing--20);*/
}

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

[style*="text-decoration"] * {
text-decoration: inherit;
}

@media (min-width: 782px) {
	.has-global-padding {
		--wp--style--root--padding-left: var(--wp--preset--spacing--40);
		--wp--style--root--padding-right: var(--wp--preset--spacing--40);
	}
	
	.cover-custom {
		padding-left: var(--wp--preset--spacing--40) !important;
		padding-right: var(--wp--preset--spacing--40) !important;
	}
}




/*------------------------------------*\
   Header Sidebar Fix
\*------------------------------------*/
.header {
    z-index: 9999;
	transition: background .3s ease-in-out, border .3s ease-in-out;
	border-bottom: 1px solid transparent;
}

.header--sticky {
    position: sticky;
    top: 0;
}

.wrapfixed .header {
	border-bottom: 1px solid !important;
	background-color: rgba(255,255,255,1) !important;
}

.wrapfixed {
	height: initial !important;
}

/*
#mysticky-nav.wrapfixed .myfixed {
	width: 100% !important;
}*/

/*------------------------------------*\
   HEADER
\*------------------------------------*/
.header--absolute {
    position: absolute;
    z-index: 8888;
    width: 100%;
}

.header--fixed {
    position: fixed;
    width: 100% !important;
}

@media (max-width: 781px) {
	.footer--center-mobile {
		text-align: center;
	}
}

.wp-block-navigation__responsive-container-open  {
	margin-left: auto !important;
}
/*------------------------------------*\
   LAYOUT BORDER
\*------------------------------------*/
.layout--border::before,
.layout--border::after {
    content: '';
    position: fixed;
    z-index: 9999;
    left: 0;
    right: 0;
    /* set to same color as background color */
    background-color: var(--wp--preset--color--white);
    height: var(--wp--preset--spacing--20);
}

.layout--border::before {
    top: 0;
}

.layout--border::after {
    bottom: 0;
}

.layout--border .header {
    width: calc(100% - var(--wp--preset--spacing--20) * 2);
}

/*------------------------------------*\
   MEDIA TEXT
\*------------------------------------*/
.wp-block-media-text__content,
.wp-block-media-text>.wp-block-media-text__content {
	padding: initial;
}

.wp-block-media-text,
.wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 1fr;
}

/*------------------------------------*\
	COVER
\*------------------------------------*/
.is-style-reveal .wp-block-cover__inner-container > *:not(.reveal-content) {
	transition: opacity .3s ease-in-out;
}

.is-style-reveal .wp-block-cover__background {
	transition: opacity .3s ease-in-out;
}

.is-style-reveal .reveal-content {
	transition: opacity .3s ease-in-out;
}


.is-style-reveal .wp-block-cover__inner-container {
	display: grid;
	place-items: center;
}

.is-style-reveal .wp-block-cover__inner-container > * {
	grid-row: 1 / 1;
	grid-column: 1 / 1;
}


.is-style-reveal .reveal-content {
	opacity: 0;
	transform: translateX(200%);
}

/* HOVER */
/*.is-style-reveal:hover .wp-block-cover__inner-container > *:not(.reveal-content),*/
.is-style-reveal.selected .wp-block-cover__inner-container > *:not(.reveal-content){
	opacity: 0;
	transform: translateX(-200%);
}

/*.is-style-reveal:hover .wp-block-cover__background,*/
.is-style-reveal.selected .wp-block-cover__background {
	opacity: .95 !important;
}

/*.is-style-reveal:hover .reveal-content,*/
.is-style-reveal.selected .reveal-content {
	opacity: 1;
	transform: translateX(0);
}

/*.is-style-reveal:hover,*/
.is-style-reveal.selected {
	justify-content: flex-start;
	align-items: flex-start;
}

.is-style-reveal.selected  * {
	pointer-events: none;
}

/*------------------------------------*\
	MOBILE NAV
\*------------------------------------*/
@media (max-width: 600px) {
	.header .wp-block-navigation__responsive-container {
		padding: 0 !important;
	}
	
	.header .wp-block-navigation-item {
		border-bottom: 1px solid var(--wp--preset--color--black);
		padding: var(--wp--preset--spacing--20) !important;
		margin: 0 !important;
	}
	
	.header .wp-block-navigation__responsive-container-close {
		padding: var(--wp--preset--spacing--20);
	}
	
	.header .wp-block-navigation__container {
		border-top: 1px solid var(--wp--preset--color--black);
	}

	.header .wp-block-navigation__container {
		gap: 0 !important;
	}
	
	.header .reverse-direction-mobile {
		flex-direction: row-reverse;
		justify-content: flex-start;
	}
}

.logo-position {
	position: relative;
	z-index: 9999999;
}

/*------------------------------------*\
	MODAL OVERLAY
\*------------------------------------*/
dialog {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	max-width: initial !important;
	overflow: auto;
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	border: none;
	padding: 0;
	max-height: none;
	
	animation: slide-out .6s forwards;
}

dialog[open] {
	animation: slide-in .6s forwards;
}

@keyframes slide-in {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translate(0%);
    }
}

@keyframes slide-out {
    0% {
        transform: translateX(0%);
        display: block;
    }
    100% {
        transform: translate(100%);
        display: none;
    }
}

.tab {
  min-height: 100%;
}

.tab__contentcontainer {
  	display: flex;
  	flex-direction: column;
	margin: var(--wp--preset--spacing--20);
	border-bottom: 1px solid white;
}

@media (min-width: 782px) {
	.tab {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	
	.tab__contentcontainer {
		margin: var(--wp--preset--spacing--40);
	}
}

/* hide RADIO Inputs */
.tab__input {
  display: none;
}



/* IMAGES */
.tab__images {
  position: relative;
  min-height: calc(33vh);
}

.tab__image {
  opacity: 0; 
  transition: opacity .3s ease-in-out;
}

.tab__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.tab__content {
  transition: .3s ease-in-out;
	border-top: 1px solid;
}

.tab__icon {
	transition: .3s ease-in-out;
}

.tab__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tab__description {
  opacity: 0;
  height: 0;
  overflow: hidden;
  
  transition: opacity .3s .3s ease-in-out;
}

.closeDialog {
	text-align: right;
	cursor: pointer;
	margin-bottom: var(--wp--preset--spacing--20);
	margin-right: calc(var(--wp--preset--spacing--10));
}

@media (min-width: 782px) {
	.closeDialog {
		margin-right: calc(var(--wp--preset--spacing--10) / 2);
	}
}

.openDialog, 
.tab__title {
	cursor: pointer;
}
/*------------------------------------*\
	QUOTE
\*------------------------------------*/
.wp-block-quote {
	margin-left: initial;
	margin-right: initial;
}

/*------------------------------------*\
	GROUP - GRID
\*------------------------------------*/
@media (min-width: 782px) {
	/* 1-3 */
	.wp-block-group.is-style-1-3.is-layout-grid {
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: 1fr auto;
	}
	
	.wp-block-group.is-style-1-3.is-layout-grid .wp-block-heading {

	}
	
	.wp-block-group.is-style-1-3.is-layout-grid img {
		max-width: none;
		width: 100%;
	}
	
	.wp-block-group.is-style-1-3.is-layout-grid .wp-block-image{
		grid-column: 2 / span 2;
		grid-row: span 2;
	}
	
	/* overlay */
	.wp-block-group.is-style-overlay.is-layout-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 1fr auto;
	}

	.wp-block-group.is-style-overlay.is-layout-grid .wp-block-cover {
		grid-row: 1 / span 3;
		grid-column: 1;
	}

	.wp-block-group.is-style-overlay.is-layout-grid .wp-block-heading {
		grid-column: 2;
	}

	.wp-block-group.is-style-overlay.is-layout-grid .description {
		grid-column: 2;
	}
	.wp-block-group.is-style-overlay.is-layout-grid .wp-block-group {
		grid-column: 2;
	}
	
	/* half */
	.wp-block-group.is-style-half.is-layout-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr auto;
	}
	
	.wp-block-group.is-style-half.is-layout-grid .wp-block-heading {

	}
	
	.wp-block-group.is-style-half.is-layout-grid .grid-image {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/*------------------------------------*\
	FORM
\*------------------------------------*/
.gform-theme--foundation .gform_fields {
	--gf-form-gap-y: var(--wp--preset--spacing--20);
}

.gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].button.gform-button--width-full, .gform-theme--foundation .gform_footer input[type=submit][id*=gform_submit_button_].button.gform-button--width-full {
	text-align: left;
}


/*------------------------------------*\
	TRANSLATEPRESS
\*------------------------------------*/
.trp-ls-shortcode-current-language,
.trp-ls-shortcode-disabled-language{
	display: none;
}

.trp-ls-shortcode-language {
	display: block !important;	

}

.trp-ls-shortcode-language a {
	text-decoration: none;
}


/* NAV HOVER */
.wp-block-navigation-item__content:hover {
	text-decoration: none;
}

/* NAV ICON DOWN HERO */

@media (min-aspect-ratio: 16 / 10) {
	.custom-icon-down {
		position: fixed;
		z-index: 9999;
		left: 50%;
		bottom: 0;
		transform: translate(-50%, calc(-100% - 1rem));
		transition: opacity .3s;

	}
}

@media (max-aspect-ratio: 16 / 10) {
	.custom-icon-down {
		display: none;
	}
	

}

@media (min-width: 1025px) {
	.generation-height {
		min-height: 100vh;
	}
}

.wrapfixed .custom-icon-down {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 600px) {
	.custom-icon-down {
		transform: translateY(calc(-100% - .5rem));
	}
	
	.custom-icon-down .icon-container {
		width: calc(34px / 2) !important;
	}
	
	.closeDialog svg {
		width: 16px;
	}
}


.gfield--type-consent {
	align-self: center;
}


.modalopen-icon {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.relative {
	position: relative;
}


.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open {
	bottom: initial !important;
}


