/**
 * Footer Site 1 Styles
 * Dark theme footer with four columns layout
 */

/* Sticky Footer - Make body flex container when footer-site1 is used */
body:has(.abp5_footer_site1) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(.abp5_footer_site1) .site-main {
    flex: 1;
}

/* Fallback for browsers that don't support :has() */
body.abp5_footer_site1_active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.abp5_footer_site1_active .site-main {
    flex: 1;
}

/* Main Footer Container */
.abp5_footer_site1 {
    background-color: #000;
    color: #fff;
    padding: 60px 3% 30px;
    margin-top: auto;
}

.abp5_footer_container {
    max-width: 100%;
    margin: 0 12%;
    padding: 0 20px;
}

/* Less than 1280px - compensate body 3% margin to get total 3% */
@media (max-width: 1279px) {
    .abp5_footer_container {
        margin: 0 3%;
    }
}

/* Main Content: Two Columns */
.abp5_footer_main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Left Column: Logo and Newsletter */
.abp5_footer_column_left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-height: 400px;
}

.abp5_footer_logo {
    flex: 0 0 auto;
}

.abp5_footer_logo_link {
    display: inline-block;
    text-decoration: none;
    color: #fff;
}

.abp5_footer_logo_image {
    max-height: 50px;
    width: auto;
    display: block;
}

.abp5_footer_text_logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.abp5_footer_newsletter {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

/* Right Column: Heading, Menu and Socials */
.abp5_footer_column_right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.abp5_footer_heading {
    flex: 0 0 auto;
}

.abp5_footer_heading_text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 30px 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.abp5_footer_right_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.abp5_footer_menu_wrap {
    display: flex;
    flex-direction: column;
}

.abp5_footer_socials_wrap {
    display: flex;
    flex-direction: column;
}

.abp5_footer_contact_wrap {
    display: flex;
    flex-direction: column;
}

.abp5_footer_column {
    display: flex;
    flex-direction: column;
}

.abp5_footer_column_title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* Column 1: Newsletter */
.abp5_footer_newsletter_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.abp5_footer_newsletter_input_wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    gap: 10px;
}

.abp5_footer_newsletter_icon {
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    order: 1;
    margin-left: 0;
}

.abp5_footer_newsletter_input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 5px 0;
    outline: none;
    order: 2;
    margin-left: 0;
}

.abp5_footer_newsletter_input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Autofill styles for email input - make it look like normal input */
.abp5_footer_newsletter_input:-webkit-autofill,
.abp5_footer_newsletter_input:-webkit-autofill:hover,
.abp5_footer_newsletter_input:-webkit-autofill:focus,
.abp5_footer_newsletter_input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    background-color: transparent !important;
    background-clip: content-box !important;
    transition: background-color 5000s ease-in-out 0s !important;
    -webkit-transition: background-color 5000s ease-in-out 0s !important;
}

.abp5_footer_newsletter_input:autofill {
    background-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.abp5_footer_newsletter_submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 0 5px 10px;
    font-size: 16px;
    outline: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.abp5_footer_newsletter_submit:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

.abp5_footer_newsletter_submit i {
    display: block;
}

.abp5_footer_newsletter_checkbox_wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-left: 0;
}

.abp5_footer_newsletter_checkbox_wrap input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-left: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    border-radius: 2px;
    position: relative;
    box-sizing: border-box;
}

.abp5_footer_newsletter_checkbox_wrap input[type="checkbox"]:hover {
    border-color: #ea011d;
}

.abp5_footer_newsletter_checkbox_wrap input[type="checkbox"]:checked {
    background-color: #ea011d;
    border-color: #ea011d;
}

.abp5_footer_newsletter_checkbox_wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.abp5_footer_newsletter_label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    cursor: pointer;
}

.abp5_footer_newsletter_link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.abp5_footer_newsletter_link:hover {
    color: #ea011d;
}

/* Notification Container */
.abp5_footer_notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ea011d;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.abp5_footer_notification_text {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.abp5_footer_notification.hide {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Column 2: Socials */
.abp5_footer_socials_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abp5_footer_socials_item {
    margin: 0;
}

.abp5_footer_socials_link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.abp5_footer_socials_link:hover {
    color: #ea011d;
}

.abp5_footer_socials_icon {
    font-size: 12px;
}

/* Column 3: Menu */
.abp5_footer_menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abp5_footer_menu_item {
    margin: 0;
    position: relative;
}

.abp5_footer_menu_link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.abp5_footer_menu_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.abp5_footer_menu_link:hover {
    color: #fff;
}

.abp5_footer_menu_link:hover::after {
    transform: scaleX(1);
}

/* Contact Section */
.abp5_footer_contact_email {
    margin: 0;
}

.abp5_footer_contact_link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.abp5_footer_contact_link:hover {
    color: #ea011d;
}

/* Bottom Section: Copyright */
.abp5_footer_bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.abp5_footer_copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */

/* Less than 1280px - same structure, margin changes to 0% (body already has 3%) */
@media (max-width: 1279px) {
    .abp5_footer_container {
        margin: 0 0;
    }
}

/* Less than 780px - single column layout */
@media (max-width: 779px) {
    .abp5_footer_site1 {
        padding: 40px 0 20px;
    }
    
    .abp5_footer_container {
        margin: 0 0;
        padding: 0 20px;
    }
    
    /* Change to single column */
    .abp5_footer_main {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    /* Make columns transparent to allow direct ordering of children */
    .abp5_footer_column_left,
    .abp5_footer_column_right {
        display: contents;
    }
    
    /* Left column elements - normal flow */
    .abp5_footer_logo {
        order: 1;
        margin-bottom: 0;
    }
    
    .abp5_footer_newsletter {
        order: 3;
        position: static;
        transform: none;
        margin-top: 0;
    }
    
    /* Right column elements */
    .abp5_footer_heading {
        order: 2;
    }
    
    .abp5_footer_right_content {
        order: 4;
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .abp5_footer_socials_wrap {
        order: 4;
    }
    
    .abp5_footer_menu_wrap {
        order: 5;
    }
    
    .abp5_footer_contact_wrap {
        order: 6;
    }
    
    .abp5_footer_heading_text {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .abp5_footer_site1 {
        padding: 30px 0 15px;
    }
    
    .abp5_footer_container {
        padding: 0 15px;
    }
    
    .abp5_footer_heading_text {
        font-size: 20px;
    }
    
    .abp5_footer_column_title {
        font-size: 16px;
    }
}

