/* =============================================================
   Welcome Section Component - CSS
   ============================================================= */

.welcome-section {
    position: relative;
    /* Background is intentionally not set here — it would cover the editor-set
       Background Colour/Image on the parent .content-component wrapper. Leaving
       this transparent lets the flexible builder's Style tab drive the look. */
    background: transparent;
}

.welcome-section .container {
    max-width: 1446px !important;
    margin: 0 auto;
}

/* Text colour defaults live here as variable fallbacks. When the editor sets
   "Text Colour" in the Style tab, flexible_main_content.twig emits
   --section-color on the parent, which wins over these defaults via the cascade. */
.welcome-section__left  { color: var(--section-color, #0F3D73); }
.welcome-section__right { color: var(--section-color, #081C3B); }

.welcome-section h1, 
.welcome-section h2, 
.welcome-section p, 
.welcome-section div {
    font-family: 'Raleway', sans-serif;
}

.welcome-section .Pacifico,
.welcome-section [data-welcome-text] {
    font-family: 'Pacifico', cursive;
}

/* Welcome! animation styles */
.welcome-section .welcome-text {
    opacity: 0;
}

.welcome-section .welcome-text.animate {
    animation: welcomeFade .8s ease forwards;
}

.welcome-section .welcome-bang {
    display: inline-block;
    opacity: 0;
}

.welcome-section .welcome-bang.animate {
    animation: popBang .5s ease forwards 1.5s;
}

.welcome-section .welcome-wave-path {
    stroke: #F20D03;
    stroke-width: 1;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    fill-opacity: 0;
}

.welcome-section .welcome-wave-path.animate {
    animation: drawWave 1s ease forwards .7s;
}

/* Wave image fade-in (for SVG file references) */
.welcome-section .welcome-wave-img {
    opacity: 0;
}

.welcome-section .welcome-wave-img.animate {
    animation: welcomeFade 1s ease forwards .7s;
}

@keyframes welcomeFade {
    to { opacity: 1; }
}

@keyframes drawWave {
    to { stroke-dashoffset: 0; fill-opacity: 1; }
}

@keyframes popBang {
    0% {
        opacity: 0;
        transform: scale(.3) rotate(-11.33deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.15) rotate(-11.33deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-11.33deg);
    }
}

.welcome-section .wave-svg {
    animation: waveFloat 6s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
