/**
 * Vaulted Custom Patterns - Frontend Styles
 */

/* Hero Section Styles */
.vaulted-hero-section {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 80px 0 !important;
    background-color: #fff !important;
}

.vaulted-hero-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.vaulted-hero-text {
    padding-left: 20px !important;
    padding-right: 0 !important;
    margin-right: -5% !important;
    z-index: 2 !important;
    width: 60% !important;
    flex-basis: 60% !important;
}

.vaulted-hero-title {
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.vaulted-hero-description {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.vaulted-hero-image-column {
    position: relative !important;
    width: 55% !important;
    flex-basis: 55% !important;
    margin-right: -10% !important;
    z-index: 1 !important;
}

.vaulted-hero-image {
    width: 100% !important;
    height: auto !important;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.vaulted-hero-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* SVG Background */
.vaulted-hero-image-column::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/bg-home.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center right !important;
    background-size: contain !important;
    z-index: 2 !important;
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

/* Animation classes */
.vaulted-hero-section.is-visible .vaulted-hero-title,
.vaulted-hero-section.is-visible .vaulted-hero-description,
.vaulted-hero-section.is-visible .vaulted-hero-image {
    opacity: 1 !important;
    transform: translate(0) !important;
}

.vaulted-hero-section.is-visible .vaulted-hero-image-column::after {
    opacity: 1 !important;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .vaulted-hero-text {
        padding-left: 20px !important;
        margin-right: 0 !important;
        width: 50% !important;
        flex-basis: 50% !important;
    }
    
    .vaulted-hero-image-column {
        width: 50% !important;
        flex-basis: 50% !important;
        margin-right: 0 !important;
    }
    
    .vaulted-hero-title {
        font-size: 2.8rem !important;
    }
    
    .vaulted-hero-description {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 767px) {
    .vaulted-hero-columns {
        flex-wrap: wrap !important;
    }
    
    .vaulted-hero-text,
    .vaulted-hero-image-column {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-right: 0 !important;
    }
    
    .vaulted-hero-text {
        order: 2 !important;
        padding: 20px !important;
    }
    
    .vaulted-hero-image-column {
        order: 1 !important;
        margin-bottom: 20px !important;
    }
    
    .vaulted-hero-title {
        font-size: 2.2rem !important;
    }
    
    .vaulted-hero-description {
        font-size: 1rem !important;
    }
}

/* Force override for WordPress themes */
.wp-block-columns.vaulted-hero-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-bottom: 0 !important;
}

.wp-block-column.vaulted-hero-text,
.wp-block-column.vaulted-hero-image-column {
    margin-left: 0 !important;
}

.wp-site-blocks .vaulted-hero-section,
.entry-content .vaulted-hero-section,
.site-content .vaulted-hero-section,
#page .vaulted-hero-section,
.content-area .vaulted-hero-section,
main .vaulted-hero-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Container styles */
.vaulted-hero-section .wp-block-columns.vaulted-hero-columns {
    position: relative !important;
    overflow: visible !important;
    gap: 0 !important; /* Remove gap between columns */
    margin: 0 auto !important;
    max-width: 1200px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* Text styles */
.vaulted-hero-section .vaulted-hero-text {
    position: relative !important;
    z-index: 5 !important; /* Higher z-index to overlap image */
    padding: 0 !important;
    padding-left: 20px !important;
    width: 60% !important;
    flex-basis: 60% !important;
    margin-right: -5% !important; /* Negative margin to push into the image column */
    box-sizing: border-box !important;
}

.vaulted-hero-section .vaulted-hero-title {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    opacity: 0; /* Start invisible for animation */
    max-width: 100% !important;
}

.vaulted-hero-section .vaulted-hero-title mark {
    background-color: transparent !important;
    color: #e74c3c !important;
    padding: 0 !important;
}

.vaulted-hero-section .vaulted-hero-description {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    opacity: 0; /* Start invisible for animation */
    max-width: 100% !important;
}

/* Image column styles */
.vaulted-hero-section .vaulted-hero-image-column {
    position: relative !important;
    z-index: 1 !important;
    padding: 0 !important;
    margin-right: -10% !important; /* Reduced from -20% to make image smaller */
    width: 55% !important; /* Match original theme's width */
    flex-basis: 55% !important;
    box-sizing: border-box !important;
}

.vaulted-hero-section .vaulted-hero-image {
    position: relative !important;
    overflow: visible !important;
    border-radius: 4px !important;
    margin: 0 !important;
    opacity: 0; /* Start invisible for animation */
}

.vaulted-hero-section .vaulted-hero-image img {
    width: 100% !important; /* Changed from 120% to 100% */
    height: auto !important;
    display: block !important;
    max-width: none !important;
}

/* SVG dots overlay */
.vaulted-hero-section .vaulted-hero-image::after {
    content: '' !important;
    position: absolute !important;
    bottom: -20px !important;
    right: -20px !important;
    width: 311px !important;
    height: 100px !important;
    background-image: url('../img/b1-points.svg') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    z-index: 10 !important;
}

/* Background SVG overlay for the image */
.vaulted-hero-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 60% !important;
    height: 100% !important;
    background-image: url('../img/bg-home.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: auto 100% !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vaulted-hero-section.is-visible .vaulted-hero-title,
.vaulted-hero-section.is-visible .vaulted-hero-description {
    animation: fadeInUp 0.8s ease-out forwards !important;
}

.vaulted-hero-section.is-visible .vaulted-hero-title {
    animation-delay: 0.2s !important;
}

.vaulted-hero-section.is-visible .vaulted-hero-description {
    animation-delay: 0.4s !important;
}

.vaulted-hero-section.is-visible .vaulted-hero-image {
    animation: fadeInRight 0.8s ease-out 0.6s forwards !important;
}

/* Force column layout */
.vaulted-hero-section .wp-block-columns.vaulted-hero-columns > .wp-block-column {
    flex-shrink: 0 !important;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .vaulted-hero-section .vaulted-hero-title {
        font-size: 2.8rem !important;
    }
    
    .vaulted-hero-section .vaulted-hero-image-column {
        margin-right: -5% !important;
        width: 50% !important;
        flex-basis: 50% !important;
    }
    
    .vaulted-hero-section .vaulted-hero-text {
        width: 55% !important;
        flex-basis: 55% !important;
        margin-right: -5% !important;
    }
}

@media (max-width: 767px) {
    .vaulted-hero-section .vaulted-hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .vaulted-hero-section .vaulted-hero-description {
        font-size: 1rem !important;
    }
    
    .vaulted-hero-section .wp-block-columns.vaulted-hero-columns {
        flex-direction: column !important;
    }
    
    .vaulted-hero-section .vaulted-hero-image-column {
        margin-right: 0 !important;
        width: 100% !important;
        flex-basis: 100% !important;
    }
    
    .vaulted-hero-section .vaulted-hero-text {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-right: 0 !important;
        padding: 0 20px !important;
    }
    
    .vaulted-hero-section .vaulted-hero-image img {
        width: 100% !important;
    }
    
    .vaulted-hero-section .vaulted-hero-image::after {
        width: 200px !important;
        height: 70px !important;
        bottom: -10px !important;
        right: -10px !important;
    }
    
    .vaulted-hero-section {
        background-size: 100% auto !important;
        background-position: center bottom !important;
    }
    
    .vaulted-hero-section::after {
        width: 100% !important;
        background-position: center bottom !important;
    }
}

/* Featured Image Slider Styles */
.vaulted-featured-slider-section {
    position: relative !important;
    padding: 60px 0 !important;
    background-color: #f9f9f9 !important;
    overflow: hidden !important;
}

.vaulted-featured-slider-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.vaulted-featured-slider-header {
    margin-bottom: 30px !important;
}

.vaulted-featured-slider-label {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: var(--wp--preset--color--primary, #e74c3c) !important;
}

.vaulted-featured-slider-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

.vaulted-featured-slider {
    flex: 1 !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 20px !important;
}

.vaulted-featured-slider-track {
    display: flex !important;
    transition: transform 0.5s ease !important;
}

.vaulted-featured-slider-slide {
    flex: 0 0 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.vaulted-featured-slider-image {
    width: 100% !important;
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.vaulted-featured-slider-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 20px !important;
}

.vaulted-featured-slider-nav {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    z-index: 2 !important;
    color: var(--wp--preset--color--primary, #e74c3c) !important;
}

.vaulted-featured-slider-nav:hover {
    background-color: var(--wp--preset--color--primary, #e74c3c) !important;
    color: #fff !important;
}

.vaulted-featured-slider-nav svg {
    width: 24px !important;
    height: 24px !important;
}

/* Responsive styles for the slider */
@media (max-width: 767px) {
    .vaulted-featured-slider-section {
        padding: 40px 0 !important;
    }
    
    .vaulted-featured-slider-label {
        font-size: 1.2rem !important;
    }
    
    .vaulted-featured-slider-nav {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Video Hero Section Styles */
.vaulted-video-hero {
    position: relative !important;
    width: 100% !important;
    height: 80vh !important;
    min-height: 600px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vaulted-video-hero-media {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 80% !important;
    max-width: 1920px !important;
    height: 100% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.vaulted-video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    z-index: 1 !important;
}

.vaulted-video-background::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 2 !important;
    border-radius: 16px !important;
}

.vaulted-video-element {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    z-index: 1 !important;
    border-radius: 16px !important;
}

.vaulted-video-poster {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
    border-radius: 16px !important;
}

.vaulted-video-hero-content {
    position: relative !important;
    width: 80% !important;
    max-width: 1920px !important;
    height: 100% !important;
    z-index: 10 !important; /* Increased z-index */
    color: #ffffff !important;
    padding: 5% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important; /* Ensure content is clickable */
}

/* Critical override for Custom HTML block */
.vaulted-video-hero-content .wp-block-custom-html,
.vaulted-video-hero-content .custom-html-widget,
.vaulted-video-hero-content .wp-block-html {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
    position: relative !important;
    color: #ffffff !important;
    width: 100% !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* EXTRA CRITICAL FIX - override any theme hiding of HTML blocks */
.entry-content .vaulted-video-hero-content .wp-block-custom-html,
.entry-content .vaulted-video-hero-content .wp-block-html,
.content-area .vaulted-video-hero-content .wp-block-custom-html,
.content-area .vaulted-video-hero-content .wp-block-html,
.site-content .vaulted-video-hero-content .wp-block-custom-html,
.site-content .vaulted-video-hero-content .wp-block-html,
.main-content .vaulted-video-hero-content .wp-block-custom-html,
.main-content .vaulted-video-hero-content .wp-block-html,
#page .vaulted-video-hero-content .wp-block-custom-html,
#page .vaulted-video-hero-content .wp-block-html,
body .vaulted-video-hero-content .wp-block-custom-html,
body .vaulted-video-hero-content .wp-block-html {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 20px !important;
}

/* Force displaying HTML elements */
.vaulted-video-hero-content .wp-block-html h1,
.vaulted-video-hero-content .wp-block-html h2,
.vaulted-video-hero-content .wp-block-html h3,
.vaulted-video-hero-content .wp-block-html h4,
.vaulted-video-hero-content .wp-block-html h5,
.vaulted-video-hero-content .wp-block-html h6,
.vaulted-video-hero-content .wp-block-html p,
.vaulted-video-hero-content .wp-block-html div,
.vaulted-video-hero-content .wp-block-html span,
.vaulted-video-hero-content .wp-block-html a,
.vaulted-video-hero-content .wp-block-html ul,
.vaulted-video-hero-content .wp-block-html ol,
.vaulted-video-hero-content .wp-block-html li,
.vaulted-video-hero-content .wp-block-custom-html h1,
.vaulted-video-hero-content .wp-block-custom-html h2,
.vaulted-video-hero-content .wp-block-custom-html h3,
.vaulted-video-hero-content .wp-block-custom-html h4,
.vaulted-video-hero-content .wp-block-custom-html h5,
.vaulted-video-hero-content .wp-block-custom-html h6,
.vaulted-video-hero-content .wp-block-custom-html p,
.vaulted-video-hero-content .wp-block-custom-html div,
.vaulted-video-hero-content .wp-block-custom-html span,
.vaulted-video-hero-content .wp-block-custom-html a,
.vaulted-video-hero-content .wp-block-custom-html ul,
.vaulted-video-hero-content .wp-block-custom-html ol,
.vaulted-video-hero-content .wp-block-custom-html li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    position: relative !important;
    z-index: 1000 !important;
    margin: 0 0 1em 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.vaulted-video-hero-content .wp-block-html a,
.vaulted-video-hero-content .wp-block-custom-html a {
    display: inline-block !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Hide the placeholder note but display all other content */
.vaulted-video-hero-content .vaulted-video-editor-note:only-child {
    display: none !important;
}

/* Ensure everything inside content container is visible */
.vaulted-video-hero-content * {
    visibility: visible !important;
    opacity: 1 !important;
}

.vaulted-video-hero-container {
    max-width: 70% !important;
    margin: 0 !important;
}

.vaulted-video-hero-heading {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    margin-bottom: 30px !important;
}

.vaulted-video-hero-subheading-wrapper {
    position: relative !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 25px !important;
    display: inline-block !important;
}

.vaulted-video-hero-subheading-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 80px !important;
    height: 4px !important;
    background-color: var(--wp--preset--color--primary, #e74c3c) !important;
}

.vaulted-video-hero-subheading {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .vaulted-video-hero {
        height: 70vh !important;
    }
    
    .vaulted-video-hero-media {
        width: 90% !important;
    }
    
    .vaulted-video-hero-heading {
        font-size: 3rem !important;
    }
    
    .vaulted-video-hero-container {
        max-width: 80% !important;
    }
}

@media (max-width: 767px) {
    .vaulted-video-hero {
        height: 60vh !important;
        min-height: 500px !important;
    }
    
    .vaulted-video-hero-media,
    .vaulted-video-hero-content {
        width: 95% !important;
    }
    
    .vaulted-video-hero-heading {
        font-size: 2.25rem !important;
        margin-bottom: 20px !important;
    }
    
    .vaulted-video-hero-subheading {
        font-size: 1rem !important;
    }
    
    .vaulted-video-hero-container {
        max-width: 100% !important;
    }
} 