/* Ondas animadas estilo "waves" aplicadas somente ao #hero-section */

/* Banner como no exemplo: layout controlado e isolado */
#hero-section {
    height: 80vh;
    min-height: 520px;
    display: block;
    /* Degradê azul com leve vinheta de sombra, no estilo do exemplo */
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.10) 38%, rgba(0,0,0,0) 70%),
        linear-gradient(135deg, #1b5c9c, #1a5490, #195489, #184d82) !important;
    background-color: #1b5c9c !important;
    animation: none !important; /* desativa animação antiga do fundo */
    box-shadow: inset 0 60px 120px rgba(0,0,0,0.10), inset 0 -80px 140px rgba(0,0,0,0.12);
}

/* Remove qualquer overlay anterior que possa alterar as cores */
#hero-section::before { content: none !important; }

#hero-section.blue-theme {
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.10) 38%, rgba(0,0,0,0) 70%),
        linear-gradient(135deg, #006994, #0099CC, #00BFFF) !important;
}

/* Contêiner das ondas inferiores (base do banner) */
#hero-section .waves-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    background: transparent; /* sem divisão de cor */
}

/* Contêiner das ondas superiores (topo do banner) */
#hero-section .waves-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    background: transparent; /* sem divisão de cor */
}

#hero-section .wave,
#hero-section .top-wave {
    position: absolute;
    left: 0;
    width: 200%;
    background-repeat: repeat-x;
}

/* Ondas inferiores (4 camadas) - ANIMAÇÕES MELHORADAS PARA LARANJA */
#hero-section .waves-bottom .wave:nth-child(1) {
    bottom: 0;
    height: 150px;
    opacity: 0.7;
    z-index: 3;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,100 C150,200 350,0 600,100 C850,200 1050,0 1200,100 L1200,150 L0,150 Z' fill='%23d14500'/%3E%3C/svg%3E");
    animation: wave-motion-enhanced 18s ease-in-out infinite, wave-float 6s ease-in-out infinite;
}

#hero-section .waves-bottom .wave:nth-child(2) {
    bottom: 0;
    height: 120px;
    opacity: 0.6;
    z-index: 2;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,80 C200,150 400,10 600,80 C800,150 1000,10 1200,80 L1200,150 L0,150 Z' fill='%23b83a00'/%3E%3C/svg%3E");
    animation: wave-motion-enhanced-reverse 15s ease-in-out infinite, wave-float 8s ease-in-out infinite reverse;
}

#hero-section .waves-bottom .wave:nth-child(3) {
    bottom: 0;
    height: 95px;
    opacity: 0.5;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,60 C250,120 450,20 600,60 C750,120 950,20 1200,60 L1200,150 L0,150 Z' fill='%239f2f00'/%3E%3C/svg%3E");
    animation: wave-motion-enhanced 22s ease-in-out infinite, wave-float 7s ease-in-out infinite;
}

#hero-section .waves-bottom .wave:nth-child(4) {
    bottom: 0;
    height: 75px;
    opacity: 0.4;
    z-index: 0;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,120 C180,180 380,60 600,120 C820,180 1020,60 1200,120 L1200,150 L0,150 Z' fill='%23872500'/%3E%3C/svg%3E");
    animation: wave-motion-enhanced-reverse 12s ease-in-out infinite, wave-float 9s ease-in-out infinite reverse;
}

/* Ondas superiores (2 camadas) - ANIMAÇÕES MELHORADAS PARA LARANJA */
#hero-section .waves-top .top-wave:nth-child(1) {
    top: 0;
    height: 70px;
    opacity: 0.3;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath d='M0,50 C300,0 600,100 1200,50 L1200,0 L0,0 Z' fill='%23d14500'/%3E%3C/svg%3E");
    animation: wave-motion-enhanced 25s ease-in-out infinite, wave-float 10s ease-in-out infinite;
}

#hero-section .waves-top .top-wave:nth-child(2) {
    top: 0;
    height: 50px;
    opacity: 0.2;
    z-index: 0;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath d='M0,30 C400,80 800,0 1200,30 L1200,0 L0,0 Z' fill='%23b83a00'/%3E%3C/svg%3E");
    animation: wave-motion-enhanced-reverse 20s ease-in-out infinite, wave-float 11s ease-in-out infinite reverse;
}

/* Tema azul (MANTIDO EXATAMENTE COMO ESTÁ - sem alterações) */
#hero-section.blue-theme .waves-bottom .wave:nth-child(1) {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,100 C150,200 350,0 600,100 C850,200 1050,0 1200,100 L1200,150 L0,150 Z' fill='%23004D66'/%3E%3C/svg%3E");
}
#hero-section.blue-theme .waves-bottom .wave:nth-child(2) {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,80 C200,150 400,10 600,80 C800,150 1000,10 1200,80 L1200,150 L0,150 Z' fill='%23006994'/%3E%3C/svg%3E");
}
#hero-section.blue-theme .waves-bottom .wave:nth-child(3) {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,60 C250,120 450,20 600,60 C750,120 950,20 1200,60 L1200,150 L0,150 Z' fill='%230099CC'/%3E%3C/svg%3E");
}
#hero-section.blue-theme .waves-bottom .wave:nth-child(4) {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,120 C180,180 380,60 600,120 C820,180 1020,60 1200,120 L1200,150 L0,150 Z' fill='%2366B2FF'/%3E%3C/svg%3E");
}

