/**
 * A.M TRADERS - Footer Styles
 */

.elementor-widget-am_footer,
.elementor-widget-am_footer .elementor-widget-container,
.elementor-widget-shortcode:has(.am-footer-section),
.elementor-widget-shortcode:has(.am-footer-section) .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.am-footer-section {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: var(--am-dark, #111111);
    color: #ffffff;
    box-sizing: border-box !important;
    font-family: var(--am-font-body, 'Raleway', sans-serif);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

body.elementor-editor-active .am-footer-section {
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Big Shiny Text Container */
.am-footer-huge-text-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.am-footer-huge-text {
    text-align: center;
    font-family: var(--am-font-heading, 'Megante', serif);
    font-size: clamp(80px, 18vw, 300px);
    font-weight: 900;
    line-height: 0.8;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    
    /* Shiny dark effect */
    background: linear-gradient(180deg, #444444 0%, #1a1a1a 40%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15); /* Adds a sharp outline */
    text-shadow: 0px 4px 10px rgba(255,255,255,0.1), /* Increased shine */
                 0px -4px 15px rgba(0,0,0,0.9); /* Deep shadow */
                 
    position: relative;
    z-index: 0;
}

/* Linear gradient overlay to blend the text into the background */
.am-footer-text-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--am-dark, #111111));
    z-index: 1;
    pointer-events: none;
}

/* Footer Content Container */
.am-footer-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 60px 4vw;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
}

/* Left Column (Info & Socials) */
.am-footer-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.am-footer-info p {
    color: #888888;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 250px;
}

.am-footer-socials {
    display: flex;
    gap: 15px;
}

.am-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.am-footer-socials a svg,
.am-footer-socials a i {
    width: 18px;
    height: 18px;
    fill: currentColor;
    font-size: 18px;
}

.am-footer-socials a:hover {
    background: var(--am-blue, #3858e9);
    border-color: var(--am-blue, #3858e9);
    transform: translateY(-3px);
    color: #ffffff !important;
}

.am-footer-socials a:hover svg,
.am-footer-socials a:hover i {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Footer Links Columns */
.am-footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 25px 0;
}

.am-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.am-footer-column ul li a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.am-footer-column ul li a:hover {
    color: var(--am-white, #ffffff);
}

/* Footer Bottom (Hardcoded Copyright) */
.am-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.am-footer-bottom p {
    margin: 0;
    color: #888888;
    font-size: 16px; /* User requested slightly larger text */
}

.am-footer-bottom p a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.am-footer-bottom p a:hover {
    color: var(--am-blue, #3858e9);
}

/* Responsive */
@media (max-width: 1024px) {
    .am-footer-container {
        grid-template-columns: 1fr repeat(3, 1fr);
    }
    .am-footer-info {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .am-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .am-footer-bottom {
        text-align: left;
    }
    .am-footer-info {
        align-items: flex-start;
    }
    .am-footer-info p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .am-footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .am-footer-info {
        align-items: flex-start;
    }
    .am-footer-info p {
        text-align: left;
    }
}
