@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --secondary-color: #37474f;
    --tertiary-color: #81c784;
    --bg-color: #f1f8e9;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--secondary-color);
    font-family: "Roboto", system-ui, sans-serif;
}

header {
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    border-bottom: 1px solid var(--tertiary-color);
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    color: var(--primary-color);
}

.titulo {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icone {
    width: 60px;
    height: auto;
}

div input {
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    border: 2px solid var(--tertiary-color);
    background: #ffffff;
    font-family: inherit;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    width: 30rem;
    color: var(--secondary-color);
    margin-right: .5rem;
}

div input::placeholder {
    font-size: 1.2rem;
    font-weight: 400;
    color: #90a4ae;
}

div input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.2);
}

#botao-busca {
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
}

#botao-busca:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#botao-busca:active {
    transform: scale(0.98);
}

main {
    overflow-y: scroll;
    max-width: 80rem;
    margin: 0 auto;
    margin-top: 2rem;
    height: calc(100vh - 10rem - 4rem);
    padding-bottom: 6rem;
}

article {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid var(--tertiary-color);
}

article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-color);
}

article h2 {
    margin-top: 0;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

article p {
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #546e7a;
}

article p strong {
    color: var(--secondary-color);
    font-weight: 700;
}

article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--tertiary-color);
}

article a:hover {
    border-bottom: 1px solid var(--primary-color);
    color: var(--secondary-color);
}

footer.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: #ffffff;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.25);
    border-top: 3px solid var(--tertiary-color);
    z-index: 999;
}


.footer-location {
    color: #e8f5e9;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    font-size: 1rem;
    transition: opacity .2s, transform .2s;
}

.footer-links a:hover {
    opacity: 1;
    transform: scale(1.05);
    text-decoration: underline;
}

/* RESPONSIVIDADE */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    header h1 {
        text-align: center;
        margin-bottom: 1rem;
    }

    div input {
        width: 90vw;
        font-size: 1.2rem;
    }

    main {
        padding: 0 1rem;
    }

    article:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
        max-width: 90%;
        word-wrap: break-word;
    }

    div input,
    div input::placeholder {
        font-size: 1rem;
    }

    article h2 {
        font-size: 1.3rem;
    }

    div {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    button {
        margin-top: 1rem;
    }
}