/**
 * IT Solution Custom Theme - Footer Stylesheet
 */

.it-site-footer {
    background-color: var(--it-primary-dark, #0f172a);
    color: #94a3b8;
    font-family: var(--it-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #1e293b;
    position: relative;
    z-index: 10;
}

/* 1. FEATURES & TRUST BAR */
.it-footer-features {
    background-color: #0b1120;
    border-bottom: 1px solid #1e293b;
    padding: 30px 0;
}

.it-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.it-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.it-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(29, 78, 216, 0.15);
    color: var(--it-accent-cyan, #0284c7);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.it-feature-text h6 {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.it-feature-text p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

/* 2. MAIN FOOTER CONTENT */
.it-main-footer {
    padding: 60px 0 40px;
}

.it-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.2fr 1.8fr;
    gap: 32px;
}

.it-col-brand .it-footer-logo {
    margin-bottom: 16px;
}

.it-footer-text-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.it-footer-text-logo .it-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
}

.it-footer-text-logo .it-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    display: block;
}

.it-footer-text-logo .it-brand-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.it-brand-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.it-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.it-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #cbd5e1;
}

.it-contact-list li i {
    color: var(--it-accent-cyan, #0284c7);
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.it-contact-list li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.it-contact-list li a:hover {
    color: #38bdf8;
}

/* Headings & Links */
.it-footer-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.it-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--it-primary-blue, #1d4ed8);
    border-radius: 2px;
}

.it-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.it-footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-block;
}

.it-footer-links li a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

/* Newsletter & Social */
.it-newsletter-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.it-newsletter-form {
    margin-bottom: 24px;
}

.it-newsletter-input-wrap {
    display: flex;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1120;
}

.it-newsletter-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.it-newsletter-input-wrap button {
    background: var(--it-primary-blue, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.it-newsletter-input-wrap button:hover {
    background: #2563eb;
}

.it-social-heading {
    color: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.it-social-links {
    display: flex;
    gap: 10px;
}

.it-social-links a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.it-social-links a:hover {
    background: var(--it-primary-blue, #1d4ed8);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 3. BOTTOM BAR */
.it-bottom-bar {
    background: #080d1a;
    border-top: 1px solid #1e293b;
    padding: 18px 0;
    font-size: 12px;
}

.it-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.it-copyright p {
    margin: 0;
    color: #64748b;
}

.it-copyright strong {
    color: #94a3b8;
}

.it-payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.it-payment-badge {
    font-size: 20px;
    color: #94a3b8;
}

.it-payment-badge.it-badge-text {
    font-size: 11px;
    font-weight: 600;
    background: #1e293b;
    color: #cbd5e1;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 4. FLOATING ACTIONS */
.it-floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9990;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.it-floating-whatsapp:hover {
    color: #ffffff;
    transform: scale(1.08);
}

.it-whatsapp-tooltip {
    position: absolute;
    right: 65px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.it-floating-whatsapp:hover .it-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.it-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 95px;
    width: 44px;
    height: 44px;
    background-color: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9989;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.it-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.it-to-top-btn:hover {
    background-color: var(--it-primary-blue, #1d4ed8);
    border-color: var(--it-primary-blue, #1d4ed8);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .it-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .it-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .it-col-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .it-features-grid {
        grid-template-columns: 1fr;
    }
    .it-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .it-col-brand {
        grid-column: span 1;
    }
    .it-bottom-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .it-floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    .it-to-top-btn {
        bottom: 20px;
        right: 78px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================================
   FOOTER RESPONSIVE FIXES (LOGO, NEWSLETTER & GRID)
   ======================================================== */

/* 1. Footer Logo Responsive Fix */
.it-footer-logo {
    margin-bottom: 20px !important;
    max-width: 100% !important;
}

.it-footer-logo img,
.it-footer-logo .custom-logo-link img {
    max-height: 48px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* 2. Newsletter Form & Input Field Responsive Fix */
.it-col-newsletter {
    width: 100% !important;
}

.it-newsletter-form {
    width: 100% !important;
    max-width: 100% !important;
}

.it-newsletter-input-wrap {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.it-newsletter-input-wrap input[type="email"] {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Mobile වලදී overflow වීම වළක්වන ප්‍රධාන රීතිය */
    width: 100% !important;
    height: 44px !important;
    border: none !important;
    outline: none !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: transparent !important;
}

.it-newsletter-input-wrap button[type="submit"] {
    flex-shrink: 0 !important;
    width: 46px !important;
    height: 44px !important;
    background: #2563eb !important; /* Tech Blue */
    color: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.it-newsletter-input-wrap button[type="submit"]:hover {
    background: #1d4ed8 !important;
}

/* 3. Main Footer 5-Column Grid Responsive Layout */
.it-footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.6fr !important;
    gap: 35px !important;
    padding: 50px 0 !important;
}

/* 4. Top Trust Features Grid (4 Items) */
.it-features-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 30px 0 !important;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (TABLETS & MOBILES)
   ======================================================== */

/* Tablet Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .it-footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    .it-col-brand {
        grid-column: span 3 !important;
    }
    .it-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small Tablets & Mobile Devices (Below 768px) */
@media (max-width: 767px) {
    /* Footer Grid -> Single Column Stacked */
    .it-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 35px 0 !important;
    }
    .it-col-brand {
        grid-column: span 1 !important;
    }
    
    /* Top Features -> Single Column */
    .it-features-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Bottom Copyright & Payment Badges Stacked */
    .it-bottom-bar-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 20px 0 !important;
    }
    
    .it-payment-methods {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Floating WhatsApp Button Adjustment */
    .it-floating-whatsapp {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
}