/* ==============================================
   TEMPLATE.CSS – Lojix Delivery Express
   ============================================== */

/* ---- VARIÁVEIS ---- */
:root {
    --primary: #191970;
    --secondary: #FF0909;
    --text: #282828;
    --accent: #FFFFFF;
    --hover-dark: #952A2A;

    --white: #FFFFFF;
    --black: #000000;
    --bg-light: #FFFFFF;
    --bg-dark: #191970;
    --text-light: #000000;
    --text-dark: #FFFFFF;

    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Varela Round', sans-serif;
    --font-title: 'Concert One', cursive;
    --header-height: 4.5rem;
    --transition: 0.3s ease;
    --radius: 1.25rem;
    --max-width: 71.25rem;
}

/* ---- RESET / BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    padding-top: 0;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

p {
    line-height: 1.75;
    margin-bottom: 1rem;
}

.text-red {
    color: var(--secondary);
}

.section-anchor {
    display: block;
    position: relative;
    top: calc(-1 * var(--header-height) - 1rem);
    visibility: hidden;
}

/* ==============================================
   HEADER / NAVBAR
   ============================================== */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header-sticky.scrolled {
    background: var(--primary);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.625rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.navbar-logo img {
    height: 4.875rem;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Desktop Nav */
.navbar-menu ul {
    display: flex;
    align-items: center;
}

.navbar-menu a {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    padding: 0 1.375rem;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color var(--transition);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.375rem;
    right: 1.375rem;
    height: 0.125rem;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--secondary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    transform: scaleX(1);
}

/* Hamburger Mobile */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn .bi {
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
}


/* ==============================================
   MOBILE MENU OFF-CANVAS
   ============================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 85vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-menu-overlay.active .mobile-menu-box {
    transform: translateX(0);
}

/* Cabeçalho: fundo azul, logo centrada */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 1.25rem;
    background: var(--primary);
    flex-shrink: 0;
}

.mobile-menu-header img {
    height: 4rem;
    width: auto;
    display: block;
    margin: 0 auto;
}

.mobile-menu-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* Corpo: fundo branco */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    background: var(--white);
    padding-top: 0.75rem;
}

.mobile-menu-list li {
    margin: 0 1.25rem;
    border-bottom: 0.0625rem solid #c8c8c8;
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list a {
    display: block;
    padding: 1.4rem 0.25rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

/* ==============================================
   FOOTER
   ============================================== */
#footer {
    background: var(--primary);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-logo {
    height: 4.875rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    font-size: 0.9rem;
    margin: 0;
}

.footer-heading {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact a,
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-contact .bi,
.footer-location .bi {
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.social-icon .bi {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1;
}

.social-icon:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem 0;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* ==============================================
   WHATSAPP FLUTUANTE
   ============================================== */
.joinchat-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.joinchat-tooltip {
    background: var(--white);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: 1.25rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(0.375rem);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    order: -1;
}

.joinchat-float:hover .joinchat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.joinchat-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 1.25rem rgba(37, 211, 102, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    flex-shrink: 0;
}

.joinchat-btn::before {
    content: '';
    position: absolute;
    inset: -0.25rem;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.25);
    animation: pulse-wa 2s infinite;
}

.joinchat-btn .bi {
    font-size: 1.8rem;
    color: var(--white);
    line-height: 1;
}

.joinchat-float:hover .joinchat-btn {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1.75rem rgba(37, 211, 102, 0.6);
}

/* ==============================================
   BOTÃO VOLTAR AO TOPO
   ============================================== */
.back-to-top {
    position: fixed;
    bottom: 7.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 2.875rem;
    height: 2.875rem;
    background: var(--primary);
    border: 0.125rem solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
    box-shadow: 0 0.25rem 1rem rgba(25, 25, 112, 0.4);
    overflow: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0.375rem 1.25rem rgba(25, 25, 112, 0.6);
}

.back-to-top .bi {
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1;
    width: 1.2rem;
    height: 1.2rem;
    display: block;
    text-align: center;
}

/* ==============================================
   ANIMAÇÕES DE SCROLL
   ============================================== */
.entradaesquerda {
    opacity: 0;
    filter: blur(0.5rem);
    transform: translateX(-3.125rem);
    transition: all 0.7s ease;
}

.entradadireita,
.entradalistadireita .elementor-icon-list-item {
    opacity: 0;
    filter: blur(0.5rem);
    transform: translateX(3.125rem);
    transition: all 0.7s ease;
}

.entradacima {
    opacity: 0;
    filter: blur(0.5rem);
    transform: translateY(3.125rem);
    transition: all 0.7s ease;
}

.entradabaixo {
    opacity: 0;
    filter: blur(0.5rem);
    transform: translateY(-3.125rem);
    transition: all 0.7s ease;
}

.entradacomdesfoqueezoomdiminuindo {
    opacity: 0;
    filter: blur(1.125rem);
    transform: scale(2);
    transition: all 0.7s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.7s ease;
}

.entradaesquerda.exibir,
.entradadireita.exibir,
.entradacima.exibir,
.entradabaixo.exibir,
.entradacomdesfoqueezoomdiminuindo.exibir,
.fade-in.exibir,
.entradalistadireita .elementor-icon-list-item.exibir {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) translateX(0) scale(1);
}

/* ==============================================
   KEYFRAMES GLOBAIS
   ============================================== */
@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   RESPONSIVO GLOBAL — MOBILE
   ============================================== */
@media (max-width: 767px) {

    .navbar-logo img {
        height: 4.0625rem;
    }

    .footer-logo {
        height: 4.0625rem;
    }

    #header-mobile .header-inner {
        padding-left: 1.25rem;
    }

    .footer-main {
        padding: 2rem 1.25rem 1.5rem;
    }

    #footer .footer-main .row.g-5 {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }

    #footer .footer-main .row.g-5>[class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    #footer .footer-main .col-6.col-md-2,
    #footer .footer-main .col-6.col-md-3,
    #footer .footer-main .col-12.col-md-3 {
        width: 100%;
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-bottom .col-12 {
        text-align: center !important;
    }

    .footer-bottom p {
        text-align: center;
    }

    .joinchat-btn {
        width: 3.125rem;
        height: 3.125rem;
    }

    .joinchat-btn .bi {
        font-size: 1.5rem;
    }

    .back-to-top {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 6.75rem;
    }

    .back-to-top .bi {
        font-size: 1rem;
    }
}

/* LGPD COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--primary);
    border-top: 0.1875rem solid var(--secondary);
    padding: 1.75rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.25);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.65;
}

.cookie-banner-text .bi {
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.65;
}

.cookie-banner-text a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.cookie-banner-text a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie {
    padding: 0.6rem 1.75rem;
    border-radius: 0.625rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 0.125rem solid transparent;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    line-height: 1;
}

.btn-cookie-accept {
    background: var(--hover-dark);
    color: var(--white);
    border-color: var(--hover-dark);
}

.btn-cookie-accept:hover {
    background: #7a2020;
    border-color: #7a2020;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

@media (max-width: 767px) {
    .cookie-banner-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
        justify-content: center;
    }
}