/* ==========================================
   CELLMEC PROFESSIONAL FOOTER
   Elegant, Sophisticated & Comprehensive
   ========================================== */

/* ==========================================
   MAIN FOOTER SECTION
   ========================================== */

.cellmec-professional-footer {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cellmec-professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.footer-main-section {
    padding: 80px 0 60px;
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, #1a1534 100%);
}

.footer-main-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            repeating-linear-gradient(0deg, rgba(200, 162, 91, 0.02) 0px, rgba(200, 162, 91, 0.02) 1px, transparent 1px, transparent 60px),
            repeating-linear-gradient(90deg, rgba(200, 162, 91, 0.02) 0px, rgba(200, 162, 91, 0.02) 1px, transparent 1px, transparent 60px);
    opacity: 0.5;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Company Info Column */
.footer-about {
    padding-right: 20px;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo-display {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--white);
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
}

.footer-brand-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-certifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(200, 162, 91, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.cert-item i {
    color: var(--gold);
    font-size: 18px;
}

/* Column Titles */
.footer-column-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 10px 0;
}

.title-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-accent {
    width: 50px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

/* Footer Links */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li {
    position: relative;
}

.footer-links-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-links-list a i {
    color: var(--gold);
    font-size: 12px;
    transition: var(--transition-smooth);
}

.footer-links-list a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-links-list a:hover i {
    transform: translateX(5px);
}

/* Contact Column */
.footer-contact {
    gap: 20px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.contact-details a.contact-text {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a.contact-text:hover {
    color: var(--gold);
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */

.footer-newsletter-section {
    background: linear-gradient(135deg, rgba(200, 162, 91, 0.1) 0%, rgba(200, 162, 91, 0.05) 100%);
    padding: 35px 0; /* Reduced from 50px */
    border-top: 1px solid rgba(200, 162, 91, 0.2);
    border-bottom: 1px solid rgba(200, 162, 91, 0.2);
}

.newsletter-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px; /* Reduced from 60px */
    align-items: center;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Reduced from 25px */
}

.newsletter-icon {
    width: 65px; /* Reduced from 80px */
    height: 65px; /* Reduced from 80px */
    background: var(--gradient-gold);
    border-radius: 14px; /* Slightly smaller */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px; /* Reduced from 36px */
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(200, 162, 91, 0.3);
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 24px; /* Reduced from 28px */
    font-weight: 800;
    color: var(--white);
    margin: 0 0 8px 0; /* Reduced margin */
    letter-spacing: 0.5px;
}

.newsletter-desc {
    font-size: 13px; /* Reduced from 14px */
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced from 12px */
}

.form-group {
    display: flex;
    gap: 10px; /* Reduced from 12px */
}

.newsletter-input {
    flex: 1;
    padding: 15px 22px; /* Reduced from 18px 24px */
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 14px; /* Reduced from 15px */
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
}

.newsletter-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Reduced from 12px */
    padding: 15px 30px; /* Reduced from 18px 36px */
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 14px; /* Reduced from 15px */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 18px rgba(200, 162, 91, 0.3);
}

.newsletter-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 162, 91, 0.4);
}

.newsletter-submit:active {
    transform: translateY(-1px);
}

.submit-icon {
    transition: var(--transition-smooth);
}

.newsletter-submit:hover .submit-icon {
    transform: translateX(5px);
}

.form-message {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================
   SOCIAL & PARTNERS SECTION
   ========================================== */

.footer-social-section {
    padding: 35px 0; /* Reduced from 50px */
    background: rgba(0, 0, 0, 0.2);
}

.social-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px; /* Reduced from 80px */
    align-items: center;
}

.social-content {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Reduced from 20px */
}

.social-title {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.social-links-group {
    display: flex;
    gap: 14px; /* Reduced from 16px */
}

.social-link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    padding: 16px 20px; /* Reduced from 20px 24px */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; /* Reduced from 12px */
    color: var(--white);
    text-decoration: none;
    font-size: 12px; /* Reduced from 13px */
    font-weight: 600;
    transition: var(--transition-smooth);
    min-width: 100px; /* Reduced from 110px */
}

.social-link-box i {
    font-size: 24px; /* Reduced from 28px */
    color: var(--gold);
    transition: var(--transition-smooth);
}

.social-link-box:hover {
    background: rgba(200, 162, 91, 0.15);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.social-link-box:hover i {
    transform: scale(1.1);
}

.partners-content {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 18px */
    align-items: flex-end;
}

.partners-title {
    font-size: 13px; /* Reduced from 14px */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.partners-logo {
    display: flex;
    align-items: center;
    gap: 14px; /* Reduced from 16px */
    padding: 15px 24px; /* Reduced from 18px 28px */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(200, 162, 91, 0.3);
    border-radius: 10px; /* Reduced from 12px */
    transition: var(--transition-smooth);
}

.partner-logo-img {
    width: 55px; /* Reduced from 60px */
    height: 55px; /* Reduced from 60px */
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
    padding: 6px;
}

.partner-name {
    font-size: 15px; /* Reduced from 16px */
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.partners-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
}

/* ==========================================
   BOTTOM BAR
   ========================================== */

.footer-bottom-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    border-top: 1px solid rgba(200, 162, 91, 0.2);
}

.bottom-bar-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.copyright-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.copyright-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.copyright-text strong {
    color: var(--gold);
    font-weight: 800;
}

.since-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--gold);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Hide sitemap link if it exists */
.legal-links a[href*="sitemap"] {
    display: none;
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-size: 13px;
}

.credit-text {
    color: rgba(255, 255, 255, 0.6);
}

.credit-heart {
    color: #EF4444;
    font-size: 14px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.credit-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.credit-link:hover {
    color: var(--white);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(200, 162, 91, 0.4);
    z-index: 9998;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(200, 162, 91, 0.5);
}

.btn-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1400px) {
    .footer-grid {
        grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr;
        gap: 50px;
    }

    .newsletter-wrapper {
        gap: 50px;
    }

    .social-wrapper {
        gap: 60px;
    }
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .newsletter-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-content {
        justify-content: center;
        text-align: center;
    }

    .newsletter-text {
        text-align: center;
    }

    .social-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partners-content {
        align-items: center;
    }

    .bottom-bar-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .copyright-text {
        align-items: center;
    }

    .developer-credit {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .footer-main-section {
        padding: 60px 0 50px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-newsletter-section {
        padding: 40px 0;
    }

    .newsletter-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .footer-social-section {
        padding: 40px 0;
    }

    .social-links-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-about {
        padding-right: 0;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-title {
        font-size: 22px;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-submit {
        justify-content: center;
    }

    .social-links-group {
        justify-content: center;
    }

    .social-link-box {
        min-width: auto;
        padding: 18px 20px;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .footer-main-section {
        padding: 50px 0 40px;
    }

    .footer-logo-display {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-img {
        width: 65px;
        height: 65px;
    }

    .footer-brand-name {
        font-size: 24px;
    }

    .newsletter-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .newsletter-title {
        font-size: 20px;
    }

    .newsletter-input {
        padding: 16px 20px;
        font-size: 14px;
    }

    .newsletter-submit {
        padding: 16px 28px;
        font-size: 14px;
    }

    .social-links-group {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .social-link-box {
        width: 100%;
    }

    .partners-logo {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-bar {
        padding: 25px 0;
    }

    .legal-links {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }

    .back-to-top-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .btn-text {
        font-size: 9px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .footer-newsletter-section,
    .footer-social-section,
    .back-to-top-btn {
        display: none !important;
    }

    .cellmec-professional-footer {
        background: var(--white) !important;
        color: var(--navy) !important;
    }
}