/*
Theme Name: Gorilion Hello Elementor Child Theme
Theme URI: https://github.com/elementor/hello-theme/
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: 1.0.1
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
*/

/*
    Add your custom styles here
*/

/* =====================================================================
   HERO SECTIONS — RESPONSIVE BACKGROUNDS
   =====================================================================
   SETUP (one-time, in Elementor):
   1. Upload all /Hero images to WordPress Media Library.
   2. In Elementor, open each subpage hero section → Advanced tab → CSS ID:
        Solutions page hero   →  hero-solutions
        Products page hero    →  hero-products
        Get Started hero      →  hero-get-started
        About page hero       →  hero-about
   3. In each section: Style → Background → Image.
      Click the responsive icon (phone/tablet icon) to set:
        Mobile image  (< 768px)      → e.g. Solutions Hero Mobile.png
        Tablet image  (768–1024px)   → e.g. Solutions Hero Tablet.png
        Desktop image (1025px+)      → e.g. Desktop Subpage Hero 2x - Solutions.png
   4. In functions.php, fill in the WIDESCREEN URLs (2000px+).
      Elementor's UI doesn't expose this breakpoint; our CSS handles it.
   ===================================================================== */

#hero-solutions,
#hero-products,
#hero-get-started,
#hero-about {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Widescreen override — Elementor doesn't have a 2000px+ UI breakpoint */
@media (min-width: 2000px) {
    #hero-solutions   { background-image: var(--luxer-hero-solutions-wide) !important; }
    #hero-products    { background-image: var(--luxer-hero-products-wide) !important; }
    #hero-get-started { background-image: var(--luxer-hero-getstarted-wide) !important; }
    #hero-about       { background-image: var(--luxer-hero-about-wide) !important; }
}


/* =====================================================================
   HOMEPAGE HERO SLIDER
   =====================================================================
   Usage: Place [luxer_hero_slider] shortcode in a 100%-width Elementor
   section via the HTML or Shortcode widget.
   The Elementor section must have:
     Layout → Content Width: Full Width
     Layout → Height: Min Height → 100vh (or leave at default and let CSS handle it)
     Style → Background: None (the slider provides its own background)
   ===================================================================== */

#luxer-hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 24px); /* 24px taller than subpages (which are 100vh) */
    min-height: 480px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    background-color: #111; /* placeholder while hero images load */
}

.luxer-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 36%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
    transform-origin: center center;
}

/* Previous slide — stays fully visible as underlay while new slide fades in */
.luxer-slide.is-prev {
    opacity: 1;
    z-index: 1;
    transition: none; /* no fade-out — just stays put */
}

.luxer-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* Ken Burns — subtle drift, scale range kept tight (1.0–1.05) */
@keyframes luxer-kb-a {
    from { transform: scale(1.0)  translate(0,      0);     }
    to   { transform: scale(1.05) translate(-1.5%,  0.5%);  }
}
@keyframes luxer-kb-b {
    from { transform: scale(1.04) translate(1%,    0.3%);   }
    to   { transform: scale(1.0)  translate(-1%,  -0.5%);   }
}
@keyframes luxer-kb-c {
    from { transform: scale(1.0)  translate(-0.5%,  0.5%);  }
    to   { transform: scale(1.05) translate(1.5%,  -0.3%);  }
}

.luxer-slide.is-active.slide-a { animation: luxer-kb-a 12s ease-in-out forwards; }
.luxer-slide.is-active.slide-b { animation: luxer-kb-b 12s ease-in-out forwards; }
.luxer-slide.is-active.slide-c { animation: luxer-kb-c 12s ease-in-out forwards; }

/* Responsive background images per slide per breakpoint */
/* Mobile (< 768px) */
@media (max-width: 767px) {
    .luxer-slide.slide-a { background-image: var(--luxer-slider-a-mobile); }
    .luxer-slide.slide-b { background-image: var(--luxer-slider-b-mobile); }
    .luxer-slide.slide-c { background-image: var(--luxer-slider-c-mobile); }
}
/* Tablet (768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .luxer-slide.slide-a { background-image: var(--luxer-slider-a-tablet); }
    .luxer-slide.slide-b { background-image: var(--luxer-slider-b-tablet); }
    .luxer-slide.slide-c { background-image: var(--luxer-slider-c-tablet); }
}
/* Desktop standard (1025–1999px) */
@media (min-width: 1025px) and (max-width: 1999px) {
    .luxer-slide.slide-a { background-image: var(--luxer-slider-a-desktop); }
    .luxer-slide.slide-b { background-image: var(--luxer-slider-b-desktop); }
    .luxer-slide.slide-c { background-image: var(--luxer-slider-c-desktop); }
}
/* Widescreen (2000px+) */
@media (min-width: 2000px) {
    .luxer-slide.slide-a { background-image: var(--luxer-slider-a-wide); }
    .luxer-slide.slide-b { background-image: var(--luxer-slider-b-wide); }
    .luxer-slide.slide-c { background-image: var(--luxer-slider-c-wide); }
}

/* Dots removed — swipe-only navigation, no visual indicators */
.luxer-slider-dots { display: none; }


/* =====================================================================
   SCROLL INDICATOR  —  .luxer-scroll-hint
   Three styles controlled by a modifier class set via ACF option.
   All share the same base positioning and fade-out behaviour.
   ===================================================================== */

