/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

:root {
    /* Color System */
    --primary-color: #8D4445;
    --secondary-color: #F8EEEC;
    --background-color: #FAF8F8;
    --footer-color: #0B2545;
    --header-gradient: linear-gradient(278.74deg, #AB5A5B 0.2%, #8D4445 44.25%, #5B2829 88.3%);
}

.main-footer {
    background-color: #0B2545;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Keep every footer row inside the same centered canvas as the site header. */
.main-footer .container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-left: 55px;
    padding-right: 55px;
    box-sizing: border-box;
}

.logo-image {
    width: 263px;
    height: 90px;
}

@media (max-width: 768px) {
    .main-footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .main-footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.main-footer *,
.main-footer *::before,
.main-footer *::after {
    box-sizing: border-box;
    min-width: 0;
}

.main-footer img {
    max-width: 100%;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--footer-color);
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h3,
.newsletter-text .newsletter-heading {
    width: auto;
    max-width: 497px;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    font-style: normal;
    line-height: 42px;
    letter-spacing: 0%;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.newsletter-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    line-height: 34px;
    letter-spacing: 0%;
    color: #FFFFFF;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 626px;
    min-width: 0;
}

.newsletter-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: #FFFFFF;
}

.newsletter-button {
    box-sizing: border-box;
    padding: 18px 20px;
    background-color: #FFFFFF;
    color: var(--footer-color);
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 126px;
    height: 60px;
}

.newsletter-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Top Cards Section */
.top-cards-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.top-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100%;
    height: 139px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 auto;
    box-sizing: border-box;
}

.top-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.top-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    width: 32px;
    height: 32px;
    background-color: #FFA500;
    border-radius: 8px;
}

.top-card-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.top-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.top-card-text, .top-card-text a {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-card-text a:hover {
    color: #FFFFFF;
}

/* Main Footer Content */
.footer-content {
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(28px, 4.8vw, 60px);
}

/* Brand Column */
.brand-column {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-image {
    width: 263px;
    height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.brand-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-description {
    width: 100%;
    max-width: 316px;
    height: auto;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0%;
    text-align: justify;
    color: #FFFFFF;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Footer Columns */
.footer-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    letter-spacing: 0%;
    margin-bottom: 20px;
    color: #FFFFFF;
}

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

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0%;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 4px;
}

/* Contact Items */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
    font-size: 16px;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
}

.contact-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    object-fit: contain;
}

.contact-item a,
.contact-item span {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 26px;
    display: block;
}

.contact-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.copyright {
    grid-column: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    overflow-wrap: anywhere;
}

