/*
File: footer.css
Description: Footer styles for Security Certifications Pro WordPress Theme
Author: Your Name
Version: 1.0.0

This file contains all footer-related styles including:
- Main footer layout and structure
- Footer columns and content areas
- Newsletter signup form
- Social media links
- Compliance badges
- Back-to-top button
- Responsive design
- Accessibility enhancements
- Animation effects
*/

/* ===================================
   FOOTER BASE STYLES
   =================================== */

.site-footer {
    background: var(--bg-dark);
    color: white;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer background pattern overlay */
.site-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 1000 1000"><defs><radialGradient id="footer-bg" cx="50%" cy="50%"><stop offset="0%" stop-color="white" stop-opacity="0.05"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="80" fill="url(%23footer-bg)"/><circle cx="800" cy="300" r="120" fill="url(%23footer-bg)"/><circle cx="300" cy="700" r="100" fill="url(%23footer-bg)"/></svg>');
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

/* ===================================
   FOOTER MAIN LAYOUT
   =================================== */

.footer-main {
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: start;
}

/* ===================================
   FOOTER COLUMNS
   =================================== */

.footer-column {
    animation: slideUp 0.6s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

.footer-column.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* ===================================
   FOOTER BRANDING & COMPANY INFO
   =================================== */

.footer-branding {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.footer-site-title a {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-site-title a:hover {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.footer-description {
    margin-bottom: 2rem;
}

.footer-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   FOOTER CONTACT INFORMATION
   =================================== */

.footer-contact {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.1rem;
    opacity: 0.8;
    width: 20px;
    text-align: center;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-cyan);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===================================
   SOCIAL MEDIA LINKS
   =================================== */

.footer-social {
    margin-top: 2rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-secondary);
    border-radius: 50%;
    transition: var(--transition);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    border-color: transparent;
}

/* ===================================
   FOOTER WIDGET TITLES
   =================================== */

.footer-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* ===================================
   FOOTER NAVIGATION MENU
   =================================== */

.footer-navigation-menu {
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.25rem 0;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 0;
    background: var(--accent-cyan);
    transition: var(--transition);
    border-radius: 3px;
}

.footer-menu a:hover {
    color: var(--accent-cyan);
    padding-left: 20px;
}

.footer-menu a:hover::before {
    height: 20px;
}

/* ===================================
   CERTIFICATION LINKS
   =================================== */

.certification-links {
    margin-bottom: 2rem;
}

.certification-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.certification-list li {
    margin-bottom: 0.75rem;
}

.cert-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    font-size: 1.1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.cert-link:hover .cert-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* ===================================
   COMPLIANCE BADGES
   =================================== */

.compliance-badges {
    margin-top: 2rem;
}

.badges-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.compliance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compliance-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    font-size: 1.2rem;
    opacity: 0.9;
    transition: var(--transition);
}

.compliance-badge:hover .badge-icon {
    opacity: 1;
    transform: scale(1.1);
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.newsletter-content {
    margin-bottom: 2rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.newsletter-input:invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.newsletter-input:valid {
    border-color: rgba(16, 185, 129, 0.5);
}

.newsletter-submit {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.newsletter-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    transform: translate(-50%, -50%);
}

.newsletter-submit:hover::before {
    width: 300%;
    height: 300%;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.newsletter-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.privacy-notice {
    text-align: center;
}

.privacy-notice small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Form Messages */
.form-message {
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-message--success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message--error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===================================
   FOOTER CTA SECTION
   =================================== */

.footer-cta {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-cta::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: var(--transition);
}

.footer-cta:hover::before {
    left: 100%;
}

.footer-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    position: relative;
    z-index: 2;
}

.cta-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.footer-cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

/* ===================================
   FOOTER BOTTOM BAR
   =================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   LEGAL NAVIGATION
   =================================== */

.legal-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.legal-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.legal-menu a:hover {
    color: var(--accent-cyan);
}

.legal-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.legal-menu a:hover::after {
    width: 100%;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */

.back-to-top {
    display: flex;
    justify-content: flex-end;
}

.back-to-top-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.back-to-top-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    transform: translate(-50%, -50%);
}

.back-to-top-button:hover::before {
    width: 200%;
    height: 200%;
}

.back-to-top-button:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.back-to-top-button:active {
    transform: translateY(-1px);
}

.back-to-top-button.visible {
    opacity: 0.8;
    pointer-events: auto;
}

.back-to-top-button:not(.visible) {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-1deg); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.7; 
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 4rem;
    }
    
    .footer-main {
        padding: 5rem 0 3rem 0;
    }
    
    .footer-widget-title {
        font-size: 1.35rem;
    }
}

/* Medium to large screens (769px to 1199px) */
@media (max-width: 1199px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-main {
        padding: 4rem 0 2rem 0;
    }
    
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-main {
        padding: 3rem 0 2rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .legal-menu {
        gap: 1rem;
        justify-content: center;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu a {
        justify-content: center;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .legal-menu {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-widget-title {
        font-size: 1.1rem;
    }
    
    .footer-cta {
        padding: 1rem;
    }
    
    .compliance-badge {
        padding: 0.5rem 0.25rem;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .back-to-top-button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .newsletter-input,
    .newsletter-submit {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-main {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .legal-menu {
        font-size: 0.8rem;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-footer {
        border-top: 3px solid white;
    }
    
    .footer-menu a,
    .cert-link,
    .social-link,
    .newsletter-input,
    .newsletter-submit,
    .footer-cta-button,
    .back-to-top-button {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .footer-widget-title::after {
        height: 4px;
        background: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-column,
    .social-link,
    .back-to-top-button,
    .newsletter-submit,
    .footer-cta-button,
    .cert-link,
    .compliance-badge {
        animation: none;
        transition: none;
    }
    
    .site-footer::before {
        animation: none;
    }
    
    .footer-cta::before,
    .newsletter-submit::before,
    .back-to-top-button::before,
    .social-link::before {
        display: none;
    }
}

/* Focus indicators for keyboard navigation */
.footer-menu a:focus,
.cert-link:focus,
.social-link:focus,
.newsletter-input:focus,
.newsletter-submit:focus,
.footer-cta-button:focus,
.back-to-top-button:focus,
.legal-menu a:focus {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Keyboard focus styling */
.keyboard-focus {
    background: rgba(6, 182, 212, 0.1) !important;
    transform: scale(1.02) !important;
}

/* Screen reader improvements */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .site-footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border-top: 2px solid black;
    }
    
    .site-footer::before {
        display: none;
    }
    
    .footer-social,
    .newsletter-form,
    .footer-cta,
    .back-to-top {
        display: none !important;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .footer-menu a,
    .cert-link,
    .contact-link,
    .legal-menu a {
        color: black !important;
    }
    
    .footer-widget-title {
        color: black !important;
    }
    
    .footer-widget-title::after {
        background: black !important;
    }
    
    .footer-description p,
    .contact-text {
        color: #666 !important;
    }
}