/* ==========================================
   TAJ INDIA MACHINERY - COMMON FOOTER
   Matches the live tajindiamachinery.com footer.
========================================== */

.taj-footer,
.taj-footer *,
.taj-footer *::before,
.taj-footer *::after {
    box-sizing: border-box;
}

.taj-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Oxanium", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.taj-footer-main {
    position: relative;
    padding: 50px;
    background-color: #fff7f2;
}

/* Gradient overlay at 90% over the page background */
.taj-footer-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(200deg, #0B0038 0%, #9D0027 100%);
    opacity: 0.9;
}

.taj-footer-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.taj-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 10px;
}

.taj-footer-about,
.taj-footer-contact {
    width: 30%;
}

.taj-footer-quick,
.taj-footer-products {
    width: 20%;
}

/* On the live site an (empty) widget sits above ABOUT US */
.taj-footer-about {
    padding-top: 30px;
}

/* ==========================================
   HEADINGS + TEXT
========================================== */

.taj-footer-heading {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.taj-footer-text {
    margin: 0;
    color: #fff;
}

/* ==========================================
   SOCIAL ICONS
========================================== */

.taj-footer-social {
    display: flex;
    gap: 5px;
}

.taj-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10%;
    background-color: #6260C4;
    fill: #fff;
    transition: opacity 0.3s;
}

.taj-social-link:hover {
    opacity: 0.9;
}

.taj-social-link svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   LINK LISTS
========================================== */

.taj-footer-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.taj-footer-list li:not(:last-child) {
    padding-bottom: 5px;
}

.taj-footer-list li + li {
    margin-top: 5px;
}

.taj-footer-list a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.taj-footer-list a > span:last-child {
    padding-left: 5px;
    transition: color 0.3s;
}

.taj-footer-arrow {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='%23ffffff' d='M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z'/></svg>") center / contain no-repeat;
}

/* Products list: icon aligned to the first line */
.taj-footer-products .taj-footer-list a {
    align-items: flex-start;
}

.taj-footer-products .taj-footer-arrow {
    margin-top: 4px;
}

/* ==========================================
   CONTACT BOXES
========================================== */

.taj-contact-box {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.taj-contact-icon {
    display: inline-flex;
    flex-shrink: 0;
    padding: 7.5px;
    border-radius: 50%;
    background-color: #fff;
    fill: #6260C4;
}

.taj-contact-icon svg {
    width: 15px;
    height: 15px;
}

.taj-contact-content {
    flex-grow: 1;
}

.taj-contact-content h3 {
    margin: 0 0 1px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.taj-contact-content p {
    margin: 0;
    color: #fff;
}

.taj-contact-content a {
    color: #fff;
    text-decoration: none;
}

/* ==========================================
   COPYRIGHT
========================================== */

.taj-footer-bottom {
    padding: 10px;
    background-color: #AE0E42;
    text-align: center;
}

.taj-footer-bottom p {
    max-width: 1120px;
    margin: 0 auto;
    color: #fff;
}

.taj-footer-bottom a {
    color: #ffff99;
    text-decoration: none;
}

/* ==========================================
   FLOATING SOCIAL SIDEBAR
========================================== */

.social-sidebar {
    position: fixed;
    top: 40%;
    left: 0;
    z-index: 9999;
    font-family: Arial, sans-serif;
    line-height: 0;
}

.social-sidebar *,
.social-sidebar *::before,
.social-sidebar *::after {
    box-sizing: content-box;
}

.social-sidebar .social {
    box-sizing: border-box;
}

body .social-sidebar span {
    font-family: Arial, sans-serif !important;
}

.social-sidebar .toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 8px 0 0;
    background: linear-gradient(45deg, #ff7a18, #e52e71);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.social-sidebar .toggle-btn i {
    transition: transform 0.3s;
}

.social-sidebar.is-hidden .toggle-btn i {
    transform: rotate(180deg);
}

.social-icons {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.social-sidebar.is-hidden .social-icons {
    max-height: 0;
}

.social {
    display: flex;
    align-items: center;
    width: 45px;
    padding: 10px;
    overflow: hidden;
    color: #fff !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: 0.3s;
}

.social i {
    min-width: 25px;
    font-size: 18px;
    text-align: center;
}

.social span {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
}

.social:hover {
    width: 180px;
}

.social:hover span {
    opacity: 1;
}

.social.instagram {
    background: linear-gradient(45deg, #feda75, #d62976, #962fbf);
}

.social.facebook {
    background: #1877F2;
}

.social.youtube {
    background: #FF0000;
    border-radius: 0 0 8px 0;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
========================================== */

.chaty-widget {
    position: fixed;
    right: 29px;
    bottom: 25px;
    z-index: 10000;
}

.chaty-whatsapp {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    animation: chatyJump 1s ease 3s 1;
}

.chaty-whatsapp svg {
    display: block;
    width: 54px;
    height: 54px;
}

.chaty-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    padding: 5px 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
}

body .chaty-tooltip {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.chaty-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    border: 6px solid transparent;
    border-left-color: #fff;
    transform: translateY(-50%);
}

@keyframes chatyJump {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

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

@media (max-width: 1024px) {
    .taj-footer-main {
        padding: 30px;
    }

    .taj-footer-about,
    .taj-footer-quick,
    .taj-footer-products,
    .taj-footer-contact {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .taj-footer-main {
        padding: 30px 10px 10px;
    }

    /* The fixed desktop line breaks wrap badly on narrow screens */
    .taj-footer-text br {
        display: none;
    }

    .taj-footer-about,
    .taj-footer-quick,
    .taj-footer-products,
    .taj-footer-contact {
        width: 100%;
    }
}
