/**
 * Hero Section Widget Styles
 * Template: Product Exposure Hero
 *
 * @package SufferHouseWooElementor
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

.shwe-hero-section {
    /* Color Palette */
    --color-bg: #f5f1ed;
    --color-cream: #f5f1ed;
    --color-cream-90: rgba(245, 241, 237, 0.9);
    --color-cream-60: rgba(245, 241, 237, 0.6);
    --color-cream-50: rgba(245, 241, 237, 0.5);
    --color-cream-40: rgba(245, 241, 237, 0.4);
    --color-cream-30: rgba(245, 241, 237, 0.3);
    --color-cream-20: rgba(245, 241, 237, 0.2);
    --color-beige-900: #3d342a;
    --color-beige-900-75: rgba(61, 52, 42, 0.75);
    --color-beige-900-30: rgba(61, 52, 42, 0.3);
    --color-sand: #d4c5b1;
    --color-sand-40: rgba(212, 197, 177, 0.4);
    --color-sand-30: rgba(212, 197, 177, 0.3);
}

/* ==========================================================================
   Section Base
   ========================================================================== */

.shwe-hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   Background Image
   ========================================================================== */

.shwe-hero-section .bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ==========================================================================
   Gradient Overlay
   ========================================================================== */

.shwe-hero-section .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-beige-900-75) 0%, var(--color-beige-900-30) 60%, transparent 100%);
    z-index: 2;
}

@media (min-width: 768px) {
    .shwe-hero-section .overlay {
        background: linear-gradient(to right, var(--color-beige-900-75) 0%, var(--color-beige-900-30) 60%, transparent 100%);
    }
}

/* ==========================================================================
   Organic Blob Elements
   ========================================================================== */

.shwe-hero-section .blob {
    position: absolute;
    z-index: 3;
}

.shwe-hero-section .blob-1 {
    width: 7rem;
    height: 7rem;
    left: 2rem;
    top: 25%;
    background-color: var(--color-sand-40);
    border-radius: 60% 40% 40% 60% / 50% 50% 50% 50%;
    filter: blur(0.5rem);
}

.shwe-hero-section .blob-2 {
    width: 5rem;
    height: 5rem;
    right: 3rem;
    top: 33%;
    background-color: var(--color-sand-30);
    border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
    filter: blur(0.5rem);

    border-radius: 50%;
}

.shwe-hero-section .blob-3 {
    width: 4rem;
    height: 4rem;
    left: 33%;
    top: 3rem;
    background-color: var(--color-cream-30);
    transform: rotate(45deg);
    filter: blur(0.5rem);
}

.shwe-hero-section .blob-4 {
    width: 6rem;
    height: 6rem;
    right: 25%;
    bottom: 33%;
    background-color: var(--color-sand-30);
    border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
    filter: blur(0.5rem);
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.shwe-hero-section .content-wrapper {
    position: relative;
    z-index: 4;
    display: flex;
    min-height: 100vh;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .shwe-hero-section .content-wrapper {
        align-items: center;
        padding-bottom: 0;
    }
}

.shwe-hero-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .shwe-hero-section .container {
        padding: 0 3rem;
    }
}

.shwe-hero-section .content-inner {
    max-width: 56rem;
}

@media (min-width: 768px) {
    .shwe-hero-section .content-inner {
        max-width: 42rem;
    }
}

/* ==========================================================================
   Subtitle
   ========================================================================== */

.shwe-hero-section .subtitle {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-cream-90);
    line-height: 1.4;
    text-align: left;
}

@media (min-width: 640px) {
    .shwe-hero-section .subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .shwe-hero-section .subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   Main Title
   ========================================================================== */

.shwe-hero-section .title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.75rem;
    font-weight: 400;
    color: var(--color-cream);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media (min-width: 640px) {
    .shwe-hero-section .title {
        font-size: 4.5rem;
    }
}

@media (min-width: 768px) {
    .shwe-hero-section .title {
        font-size: 5.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .shwe-hero-section .title {
        font-size: 6.5rem;
    }
}

/* ==========================================================================
   Description Section
   ========================================================================== */

.shwe-hero-section .description-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .shwe-hero-section .description-wrapper {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Vertical Line Accent - Scroll Animation
   ========================================================================== */

.shwe-hero-section .accent-line {
    /* Animation progress (0 to 1) - controlled by JS */
    --accent-progress: 0;

    /* Line sizing */
    --line-total-height: 10rem;
    --dot-size: 0.5rem;
    --line-width: 2px;

    /* Progress range (percentages) - keeps visible lines on both sides */
    --min-percent: 15;
    --max-percent: 85;

    /* Calculated dynamic heights based on scroll progress */
    --top-height: calc(
        var(--min-percent) * 1% +
        (var(--max-percent) - var(--min-percent)) * var(--accent-progress) * 1%
    );
    --bottom-height: calc(
        var(--max-percent) * 1% -
        (var(--max-percent) - var(--min-percent)) * var(--accent-progress) * 1%
    );

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    height: var(--line-total-height);
    padding-top: 0.25rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .shwe-hero-section .accent-line {
        display: flex;
    }
}

.shwe-hero-section .line-top {
    width: var(--line-width);
    height: var(--top-height);
    min-height: 0.5rem;
    background-color: var(--color-cream-60);
    /* Transition only enabled after JS initializes to prevent jump on load */
}

.shwe-hero-section .line-dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background-color: var(--color-cream-60);
    flex-shrink: 0;
}

.shwe-hero-section .line-bottom {
    width: var(--line-width);
    height: var(--bottom-height);
    min-height: 0.5rem;
    background-color: var(--color-cream-40);
    /* Transition only enabled after JS initializes to prevent jump on load */
}

/* Smooth transition - only after JS has set initial position */
.shwe-hero-section .accent-line.is-ready .line-top,
.shwe-hero-section .accent-line.is-ready .line-bottom {
    transition: height 0.08s ease-out;
}

/* No-JS fallback: dot in middle */
.no-js .shwe-hero-section .accent-line {
    --accent-progress: 0.5;
}

/* Reduced motion: static middle position */
@media (prefers-reduced-motion: reduce) {
    .shwe-hero-section .accent-line {
        --accent-progress: 0.5;
    }

    .shwe-hero-section .line-top,
    .shwe-hero-section .line-bottom {
        transition: none;
    }
}

/* ==========================================================================
   Description Text
   ========================================================================== */

.shwe-hero-section .description-text {
    flex: 1;
    max-width: 42rem;
}

.shwe-hero-section .description-content {
    font-size: 1rem;
    color: var(--color-cream-90);
    line-height: 1.75;
    text-align: left;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .shwe-hero-section .description-content {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .shwe-hero-section .description-content {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Editor Preview
   ========================================================================== */

.elementor-editor-active .shwe-hero-section {
    min-height: 500px;
}

.elementor-editor-active .shwe-hero-section .content-wrapper {
    min-height: 500px;
}

.elementor-editor-active .shwe-hero-section .bg-image:empty {
    background: linear-gradient(135deg, #3d342a 0%, #5a4d3f 100%);
}
