/* Footer Astro Style - Adaptado para Crestani Distribuidora */

/* Reset e Base */
.block-footer {
    float: left;
    width: 100%;
    clear: both;
}

.block-footer::after {
    content: '';
    display: table;
    line-height: 0;
    clear: both;
}

/* Grid System - Scoped to footer */
.block-footer .grid-full {
    width: 100%;
}

.block-footer [class*="grid12-"] {
    position: relative;
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 770px) {
    .block-footer .grid12-4 {
        width: 33.3333333%;
        padding: 0 15px;
    }
}

/* Newsletter Section */
.news-container {
    float: left;
    width: 100%;
    margin: 0;
    padding: 30px 0;
    text-align: left;
    background: #213979;
    font-family: "Montserrat", sans-serif;
}

.news-container::after {
    content: '';
    display: table;
    line-height: 0;
    clear: both;
}

.block-footer .news-container .container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

.news-container #subscribe-form {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-container .header {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    flex: 0 0 25%;
}

.news-container .header span {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.news-container .header h3 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.news-container .newsletter-astro-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-container .newsletter-astro-form .box-input {
    flex: 1;
    display: flex;
    gap: 10px;
}

.news-container .newsletter-astro-form .textoinput {
    position: relative;
    flex: 1;
}

.news-container .newsletter-astro-form .textoinput:first-child {
    flex: 0 0 calc(50% - 5px);
}

.news-container .newsletter-astro-form .textoinput:last-child {
    flex: 0 0 calc(50% - 5px);
}

.news-container .newsletter-astro-form input[type="text"],
.news-container .newsletter-astro-form input[type="email"] {
    width: 100%;
    height: 45px;
    border: 1px solid #cecece;
    padding: 8px 120px 8px 15px;
    outline: none;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-family: "Montserrat", sans-serif;
}

.news-container .newsletter-astro-form input.nome {
    padding: 8px 15px;
}

.news-container .newsletter-astro-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 115px;
    height: 35px;
    border: none;
    background: #f07b12;
    border-radius: 4px;
    transition: 0.3s ease;
    cursor: pointer;
}

.news-container .newsletter-astro-form button span {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.news-container .newsletter-astro-form button:hover {
    background: #999;
}

.news-container .alert {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.news-container .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.news-container .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer Primary Container - Primeira Linha */
.footer-primary-container {
    float: left;
    width: 100%;
    padding: 40px 0;
    background: #2a3961;
}

.footer-primary-container::after {
    content: '';
    display: table;
    line-height: 0;
    clear: both;
}

.block-footer .footer-primary-container .container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-primary-container .blockFooter {
    flex: 1;
    min-width: 200px;
}

.footer-primary-container .blockFooter.colFooter4 {
    flex: 0 0 calc(25% - 23px);
}

.footer-primary-container h4 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

/* Navigation Lists */
.rodapeNav {
    list-style: none;
    color: #fff;
    padding: 0;
    margin: 0;
}

.rodapeNav li {
    line-height: 2.5;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    display: block;
}

.rodapeNav.contato li {
    line-height: 1.9;
}

.rodapeNav.contato li:first-child {
    line-height: 2.5;
    margin-bottom: 10px;
}

.rodapeNav li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.rodapeNav li a:hover {
    color: #f07b12;
}

.rodapeNav li a::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    background: #f07b12;
    height: 1px;
    transition: all 300ms ease;
}

.rodapeNav li a:hover::before {
    left: 0;
    right: 0;
}

.rodapeNav li i,
.rodapeNav li em {
    color: #fff;
    font-size: 16px;
    width: auto;
    margin-right: 5px;
    font-style: normal;
}

/* Icon replacements */
.icon-whatsapp-logo::before {
    content: "📱";
}

.icon-tele::before {
    content: "📞";
}

.icon-email-02::before {
    content: "✉";
}

.rodapeNav li p {
    display: initial;
    margin: 0;
}

.maillink {
    color: #fff !important;
}

/* Social Links */
.socialLinks {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 15px 0 0;
    padding: 0;
}

.socialLinks li {
    margin: 0;
}

.socialLinks li a {
    background: #f07b12;
    color: #fff;
    width: 35px;
    height: 35px;
    line-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-align: center;
    border-radius: 5px;
    transition: all 400ms ease;
    text-decoration: none;
}

.socialLinks li a:hover {
    background: #0072bc;
}

.socialLinks li span {
    display: none;
}

.socialLinks svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer Secondary Container - Segunda Linha com Logos */
.footer-secondary-container {
    float: left;
    width: 100%;
    padding: 15px 0 10px 0;
    background: #fff;
}

.block-footer .footer-secondary-container .container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-secondary-container .rodapeItem {
    flex: 1;
    min-width: 250px;
}

.block-footer .footer-secondary-container .grid12-4 {
    width: 33.3333333%;
    padding: 0 15px;
}

.block-footer .footer-secondary-container .no-left-gutter {
    padding-left: 0;
}

.block-footer .footer-secondary-container .no-right-gutter {
    padding-right: 0;
}

.block-footer .footer-secondary-container .no-gutter {
    padding: 0;
}

.footer-secondary-container dt {
    color: #999;
    display: block;
    font-size: 13px;
    font-weight: 300;
    margin: 0 0 10px;
    border-bottom: solid 1px #ddd;
    padding: 0 0 10px;
    font-family: "Montserrat", sans-serif;
}

.footer-secondary-container dd {
    margin: 0;
}

.footer-secondary-container dd img {
    max-width: 100%;
    height: auto;
    width: auto;
}

/* Delivery Logos Grid */
.delivery-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
}

