/* ============================================
   DEMAX Footer Styles
   ============================================ */

.demax-footer {
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.75;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

/* ============================================
   Main Footer Content
   ============================================ */
.footer-main {
    margin-bottom: 40px;
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col {
    position: relative;
}

/* Company Information Block */
.footer-col-company {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.company-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 25px;
}

/* Email Subscription */
.email-subscription {
    margin-top: 20px;
}

.subscribe-form {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.subscribe-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    outline: none;
    border-radius: 0;
}

.subscribe-input::placeholder {
    color: #999999;
}

.subscribe-btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    border-radius: 0;
}

.subscribe-btn:hover {
    background-color: var(--primary-color-hover);
}

/* Footer Titles */
.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Contact Information */
.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 10px;
}

.contact-label {
    font-weight: 600;
    margin-right: 5px;
}

.contact-item a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-address {
    line-height: 1.6;
}

.contact-address span {
    display: inline;
}

/* Social Media Icons */
.social-media {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-3px);
}

/* ============================================
   Footer Bottom (Copyright)
   ============================================ */
.footer-bottom {
    margin-top: 30px;
}

.footer-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 25px;
}

.copyright-text {
    text-align: center;
    font-size: 13px;
    color: #666666;
    line-height: 1.8;
}

.copyright-text a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: var(--primary-color);
}

/* ============================================
   Floating Contact Bar
   ============================================ */
.floating-contact-bar {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(60, 60, 60, 0.5);
    border-radius: 35px;
    padding: 12px 8px;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 60px;
    overflow: visible;
}

.float-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: visible;
    white-space: nowrap;
}
.float-action-phone i{
    font-size: 30px !important;
}
.float-action-email i{
    font-size: 20px !important;
}

.float-action-btn:last-child {
    margin-bottom: 0;
}

/* Phone, Email, WhatsApp - White outline icons */
.float-action-phone,
.float-action-email,
.float-action-whatsapp {
    background-color: transparent;
    color: #ffffff;
    gap: 8px;
}

/* Hover effect - Button stays same size, text expands to the right */
.float-action-phone:hover,
.float-action-email:hover,
.float-action-whatsapp:hover {
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: var(--primary-color-hover);
    border-radius: 22px;
    justify-content: center;
    opacity: 1;
    transform: none;
}

/* Action text - Hidden by default, positioned absolutely on hover */
.action-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease, padding 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    margin: 0;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    height: 44px;
    line-height: 44px;
    background-color: var(--primary-color-hover);
    border-radius: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    min-width: 0;
    flex-direction: row-reverse;
}

/* Icon inside action-text */
.action-text i {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-block;
}

/* Show text on hover - expands to the left */
.float-action-phone:hover .action-text,
.float-action-email:hover .action-text,
.float-action-whatsapp:hover .action-text {
    opacity: 1;
    visibility: visible;
    width: auto;
    min-width: fit-content;
    padding: 0 16px;
    overflow: visible;
}

/* Icon styling */
.float-action-btn i {
    font-size: 24px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease;
}

/* Back to Top button - Dark red circular button with white icon */
.float-action-toggle {
    background-color: var(--primary-color) !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: 4px;
    display: none;
}

.float-action-toggle:hover {
    background-color: var(--primary-color-hover) !important;
    transform: scale(1.1);
}

.float-action-toggle i {
    color: #ffffff;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .footer-container {
        padding: 50px 30px 25px;
    }

    .footer-row {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col-company {
        max-width: 100%;
        grid-column: 1 / -1;
    }

    .footer-container {
        padding: 40px 25px 20px;
    }
}

@media (max-width: 768px) {
    .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col-company {
        grid-column: 1;
    }

    .footer-container {
        padding: 30px 20px 20px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .social-media {
        justify-content: center;
    }

    .copyright-text {
        font-size: 12px;
        text-align: left;
    }

    /* Floating Contact Bar - Mobile */
    .floating-contact-bar {
        padding: 10px 6px;
        right: 15px;
        bottom: 100px;
        gap: 10px;
        width: 52px;
    }

    .float-action-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .float-action-phone:hover,
    .float-action-email:hover,
    .float-action-whatsapp:hover {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 20px;
    }

    .action-text {
        font-size: 12px;
        height: 40px;
        line-height: 40px;
        margin-right: 10px;
    }

    .action-text i {
        font-size: 16px;
    }

    .float-action-phone:hover .action-text,
    .float-action-email:hover .action-text,
    .float-action-whatsapp:hover .action-text {
        padding: 0 14px;
    }

    .float-action-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 25px 15px 15px;
    }

    .footer-title {
        font-size: 14px;
    }

    .footer-links a,
    .contact-item {
        font-size: 13px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Floating Contact Bar - Small Mobile */
    .floating-contact-bar {
        padding: 8px 5px;
        right: 10px;
        bottom: 80px;
        gap: 8px;
        width: 46px;
    }

    .float-action-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .float-action-phone:hover,
    .float-action-email:hover,
    .float-action-whatsapp:hover {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 18px;
    }

    .action-text {
        font-size: 11px;
        height: 36px;
        line-height: 36px;
        margin-right: 8px;
    }

    .action-text i {
        font-size: 14px;
    }

    .float-action-phone:hover .action-text,
    .float-action-email:hover .action-text,
    .float-action-whatsapp:hover .action-text {
        padding: 0 12px;
    }

    .float-action-toggle {
        width: 36px;
        height: 36px;
    }
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .footer-container {
        padding: 50px 24px 30px;
    }
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 40px 20px 24px;
    }
    .footer-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-col-company {
        max-width: none;
    }
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .footer-title {
        margin-bottom: 14px;
    }
    .footer-links li {
        margin-bottom: 10px;
    }
    .social-media {
        justify-content: flex-start;
    }
    .floating-contact-bar {
        right: 12px;
    }
}