/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/* PRIMARY BUTTON CUSTOM STYLES */

.primary-btn {
	transition: all 200ms ease;
}

.primary-btn-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -44px;
    width: 44px;
    height: 44px;
    background-color: #FACC31;
    display: block;
    clip-path: polygon(0 0, 100% 0,100% 100%);
    transition: all 200ms ease;
}

.primary-btn-right:hover::before {
    background-color: #FBD965;
}

.primary-btn-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -44px;
    width: 54px;
    height: 44px;
    background-color: #FACC31;
    display: block;
    clip-path: polygon(0 0, 100% 0, 10px 100%);
    transition: all 200ms ease;
}

.primary-btn-left:hover::after {
    background-color: #FBD965;
}

/* FLOATING BUTTON */

.floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1;
    transform: translateX(-99%);
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: #D0481A;
    display: block;
    clip-path: polygon(0 0, 100% 0,100% 100%);
    transition: all 200ms ease;
}

.floating-button-right::before {
    content: '';
    position: absolute;
    left:auto;
    top: 0;
    right: 0; 
    transform: translateX(99%); 
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: #D0481A;
    display: block;
    clip-path: polygon(0 0, 0 100%, 100% 0);
    transition: all 200ms ease;
}


/* UNDERLINED HEADING STYLE FOR H1s */

.underlined-heading {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.underlined-heading::after {
    content: '';
    position: absolute;
    display: block;
    width: 110%;
    height: 12px;
    background-color: #D0481A;
    bottom: -5px;
    left: -5%;
    

    z-index: -1; 
}

/* LOGO BEHIND INDENTED BLOCK TITLE */

.with-logo::before {
    content: "";
    position: absolute;
    
    top: 50%; 
    transform: translateY(-50%); 
    
    left: 0;
    height: 200%;
    background-image: url('https://fifthsunroofing.com/wp-content/uploads/2026/03/Logo-Iso-Fifth-Sun-Roofing-512x512-1-1.svg'); 
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center left;
    aspect-ratio: 1/1;
    z-index: -1; 
    opacity: 0.4;
    pointer-events: none;
}

/* GENERAL CARD WITH HOVER LINE */

.card-vertical__content::after {
    content: '';
    position: absolute;
    display: block;
    width: 3px;
    height: 30px;
    background-color: #973323;
    top:0;
    left: -2px;
    transition: all 300ms ease-in-out;
}

.card-vertical:hover .card-vertical__content::after {
    height: 100%;
    background-color: #D0481A;
}

/* ANIMACION HERO */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-content-wrapper h1,
#hero-content-wrapper h2,
#hero-content-wrapper .elementor-heading-title,
#hero-content-wrapper p,
#hero-content-wrapper .elementor-button,
#hero-content-wrapper .e-button-base {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#hero-content-wrapper h1,
#hero-content-wrapper h2,
#hero-content-wrapper .elementor-heading-title {
    animation-delay: 0.1s;
}

#hero-content-wrapper p {
    animation-delay: 0.3s; 
}

#hero-content-wrapper .elementor-button,
#hero-content-wrapper .e-button-base {
    animation-delay: 0.5s; 
}


/* SERVICE CARDS */

.service-card__content::before,
.service-card_inverted__content::before {
    content: '';
    position: absolute;
    left: 15.5%;
    width: .3rem;
    height: 6.5rem;
    background-color: #FACC31;
	z-index: 2;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); /* Animación suave */
    transform: scaleY(0); /* Empieza invisible/sin altura */
}

.service-card__content::before {
    top: -3.5rem;
    transform-origin: top; 
}

.service-card_inverted__content::before {
    bottom: -3.5rem;
    top: auto !important;
    transform-origin: bottom;
}

.is-visible .service-card.is-active .service-card__content::before,
.is-visible .service-card_inverted.is-active .service-card_inverted__content::before {
    transform: scaleY(1);
}

.service-card, .service-card_inverted {
    opacity: 0.4;
    filter: grayscale(0.8) brightness(0.7);
    transition: all 0.4s ease;
    transform: scale(0.95);
}

.service-card.is-active, .service-card_inverted.is-active {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1);
}


.service-card__content h3,
.service-card__content .paragraph,
.service-card_inverted__content h3,
.service-card_inverted__content .paragraph {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    transition-delay: 0.2s;
}

/* Cuando la card está activa, el texto sube y aparece */
.is-visible .service-card.is-active h2,
.is-visible .service-card.is-active .description {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .service-card.is-active .service-card__content h3,
.is-visible .service-card.is-active .service-card__content .paragraph,
.is-visible .service-card_inverted.is-active .service-card_inverted__content h3,
.is-visible .service-card_inverted.is-active .service-card_inverted__content .paragraph {
    opacity: 1;
    transform: translateY(0);
}

/* Delay extra para la descripción para que no salgan a la vez que el título */
.is-active .paragraph {
    transition-delay: 0.4s;
}

.horiz-gallery-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    will-change: transform;
}

/* Efecto hover */

.service-card__content h3,
.service-card_inverted__content h3 {
    transition: color 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card:hover .service-card__content h3,
.service-card_inverted:hover .service-card_inverted__content h3 {
    color: #FACC31;
}

.service-card:hover, 
.service-card_inverted:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1);
}

/* ROOF LAYERS SECTION */


.roof-layer-number{
    background-color: #973323;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.roof-layer-number:hover {
    transform: scale(1.1);
}

.roof-layer-number.is-active {
    transform: scale(1.15);
    background-color: #231F20;
    border: solid 2px #FACC31;
    box-shadow: 0 0 15px rgba(250, 204, 49, 0.4);
    z-index: 2;
}

@keyframes fadeUpDescription {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.roof-layer-description__wrapper {
    box-shadow: 0 9.657px 19.314px 0 rgba(0,0,0,.08);
    
}

.roof-layer-description__wrapper {
    display: none !important;
}

.roof-layer-description__wrapper.is-active {
    display: flex !important;
    animation: fadeUpDescription 0.4s ease-out forwards;
}

/* LINE IN CARDS */

.with-line::before {
    content: '';
    position: absolute;
    left: 15.5%;
    width: .3rem;
    height: 95px;
    background-color: #FACC31;
	z-index: 2;
	top: -3.5rem;
    transform-origin: top; 
}

@media (max-width: 1024px) {
    .service-card__content::before,
    .service-card_inverted__content::before {
        height: 3.5rem;
    }
	
	.service-card__content::before {
    	top: -2.5rem;
	}

	.service-card_inverted__content::before {
    	bottom: -2.5rem;
    }
}

/* Desactivar las líneas decorativas en móviles */
@media (max-width: 767px) {
    .service-card__content::before,
    .service-card_inverted__content::before {
        display: none !important;
        content: none !important; /* Asegura que el pseudo-elemento no se genere */
    }
}

