/*======================================
Theme Name: Reader Design
Theme URI: https://divicake.com/
Description: Reader Design Child Theme for Divi
Version: 1.0
Author: Brandon Reader
Author URI: https://reader.design
Template: Divi
======================================*/


/*============================================================================
  1. GLOBAL & TYPOGRAPHY
============================================================================*/
img {
    pointer-events: none;
}

.hero-headline h1 {
    /* clamp(MIN, PREFERRED, MAX) */
    font-size: clamp(3.625rem, 8vw + 1rem, 8.125rem) !important;
    line-height: 1.1em;
}

.tfn, 
.tfn a {
    color: #000000 !important;
}

/*============================================================================
  2. COMPONENTS (Links & Stats)
============================================================================*/

/*--- Large Animated Link ---*/
.animated-link-large {
    color: #000 !important;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.animated-link-large:hover {
    transform: translateY(-2px);
}

.animated-link-large::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 6px; 
    left: 0;
    background: #7E2F7F;
    opacity: 0;
    transform: translateY(5px); 
    transition: all 0.3s ease;
}

.animated-link-large:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/*--- Small Animated Link ---*/
.animated-link-small {
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.animated-link-small:hover {
    transform: translateY(-2px);
}

.animated-link-small::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 3px;   
    left: 0;
    background: #7E2F7F;
    opacity: 0;
    transform: translateY(3px);     
    transition: all 0.3s ease;
}

.animated-link-small:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/*--- Stats & Symbols ---*/
.stat-container {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    text-align: left; 
}

.symbol {
    font-size: 0.6em; 
    margin: 0 6px 0 0; 
    font-weight: 600;
    line-height: 1;
    display: inline-block; 
    transform: translateY(-20%); 
}

.symbol:last-child {
    margin-left: 6px;
}

/*============================================================================
  3. STRUCTURAL SECTIONS (Parallax & Effects)
============================================================================*/
.smooth-parallax-section {
    position: relative !important;
    overflow: hidden !important;
    min-height: 600px;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: 50% 0%;
}

@media only screen and (max-width: 767px) {
    #smooth-parallax {
        /* This forces the image to be 150% of the width, zooming it in */
        background-size: auto 190% !important; 
        background-position: 65% 40% !important;
        min-height: 600px; /* Adjust this to the height you want the section to be on mobile */
    }

    #smooth-parallax-2 {
        /* This forces the image to be 150% of the width, zooming it in */
        background-size: auto 160% !important; 
        background-position: 31% 23% !important;
        min-height: 600px; /* Adjust this to the height you want the section to be on mobile */
   
 }
}

.smooth-parallax-section .parallax-content {
    will-change: transform;
}

/* Background Image IDs */
#smooth-parallax { 
    background-image: url('/wp-content/uploads/2025/11/Jellyfish-BG-main5.webp') !important; 
}
#smooth-parallax-2 { 
    background-image: url('/wp-content/uploads/2026/03/Jellyfish-BG-main5-rev2-60.webp') !important; 
}

#smooth-parallax-3 {
    background-image: url('/wp-content/uploads/2026/03/Waves_BG_Gray_001-comp.svg') !important;
    position: relative;
    z-index: 1; /* Creates a stacking context */
}

/* The "Veil" - This sits between the Background and the Content */
#smooth-parallax-3::before {
    content: "";
    position: absolute;
    inset: 0;
    
    /* LIGHTEN HERE: Adjust the 0.8 to make it lighter or darker */
    /* 0.9 = very faint background / 0.5 = stronger background */
    background: rgba(231, 229, 226, 0.6); 
    
    z-index: -1; /* Sits behind the text but in front of the BG image */
    pointer-events: none;
}

/* Ensure the JS-animated background stays behind the veil */
#smooth-parallax-3 {
    /* This ensures the background-image stays at the very bottom of the stack */
    background-attachment: scroll; 
}

/* Glassmorphism Fade */
.blur-fade {
    position: relative;
    background: transparent !important;
}

.blur-fade::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 120px; 
    z-index: -1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0); 
    
    /* Hardware Acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    
    /* Blur Effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Masking */
    -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 25%, transparent 100%);
}

/*============================================================================
  4. NAVIGATION (Menus & Overlays)
============================================================================*/
html {
    scrollbar-gutter: stable;
}