.delivery-logos-grid img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Seal List */
.seloList {
    margin: 0;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    vertical-align: middle;
    list-style: none;
    padding: 0;
}

.seloList li {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.seloList li img {
    max-width: 100px;
    height: auto;
}

/* Footer Legal Container - Terceira Linha */
.footer-legal-container {
    float: left;
    width: 100%;
    background: #fff;
    padding: 15px 0;
}

.block-footer .footer-legal-container .container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

.footer-copyright {
    color: #58585a;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    text-align: center;
    margin-top: 15px;
}

#blocoBis {
    clear: both;
    float: left;
    width: 100%;
    color: #58585a;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    text-align: center;
}

#blocoBis .boxBis {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

#blocoBis .boxBis li {
    display: inline-block;
    line-height: 1.6;
    margin: 0;
}

#blocoBis .boxBis li a {
    color: #58585a;
    text-decoration: none;
}

#blocoBis .boxBis li a:hover {
    text-decoration: underline;
}

/* Responsive */
@media only screen and (max-width: 1170px) {
    .block-footer .news-container .container,
    .block-footer .footer-primary-container .container,
    .block-footer .footer-secondary-container .container {
        width: 98%;
        padding: 0 15px;
    }
}

@media only screen and (max-width: 769px) {
    .block-footer .news-container .container,
    .block-footer .footer-primary-container .container,
    .block-footer .footer-secondary-container .container {
        width: 90%;
    }

    .news-container {
        padding: 20px 0;
    }

    .news-container #subscribe-form {
        flex-direction: column;
        gap: 15px;
    }

    .news-container .header {
        flex: 1;
        text-align: center;
    }

    .news-container .newsletter-astro-form {
        flex-direction: column;
        width: 100%;
    }

    .news-container .newsletter-astro-form .box-input {
        flex-direction: column;
        width: 100%;
    }

    .news-container .newsletter-astro-form .textoinput:first-child,
    .news-container .newsletter-astro-form .textoinput:last-child {
        flex: 1;
        width: 100%;
    }

    .news-container .newsletter-astro-form input[type="text"],
    .news-container .newsletter-astro-form input[type="email"] {
        padding: 8px 15px;
    }

    .news-container .newsletter-astro-form button {
        position: static;
        width: 100%;
        height: 45px;
        margin-top: 10px;
    }

    .footer-primary-container {
        padding: 30px 0;
        text-align: center;
    }

    .block-footer .footer-primary-container .container {
        flex-direction: column;
    }

    .footer-primary-container .blockFooter.colFooter4 {
        flex: 1;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-primary-container h4 {
        cursor: pointer;
        position: relative;
    }

    .block-footer .footer-secondary-container .container {
        flex-direction: column;
    }

    .block-footer .footer-secondary-container .grid12-4 {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .delivery-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        margin: 0 auto;
    }

    .seloList {
        justify-content: center;
    }

    .seloList li img {
        max-width: 80px;
    }

    .rodapeNav li {
        text-align: center;
    }

    .socialLinks {
        justify-content: center;
        margin: 15px auto 0;
    }

    .footer-copyright {
        font-size: 10px;
    }
}

@media screen and (min-width: 770px) and (max-width: 1024px) {
    .footer-primary-container .blockFooter.colFooter4 {
        flex: 0 0 calc(50% - 15px);
    }

    .block-footer .footer-secondary-container .grid12-4 {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 15px;
    }
}

/* Fix para ícone do TikTok - garantir cor branca */
.socialLinks .tiktok svg,
.socialLinks .tiktok svg path {
    fill: #fff !important;
}

.socialLinks .tiktok:hover svg path {
    fill: #fff !important;
}
