/**
 * Contact Banner Component Styles
 * 
 * Styles for the ContactBanner Web Component using adoptedStyleSheets.
 * This CSS is loaded and applied to the shadow DOM using the Constructable Stylesheets API.
 * 
 * @version 2.3.0
 * @author Julian Billinger
 */

/* FeatureBanner Component Styles (v2.1.0) */

.contact-banner {
    background: #5cfc26;
    background: linear-gradient(30deg, rgba(60, 171, 23, 1) 0%, rgba(233, 0, 144, 1) 100%);
    color: white;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease-in-out;
    z-index: 0;
}

.contact-banner:hover::before {
    left: 100%;
}

.contact-banner__content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    /* --- Default: Stack text and actions vertically --- */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

/* Horizontal layout variant */
.layout--horizontal .contact-banner__content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.contact-banner__text {
    /* Default: centered text */
    width: 100%;
    max-width: 1400px;
    text-align: center;
}

/* Horizontal layout: text positioned left */
.layout--horizontal .contact-banner__text {
    flex: 1;
    text-align: left;
    margin-right: 1rem;
    max-width: none;
}

.contact-banner__title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-banner__subtitle {
    margin: 0.5rem 0 0 0;
    color: white !important;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-banner__actions {
    /* Default: centered actions */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Horizontal layout: actions stay right-aligned */
.layout--horizontal .contact-banner__actions {
    flex-shrink: 0;
    min-width: fit-content;
}

.contact-banner__action-link,
.contact-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-banner__action-link {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.contact-banner__action-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-banner__btn {
    background: linear-gradient(135deg, #a50065, #8a0054);
    box-shadow: 0 4px 12px rgba(165, 0, 101, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-banner__btn:hover {
    background: linear-gradient(135deg, #8a0054, #6d0043);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 0, 101, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-banner__icon {
    flex-shrink: 0;
}

/* --- Component Size Modifiers --- */
.component-size--small {
    padding: 1rem 1.5rem;
}

.component-size--normal {
    padding: 2rem 1.5rem;
}

.component-size--big {
    padding: 4rem 1.5rem;
}

/* --- Text Size Modifiers --- */
.text-size--small .contact-banner__title {
    font-size: 1.2rem;
}

.text-size--small .contact-banner__subtitle {
    font-size: 0.9rem;
}

.text-size--normal .contact-banner__title {
    font-size: 1.8rem;
}

.text-size--normal .contact-banner__subtitle {
    font-size: 1.1rem;
}

.text-size--big .contact-banner__title {
    font-size: 2.3rem;
}

.text-size--big .contact-banner__subtitle {
    font-size: 1.3rem;
}

/* --- Color Variant Modifiers --- */
.color-variant--default {
    background: #5cfc26;
    background: linear-gradient(30deg, rgba(60, 171, 23, 1) 0%, rgba(233, 0, 144, 1) 100%);
}

.color-variant--orange {
    background: linear-gradient(30deg, #e6850a, #FFBC03);
}

.color-variant--orange .contact-banner__action-link {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.color-variant--orange .contact-banner__action-link:hover {
    background: rgba(0, 0, 0, 0.35);
}

.color-variant--black {
    background: linear-gradient(30deg, #1a1a1a, #333333);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    /* Force vertical layout on tablets and smaller, regardless of layout attribute */
    .contact-banner__content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .contact-banner__text {
        text-align: center !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .contact-banner__actions {
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .component-size--normal {
        padding: 1.5rem 1rem;
    }

    .component-size--big {
        padding: 2.5rem 1rem;
    }

    .text-size--normal .contact-banner__title {
        font-size: 1.5rem;
    }

    .text-size--normal .contact-banner__subtitle {
        font-size: 1rem;
    }

    .text-size--big .contact-banner__title {
        font-size: 2rem;
    }

    .text-size--big .contact-banner__subtitle {
        font-size: 1.1rem;
    }

    /* On very small screens, stack the action buttons vertically for better fit */
    .contact-banner__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        align-items: center;
    }

    .contact-banner__action-link,
    .contact-banner__btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Accessibility & Print --- */
.contact-banner__action-link:focus-visible,
.contact-banner__btn:focus-visible {
    outline: 3px solid #a50065;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .contact-banner::before,
    .contact-banner__action-link,
    .contact-banner__btn {
        transition: none;
    }

    .contact-banner__action-link:hover,
    .contact-banner__btn:hover {
        transform: none;
    }
}

@media print {
    .contact-banner {
        background: transparent !important;
        color: black !important;
        border: 2px solid black;
        padding: 1rem;
    }

    .contact-banner__action-link,
    .contact-banner__btn {
        border: 1px solid black;
        color: black;
    }
}