:root {
    --cor-primaria: #419131;
    --cor-secundaria: #8BC34A;
    --cor-fundo-claro: #FFFFFF;
    --cor-fundo-escuro: #F0F0F0;
    --cor-texto-claro: #FFFFFF;
    --cor-texto-escuro: #333333;
}

/* Override no modo escuro */
body.dark-mode {
    --cor-fundo-claro: #333333;
    --cor-texto-escuro: #f0f0f0;
}

/* ================ Reset & Globais ================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

/* ================ Body background ================  */
body {
    background:
        repeating-linear-gradient(45deg,
            #f5f0e6,
            #f5f0e6 10px,
            #e8e2d0 10px,
            #e8e2d0 20px),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(0, 0, 0, 0.03), transparent 60%);
    background-blend-mode: overlay;
    background-color: #eae3d2;
    font-family: "Oswald", sans-serif;
    font-style: normal;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerDrop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-animacao {
    animation: slideFadeIn 1s ease forwards;
}

/* =================== Header =================== */
#menu1 {
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s ease;
    z-index: 1000;
}

header {
    height: 70px;
    top: 0;
    z-index: 1000;
    background: var(--cor-primaria);
    color: var(--cor-texto-claro);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    animation: headerDrop 1s ease-out forwards;
    transition: background-color 0.3s ease, box-shadow 0.3s ease
}

header.scrolled {
    background-color: #2e7d32;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header span {
    margin: 0;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -40px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cor-secundaria);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--cor-secundaria);
}

nav a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--cor-secundaria);
    transition: width .3s;
}

nav a:hover::after {
    width: 100%
}


#toggle-mode {
    background: var(--cor-secundaria);
    border: none;
    padding: .5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions {
    display: flex;
    gap: 12px;
}

/* Logo */
.logo-eco {
    height: 120px;
    width: auto;
    filter: brightness(250%);
}

/* ================== Titulo, paragrafo, Hero ================== */
.titulo-eco {
    color: whitesmoke;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(50px);
    animation: slideFadeIn 1s forwards;
}

.paragrafo {
    color: whitesmoke;
    transform: translate(50px);
    animation: slideFadeIn 1s forwards;
}

.hero-image {
    position: absolute;
    padding: auto;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 1;
}

.hero {
    text-align: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 2px solid var(--cor-secundaria);
    position: relative;
}

.hero span {
    font-size: 2.5rem;
    color: var(--cor-texto-escuro);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Botão e efeito hover do botão */
.btn {
    display: inline-block;
    background: var(--cor-secundaria);
    color: var(--cor-texto-claro);
    padding: .75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background .3s, transform .3s;
    transform: translateY(50px);
    animation: slideFadeIn 1s forwards;
}

.btn:hover {
    background: var(--cor-secundaria);
    transform: scale(1.05);
}

/* ============== Features Grid ============== */
.features {
    padding: 10rem 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

@media (min-width:768px) {
    .grid-container {
        grid-template-columns: 1fr
    }
}

/* Cards */
.card.parallax {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.card {
    display: flex;
    margin: 5rem;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4176e1;
    background: var(--cor-fundo-claro);
    perspective: 1000px;
}

.card-image {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 200px;
}

.cards-col {
    width: 100%;
    max-width: 800px;
}

/* Efeitos dos cards */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:nth-child(1) {
    animation-delay: 0.7s;
}

/* ============== Parte do carousel ============== */
.carousel-img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.carousel-img1,
.carousel-img2 {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.carousel-img3,
.carousel-img4,
.carousel-img5 {
    width: 225px;
    height: auto;
    object-fit: cover;
}

.carousel {
    transform: translateY(50px);
    animation: slideFadeIn 1s forwards;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

/* ============== Footer ============== */
footer {
    background: var(--cor-primaria);
    color: var(--cor-texto-claro);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--cor-texto-claro);
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.social-icons a {
    margin-right: 10px;
    color: var(--cor-texto-claro);
}

.social-icons a:hover {
    color: var(--cor-secundaria);
}

/* Icone de Contatos */
.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    margin-top: 20px;
    font-size: 2rem;
}

.social-icons a {
    color: var(--cor-texto-escuro);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--cor-primaria);
    transform: scale(1.2);
}

.textoConect {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Area para preencher contatos */
.section {
    padding: 0rem;
    background-color: var(--cor-fundo-escuro);
    border-top: 0.2rem solid var(--cor-secundaria);
}

.conexoes {
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    color: black;
}

textarea,
input {
    padding: 0.75rem;
    border: 1px solid var(--cor-secundaria);
    border-radius: 6px;
    resize: vertical;
}

textarea {
    min-height: 120px;
}

button[type="submit"] {
    align-self: flex-start;
    cursor: pointer;
    border: none;
}

.textoConect {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--cor-texto-escuro);
}

body.light-mode {
    background:
        repeating-linear-gradient(45deg,
            #f5f0e6,
            #f5f0e6 10px,
            #e8e2d0 10px,
            #e8e2d0 20px),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(0, 0, 0, 0.03), transparent 60%);
    background-blend-mode: overlay;
    background-color: #eae3d2;
}

/* Corrige para o modo escuro */
body.dark-mode .hero h1 {
    color: #ffffff;
}

body.dark-mode .paragrafo {
    color: var(--cor-texto-claro);
}

body.dark-mode .textoConect {
    color: var(--cor-texto-claro);
}

body.dark-mode .social-icons a {
    color: var(--cor-texto-claro);
}

body.dark-mode .social-icons a:hover {
    color: var(--cor-secundaria);
}

body.dark-mode .btn {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro);
}

body.dark-mode textarea,
body.dark-mode input {
    background-color: #444;
    color: var(--cor-texto-claro);
    border: 1px solid var(--cor-secundaria);
}

body.dark-mode label {
    color: var(--cor-texto-claro);
}

body.dark-mode .section {
    background-color: #333333;
}

body.dark-mode .wrapper,
body.dark-mode .content {
    background-color: transparent;
    /* Evita blocos claros no fundo escuro */
}

body.dark-mode .card {
    color: var(--cor-texto-escuro);
}

body.dark-mode .card {
    background-color: #222;
}

body.dark-mode {
    background-blend-mode: overlay;
    background-color: #1b1b1b;
}

/* Ajusta a posição ao rolar para seções com âncora */
#servicos,
#Contatos {
    scroll-margin-top: 80px;
}

#Footer {
    scroll-margin-top: -150px;
    border-top: 0.2rem solid var(--cor-secundaria);
}

img {
    max-width: 100%;
    height: auto;
}

#sugestaoForm {
    margin-top: 2rem;
    padding: 3rem;
}

/* botão escondido em telas grandes */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--cor-texto-claro);
    cursor: pointer;
    z-index: 9999;
}
