/**
 * Hero Underline Styles
 * Az animáció csak .animate class hozzáadásakor indul
 */

h1.hero-heading {
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.2;
}

.hero-highlight {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

h2.hero-heading {
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.2;
}

h2.hero-heading.left {
    text-align: left;
}


.hero-underline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 20px;
}

.hero-underline path {
    fill: none;
    stroke: url(#underlineGradient);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    /* FONTOS: Alapból nincs animáció! */
}

/* Animáció CSAK ha .animate osztály van a .hero-highlight elemen */
.hero-highlight.animate .hero-underline path {
    animation: drawElastic 1.2s cubic-bezier(.68, -0.6, .32, 1.6) forwards;
    animation-delay: 0.3s;
}

@keyframes drawElastic {
    0%   { stroke-dashoffset: 120; }
    80%  { stroke-dashoffset: -8; }
    100% { stroke-dashoffset: 0; }
}

/* MOBIL */
@media (max-width: 768px) {
    h1.hero-heading {
        font-size: 30px;
        line-height: 1.25;
    }

    h2.hero-heading {
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.2;
}



    h2.hero-heading.left {
    text-align: left;
}

    .hero-underline {
        height: 14px;
    }

    .hero-underline path {
        stroke-width: 1.5;
    }
}
