
.home-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mudança: distribui espaço entre elementos */
    align-items: center;
    min-height: calc(100vh - 85px); /* Reduzido para compensar o header */
    background-image: url("../image/background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

.home-content {
    text-align: center;
    max-width: 600px;
    flex-shrink: 0; /* Impede que encolha demais */
}

.home-content h1 {
    font-size: 32px;
    color: #173366;
    margin-bottom: 10px;
    font-weight: 600;
}

.home-content .description {
    font-size: 18px; /* Aumentado de 16px */
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.5;
}

.city-selector {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1; /* Permite crescer para ocupar espaço disponível */
    width: 100%;
    max-width: 600px;
}

.selector-container {
    position: relative;
    min-width: 300px;
    width: 100%;
    max-width: 400px;
}

.city-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    border: 2px solid #219348;
    border-radius: 30px;
    outline: none;
    font-size: 18px; /* Aumentado de 16px */
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.city-input:focus {
    border-radius: 0px;
}

.city-input:hover {
    border-color: #219348;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.city-input:focus {
    border-color: #219348;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.dropdown-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #219348;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
    pointer-events: auto;
    z-index: 2;
}

.dropdown-arrow.rotated {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-arrow:hover {
    color: #219348;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #219348;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 15px 20px;
    cursor: pointer;
    color: #2c3e50;
    font-size: 18px; /* Aumentado de 16px */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 50px;
    box-sizing: border-box;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #219348;
}

.dropdown-item.selected {
    background-color: #e8f5e8;
    color: #219348;
    font-weight: 500;
}

.check-icon {
    color: #219348;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 10px;
}

.dropdown-item.selected .check-icon {
    opacity: 1;
}

.select-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #219348 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px; /* Aumentado de 16px */
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.select-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.select-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.select-button:hover::before {
    left: 100%;
}

.select-button:active {
    transform: translateY(0);
}

.select-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.how-it-works {
    border-radius: 20px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.how-it-works h2 {
    color: #173366;
    margin-bottom: 20px;
    font-size: 26px; /* Aumentado de 24px */
    font-weight: 600;
}

.how-it-works ul {
    list-style: none;
    text-align: left;
    margin: 0 auto;
    max-width: 400px;
}

.how-it-works li {
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    padding-left: 35px;
    line-height: 1.6;
    font-size: 16px; /* Adicionado tamanho específico */
    transition: transform 0.2s ease;
}

.how-it-works li:hover {
    transform: translateX(5px);
}

.how-it-works li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #219348;
    font-weight: bold;
    font-size: 18px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo do footer com posicionamento fixo no final */
.logo-footer {
    margin-top: auto; /* Mudança: empurra para o final */
    padding-top: 20px;
    flex-shrink: 0;
}

.logo-footer img {
    width: 80px;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    border-radius: 50%;
    margin-bottom: 10px;
}

.logo-footer img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ======================
   RESPONSIVIDADE MOBILE
   ====================== */

/* Tablet */
@media (max-width: 768px) {
    .home-container {
        min-height: calc(100vh - 120px); /* Ajustado para header mobile */
        padding: 15px;
        gap: 15px;
    }
    
    .home-content h1 {
        font-size: 30px;
        margin-top: 10px;
    }
    
    .home-content .description {
        font-size: 18px;
    }
    
    .city-input {
        font-size: 18px;
        padding: 18px 55px 18px 18px;
    }
    
    .dropdown-item {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .select-button {
        font-size: 18px;
        padding: 16px 35px;
    }
    
    .how-it-works h2 {
        font-size: 24px;
    }
    
    .how-it-works li {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .home-container {
        min-height: calc(100vh - 140px); /* Mais espaço para header mobile */
        padding: 10px;
        gap: 12px;
    }
    
    .home-content {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .home-content h1 {
        font-size: 32px; /* Mantido grande para mobile */
        margin-top: 15px;
        line-height: 1.2;
    }
    
    .home-content .description {
        font-size: 20px; /* Ainda maior para mobile */
        margin-bottom: 12px;
    }
    
    .city-selector {
        margin: 20px 0;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .selector-container {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    .city-input {
        padding: 20px 55px 20px 20px; /* Padding generoso */
        font-size: 20px; /* Tamanho grande para mobile */
        border-radius: 25px;
    }
    
    .dropdown-arrow {
        right: 20px;
        font-size: 26px; /* Maior para facilitar toque */
    }
    
    .dropdown-item {
        padding: 18px 20px;
        font-size: 20px; /* Maior para mobile */
        min-height: 55px; /* Área de toque maior */
    }
    
    .select-button {
        padding: 18px 40px;
        min-width: unset;
        width: 100%;
        font-size: 20px; /* Maior para mobile */
        border-radius: 25px;
    }
    
    .how-it-works {
        width: 100%;
        padding: 0 5px;
    }
    
    .how-it-works h2 {
        font-size: 26px; /* Mantido grande */
        margin-bottom: 18px;
    }
    
    .how-it-works ul {
        max-width: 100%;
    }
    
    .how-it-works li {
        padding-left: 35px;
        margin-bottom: 12px;
        font-size: 18px; /* Maior para mobile */
        line-height: 1.4;
    }
    
    .how-it-works li::before {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }
    
    .logo-footer {
        margin-top: auto;
        padding-top: 15px;
    }
    
    .logo-footer img {
        width: 75px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 320px) {
    .home-content h1 {
        font-size: 28px;
    }
    
    .home-content .description {
        font-size: 18px;
    }
    
    .city-input {
        font-size: 18px;
        padding: 18px 50px 18px 18px;
    }
    
    .dropdown-item {
        font-size: 18px;
    }
    
    .select-button {
        font-size: 18px;
    }
    
    .how-it-works h2 {
        font-size: 22px;
    }
    
    .how-it-works li {
        font-size: 16px;
    }
}