/* Professional Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--dark-gray) 100%);
    color: var(--light-gray);
    position: relative;
    padding: 60px 0 30px;
    width: 100vw; /* Full viewport width */
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Center the full-width element */
    margin-right: -50vw;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.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 100 100"><defs><pattern id="footerpattern" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="40" r="1.5" fill="rgba(74,144,226,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerpattern)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-column a {
    color: rgba(236, 240, 241, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 0;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 15px;
}

.footer-column a:hover::before {
    width: 8px;
}

/* Company Info Column */
.footer-column p {
    color: rgba(236, 240, 241, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.company-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo::before {
    content: '🐾';
    font-size: 1.5rem;
}

/* Contact Info */
.contact-info {
    margin-bottom: 25px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-info li i {
    color: #4A90E2;
    font-size: 1rem;
    margin-top: 3px;
}

.contact-info li a,
.contact-info li span {
    color: rgba(236, 240, 241, 0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-info li a:hover {
    color: #FFFFFF;
    padding-left: 0;
}

.contact-info li a::before {
    display: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #4A90E2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    padding-left: 0;
}

.social-link::before {
    display: none;
}

/* Pet Safety Tips Section */
.pet-tips-container {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 30px;
    position: relative;
}

.pet-tips {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(53, 122, 189, 0.15) 100%);
    border-radius: 12px;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-header {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.newsletter-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.newsletter-label {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--font-family-heading);
}

.newsletter-form {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 300px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(236, 240, 241, 0.6);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.newsletter-btn {
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: #cc3366; /* match site accent */
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 51, 102, 0.14);
    background: #ffffff; /* invert to white */
    color: #cc3366; /* accent text on hover */
    border-color: #cc3366;
}

.tip-rotation {
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-tip {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.8s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

.active-tip[data-tip="1"] {
    position: relative;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(236, 240, 241, 0.7);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(236, 240, 241, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #357ABD, #4A90E2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .newsletter-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .tip-rotation {
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column a::before {
        display: none;
    }
    
    .footer-column a:hover {
        padding-left: 0;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-inline {
        justify-content: center;
        text-align: center;
    }
    
    .newsletter-label {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .active-tip {
        font-size: 1rem;
    }
    
    .pet-tips {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-container,
    .pet-tips-container {
        padding: 0 20px;
    }
    
    .footer-column h3,
    .newsletter-label {
        font-size: 1.2rem;
    }
    
    .company-logo {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .active-tip {
        font-size: 0.95rem;
    }
    
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    
    .pet-tips {
        padding: 12px 15px;
    }
    
    .tip-rotation {
        min-height: 100px;
    }
}

/* Print Styles */
@media print {
    .site-footer {
        background: white !important;
        color: black !important;
        box-shadow: none;
    }
    
    .footer-column h3,
    .footer-column a,
    .contact-info li a,
    .contact-info li span,
    .footer-links a {
        color: black !important;
    }
    
    .pet-tips-container,
    .social-links,
    .scroll-to-top {
        display: none !important;
    }
}

/* Sticky footer fix: ensure footer sits at viewport bottom and remove whitespace */
html, body {
    height: 100%;
    margin: 0;
}

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
    box-sizing: border-box;
    left: 0;
    right: 0;
    width: 100%;
}
