/* Variáveis de cores globais */
:root {
    --cor-primaria: #ff6b00;
    --cor-secundaria: #ff8533;
    --cor-texto: #333333;
    --cor-hover: #ff9447;
    --cor-fundo: #fff5eb;
}

/* Estilos gerais do corpo da página */
body {
    font-family: 'Arial', sans-serif;
    color: var(--cor-texto);
}

/* Estilos da barra de navegação */
.navbar {
    background-color: white !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Links da navegação */
.navbar-nav .nav-link {
    color: var(--cor-texto) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--cor-primaria) !important;
}

/* Logo na barra de navegação */
.navbar-brand img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Seção Hero - Formato Vertical */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/fundocei.png') center/cover;
    height: 100vh;
    min-height: 900px;
    max-height: 1200px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Ajuste para telas muito largas - manter proporção vertical */
@media (min-width: 1400px) {
    .hero {
        background-size: contain;
        background-position: center center;
        background-color: #1a1a1a;
        min-height: 1000px;
    }
}

/* Overlay da seção Hero com gradiente e posicionamento - Vertical */
.hero-overlay {
    background: transparent;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(252, 175, 123, 0.6) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.6) 100%);
    position: absolute;
    top: 0;
    left: 0;
}

/* Container do botão hero - Posicionado na parte inferior */
.hero-button-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    z-index: 10;
}