body.no-scroll {
    overflow: hidden !important;
}

/*--- Hamburger Toggle ---*/
#slide-in-open {
    cursor: pointer;
    z-index: 9999;
}

.line {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #7E2F7F;
    border-radius: 9px;
    transition: .1s ease-in-out;
    top: 8px;
}

.line-2 { opacity: 0; top: 8px; width: 100%; }
.line-3 { top: 16px; }

#slide-in-open.open .line-1 {
    top: 10px;
    transform: rotate(135deg);
}

#slide-in-open.open .line-3 {
    top: 10px;
    transform: rotate(-135deg);
}

/*--- 1. THE SECTION CONTAINER ---*/
.slide-in-menu-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9990 !important;
    pointer-events: none; /* Site is clickable when closed */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s step-end;
}

/* When Open */
.slide-in-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.9) !important; 
    backdrop-filter: blur(25px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(150%) !important;
    transition: opacity 0.5s ease, visibility 0s linear;
}

/*--- 2. THE TOP ROW SHIELD (The Fix) ---*/
/* This row stays visible NO MATTER WHAT the section is doing */
.et_pb_row_0_tb_header {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10005 !important;
    position: fixed !important; /* Locks it to the top separate from the fade */
    top: 0;
    left: 0;
    right: 0;
}

#slide-in-open {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10010 !important;
}

/*--- 3. THE LINKS COLUMN ---*/
#menu-links-col {
    opacity: 0;
    /* Subtle 10px drop so it doesn't "fall" too far */
    transform: translateY(10px); 
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Opening State */
.slide-in-menu #menu-links-col {
    opacity: 1;
    transform: translateY(0);
    /* Adding a tiny delay on open makes it feel more premium */
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

/* Closing State (When .slide-in-menu is removed) */
.slide-in-menu-container:not(.slide-in-menu) #menu-links-col {
    opacity: 0;
    transform: translateY(10px); /* Keeps the movement minimal on exit */
    /* Faster exit transition (0.3s) so it disappears before the background blurs out */
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/*========================================
  DIVIFLASH TESTIMONIAL CAROUSEL
========================================*/

/* Layout - Image Left, Content Right */
.df_tci_inner {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: start;
}

.df_tci_container {
    display: flex;
    justify-content: center;
}

/* Author Box - Stacked Layout */
.df_tc_author_box {
    flex-direction: column;
    justify-content: center !important;
    width: 330px;
    margin: 0 40px;
}

.df_tc_author_image {
    margin: 16px 0;
    max-width: 100px !important;
}

.df_tc_author_image img {
    border-radius: 50px !important;
}

/* Hide Quote Icon */
.df_tc_quote_image {
    display: none;
}

/* Content Area */
.df_tc_content {
    width: 100%;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Quote Title Styling */
.df-quote-title {
    margin: 8px 0;
}

/* Title line height override */
.df_tc_author_box {
        line-height: 1.4 !important;
    }
    
    .df_tc_author_box .tc-job-title {
        line-height: inherit !important;
    }

/* This forces the slider to 'squeeze' the main slide so the neighbors show */
.difl_testimonialcarousel .swiper-container {
    padding-left: 15% !important;
    padding-right: 15% !important;
    overflow: visible !important;
}

/* Ensure the slides don't try to fill that 15% gap */
.difl_testimonialcarousel .swiper-wrapper {
    width: 100% !important;
}

/* Optional: Make side slides look 'receded' */
/*.difl_testimonialcarousel .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.4s ease;
}*/

/* Apply the 'Peek' effect ONLY to Tablet and Desktop */
@media all and (min-width: 768px) {
    .difl_testimonialcarousel .swiper-container {
        padding-left: 15% !important;
        padding-right: 15% !important;
        /* Visible overflow allows the neighbors to show in the padding area */
        overflow: visible !important;
    }
}

/* Mobile View (Standard Single Card) */
@media all and (max-width: 767px) {
    .difl_testimonialcarousel .swiper-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        /* Hidden overflow ensures neighbors don't bleed in on small screens */
        overflow: hidden !important;
    }
    
    .difl_testimonialcarousel .swiper-slide {
        width: 100% !important;
    }
}


.df_jsg_caption {
    font-family: Arial, Helvetica, sans-serif;
}