/* Cores Principais */
:root {
    --primary-color: #feca57;  /* Amarelo (NoBreak) */
    --secondary-color: #222f3e; /* Cinza Escuro */
    --text-color: #353b48;      /* Cinza Médio */
    --bg-color: #f1f2f6;        /* Cinza Claro */
    --accent-color: #48dbfb;    /* Azul Claro */
    --whatsapp-color: #25d366;
}

/* Reset e Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #00a8ff;
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: row;
    flex-wrap: wrap;
    flex-direction: column;
}

.logo-sub {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo-sub span {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}



/* get the last a */
.logo a {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    padding: 0rem 1rem;
    margin-left: 1rem;
}

/* get the first logo a */
/* make the padding on this one overrride the logo a padding */

.logo a:first-child {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    display: block;
    padding: 0rem 1rem;
    margin-left: 1rem;
    margin-bottom: -1rem;
}

.logo-no {
    color: var(--primary-color);
}

.logo-entrega {
    color: white;
}

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

nav ul li {
    margin-left: 1.5rem;
    margin-right: 1rem;
}

nav a {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main */
main {
    flex: 1;
}

/* Estilos para a Landing Page (Modificado para as duas baterias) */
.landing-page {
    background-color: var(--bg-color);
    padding: 3rem 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.landing-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Novo estilo para o container das duas baterias */
.battery-images {
    display: grid;
    /* 2 colunas e 2 linhas */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    flex-shrink: 0;
}

.battery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.battery-label {
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: -50px;
    font-size: 1.1rem;
}

/* Ajustes nas imagens das baterias */
.landing-image {
    width: 200px; 
    height: 250px; /* Altura fixa para todas as imagens */
    object-fit: contain; /* Mantém a proporção da imagem */
    background-color: transparent; /* Remove o fundo branco */
    padding: 10px;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-image:hover {
    transform: scale(1.05);
}

.landing-text {
    text-align: left;
    margin-left: 3rem;
    max-width: 600px;
}

.landing-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.landing-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.landing-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.landing-button:hover {
    background-color: #eab543;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.landing-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
    z-index: 1;
}

.landing-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Seção de Pesquisa (Modificada para o novo botão) */
.search-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.search-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.search-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Container Principal da Barra e Resultados */
.search-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Wrapper apenas para Input (removido botão da lupa) */
.search-input-wrapper {
    position: relative;
    margin-bottom: 10px; /* Espaço para o novo botão */
}

#search-input {
    padding: 0.8rem 1.2rem;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(254, 202, 87, 0.5);
}

/* Estilo para o novo botão "Encontre sua bateria" */
.find-battery-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.find-battery-button:hover {
    background-color: #eab543;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Lista de Resultados */
#search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 900;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

#search-results.visible {
    display: block;
}

#search-input:has(~ #search-results.visible) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent !important;
}

.search-bar-container.results-visible #search-input {
     border-bottom-left-radius: 0;
     border-bottom-right-radius: 0;
     border-bottom-color: transparent !important;
}

.search-bar-container.results-visible #search-results {
    border-color: var(--primary-color);
    border-top-color: #ddd;
}

#search-results li {
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#search-results li:hover {
    background-color: #f5f5f5;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    margin-top: auto;
}
.contact-info { margin-bottom: 1rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 1rem; color: white; }
.contact-info p { margin: 0.5rem 0; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.contact-info p i { color: var(--primary-color); }
footer p:last-child { margin-top: 1.5rem; font-size: 0.8rem; color: #aaa; }

/* WhatsApp Button */
.whatsapp-button { position: fixed; bottom: 25px; right: 25px; background-color: var(--whatsapp-color); color: white; padding: 1rem; border-radius: 50%; font-size: 1.8rem; text-decoration: none; z-index: 999; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 3px 10px rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; }
.whatsapp-button:hover { background-color: #128c7e; transform: scale(1.05); }

/* Estilos para a Seção do Mapa */
.map-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--bg-color);
}

.map-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.map-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.map-container {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.map-directions-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-directions-button:hover {
    background-color: #3b4b5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.telefone {
    font-size: 1.5rem;
}

/* Responsividade (Ajustado para as duas baterias e novo botão) */
@media (max-width: 992px) {
    .landing-content {
        flex-direction: column;
        text-align: center;
    }
    .battery-images {
        margin-bottom: 0rem;
    }
    .landing-text {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .landing-image {
        width: 120px; 
        height: 120px; /* Altura fixa para todas as imagens */
        object-fit: contain; /* Mantém a proporção da imagem */
        background-color: transparent; /* Remove o fundo branco */
        padding: 0px;
        transition: transform 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .battery-label {
        font-weight: bold;
        color: var(--secondary-color);
        margin-top: -15px;
        font-size: 1.1rem;
    }

    .logo a:first-child {
        font-size: 3.5rem;
        margin-left: 0;
    }

    .logo a:last-child {
        font-size: 1.2rem;
        margin-left: 0;
    }

    header {
        flex-direction: column;
        align-items: center;
        position: static;
    }
    .logo a {
        /* font-size: 3rem; */
        margin: 0 0;
        /* padding: 0.5rem; */
    }
    .logo-sub span {
        font-size: 0.8rem;
    }
    .logo-entrega span {
        font-size: 0.8rem;
        line-height: 1px;
    }
    nav {
        margin-top: 1rem;
        width: 100%;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }
    main {
        padding: 0;
    }
    .landing-page, .search-section {
        padding: 2rem 1rem;
    }
    .landing-text h2 {
        font-size: 2rem;
    }
    .landing-text p {
        font-size: 1.1rem;
    }
    .search-section h2 {
        font-size: 1.8rem;
    }
    .search-section p {
        font-size: 1rem;
    }
    .search-bar-container {
        max-width: 95%;
    }
    #search-input {
        padding: 0.7rem 1rem;
    }
    
    /* Ajuste para quando as baterias devem ficar em coluna no mobile muito pequeno */
    @media (max-width: 400px) {
        .battery-images {
            flex-direction: row;
            gap: 10px;
        }
    }
    
    .find-battery-button {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    #search-results {
        border-radius: 0 0 8px 8px;
    }
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .map-section {
        padding: 2rem 1rem;
    }
    .map-container iframe {
        height: 350px;
    }
    .map-directions-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}