/* ============================================
   DEMAX Footer Styles
   ============================================ */

.demax-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #f3f3f3;
    background: #383838;
    background-image:-webkit-linear-gradient(88deg,#292929,rgba(0,0,0,0),#555)
}

.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.14;
    mix-blend-mode: screen;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1480px;
    margin: 0 auto;
    padding: 72px 44px 18px;
}

.footer-main {
    margin-bottom: 88px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.35fr;
    gap: 72px;
}

.footer-col {
    min-width: 0;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-logo-img {
    max-width: 170px;
    width: auto;
    height: 78px;
    object-fit: contain;
}

.company-name {
    margin: 0 0 8px;
    font-size: 38px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 700;
}

.company-desc {
    margin: 0;
    max-width: 350px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
}

.footer-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.contact-info {
    margin-bottom: 16px;
}

.contact-item {
    margin: 0 0 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.5;
}

.contact-item i {
    margin-top: 5px;
    width: 14px;
    color: #ffffff;
    font-size: 12px;
    flex-shrink: 0;
}

.contact-label {
    color: #ffffff;
    display: inline-block;
    width: 72px;
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: rgba(255, 255, 255, 0.95);
    word-break: break-word;
}

.contact-item a:hover {
    color: #ffffff;
}

.social-media {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: #d71920;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background-color: #d71920;
    color: #ffffff;
}

.email-subscription {
    max-width: 430px;
}

.subscribe-form {
    display: flex;
    align-items: stretch;
}

.subscribe-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #2b2b2b;
    font-size: 14px;
    outline: none;
}

.subscribe-input::placeholder {
    color: #777;
}

.subscribe-btn {
    border: 0;
    border-radius: 0;
    height: 42px;
    padding: 0 22px;
    background: #d71920;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.subscribe-btn:hover {
    background: #bf1219;
}

.footer-bottom {
    margin-top: 0;
}

.footer-divider {
    display: none;
}

.copyright-text {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    padding-top: 8px;
}

.copyright-text a {
    color: rgba(255, 255, 255, 0.86);
}

.copyright-text a:hover {
    color: #ffffff;
}

/* ============================================
   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;
}

.float-action-phone,
.float-action-email,
.float-action-whatsapp {
    background-color: transparent;
    color: #ffffff;
    gap: 8px;
}

.float-action-phone:hover,
.float-action-email:hover,
.float-action-whatsapp:hover {
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: #cf1625;
    border-radius: 22px;
    justify-content: center;
    opacity: 1;
    transform: none;
}

.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: #cf1625;
    border-radius: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    min-width: 0;
    flex-direction: row-reverse;
}

.action-text i {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.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;
}

.float-action-btn i {
    font-size: 24px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease;
}

.float-action-toggle {
    background-color: #cf1625 !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: 4px;
    display: none;
}

.float-action-toggle:hover {
    background-color: #a00000 !important;
    transform: scale(1.1);
}

.float-action-toggle i {
    color: #ffffff;
}

@media (max-width: 1200px) {
    .footer-container {
        padding: 56px 28px 18px;
    }

    .footer-row {
        gap: 36px;
    }

    .company-name,
    .footer-title {
        font-size: 34px;
    }

    .company-desc,
    .footer-links a,
    .contact-item {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-col-company {
        grid-column: 1 / -1;
    }

    .company-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .email-subscription{
        display: none;
    }
    .footer-container {
        padding: 44px 20px 14px;
    }

    .footer-main {
        margin-bottom: 44px;
    }

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

    .company-name,
    .footer-title {
        font-size: 28px;
    }

    .company-desc,
    .footer-links a,
    .contact-item {
        font-size: 18px;
    }

    .contact-item i {
        margin-top: 4px;
    }

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

    .subscribe-btn {
        margin-top: 10px;
        width: 100%;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .copyright-text {
        font-size: 14px;
    }

    .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;
        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: 34px 14px 12px;
    }

    .company-name,
    .footer-title {
        font-size: 22px;
    }

    .company-desc,
    .footer-links a,
    .contact-item {
        font-size: 16px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .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;
        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;
    }
}
