/*
Theme Name: ChampionWorks
Theme URI: https://championworks.com/
Author: Griffon Webstudios Inc.
Author URI: https://griffonwebstudios.com/
Description: A dedicated theme for ChampionWorks website.
Version: 1.0
*/

body{ position: relative; background-color: var(--e-global-color-9fa721a)!important; }

body.error404 h1{
    font-size: 4vw;
    text-align: center;
    margin: 35vh 0;
}

.main-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
}
.imageAnimate{
	overflow: hidden;
	border-radius: 12px;
}
.imageAnimate img{
	animation: img-pan 16s ease-in-out infinite alternate;
}
@keyframes img-pan {
	0% { transform: scale(1.1) translate(10px, 10px); }
	100% { transform: scale(1.3) translate(-10px, -10px); }
}

/* Keep the fixed header below the WP admin toolbar for logged-in users. */
body.admin-bar .main-header {
	top: 32px;
}

h1 span.gold,
h2 span.gold{
	color: var(--e-global-color-secondary) !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .main-header {
		top: 46px;
	}
}

/* ChampionWorks Preloader Styles */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--deep, #0B1F16);
    color: #fff;
    display: grid;
    place-items: center;
    transition: opacity .6s ease, visibility 0s linear .6s;
}
/* Fades out on its own ~2s after it appears (see inc/page-loader.php). */
.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* New wrapper for Logo + Text */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
/* Logo Styles */
.loader-logo {
    max-width: 175px; /* Adjust size as needed */
    height: auto;
    opacity: 0;
    animation: fadeInLogo 1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes fadeInLogo {
    to { opacity: 1; }
}
/* Text Styles */
.loader .t {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: clamp(24px, 3vw, 36px);
    display: flex;
    gap: 15px;
    overflow: hidden;
    font-family: var(--sans, "Inter" sans-serif);
    
    /* Add these two lines to fix the clipping */
    line-height: 36px;
    padding-bottom: 10px; 
}
.loader .t span {
    display: inline-block;
    transform: translateY(120%);
    animation: up 1s cubic-bezier(.16,1,.3,1) 0.3s forwards; /* Slight delay so logo appears first */
}
.loader .t span:nth-child(2) { animation-delay: .38s; }
.loader .t span:nth-child(3) { animation-delay: .46s; }
.loader .t span:nth-child(4) { animation-delay: .54s; }
.loader .t em {
    font-style: normal;
    color: var(--gold, #B8974E);
}
@keyframes up {
    to { transform: none; }
}
/* Loading Bar */
.loader .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: var(--gold, #B8974E);
    width: 0;
    /* Fills just before the loader starts fading at the 2s mark */
    animation: bar 1.7s cubic-bezier(.65,0,.35,1) .2s forwards;
}
@keyframes bar {
    to { width: 100%; }
}
.no-js .loader, .reduce .loader {
    display: none;
}
.contact-us{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-us label{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 14px;
}
.contact-us label input,
.contact-us label textarea,
.contact-us label select{
    border-top: 0;
    border-left: 0;
    border-right: 0;
    width: 100%;
    padding: 12px 0;
    text-transform: normal;
    font-size: 15px;
    line-height: 15px;
    resize: none;
}
.contact-us input.wpcf7-submit.has-spinner{
    background-color: var(--e-global-color-primary);
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-transform: none;
    line-height: 14px;
    letter-spacing: 0em;
    fill: var(--e-global-color-9fa721a);
    color: var(--e-global-color-9fa721a);
    border-radius: 8px 8px 8px 8px;
    padding: 20px 30px 20px 30px;
    border: 0;
}
.contact-us input.wpcf7-submit.has-spinner:hover{
    background-color: var(--e-global-color-secondary);
    color: #fff;
}