
:root {
    --vermelho-principal: #b01d24;
    --vermelho-escuro: #8b141a;
    --texto-escuro: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto-escuro);
}

/* --- Top Bar & Navbar Custom --- */
.top-bar {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hover-opacity {
    transition: opacity 0.3s ease;
}
.hover-opacity:hover {
    opacity: 0.7;
}

.navbar-custom {
    background-color: #ffffff;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link {
    color: #333333 !important;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 15px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--vermelho-principal);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--vermelho-principal) !important;
}

.search-btn:hover {
    background-color: var(--vermelho-principal) !important;
}
.search-btn:hover i {
    color: #ffffff !important;
}

/* Custom Buttons */
.btn-degrade-vermelho {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--vermelho-principal) 100%);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-degrade-vermelho:hover {
    background: linear-gradient(135deg, #000000 0%, var(--vermelho-escuro) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 29, 36, 0.4);
}

/* --- Hero Slider Section --- */
.hero-slider-section {
    height: 85vh;
    min-height: 600px;
    position: relative;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.hero-slider-section .hero-content {
    max-width: 800px;
}

.hero-slider-section .display-2 {
    letter-spacing: -1px;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* Animations */
.carousel-item.active .animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Carousel Controls */
.carousel-control-icon-wrapper {
    width: 60px; height: 60px;
    background-color: rgba(255,255,255,0.1);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-icon-wrapper,
.carousel-control-next:hover .carousel-control-icon-wrapper {
    background-color: var(--vermelho-principal);
    border-color: var(--vermelho-principal);
    transform: scale(1.1);
}

.carousel-indicators [data-bs-target] {
    width: 12px; height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: transparent;
    border: 2px solid #ffffff;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--vermelho-principal);
    border-color: var(--vermelho-principal);
    transform: scale(1.3);
}

/* Stats Bar */
.stats-bar {
    background-color: var(--vermelho-principal);
}

/* Product Cards */
.card-img-top {
    object-fit: contain;
    height: 180px;
}

.btn-ver-mais {
    background-color: var(--vermelho-escuro);
    border: none;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 8px;
    transition: filter 0.3s;
}

.btn-ver-mais:hover {
    background-color: var(--vermelho-principal);
    filter: brightness(1.2);
}

/* --- Vitrine Institucional --- */
.vitrine-institucional {
    background-color: #f8f9fa; /* Fundo cinza claro superior */
}

.vitrine-cards-row {
    /* Puxa os cards para baixo criando a sobreposição com a área vermelha */
    margin-bottom: -150px; 
}

.vitrine-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px 20px 50px 50px; /* Bordas extremamente arredondadas embaixo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra suave */
    text-align: center;
    position: relative;
    padding: 0 35px 45px;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100% - 100px);
    /* overflow: visible é usado no lugar de hidden para não cortar a embalagem flutuante */
}

.vitrine-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
}

.vitrine-card-shape {
    position: absolute;
    top: 40px;
    width: 180px;
    height: 120px;
    background-color: #f1f3f5;
    border-radius: 90px 90px 25px 25px; /* Forma semi-círculo orgânica */
    z-index: 1;
}

.vitrine-img {
    position: absolute;
    top: -90px;
    height: 250px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.vitrine-card:hover .vitrine-img {
    transform: translateY(-10px);
}

.vitrine-card-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.vitrine-title {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.7rem;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.vitrine-desc {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
}

.vitrine-btn {
    background-color: #8b141a; /* Bordô */
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    margin-top: auto;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.vitrine-btn:hover {
    background-color: var(--vermelho-principal);
    color: #ffffff;
    transform: scale(1.04);
}

.vitrine-stats-area {
    background: linear-gradient(135deg, var(--vermelho-principal) 0%, #1a1a1a 100%);
    padding-top: 180px; /* Preenchimento generoso para acolher os cards sobrepostos */
    padding-bottom: 60px;
}

.vitrine-stats-title { font-size: 2rem; }
.vitrine-stats-row .display-3 { font-weight: 300 !important; }

/* Responsividade */
@media (min-width: 768px) {
    .border-end-md { border-right: 1px solid rgba(255, 255, 255, 0.2); }
}

@media (max-width: 991px) {
    .vitrine-card { max-width: 340px; padding: 0 25px 35px; }
    .vitrine-title { font-size: 1.5rem; }
    .vitrine-stats-title { text-align: center !important; padding-right: 0 !important; }
    .vitrine-stats-row .display-3 { font-size: 3.5rem; }
    .vitrine-cards-row { margin-bottom: -100px; }
    .vitrine-stats-area { padding-top: 140px; }
}

@media (max-width: 767px) {
    .vitrine-card { margin-bottom: 30px; margin-top: 80px; }
    .vitrine-img { top: -70px; height: 220px; }
    .vitrine-cards-row { margin-bottom: -50px; }
    .vitrine-stats-area { padding-top: 80px; }
    .vitrine-stats-row .border-end-md { border-right: none; }
    .vitrine-stats-title { font-size: 1.8rem; }
}

/* --- Logistics Section --- */
.logistics-section {
    background-color: #ffffff;
    overflow: hidden;
}

.logistics-tag {
    width: 50px;
    height: 8px;
    background-color: #FFDCC7;
    border-radius: 20px;
}

.logistics-title {
    color: #0A192F;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-weight: 900;
    font-size: 3.2rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.logistics-desc {
    color: #6B7280;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 90%;
}

.logistics-bullet {
    width: 36px;
    height: 36px;
    background-color: rgba(10, 25, 47, 0.05);
    color: #0A192F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.logistics-bullet:hover {
    background-color: #0A192F;
    color: #ffffff;
}

.logistics-btn {
    background-color: #0A192F;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.logistics-btn:hover {
    background-color: #112A4F;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 25, 47, 0.25) !important;
}

.logistics-phone-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #FF6200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid #f3f4f6;
}

.logistics-images-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    padding-bottom: 60px;
    padding-right: 50px;
}

.logistics-img-main {
    border-radius: 80px 20px 20px 20px;
    width: 85%;
    height: 550px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.logistics-img-secondary {
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 65%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    border: 10px solid #ffffff;
    z-index: 4;
}

.logistics-exp-card {
    position: absolute;
    bottom: 80px;
    left: -40px;
    background-color: #FF6200;
    padding: 25px 30px;
    border-radius: 20px;
    z-index: 5;
}

.logistics-arrows {
    position: absolute;
    top: 50px;
    right: 30px;
    color: #FF6200;
    font-size: 2rem;
    line-height: 0.6;
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.logistics-arrows i:nth-child(1) { opacity: 0.3; }
.logistics-arrows i:nth-child(2) { opacity: 0.6; }
.logistics-arrows i:nth-child(3) { opacity: 1; }

.logistics-lines {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(#0A192F 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.15;
    z-index: 1;
}

@media (max-width: 991px) {
    .logistics-title { font-size: 2.5rem; }
    .logistics-img-main { width: 90%; height: 450px; }
    .logistics-img-secondary { width: 70%; height: 200px; border-width: 6px; }
    .logistics-exp-card { left: -10px; padding: 20px; bottom: 60px; }
    .logistics-images-wrapper { padding-bottom: 60px; padding-right: 30px; }
}

@media (max-width: 767px) {
    .logistics-title { font-size: 2.2rem; }
    .logistics-img-main { width: 100%; border-radius: 40px 20px 20px 20px; height: 400px; }
    .logistics-img-secondary { position: relative; width: 90%; margin-top: -80px; right: auto; margin-left: 10%; border-width: 8px; }
    .logistics-exp-card { bottom: auto; top: -30px; left: 10px; }
    .logistics-images-wrapper { padding-bottom: 20px; padding-right: 0; }
    .logistics-cta-area { flex-direction: column; align-items: flex-start !important; }
    .logistics-btn { width: 100%; text-align: center; }
}

/* --- Premium Contact Section --- */
.premium-contact {
    background-color: #fdfdfd;
    border-bottom: 2px solid var(--vermelho-escuro);
    overflow: hidden;
}

.premium-contact-left {
    padding: 140px 5% 140px 10%;
    background-color: #fdfdfd;
}

.premium-contact-right {
    padding: 140px 10% 140px 20%; /* Empurra para a direita (20%) e dá mais espaçamento top/bottom (140px) */
    background-color: #fafafa; /* Levíssima diferença de tom para separar as colunas elegantemente */
}

/* Mandala Decorativa da Esquerda */
.contact-mandala {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    z-index: 1;
    background: 
        radial-gradient(circle, transparent 20%, rgba(212, 175, 55, 0.05) 21%, transparent 22%),
        radial-gradient(circle, transparent 40%, rgba(212, 175, 55, 0.08) 41%, transparent 42%),
        radial-gradient(circle, transparent 60%, rgba(212, 175, 55, 0.1) 61%, transparent 62%);
}

.contact-mandala::before, .contact-mandala::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0; height: 1px;
    background: rgba(212, 175, 55, 0.15);
}
.contact-mandala::after { transform: rotate(90deg); }

/* Background Pattern de Círculos Interligados da Direita */
.contact-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='25' fill='none' stroke='%23d4af37' stroke-opacity='0.15' stroke-width='1.5'/%3E%3Ccircle cx='60' cy='30' r='25' fill='none' stroke='%23d4af37' stroke-opacity='0.15' stroke-width='1.5'/%3E%3Ccircle cx='0' cy='30' r='25' fill='none' stroke='%23d4af37' stroke-opacity='0.15' stroke-width='1.5'/%3E%3Ccircle cx='30' cy='60' r='25' fill='none' stroke='%23d4af37' stroke-opacity='0.15' stroke-width='1.5'/%3E%3Ccircle cx='30' cy='0' r='25' fill='none' stroke='%23d4af37' stroke-opacity='0.15' stroke-width='1.5'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Tipografia */
.contact-subtitle {
    color: var(--vermelho-escuro);
    font-size: 2.2rem;
    margin-bottom: -5px;
    letter-spacing: 1px;
}

.contact-title {
    color: var(--vermelho-escuro);
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: -2px;
}

.contact-block-title {
    color: var(--vermelho-escuro);
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.contact-block-text {
    color: var(--vermelho-escuro);
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* Responsividade Premium Contact */
@media (max-width: 991px) {
    .premium-contact-left { padding: 80px 5% 80px 8%; }
    .premium-contact-right { padding: 80px 8% 80px 12%; }
    .contact-title { font-size: 3.5rem; }
}

@media (max-width: 767px) {
    .premium-contact-left { padding: 60px 5% 40px; text-align: center; justify-content: center; }
    .contact-title { font-size: 3rem; }
    .premium-contact-right { padding: 40px 5% 60px; text-align: center; }
    .contact-mandala { left: 50%; transform: translateX(-50%); bottom: -200px; }
}

/* Footer */
.footer {
    background-color: var(--vermelho-principal);
}

.social-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.social-icons i:hover {
    opacity: 0.7;
}

/* Navbar mobile — logo centralizada e fixa no topo (não acompanha a altura do menu aberto) */
@media (max-width: 991.98px) {
    .navbar.navbar-custom {
        min-height: 90px;
        background-color: #1a1a2e;
    }
    .navbar > .container,
    .navbar > .container-fluid {
        position: relative;
        justify-content: center;
    }
    .navbar-brand {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .navbar-brand img {
        height: 68px !important;
    }
    .navbar-toggler {
        position: absolute;
        top: 18px;
        left: 1rem;
    }
    /* O menu colapsado começa como item de flex normal (topo do .container),
       então sem essa margem ele sobrepõe a logo/hambúrguer que estão
       absolutamente posicionados ali em cima. Empurra a lista para baixo
       da barra da logo. */
    #navbarNav {
        margin-top: 90px;
    }
    .navbar-toggler i {
        color: #fff !important;
    }
    .navbar-custom .nav-link {
        color: #fff !important;
    }
    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.active {
        color: var(--vermelho-principal) !important;
    }
    /* Seletor de idioma dentro do menu hambúrguer */
    .navbar-lang-mobile {
        display: flex;
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.15);
    }
    .navbar-lang-mobile a {
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #fff;
        font-weight: 700;
        font-size: .82rem;
    }
}
@media (min-width: 992px) {
    .navbar-lang-mobile { display: none; }
}

/* Botão flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,.45);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,.6);
}
.whatsapp-float i {
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}
.whatsapp-float::before {
    content: 'Fale conosco';
    position: absolute;
    right: 68px;
    background: #25d366;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.whatsapp-float:hover::before {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────
   Dropdown de menu (mecanismo) — baseado no modelo Nayma.pl
   (hover + seta ▾ + submenu flutuante), com as cores do site.
   Não está em uso em nenhum item ainda: para ativar num item
   do menu, adicione class="nav-item drop" no <li> e dentro
   dele uma <ul class="nav-dropdown-menu"> com os sublinks.
   Ver script.js → initNavDropdowns().
   ───────────────────────────────────────────────────────── */
.navbar-custom .nav-item.drop {
    position: relative;
}
.navbar-custom .nav-item.drop > .nav-link::after {
    content: '\25BE'; /* ▾ */
    display: inline-block;
    margin-left: 5px;
    font-size: .7em;
    vertical-align: middle;
}
.navbar-custom .nav-dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin: 0;
    padding: .4rem 0;
    list-style: none;
    background: #fff;
    border-radius: .6rem;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.navbar-custom .nav-item.drop.open > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navbar-custom .nav-dropdown-menu li a {
    display: block;
    padding: .55rem 1.25rem;
    color: #333333;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid #f0f0f0;
    transition: background .2s, color .2s;
}
.navbar-custom .nav-dropdown-menu li:last-child a {
    border-bottom: none;
}
.navbar-custom .nav-dropdown-menu li a:hover,
.navbar-custom .nav-dropdown-menu li a:focus {
    background: #faf0f0;
    color: var(--vermelho-principal);
}
/* No mobile o menu já colapsa em lista vertical: o submenu some do fluxo hover e vira lista fixa */
@media (max-width: 991.98px) {
    .navbar-custom .nav-dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,.04);
        border-radius: .5rem;
        margin: .25rem 0 .5rem;
    }
    .navbar-custom .nav-item.drop.open > .nav-dropdown-menu {
        display: block;
    }
    .navbar-custom .nav-dropdown-menu li a {
        color: #fff;
        padding: .5rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
}
