/**
 * HPBC Footer Widget Styles
 * Modern and impressive footer design with responsive layout
 */

.hpbc-footer {
    /* Background and text colors controlled by Elementor */
    position: relative;
    overflow: hidden;
}

/* Optional grid pattern overlay - can be controlled via Elementor */
.hpbc-footer.hpbc-footer-with-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.hpbc-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hpbc-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 60px 20px 40px;
    position: relative;
}

.hpbc-footer-column {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.hpbc-footer-column:nth-child(1) { animation-delay: 0.1s; }
.hpbc-footer-column:nth-child(2) { animation-delay: 0.2s; }
.hpbc-footer-column:nth-child(3) { animation-delay: 0.3s; }
.hpbc-footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Company Information Styles */
.hpbc-company-info .hpbc-footer-logo {
    margin-bottom: 20px;
}

.hpbc-company-info .hpbc-footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.hpbc-company-info .hpbc-footer-logo img:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
}

.hpbc-footer-description p {
    font-size: 14px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 25px;
    text-align: justify;
}

/* Social Links Styles */
.hpbc-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hpbc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hpbc-social-link::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;
}

.hpbc-social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.hpbc-social-link:hover::before {
    left: 100%;
}

.hpbc-social-link:nth-child(1) { background: linear-gradient(135deg, #1877f2, #0d47a1); }
.hpbc-social-link:nth-child(2) { background: linear-gradient(135deg, #1da1f2, #0d47a1); }
.hpbc-social-link:nth-child(3) { background: linear-gradient(135deg, #0077b5, #004182); }
.hpbc-social-link:nth-child(4) { background: linear-gradient(135deg, #e4405f, #c13584); }
.hpbc-social-link:nth-child(5) { background: linear-gradient(135deg, #ff0000, #cc0000); }

/* Footer Titles */
.hpbc-footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: inherit;
    position: relative;
    padding-bottom: 10px;
}

.hpbc-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

/* Quick Links Styles */
.hpbc-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hpbc-links-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.hpbc-links-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-size: 10px;
    transition: all 0.3s ease;
}

.hpbc-links-list li:hover::before {
    color: #60a5fa;
    transform: translateX(3px);
}

.hpbc-links-list a {
    color: inherit;
    opacity: 0.8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.hpbc-links-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.hpbc-links-list a:hover {
    color: inherit;
    opacity: 1;
    transform: translateX(5px);
}

.hpbc-links-list a:hover::after {
    width: 100%;
}

/* Contact Information Styles */
.hpbc-contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hpbc-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.hpbc-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
    transform: translateX(5px);
}

.hpbc-contact-item i {
    color: #3b82f6;
    font-size: 16px;
    margin-top: 2px;
    min-width: 16px;
}

.hpbc-contact-item span {
    color: inherit;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
}

/* Map Styles */
.hpbc-map-column {
    min-height: 250px;
}

.hpbc-footer-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hpbc-footer-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hpbc-footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.hpbc-footer-map:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* Copyright Section - Styles controlled by Elementor */
.hpbc-footer-copyright {
    /* Background, padding, margin, border controlled by Elementor */
    backdrop-filter: blur(10px);
}

.hpbc-copyright-content {
    /* Text alignment controlled by Elementor */
    max-width: 1200px;
    margin: 0 auto;
}

.hpbc-copyright-content p {
    margin: 0;
    /* Color, typography controlled by Elementor */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hpbc-footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 50px 20px 30px;
    }
    
    .hpbc-map-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hpbc-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 15px 25px;
    }
    
    .hpbc-map-column {
        grid-column: span 1;
    }
    
    .hpbc-footer-map {
        height: 200px;
    }
    
    .hpbc-social-links {
        justify-content: center;
    }
    
    .hpbc-footer-title {
        text-align: center;
        font-size: 18px;
    }
    
    .hpbc-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hpbc-links-list {
        text-align: center;
    }
    
    .hpbc-links-list li {
        padding-left: 0;
    }
    
    .hpbc-links-list li::before {
        display: none;
    }
    
    .hpbc-contact-details {
        align-items: center;
    }
    
    .hpbc-contact-item {
        justify-content: center;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hpbc-footer-content {
        padding: 30px 10px 20px;
        gap: 25px;
    }
    
    .hpbc-footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hpbc-social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hpbc-footer-map {
        height: 180px;
    }
    
    .hpbc-footer-copyright {
        padding: 20px 10px;
    }
    
    .hpbc-copyright-content p {
        font-size: 12px;
    }
}

/* Dark mode enhancements - Colors controlled by Elementor */
@media (prefers-color-scheme: dark) {
    /* Background and text colors are controlled by Elementor controls */
}

/* Print styles */
@media print {
    .hpbc-footer {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    .hpbc-footer * {
        color: #000000 !important;
        background: transparent !important;
    }
    
    .hpbc-footer-map,
    .hpbc-social-links {
        display: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hpbc-footer {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .hpbc-footer-title::after {
        background: #ffffff;
    }
    
    .hpbc-social-link {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .hpbc-contact-item {
        border: 1px solid #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hpbc-footer-column {
        animation: none;
    }
    
    .hpbc-social-link,
    .hpbc-links-list a,
    .hpbc-contact-item,
    .hpbc-footer-map {
        transition: none;
    }
    
    .hpbc-social-link:hover,
    .hpbc-links-list a:hover,
    .hpbc-contact-item:hover,
    .hpbc-footer-map:hover {
        transform: none;
    }
}