/* Modern Footer Styles for Modeno Theme */

/* Footer Container */
.modeno-footer {
    background: linear-gradient(135deg, hsl(var(--delft-blue)), hsl(var(--celtic-blue)));
    color: white;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.modeno-footer::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.modeno-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Main Footer Content */
.modeno-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding: 64px 0 48px;
    align-items: start;
}

/* Footer Sections */
.modeno-footer-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Company Section */
.modeno-footer-company {
    max-width: 400px;
}

.modeno-footer-logo {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modeno-footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modeno-footer-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.modeno-footer-logo-image {
    height: auto;
    width: auto;
    max-width: 200px;
    max-height: 60px;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
    object-fit: contain;
}

.modeno-footer-logo-link:hover .modeno-footer-logo-image {
    opacity: 0.9;
    transform: scale(1.02);
}

.modeno-footer-brand {
    /* Typography handled by typography-system.css */
    color: white;
    margin: 0 0 8px 0;
    display: none; /* Hidden when logo image is present */
}

.modeno-footer-tagline {
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.8);
    margin: 0;
}

.modeno-footer-description {
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.9);
    margin: 0 0 24px 0;
}

/* Contact Info */
.modeno-footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modeno-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.9);
    transition: color 0.3s ease;
}

.modeno-contact-item:hover {
    color: white;
}

.modeno-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: hsl(var(--primary) / 0.8);
    transition: color 0.3s ease;
}

.modeno-contact-item:hover .modeno-contact-icon {
    color: hsl(var(--primary));
}

/* Footer Titles */
.modeno-footer-title {
    /* Typography handled by typography-system.css */
    color: white;
    margin: 0 0 8px 0;
}

/* Footer Links */
.modeno-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modeno-footer-links li {
    margin: 0;
}

.modeno-footer-links a {
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.modeno-footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.modeno-footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: hsl(var(--primary));
    transition: width 0.3s ease;
}

.modeno-footer-links a:hover::before {
    width: 8px;
}

/* Newsletter Section */
.modeno-footer-newsletter {
    max-width: 320px;
}

.modeno-footer-newsletter-text {
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.8);
    margin: 0 0 20px 0;
}

/* Newsletter Form */
.modeno-newsletter-form {
    margin-bottom: 32px;
}

.modeno-newsletter-input-group {
    display: flex;
    background: hsl(0, 0%, 100% / 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid hsl(0, 0%, 100% / 0.2);
    transition: all 0.3s ease;
}

.modeno-newsletter-input-group:focus-within {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.modeno-newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: white;
    /* Typography handled by typography-system.css */
    outline: none;
}

.modeno-newsletter-input::placeholder {
    color: hsl(0, 0%, 100% / 0.6);
}

.modeno-newsletter-button {
    padding: 12px 16px;
    border: none;
    background: hsl(var(--primary));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modeno-newsletter-button:hover {
    background: hsl(var(--primary) / 0.9);
    transform: scale(1.05);
}

.modeno-newsletter-button svg {
    width: 18px;
    height: 18px;
}

/* Social Links */
.modeno-social-links {
    margin-top: 8px;
}

.modeno-social-title {
    /* Typography handled by typography-system.css */
    color: white;
    margin: 0 0 16px 0;
}

.modeno-social-icons {
    display: flex;
    gap: 12px;
}

.modeno-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(0, 0%, 100% / 0.1);
    border-radius: 12px;
    color: hsl(0, 0%, 100% / 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid hsl(0, 0%, 100% / 0.2);
}

.modeno-social-link:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.3);
}

.modeno-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.modeno-footer-bottom {
    border-top: 1px solid hsl(0, 0%, 100% / 0.2);
    padding: 24px 0;
}

.modeno-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.modeno-footer-copyright p {
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.7);
    margin: 0;
}

.modeno-footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.modeno-footer-legal a {
    /* Typography handled by typography-system.css */
    color: hsl(0, 0%, 100% / 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modeno-footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modeno-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 48px 0 40px;
    }
    
    .modeno-footer-company {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .modeno-footer-container {
        padding: 0 20px;
    }
    
    .modeno-footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }
    
    .modeno-footer-brand {
        font-size: 1.75rem;
    }
    
    .modeno-footer-title {
        font-size: 1.125rem;
    }
    
    .modeno-footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .modeno-footer-legal {
        justify-content: center;
        gap: 16px;
    }
    
    .modeno-social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modeno-footer-container {
        padding: 0 16px;
    }
    
    .modeno-footer-main {
        gap: 24px;
        padding: 32px 0 24px;
    }
    
    .modeno-footer-brand {
        font-size: 1.5rem;
    }
    
    .modeno-footer-description {
        font-size: 0.9rem;
    }
    
    .modeno-footer-links a {
        font-size: 0.9rem;
    }
    
    .modeno-newsletter-input-group {
        flex-direction: column;
    }
    
    .modeno-newsletter-input {
        border-radius: 12px 12px 0 0;
    }
    
    .modeno-newsletter-button {
        border-radius: 0 0 12px 12px;
    }
    
    .modeno-social-link {
        width: 40px;
        height: 40px;
    }
    
    .modeno-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation for newsletter form */
@keyframes newsletterSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.modeno-newsletter-form.success .modeno-newsletter-button {
    animation: newsletterSuccess 0.6s ease;
}

/* Focus styles for accessibility */
.modeno-footer-links a:focus,
.modeno-newsletter-input:focus,
.modeno-newsletter-button:focus,
.modeno-social-link:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modeno-footer {
        background: hsl(var(--delft-blue));
    }
    
    .modeno-footer-links a,
    .modeno-footer-legal a,
    .modeno-footer-copyright p {
        color: white;
    }
}

/* Professional Disclaimer Styles */
.modeno-footer-disclaimer {
    background: linear-gradient(135deg, #1a2332, #2c3e50);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    position: relative;
}

.modeno-disclaimer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.modeno-disclaimer-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #f59e0b;
    margin-top: 2px;
}

.modeno-disclaimer-icon svg {
    width: 100%;
    height: 100%;
}

.modeno-disclaimer-content {
    flex: 1;
}

.modeno-disclaimer-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: #f59e0b;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modeno-disclaimer-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.modeno-disclaimer-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Contact Link Styles */
.modeno-contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modeno-contact-link:hover {
    color: hsl(var(--primary));
    text-decoration: underline;
}

/* Business Numbers Styles */
.modeno-business-numbers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modeno-business-number {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(0, 0%, 100% / 0.9);
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modeno-business-number:hover {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.modeno-contact-item:hover .modeno-business-number {
    color: white;
}

/* Responsive Disclaimer */
@media (max-width: 768px) {
    .modeno-footer-disclaimer {
        padding: 20px 0;
    }
    
    .modeno-disclaimer-container {
        padding: 0 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .modeno-disclaimer-icon {
        align-self: flex-start;
    }
    
    .modeno-disclaimer-title {
        font-size: 0.8rem;
    }
    
    .modeno-disclaimer-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modeno-footer-disclaimer {
        padding: 16px 0;
    }
    
    .modeno-disclaimer-container {
        padding: 0 16px;
    }
    
    .modeno-disclaimer-title {
        font-size: 0.75rem;
    }
    
    .modeno-disclaimer-text {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modeno-footer-links a,
    .modeno-contact-item,
    .modeno-newsletter-button,
    .modeno-social-link,
    .modeno-contact-link {
        transition: none;
    }
    
    .modeno-footer-links a:hover {
        transform: none;
    }
    
    .modeno-newsletter-button:hover {
        transform: none;
    }
    
    .modeno-social-link:hover {
        transform: none;
    }
}
