/**
 * Hero Block Styles
 */

.dgf-hero {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.dgf-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    z-index: 1;
}

.dgf-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.dgf-hero__subheading {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.dgf-hero__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.dgf-hero__description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    max-width: 800px;
}

.dgf-hero__description p {
    margin: 0 0 1rem;
}

.dgf-hero__description p:last-child {
    margin-bottom: 0;
}

.dgf-hero__button {
    margin-top: 2rem;
}

/* Text alignment variations */
.dgf-hero__content[style*="text-align: center"] .dgf-hero__description {
    margin-left: auto;
    margin-right: auto;
}

.dgf-hero__content[style*="text-align: left"] .dgf-hero__description {
    margin-left: 0;
}

.dgf-hero__content[style*="text-align: right"] .dgf-hero__description {
    margin-left: auto;
    margin-right: 0;
}

/* Style variations */
.dgf-hero.is-style-overlay-dark .dgf-hero__overlay {
    background-color: #000;
}

.dgf-hero.is-style-overlay-light .dgf-hero__overlay {
    background-color: #fff;
}

/* Alignment variations */
.dgf-hero.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.dgf-hero.alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.button--primary {
    background-color: var(--dgf-primary-color, #007cba);
    color: #fff;
    border-color: var(--dgf-primary-color, #007cba);
}

.button--primary:hover {
    background-color: var(--dgf-secondary-color, #005a87);
    border-color: var(--dgf-secondary-color, #005a87);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .dgf-hero__content {
        padding: 60px 0;
    }
    
    .dgf-hero__heading {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .dgf-hero__description {
        font-size: 1.125rem;
    }
    
    .button {
        padding: 0.875rem 1.75rem;
    }
}