.luxer-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    /* filter creates a soft glow so it stays readable on any image */
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.45));
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* don't block swipe gestures */
    pointer-events: none;
}

/* JS adds this class when user starts scrolling */
.luxer-scroll-hint.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
}

/* Hide on mobile — users there swipe naturally */
@media (max-width: 767px) {
    .luxer-scroll-hint { display: none; }
}

/* ── Style 1: Line + travelling dot ─────────────────────────────── */
.luxer-hint--line .luxer-hint-label {
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.65;
    font-weight: 500;
}

.luxer-hint--line .luxer-hint-line {
    display: block;
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.luxer-hint--line .luxer-hint-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    animation: luxer-line-drop 1.6s ease-in-out infinite;
}

@keyframes luxer-line-drop {
    0%   { top: -4px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── Style 2: Triple chevrons ────────────────────────────────────── */
.luxer-hint--chevron {
    gap: 2px;
}

.luxer-hint--chevron svg {
    width: 22px;
    height: 13px;
    opacity: 0;
    animation: luxer-chev-fade 1.8s ease-in-out infinite;
}

.luxer-hint--chevron svg:nth-child(1) { animation-delay: 0s;    }
.luxer-hint--chevron svg:nth-child(2) { animation-delay: 0.22s; }
.luxer-hint--chevron svg:nth-child(3) { animation-delay: 0.44s; }

@keyframes luxer-chev-fade {
    0%,  100% { opacity: 0.15; }
    40%, 60%  { opacity: 1;    }
}

/* ── Style 3: Mouse icon ─────────────────────────────────────────── */
.luxer-hint--mouse .luxer-hint-mouse-body {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.75);
    border-radius: 11px;
    position: relative;
}

.luxer-hint--mouse .luxer-hint-dot {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    border-radius: 3px;
    background: #fff;
    animation: luxer-mouse-drop 1.5s ease-in-out infinite;
}

@keyframes luxer-mouse-drop {
    0%   { top: 5px;  opacity: 1; }
    60%  { top: 18px; opacity: 0; }
    61%  { top: 5px;  opacity: 0; }
    100% { top: 5px;  opacity: 1; }
}



/* =====================================================================
   ANIMATED SCROLL SECTION  —  .luxer-hijack-wrapper
   =====================================================================
   Shortcode [luxer_scroll_section] renders this HTML.
   Zero rules targeting #animated-section — that container is left
   100% untouched so Elementor's own flex layout keeps working.
   ===================================================================== */

/* ── Outer wrapper ────────────────────────────────────────────────── */
.luxer-hijack-wrapper {
    position: relative;
    width: 100%;
    background: #f9f8f4;
    color: #1a1a1a;
    padding: 80px 0;
}

/* ── Two-column flex container ────────────────────────────────────── */
.luxer-hijack-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(40px, 6vw, 96px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* ── LEFT: cards ──────────────────────────────────────────────────── */
.luxer-copy-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(80px, 18vh, 260px);
    padding: clamp(40px, 8vh, 100px) 0 clamp(60px, 10vh, 140px);
}

/* Cards visible by default — JS adds .has-anim to enable the slide-up */
.luxer-card {
    opacity: 1;
    transform: none;
}
.luxer-hijack-wrapper.has-anim .luxer-card {
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxer-hijack-wrapper.has-anim .luxer-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card content */
.luxer-panel-icon { margin-bottom: 18px; line-height: 0; }
.luxer-panel-icon svg { width: 52px; height: 52px; }

.luxer-panel-title {
    margin: 0 0 14px;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.25;
    color: inherit;
}
.luxer-panel-desc {
    margin: 0;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.7;
    color: inherit;
    opacity: 0.75;
}
.luxer-panel-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 11px 26px;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
.luxer-panel-cta:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

/* ── RIGHT: sticky image column ───────────────────────────────────── */
.luxer-image-col {
    flex: 0 0 46%;
    max-width: 500px;
    min-width: 0;
    overflow: visible;
}
.luxer-image-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: clamp(80px, 12vh, 130px);
}
.luxer-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 514 / 388;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.13);
    background: #e0ddd6;
}
.luxer-image-wrap {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    pointer-events: none;
}
.luxer-image-wrap.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}
.luxer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Quote overlay */
.luxer-panel-quote {
    position: absolute;
    bottom: 14px; left: 14px; right: 14px;
    background: rgba(255,255,255,0.96);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.luxer-panel-quote-text {
    margin: 0 0 5px;
    font-size: 0.83rem;
    line-height: 1.5;
    font-style: italic;
    color: #1a1a1a;
}
.luxer-panel-quote-attr {
    font-size: 0.76rem;
    font-weight: 600;
    color: #1a1a1a;
    opacity: 0.55;
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .luxer-hijack-wrapper { padding: 48px 0 64px; }
    .luxer-hijack-container { flex-direction: column; }
    .luxer-image-col { display: none; }
    .luxer-copy-col { gap: 52px; padding: 0; }
    .luxer-hijack-wrapper.has-anim .luxer-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── Tablet ─────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .luxer-hijack-container { gap: 28px; }
    .luxer-image-col { flex: 0 0 42%; max-width: none; }
    .luxer-copy-col { gap: clamp(60px, 14vh, 180px); }
    .luxer-hijack-wrapper.has-anim .luxer-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
