/* Heading Component Styles */

.heading {
    margin-bottom: 60px;
}

.heading-label-wrapper {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.heading-label {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-h6);
    color: var(--color-secondary);
    font-variation-settings: var(--font-variation-settings);
}

.heading-dot {
    width: var(--spacing-xs);
    height: var(--spacing-xs);
    display: block;
    flex-shrink: 0;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.heading-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-h2);
    color: var(--color-text);
    margin: 0;
    font-variation-settings: var(--font-variation-settings);
}

.scroll-reveal-heading {
    position: relative;
    display: block;
    overflow: hidden;
    color: transparent !important;
    padding: 0.05em 0 0.1em;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scroll-reveal-heading::after {
    content: attr(data-heading);
    display: inline-block;
    width: 100%;
    transform: translate3d(0, 110%, 0);
    opacity: 0;
    color: var(--reveal-heading-color, var(--color-text));
    white-space: pre-wrap;
    word-break: auto-phrase;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: transform 0.85s cubic-bezier(.19, 1, .22, 1), opacity 0.6s ease, color 0.3s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.scroll-reveal-heading.is-visible::after {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .heading-title {
        font-size: 48px;
        line-height: 52px;
    }
    
    .heading-label {
        font-size: 16px;
        line-height: 22px;
    }
}