#hero-section.blue-theme .waves-top .top-wave:nth-child(1) {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath d='M0,50 C300,0 600,100 1200,50 L1200,0 L0,0 Z' fill='%2399DDFF'/%3E%3C/svg%3E");
}
#hero-section.blue-theme .waves-top .top-wave:nth-child(2) {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath d='M0,30 C400,80 800,0 1200,30 L1200,0 L0,0 Z' fill='%2300BFFF'/%3E%3C/svg%3E");
}

/* ONDAS MAIORES PARA O TEMA LARANJA (GÁS) - ESTADO PADRÃO */
#hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(1) {
    height: 80px !important; /* Drasticamente reduzido */
}

#hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(2) {
    height: 60px !important; /* Drasticamente reduzido */
}

#hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(3) {
    height: 40px !important; /* Drasticamente reduzido */
}

#hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(4) {
    height: 25px !important; /* Drasticamente reduzido */
}

#hero-section:not(.blue-theme) .waves-top .top-wave:nth-child(1) {
    height: 40px !important; /* Drasticamente reduzido */
}

#hero-section:not(.blue-theme) .waves-top .top-wave:nth-child(2) {
    height: 25px !important; /* Drasticamente reduzido */
}

/* Contêiner das ondas muito reduzido */
#hero-section:not(.blue-theme) .waves-bottom {
    height: 90px !important; /* Drasticamente reduzido */
}

#hero-section:not(.blue-theme) .waves-top {
    height: 60px !important; /* Drasticamente reduzido */
}

/* ANIMAÇÕES MELHORADAS APENAS PARA O TEMA LARANJA */
@keyframes wave-motion-enhanced {
    0% { transform: translateX(0); }
    25% { transform: translateX(-150px); }
    50% { transform: translateX(-300px); }
    75% { transform: translateX(-450px); }
    100% { transform: translateX(-600px); }
}

/* Tema azul para água - cores e animações diferentes */
#hero-section.blue-theme .waves-bottom .wave:nth-child(1) {
    height: 100px !important;
}

#hero-section.blue-theme .waves-bottom .wave:nth-child(2) {
    height: 80px !important;
}

#hero-section.blue-theme .waves-bottom .wave:nth-child(3) {
    height: 60px !important;
}

#hero-section.blue-theme .waves-bottom .wave:nth-child(4) {
    height: 40px !important;
}

#hero-section.blue-theme .waves-top .top-wave:nth-child(1) {
    height: 50px !important;
}

#hero-section.blue-theme .waves-top .top-wave:nth-child(2) {
    height: 35px !important;
}

/* Cores das ondas para o tema azul */
#hero-section.blue-theme .waves-bottom .wave path {
    fill: #0f83b5;
    opacity: 0.8;
}

#hero-section.blue-theme .waves-bottom .wave:nth-child(2) path {
    fill: #1e9bd1;
    opacity: 0.9;
}

#hero-section.blue-theme .waves-bottom .wave:nth-child(3) path {
    fill: #2db3e8;
    opacity: 1;
}

#hero-section.blue-theme .waves-top .top-wave path {
    fill: #0f83b5;
    opacity: 0.8;
}

#hero-section.blue-theme .waves-top .top-wave:nth-child(2) path {
    fill: #1e9bd1;
    opacity: 0.9;
}

@keyframes wave-motion-enhanced-reverse {
    0% { transform: translateX(0); }
    25% { transform: translateX(150px); }
    50% { transform: translateX(300px); }
    75% { transform: translateX(450px); }
    100% { transform: translateX(600px); }
}

@keyframes wave-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(0px); }
}

/* Animação original mantida para o tema azul (quando aplicado) */
@keyframes wave-motion {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

/* Acessibilidade: reduzir movimento se preferido */
@media (prefers-reduced-motion: reduce) {
    #hero-section .wave,
    #hero-section .top-wave { animation: none !important; }
}

/* Conteúdo centralizado como no exemplo */
#hero-section .content-overlay {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: opacity 1s ease-in-out;
    width: 100%;
}

#hero-section .content-overlay.fade-out { opacity: 0; }

#hero-section .content-overlay h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 16px 0;
    font-weight: 800;
}

#hero-section .content-overlay p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    margin: 0;
    opacity: 0.95;
}