.payment-methods {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.mobile-social-links {
    display: none;
}

.toggle-icon {
    display: none;
}

.payment-icon {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.payment-group {
    height: auto;
    max-width: 100%;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .newsletter-content {
        gap: 24px;
    }

    .newsletter-text h3,
    .newsletter-text .newsletter-heading {
        font-size: clamp(18px, 2.35vw, 24px);
        line-height: 1.35;
    }

    .newsletter-button {
        min-width: 110px;
        padding-inline: 16px;
    }

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

    .brand-column {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .main-footer .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .logo-image {
        width: 175px;
        height: 60px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .newsletter-text h3,
    .newsletter-text .newsletter-heading {
        width: 100%;
        max-width: 378px;
        font-family: 'Open Sans', sans-serif;
        font-size: 18px;
        font-weight: 700;
        font-style: normal;
        line-height: 32px;
        letter-spacing: 0%;
        color: #FFFFFF;
        margin-bottom: 0;
    }

    .newsletter-form {
        flex-direction: row;
        max-width: 100%;
        width: 100%;
        gap: 0;
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        overflow: hidden;
    }

    .newsletter-input {
        flex: 1;
        width: 100%;
        min-width: 0;
        height: 60px;
        font-size: 16px;
        border: none;
        border-radius: 0;
        background-color: transparent;
    }

    .newsletter-button {
        min-width: auto;
        width: auto;
        height: 56px;
        padding: 16px 32px;
        font-size: 16px;
        border-radius: 0;
        background-color: #FFFFFF;
        color: var(--footer-color);
    }

    .newsletter-button:hover,
    .newsletter-button:active {
        transform: none;
    }

    .main-footer {
        display: flex;
        flex-direction: column;
    }

    .main-footer img {
        max-width: 80%;
    }
    
    .top-cards-section {
        order: 2;
        padding: 0;
        padding-left: 11px;
        border: none;
        background: transparent;
    }

    .top-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-bottom: 0;
        border-bottom: none;
    }

    .top-card {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        background: transparent;
        padding: 0;
        height: auto;
        gap: 15px;
        width: 100%;
        margin-bottom: 0;
    }

    .top-card-icon {
        margin: 0;
    }

    .top-card-title {
        display: none;
    }

    .top-card-text {
        text-align: left;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }

    /* Footer Content */
    .footer-content {
        order: 1;
        padding: 24px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        text-align: center;
    }

    .brand-column {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 16px;
    }

    .logo-image {
        width: 175px;
        height: 60px;
    }

    .brand-description {
        margin-top: -10px;
        text-align: center;
        margin-bottom: 16px;
        width: 97%;
        height: auto;
        line-height: 29px;
    }

    .social-links {
        display: none !important;
    }
    
    .desktop-social-section {
        display: none !important;
    }

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

    .social-icon-img {
        width: 20px;
        height: 20px;
    }

    /* Footer Columns Side by Side */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .brand-column {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-column:not(.brand-column) {
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 0;
    }
    
    .footer-column:nth-child(4) {
        text-align: left;
    }

    .footer-heading {
        font-size: 17px;
        margin-bottom: 0;
    }
    
    .toggle-icon {
        display: inline-block;
        font-size: 20px;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .mobile-accordion.open .toggle-icon {
        transform: rotate(45deg);
    }
    
    .accordion-content {
        display: none;
        padding-top: 15px;
    }
    
    .mobile-accordion.open .accordion-content {
        display: block;
    }

    .footer-links {
        gap: 12px;
        padding-left: 0;
    }

    .footer-links a,
    .contact-item a,
    .contact-item span {
        font-size: 14px;
        line-height: 29px;
    }

    /* Company Info Section */
    .footer-column:nth-child(4) .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: left;
        align-items: flex-start;
    }

    .footer-column:nth-child(4) .contact-item {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    /* Footer Bottom */
    .footer-bottom {
        order: 3;
        padding: 14px 0 30px 0;
        border-top: none;
    }

    .footer-bottom-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .mobile-social-links {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .payment-methods {
        display: flex !important;
        justify-content: center;
        margin-top: 5px;
    }

    .payment-group {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 20px 12px;
    }

    .newsletter-content {
        padding: 0 8px;
    }

    .newsletter-text h3 {
        width: 100%;
        font-size: 15px;
        line-height: 28px;
    }

    .newsletter-form {
        max-height: 54px;
        flex-direction: row;
        gap: 0;
        max-width: 100%;
        width: 100%;
    }

    .newsletter-input {
        font-size: 14px;
        padding: 10px 12px;
        height: 50px;
    }

    .newsletter-button {
        width: auto;
        padding: 12px 18px;
        font-size: 14px;
        min-width: 90px;
        height: 50px;
    }

    .footer-content {
        padding: 20px 12px;
    }

    .footer-column:not(.brand-column) {
        width: 100%;
        text-align: left;
        margin-bottom: 18px;
    }
    
    .footer-column:nth-child(4) {
        text-align: center !important;
    }

    .footer-links {
        text-align: left;
    }

    .footer-contact {
        display: inline-flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        margin-bottom: 0;
    }

    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }

    .payment-group {
        max-width: 100%;
    }
}

/* Extra Small Devices (iPhone 5/SE - 320px) */
@media (max-width: 360px) {
    .newsletter-section {
        padding: 20px 8px;
    }

    .newsletter-content {
        padding: 0 4px;
    }

    .newsletter-text h3 {
        font-size: 14px;
        line-height: 26px;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
        border-width: 1px;
    }

    .newsletter-input {
        font-size: 13px;
        padding: 8px 10px;
        height: 48px;
    }

    .newsletter-button {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 90px;
        height: 48px;
    }

    .footer-content {
        padding: 28px 8px;
    }

    .brand-description {
        font-size: 14px;
        line-height: 29px;
        text-align: justify;
    }

    .footer-heading {
        font-size: 16px;
    }

    .footer-links a,
    .contact-item a,
    .contact-item span {
        font-size: 13px;
        line-height: 29px;
    }
}
@media (max-width: 768px) {
    .desktop-br { display: none !important; }
    .newsletter-text h3 {
        max-width: 100% !important;
        font-size: clamp(14px, 4vw, 18px) !important;
        white-space: nowrap !important;
    }
}