/* Desktop - Botão hero na parte inferior */
@media (min-width: 992px) {
    .hero-button-container {
        bottom: 60px;
        padding: 0 30px;
    }
    
    .attention-button {
        max-width: none;
        width: auto;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Botões */
.btn-primary {
    background-color: var(--cor-primaria);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--cor-hover);
    transform: translateY(-2px);
}

/* Efeitos visuais para o botão de atenção */
.attention-button {
    position: relative;
    overflow: hidden;
}

.attention-button:hover {
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 30px rgba(255, 193, 7, 0.8) !important;
    background: linear-gradient(135deg, #ffdb4d 0%, #ffa500 100%) !important;
}

.attention-button:active {
    transform: translateY(-50%) scale(0.98) !important;
}

/* Efeito de brilho deslizante */
.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.attention-button:hover .button-shine {
    left: 100%;
}

/* Cards de produtos */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Imagens dentro de cards - Responsivas */
.card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card h3 {
    color: var(--cor-primaria);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card .text-muted {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Títulos das seções */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--cor-primaria);
}

/* Fundo claro */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Campos do formulário */
.form-control {
    padding: 0.8rem;
    border-radius: 8px;
}

/* Botão de sucesso */
.btn-success {
    background-color: var(--cor-primaria);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--cor-hover);
}

/* Feedback do formulário */
.form-feedback {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-feedback.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Validação de campos */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Rodapé */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0;
}

footer h4 {
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
}

footer p {
    opacity: 0.8;
}

/* Botões flutuantes */
.floating-button {
    position: fixed;
    right: 25px;
    padding: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float {
    bottom: 25px;
    background-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.phone-float {
    bottom: 95px;
    background-color: var(--cor-primaria);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.top-float {
    bottom: 145px;
    display: none;
    width: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: none;
    padding: 0;
}

.top-float img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.top-float:hover img {
    transform: translateY(-3px);
}

.floating-button:hover {
    transform: scale(1.1);
}

/* Animação de pulso */
@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.02);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* Animação de brilho */
@keyframes glow {
    0% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 20px rgba(255, 193, 7, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 30px rgba(255, 193, 7, 0.9), 0 0 40px rgba(255, 193, 7, 0.4);
    }
}

/* Efeito de elevação no hover */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Grid de localidades */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.location-item {
    padding: 0.5rem;
    border-radius: 8px;
    background-color: var(--cor-primaria);
    transition: all 0.3s ease;
}

.location-item:hover {
    background-color: var(--cor-hover);
    transform: translateX(5px);
}

/* Ícone de localização */
.location-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cor-fundo);
    border-radius: 50%;
}

/* ============================================
   CARROSSEL DE PRODUTOS - SWIPER
   ============================================ */

/* Container do carrossel */
.produtos-carousel {
    padding: 20px 50px 60px 50px;
    overflow: hidden;
    position: relative;
}

/* Wrapper do carrossel */
.produtos-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Slides do carrossel */
.produtos-carousel .swiper-slide {
    height: auto;
    display: flex;
}

/* Imagens dos produtos no carrossel */
.produto-img {
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Setas de navegação */
.produtos-carousel .swiper-button-next,
.produtos-carousel .swiper-button-prev {
    width: 45px;
    height: 45px;
    background-color: var(--cor-primaria);
    border-radius: 50%;
    color: white;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.produtos-carousel .swiper-button-next.swiper-button-disabled,
.produtos-carousel .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.produtos-carousel .swiper-button-next:after,
.produtos-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.produtos-carousel .swiper-button-next:hover,
.produtos-carousel .swiper-button-prev:hover {
    background-color: var(--cor-hover);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.produtos-carousel .swiper-button-next {
    right: 0;
}

.produtos-carousel .swiper-button-prev {
    left: 0;
}

/* Paginação */
.produtos-carousel .swiper-pagination {
    bottom: 10px;
}

.produtos-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--cor-primaria);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.produtos-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--cor-primaria);
    transform: scale(1.2);
}

/* Cards dentro do carrossel */
.produtos-carousel .card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.produtos-carousel .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.produtos-carousel .card-body .btn {
    margin-top: auto;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVIDADE MOBILE FIRST
   ============================================ */

/* Tablets e telas médias (até 992px) */
@media (max-width: 992px) {
    .hero {
        height: 80vh;
        min-height: 700px;
        max-height: 900px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    footer {
        padding: 3rem 0;
    }
    
    /* Botão hero na parte inferior em tablets */
    .hero-button-container {
        bottom: 40px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        top: auto !important;
    }
}

/* Ajustes do carrossel em mobile */
@media (max-width: 768px) {
    .produtos-carousel {
        padding: 20px 40px 50px 40px;
    }
    
    .produtos-carousel .swiper-button-next,
    .produtos-carousel .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .produtos-carousel .swiper-button-next:after,
    .produtos-carousel .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .produto-img {
        max-height: 150px;
    }
}

/* Tablets pequenos e celulares grandes (até 768px) */
@media (max-width: 768px) {
    /* Navegação */
    .navbar-brand img {
        height: 50px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Hero Section - Vertical Mobile */
    .hero {
        height: 70vh;
        min-height: 600px;
        max-height: 800px;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-overlay {
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Botão Solicitar Entrega - Na parte inferior mobile */
    .hero-button-container {
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 20px;
    }
    
    .attention-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        font-size: 1rem !important;
        padding: 14px 20px !important;
        transform: none !important;
    }
    
    .attention-button:hover {
        transform: scale(1.02) !important;
    }
    
    /* Seções */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 20px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    /* Produtos - Grid empilhado */
    #produtos .row {
        margin: 0;
    }
    
    #produtos .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Botões */
    .btn-success,
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Carrossel */
    .carousel-item img {
        height: 300px !important;
    }
    
    /* Sobre Nós - Grid empilhado */
    #sobre .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Localidades - Grid empilhado */
    #localidades .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .location-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Formulário */
    #entrega .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 12px;
    }
    
    /* Rodapé */
    footer {
        padding: 2.5rem 0;
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    footer h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Botões flutuantes - Ajuste para mobile */
    .floating-button {
        right: 15px;
        padding: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float {
        bottom: 20px;
    }
    
    .phone-float {
        bottom: 80px;
    }
    
    .top-float {
        bottom: 140px;
        width: 40px;
        height: 40px;
    }
    
    .top-float img {
        width: 18px;
        height: 18px;
    }
    
        /* Imagens responsivas */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Imagens de produtos */
    .card img.img-fluid {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Garantir que imagens não quebrem o layout */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    /* Textos */
    p, .lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
}

/* Ajustes do carrossel em celulares pequenos */
@media (max-width: 576px) {
    .produtos-carousel {
        padding: 15px 35px 45px 35px;
    }
    
    .produtos-carousel .swiper-button-next,
    .produtos-carousel .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .produtos-carousel .swiper-button-next:after,
    .produtos-carousel .swiper-button-prev:after {
        font-size: 12px;
    }
    
    .produtos-carousel .swiper-button-next {
        right: -5px;
    }
    
    .produtos-carousel .swiper-button-prev {
        left: -5px;
    }
    
    .produto-img {
        max-height: 130px;
    }
    
    .produtos-carousel .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Celulares pequenos (até 576px) */
@media (max-width: 576px) {
    /* Navegação */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero - Vertical Mobile Pequeno */
    .hero {
        height: 65vh;
        min-height: 500px;
        max-height: 700px;
        background-position: center center;
        background-size: cover;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 0.9rem;
    }
    
    /* Botão Solicitar Entrega - Na parte inferior mobile pequeno */
    .hero-button-container {
        bottom: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 15px;
    }
    
    .attention-button {
        font-size: 0.9rem !important;
        padding: 12px 16px !important;
        border-radius: 20px !important;
        max-width: 280px;
        width: 100%;
    }
    
    /* Seções */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .section-title:after {
        width: 60px;
        height: 2px;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .card .text-muted {
        font-size: 0.85rem;
    }
    
    /* Produtos */
    #produtos .card img {
        max-height: 150px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Carrossel */
    .carousel-item img {
        height: 250px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    /* Sobre Nós */
    #sobre .card img {
        max-height: 150px;
        width: 80% !important;
        height: auto;
        object-fit: contain;
    }
    
    /* Localidades */
    .location-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .location-icon img {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Formulário */
    .form-control,
    .form-select {
        padding: 10px;
        font-size: 16px;
    }
    
    /* Rodapé */
    footer {
        padding: 2rem 0;
    }
    
    footer h4 {
        font-size: 1.1rem;
    }
    
    footer p,
    footer a {
        font-size: 0.9rem;
    }
    
    /* Botões flutuantes - Menores em mobile */
    .floating-button {
        right: 12px;
        padding: 12px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float {
        bottom: 15px;
    }
    
    .phone-float {
        bottom: 70px;
    }
    
    .top-float {
        bottom: 125px;
        width: 35px;
        height: 35px;
    }
    
    /* Espaçamentos reduzidos */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Textos menores */
    p {
        font-size: 0.9rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Mapa/Iframe */
    .ratio {
        margin-bottom: 1rem;
    }
    
    /* Experiência badge */
    .experience-badge i {
        font-size: 2rem !important;
    }
    
    /* Alertas */
    .alert {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* Celulares muito pequenos (até 400px) */
@media (max-width: 400px) {
    .hero {
        height: 60vh;
        min-height: 450px;
        max-height: 600px;
        background-position: center center;
        background-size: cover;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .btn-success,
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .floating-button {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .whatsapp-float {
        bottom: 12px;
    }
    
    .phone-float {
        bottom: 62px;
    }
    
    .top-float {
        bottom: 112px;
        width: 30px;
        height: 30px;
    }
}

/* Ajustes para orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
        background-position: center center;
        background-size: cover;
    }
    
    .carousel-item img {
        height: 200px !important;
    }
}

/* Otimizações de performance para mobile */
@media (max-width: 768px) {
    /* Reduzir animações em mobile para melhor performance */
    .card:hover {
        transform: none;
    }
    
    .hover-lift:hover {
        transform: none;
    }
    
    /* Desabilitar hover effects em touch devices */
    @media (hover: none) {
        .card:hover {
            transform: none;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .hover-lift:hover {
            transform: none;
        }
        
        .location-item:hover {
            transform: none;
        }
    }
}