/* Hero header organizado - aproveita mais largura */
#hero-section .hero-header {
    text-align: center;
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 3rem;
}

#hero-section .hero-header h1 {
    margin-bottom: 12px;
    line-height: 1.2;
}

#hero-section .hero-header p {
    margin-bottom: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Hero produto (imagem e botão) - Layout otimizado */
#hero-section .hero-product { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#hero-section .hero-product-media { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    flex-wrap: wrap; 
    margin: 15px 0;
    width: 100%;
    max-width: 100%;
}

#hero-section .hero-item { 
    position: relative; 
    flex: 0 0 auto;
}

#hero-section .hero-product-image { 
    height: clamp(200px, 40vh, 380px); 
    width: auto; 
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
    transition: transform 0.3s ease;
    animation: imageScaleIn 1.2s ease-out forwards;
}

#hero-section .hero-item:hover .hero-product-image {
    transform: translateY(-5px);
}

#hero-section .hero-item .hero-badge { 
    position: absolute; 
    top: -8px; 
    left: 50%; 
    transform: translateX(-50%); 
    padding: 4px 10px; 
    font-weight: 800; 
    border-radius: 999px; 
    font-size: .8rem; 
    color: #fff; 
    text-shadow: none; 
}

#hero-section .hero-item.gas .hero-badge { background: #1b5c9c; }
#hero-section .hero-item.water .hero-badge { background: #0f83b5; }

/* Ações do herói: layout responsivo - elementos empilhados */
#hero-section .hero-actions { 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 35px; 
    margin-top: 25px; 
    width: 100%;
}

#hero-section .hero-actions .btn { 
    min-width: 240px; 
    padding: 14px 28px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Sobrescrever estilos do Bootstrap para h2 dentro do hero */
#hero-section .hero-actions h2 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Informação de entrega abaixo do botão - com especificidade máxima */
#hero-section .hero-actions .hero-delivery-info,
#hero-section .hero-actions h2.hero-delivery-info {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(1.8rem, 4.5vw, 2.2rem) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
}



/* Media Queries para responsividade */
@media (max-width: 768px) {
    /* Mobile - Layout empilhado e compacto */
    #hero-section {
        min-height: 45vh;
        padding: 4rem 1rem 0.5rem 1rem;
    }
    
    #hero-section .hero-header {
        margin-bottom: 16px;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    #hero-section .content-overlay h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin: 0 0 12px 0;
    }
    
    #hero-section .content-overlay p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin: 0 0 16px 0;
    }
    
    #hero-section .hero-product-media {
        gap: 20px;
        margin: 16px 0;
    }
    
    #hero-section .hero-product-image {
        height: clamp(120px, 25vh, 200px);
        animation: imageScaleIn 1.2s ease-out forwards;
    }
    
    #hero-section .hero-actions {
        margin-top: 16px;
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    #hero-section .hero-actions .btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    #hero-section .hero-delivery-info {
        font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        font-weight: 700 !important;
        margin: 10px 0 0 0 !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Ondas muito menores em mobile */
    #hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(1) {
        height: 60px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(2) {
        height: 45px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(3) {
        height: 30px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-bottom .wave:nth-child(4) {
        height: 20px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-top .top-wave:nth-child(1) {
        height: 30px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-top .top-wave:nth-child(2) {
        height: 20px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-bottom {
        height: 70px !important;
    }
    
    #hero-section:not(.blue-theme) .waves-top {
        height: 50px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet - Layout intermediário */
    #hero-section {
        min-height: 65vh;
        padding: 6rem 2rem 2rem 2rem;
    }
    
    #hero-section .hero-product-media {
        gap: 18px;
    }
    
    #hero-section .hero-product-image {
        height: clamp(120px, 22vh, 200px);
    }
}

@media (min-width: 1025px) {
    /* Desktop - Layout otimizado para telas grandes */
    #hero-section {
        min-height: 55vh;
        padding: 5rem 0 2rem 0;
    }
    
    #hero-section .hero-product-media {
        gap: 24px;
        margin: 24px 0;
    }
    
    #hero-section .hero-product-image {
        height: clamp(160px, 28vh, 200px);
    }
    
    #hero-section .hero-actions {
        margin-top: 24px;
        gap: 38px;
        flex-direction: column;
        align-items: center;
    }
    
    #hero-section .hero-actions .btn {
        min-width: 220px;
        padding: 14px 28px;
        font-size: 1.2rem;
    }
    
    #hero-section .hero-delivery-info {
        font-size: clamp(2.2rem, 5vw, 2.5rem) !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        font-weight: 700 !important;
        margin: 15px 0 0 0 !important;
        letter-spacing: 0.6px !important;
    }
}

/* Animação de entrada das imagens do banner - DESATIVADA */
/* @keyframes imageScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
        filter: blur(3px);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.8) translateY(15px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
} */

/* Delays de animação removidos - imagens aparecem imediatamente */


