/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Child theme of GeneratePress with exact CGC Fuengirola styles & animations.
Version: 2.0.1
Author: MCP Connector
Text Domain: generatepress-child
*/

:root {
    --body-font-family: "DM Sans", sans-serif;
    --heading-font-family: "Lato", sans-serif;
    --body-color: #636363;
    --body-bg-color: #f6f4f0;
    --heading-color: #030917;
    --border-color: #636363;
    --white-color: #ffffff;
    --black-color: #030917;
    --primary-color: #9fe970;
    --Optional-color: #03255b;
}

html, body {
    font-family: "DM Sans", sans-serif;
    color: #636363;
    background-color: #f6f4f0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==========================================================================
   1. PRELOADER (Exact match from style.css lines 1554-1610)
   ========================================================================== */
.preloader-content {
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    overflow: hidden;
    will-change: transform;
}

.loading-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aito-loader {
    position: relative;
    overflow: hidden;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-text {
    font-size: 64px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    color: #030917;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ffffff;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #030917;
}

/* ==========================================================================
   2. STICKY HEADER & MENU HOVER (Exact match from style.css lines 1630-1797)
   ========================================================================== */
.cgc-sticky-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 999 !important;
    transition: all 0.4s ease !important;
}

.cgc-sticky-header.ak-gescout_sticky {
    position: fixed !important;
    top: -150px;
}

.cgc-sticky-header.ak-gescout_show {
    top: 0 !important;
}

.cgc-nav-menu .elementor-icon-list-item a {
    font-family: "DM Sans", sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    padding: 15px 0 !important;
}

.cgc-nav-menu .elementor-icon-list-item a .elementor-icon-list-text {
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.cgc-nav-menu .elementor-icon-list-item a:hover,
.cgc-nav-menu .elementor-icon-list-item a:hover .elementor-icon-list-text {
    color: #030917 !important;
    word-spacing: 2px;
}

/* ==========================================================================
   3. COMMON-BTN CURTAIN SWEEP HOVER (Exact match from style.css lines 2539-2645)
   ========================================================================== */
.cgc-sweep-btn .elementor-button {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out !important;
}

.cgc-sweep-btn .elementor-button::before {
    content: "";
    position: absolute;
    inset: 0;
    display: inline-block;
    right: 100%;
    background-color: #030917;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cgc-sweep-btn .elementor-button:hover {
    color: #ffffff !important;
}

.cgc-sweep-btn .elementor-button:hover .elementor-button-text,
.cgc-sweep-btn .elementor-button:hover .elementor-button-icon,
.cgc-sweep-btn .elementor-button:hover i,
.cgc-sweep-btn .elementor-button:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.cgc-sweep-btn .elementor-button:hover::before {
    right: 0;
}

/* ==========================================================================
   4. HOME PORTADA (Exact match from style.css lines 3839-3890)
   ========================================================================== */
.cgc-home-card .elementor-heading-title strong,
.cgc-home-card .elementor-heading-title span {
    font-weight: 900 !important;
}

.cgc-service-card .elementor-heading-title strong {
    font-weight: 900 !important;
}

/* ==========================================================================
   5. ABOUT US OVERLAPPING IMAGES (Exact match from style.css lines 3691-3724)
   ========================================================================== */
@media (min-width: 768px) {
    .cgc-about-images {
        max-width: 617px !important;
        height: 669px !important;
        position: relative !important;
    }

    .cgc-about-img-1 {
        max-width: 560px !important;
        max-height: 552px !important;
        overflow: hidden;
    }

    .cgc-about-img-2 {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        max-width: 276px !important;
        max-height: 276px !important;
        width: 276px !important;
        z-index: 2;
        margin: 0 !important;
    }
}

/* ==========================================================================
   6. ACTIVOS SLIDER & CARD HOVER (Exact match from style.css lines 2443-2467 & 5487-5541)
   ========================================================================== */
.cgc-slider-nav-btn {
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.cgc-slider-nav-btn:hover {
    background-color: #9fe970 !important;
    border-color: #9fe970 !important;
}

.cgc-slider-nav-btn:hover i,
.cgc-slider-nav-btn:hover svg,
.cgc-slider-nav-btn:hover .elementor-icon {
    color: #030917 !important;
    fill: #030917 !important;
}

.cgc-project-card {
    cursor: pointer;
    overflow: hidden;
}

.cgc-project-card .cgc-project-thumb {
    overflow: hidden;
    transition: all 0.3s ease-in-out !important;
}

.cgc-project-card .cgc-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out !important;
}

.cgc-project-card:hover .cgc-project-thumb {
    transform: translateY(-12px) translateX(-10px);
    transform-origin: bottom;
}

.cgc-project-card:hover .cgc-project-thumb img {
    filter: blur(1px);
}

/* ==========================================================================
   7. CONTACT FORM BUTTON HOVER & INPUTS (Exact match from style.css lines 5266-5326)
   ========================================================================== */
.cgc-contact-form .elementor-field-group .elementor-field-textual {
    border: 1px solid rgba(3, 9, 23, 0.1) !important;
    background-color: #ffffff !important;
    padding: 13px 16px !important;
    font-size: 16px !important;
    color: #030917 !important;
    outline: none !important;
}

.cgc-contact-form .elementor-field-group .elementor-field-textual:focus {
    border-color: #030917 !important;
    box-shadow: none !important;
}

.cgc-contact-form .elementor-button {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease-in-out !important;
}

.cgc-contact-form .elementor-button::before {
    content: "";
    position: absolute;
    inset: 0;
    right: 100%;
    background-color: #030917;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cgc-contact-form .elementor-button:hover {
    color: #ffffff !important;
}

.cgc-contact-form .elementor-button:hover::before {
    right: 0;
}

/* ==========================================================================
   8. FOOTER UNDERLINE HOVER & FIXED REVEAL (Exact match from style.css lines 2291-2418)
   ========================================================================== */
.cgc-footer-links .elementor-icon-list-item a {
    position: relative;
    display: inline-block !important;
    color: #e7e7e7 !important;
    transition: color 0.3s ease !important;
}

.cgc-footer-links .elementor-icon-list-item a .elementor-icon-list-text {
    position: relative;
    display: inline-block;
    color: #e7e7e7 !important;
}

.cgc-footer-links .elementor-icon-list-item a .elementor-icon-list-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.4s ease-in-out;
}

.cgc-footer-links .elementor-icon-list-item a:hover,
.cgc-footer-links .elementor-icon-list-item a:hover .elementor-icon-list-text {
    color: #ffffff !important;
}

.cgc-footer-links .elementor-icon-list-item a:hover .elementor-icon-list-text::after {
    width: 100%;
}

.cgc-footer-social .elementor-button:hover {
    background-color: #ffc001 !important;
    color: #030917 !important;
}

.cgc-footer-social .elementor-button:hover i,
.cgc-footer-social .elementor-button:hover svg {
    color: #030917 !important;
    fill: #030917 !important;
}

@media (min-width: 1200px) {
    body:not(.elementor-editor-active) .cgc-fixed-footer {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        z-index: 0 !important;
    }

    body:not(.elementor-editor-active) .cgc-page-main {
        position: relative;
        z-index: 2;
        background-color: #f6f4f0;
    }
}

/* ==========================================================================
   9. SCROLL UP BUTTON (Exact match from style.css lines 2420-2442)
   ========================================================================== */
.ak-scrollup {
    position: fixed;
    bottom: -60px;
    right: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #030917;
    color: #ffffff;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.ak-scrollup:hover {
    background-color: #ffffff;
    color: #030917;
}

.ak-scrollup.ak-scrollup-show {
    bottom: 50px;
    opacity: 1;
}

/* ==========================================================================
   10. GSAP ANIMATION TITLE CHARS
   ========================================================================== */
.animation-title .cgc-char {
    display: inline-block;
    will-change: transform, opacity;
}
