/* ========================================================
 * AJ FOOTER WIDGET - AUTO ADJUSTING & MODULAR LUXURY STYLES
 * ======================================================== */
.aj-footer-wrapper {
    position: relative;
    width: 100%;
    color: #cccccc;
    box-sizing: border-box;
    overflow: hidden;
    clear: both;
}

.aj-footer-wrapper *,
.aj-footer-wrapper *::before,
.aj-footer-wrapper *::after {
    box-sizing: border-box;
}

.aj-footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Decorative Top Edge Accent */
.aj-footer-top-accent {
    position: relative;
    width: 100%;
    z-index: 2;
}

.aj-footer-scallop-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    transform: translateY(-1px);
}

.aj-footer-scallop-svg {
    display: block;
    width: 100%;
    height: 32px;
}

/* Inner Container */
.aj-footer-inner {
    position: relative;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 2;
}

/* Dynamic Auto-Adjusting Partitions Grid */
.aj-footer-grid {
    display: grid;
    align-items: start;
    width: 100%;
    gap: 40px;
}

.aj-footer-wrapper[data-active-columns="1"] .aj-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
}
.aj-footer-wrapper[data-active-columns="1"] .aj-social-icons {
    justify-content: center;
}
.aj-footer-wrapper[data-active-columns="1"] .aj-footer-desc {
    margin: 0 auto 20px auto;
}

.aj-footer-wrapper[data-active-columns="2"] .aj-footer-grid {
    grid-template-columns: 1.3fr 1fr;
}

.aj-footer-wrapper[data-active-columns="3"] .aj-footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
}

.aj-footer-wrapper[data-active-columns="4"] .aj-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
}

.aj-footer-wrapper[data-active-columns="5"] .aj-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1fr;
}

/* Brand & Typography */
.aj-brand-name {
    margin: 0 0 16px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.aj-brand-logo-wrap {
    margin-bottom: 20px;
}

.aj-brand-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.aj-footer-headline {
    margin: 0 0 20px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.aj-footer-desc {
    margin: 0 0 20px 0;
    max-width: 380px;
}

/* Navigation Links */
.aj-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aj-footer-menu li {
    margin: 0;
}

.aj-footer-menu a {
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    display: inline-block;
    position: relative;
}

/* Hover Animations */
.aj-footer-wrapper[data-hover-style="slide"] .aj-footer-menu a:hover {
    transform: translateX(5px);
}

.aj-footer-wrapper[data-hover-style="underline"] .aj-footer-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.aj-footer-wrapper[data-hover-style="underline"] .aj-footer-menu a:hover::after {
    width: 100%;
}

.aj-footer-wrapper[data-hover-style="glow"] .aj-footer-menu a:hover {
    text-shadow: 0 0 8px rgba(235, 191, 112, 0.7);
}

/* Social Media Modular Icons */
.aj-social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.aj-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.aj-social-link svg {
    width: 17px;
    height: 17px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.aj-social-link:hover {
    transform: translateY(-3px);
}

.aj-social-link:hover svg {
    fill: #111111;
}

/* Contact List with Custom Icons (Headset, Location, Envelope) */
.aj-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.aj-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.aj-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    transition: transform 0.25s ease;
}

.aj-contact-item:hover svg {
    transform: scale(1.15);
}

.aj-contact-item a {
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Granular Button & Form Styling */
.aj-newsletter-form {
    margin-top: 15px;
    width: 100%;
}

.aj-newsletter-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aj-newsletter-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #333333;
    font-size: 13px;
    outline: none;
    border-radius: 3px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.aj-newsletter-input:focus {
    border-color: #EBBF70 !important;
    box-shadow: 0 0 8px rgba(235, 191, 112, 0.2);
}

.aj-newsletter-btn {
    width: 100%;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aj-newsletter-btn:hover {
    box-shadow: 0 6px 18px rgba(235, 191, 112, 0.35);
    transform: translateY(-1px);
}

.aj-newsletter-feedback {
    margin-top: 10px;
    font-size: 13px;
    display: none;
}

/* Sub-Footer Bar */
.aj-subfooter-bar {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 30px;
    z-index: 2;
}

.aj-subfooter-inner {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.aj-subfooter-text {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #888888;
}

.aj-payment-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aj-badge {
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

/* Responsive Grid Breakdown */
@media (max-width: 1024px) {
    .aj-footer-wrapper[data-active-columns="3"] .aj-footer-grid,
    .aj-footer-wrapper[data-active-columns="4"] .aj-footer-grid,
    .aj-footer-wrapper[data-active-columns="5"] .aj-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 767px) {
    .aj-footer-grid,
    .aj-footer-wrapper .aj-footer-grid {
        grid-template-columns: 1fr !important;
        row-gap: 35px;
    }

    .aj-footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .aj-subfooter-inner {
        flex-direction: column;
        text-align: center;
    }
}