/* ==========================================================================
   Shared UI Components — Eyebrow Tag + Hero Buttons
   Used across all widgets for consistent styling
   ========================================================================== */

/* ==========================================================================
   Hero Eyebrow — Tag Pill
   ========================================================================== */
.hero-eyebrow {
    margin-bottom: 20px;
}

.eyebrow-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #17468A;
    background: linear-gradient(135deg,
        rgba(23, 70, 138, 0.08) 0%,
        rgba(30, 90, 173, 0.08) 100%);
    border: 1px solid rgba(23, 70, 138, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.eyebrow-inner svg {
    flex-shrink: 0;
}

/* Shimmer sweep */
.eyebrow-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(23, 70, 138, 0.15),
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* ==========================================================================
   Hero Buttons — Primary + Secondary
   ========================================================================== */
.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease,
                border-color 0.3s ease;
}

/* Button layers */
.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
}

.btn-text {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    z-index: 2;
    pointer-events: none;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon animation */
.btn-text svg,
.btn-text i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-btn:hover .btn-text svg,
.hero-btn:hover .btn-text i {
    transform: translateX(4px);
}

/* ── Primary Button — shared hero-btn-primary (navy → teal on hover) ───── */
.hero-btn-primary {
    color: #ffffff;
    background: #001830;
    box-shadow: 0 14px 30px -10px rgba(0, 24, 48, 0.45);
    border: 2px solid transparent;
}

.hero-btn-primary .btn-bg { display: none; }

.hero-btn-primary:hover {
    background: #3e9c95;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(62, 156, 149, 0.7);
    color: #ffffff;
}

.hero-btn-primary:active {
    transform: translateY(-1px);
}

/* ── Secondary Button ───────────────────────────────────────────────────── */
.hero-btn-secondary {
    color: #001830;
    background: transparent;
    border: 2px solid #001830;
}

.hero-btn-secondary .btn-bg {
    background: #17468A;
    width: 0;
    opacity: 1;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-btn-secondary:hover {
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 70, 138, 0.25);
}

.hero-btn-secondary:hover .btn-bg {
    width: 100%;
}

.hero-btn-secondary:active {
    transform: translateY(-1px);
}

/* ── Hover Effects ──────────────────────────────────────────────────────── */

/* Shine sweep */
.hero-btn.hover-shine:hover .btn-shine {
    left: 100%;
}

/* Fill effect */
.hero-btn.hover-fill:hover .btn-bg {
    opacity: 1;
}

/* Lift effect */
.hero-btn.hover-lift:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ==========================================================================
   Legacy CTA Button (backwards compatibility)
   ========================================================================== */
.lc-cta-wrapper {
    display: flex;
    margin-top: 24px;
}

.lc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #17468A;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lc-cta-btn:hover {
    background-color: #1E5AAD;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 70, 138, 0.25);
    color: #ffffff;
}

.lc-cta-btn:active {
    transform: translateY(0);
}

.lc-cta-btn-text {
    position: relative;
    z-index: 1;
}

.lc-cta-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.lc-cta-btn-icon svg,
.lc-cta-btn-icon i {
    width: 16px;
    height: 16px;
    font-size: 14px;
}

.lc-cta-btn:hover .lc-cta-btn-icon {
    transform: translateX(4px);
}

.lc-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.lc-cta-btn:hover::before {
    left: 100%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .eyebrow-inner {
        padding: 10px 18px;
        font-size: 12px;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .lc-cta-wrapper {
        margin-top: 20px;
    }

    .lc-cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .lc-cta-btn-icon svg,
    .lc-cta-btn-icon i {
        width: 14px;
        height: 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .eyebrow-inner {
        padding: 8px 14px;
        font-size: 11px;
    }

    .hero-btn {
        padding: 11px 20px;
        font-size: 13px;
    }

    .lc-cta-wrapper {
        margin-top: 16px;
    }

    .lc-cta-btn {
        padding: 11px 20px;
        font-size: 13px;
        gap: 8px;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .eyebrow-inner::before {
        animation: none;
        display: none;
    }

    .hero-btn {
        transition: box-shadow 0.3s ease !important;
    }

    .hero-btn:hover {
        transform: none !important;
    }

    .btn-bg,
    .btn-shine {
        transition: none !important;
    }

    .btn-text svg,
    .btn-text i {
        transition: none !important;
    }

    .lc-cta-btn,
    .lc-cta-btn-icon,
    .lc-cta-btn::before {
        transition: none;
    }

    .lc-cta-btn:hover {
        transform: none;
    }

    .lc-cta-btn:hover .lc-cta-btn-icon {
        transform: none;
    }

    .lc-cta-btn::before {
        display: none;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.hero-btn:focus-visible {
    outline: 3px solid #17468A;
    outline-offset: 4px;
}

.lc-cta-btn:focus-visible {
    outline: 3px solid #17468A;
    outline-offset: 4px;
}
