:root {
    --verde: #65B307;
    --verde-escuro: #3B6603;
    --bg: #ffffff;
    --text: #222;
}

body.dark {
    --bg: #121212;
    --text: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/*LOADER*/
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 9999;
    transition: 0.5s;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid var(--verde);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/*CANVAS*/
#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/*TOPO*/
.top-bar {
    background: linear-gradient(90deg, var(--verde-escuro), var(--verde));
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 50px;
    font-size: 0.85rem;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
}

.desktop-header {
    position: relative;
    z-index: 1000;
}

.dropdown-menu {
    z-index: 2000;
}

.top-links a::before,
.top-links a::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 50%;
    top: 25%;
    background: rgba(255,255,255,0.7);

    opacity: 0;
    transition: 0.25s;
}

.top-links a::before { left: 0; transform: translateY(5px); }
.top-links a::after { right: 0; transform: translateY(-5px); }

.top-links a:hover::before,
.top-links a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.socials a {
    display: inline-block;
}

.socials img {
    width: 22px;
    transition: 0.3s;
}

/* EFEITO */
.socials a:hover img {
    transform: scale(1.2) translateY(-3px);
    filter: drop-shadow(0 0 6px var(--verde));
}

/*HEADER DESKTOP*/
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 15px 50px;
    background: var(--bg);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--verde);
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--verde);
}

/*DROPDOWN*/
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 130%;
    left: 0;

    background: var(--bg);
    border-radius: 10px;

    padding: 10px;
    min-width: 180px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    transition: 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    padding: 8px;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.05);
}

/*RIGHT*/
.right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    margin-left: auto;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials img {
    width: 22px;
    cursor: pointer;
    transition: 0.25s;
}

.socials img:hover {
    transform: translateY(-2px) scale(1.1);
}

/*BOTÃO TEMA*/
.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;

    background: rgba(0,0,0,0.05);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    transition: 0.3s;
}

.theme-btn:hover {
    transform: scale(1.05);
}

.theme-btn .icon {
    position: absolute;
    width: 20px;
    height: 20px;

    stroke: var(--text);
    fill: none;
    stroke-width: 2;

    transition: 0.4s ease;
}

.sun { opacity: 1; transform: rotate(0); }
.moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

body.dark .sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

body.dark .moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/*MOBILE HEADER*/
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;
    background: var(--bg);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    font-size: 26px;
    cursor: pointer;
}

/*MENU MOBILE*/
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100%;
    background: var(--bg);
    padding: 90px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.35s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;

    padding: 10px 12px;
    border-radius: 8px;

    transition: 0.25s;
}

.mobile-menu a:hover {
    background: rgba(0,0,0,0.05);
    transform: translateX(5px);
}

body.dark .mobile-menu a:hover {
    background: rgba(255,255,255,0.05);
}

.mobile-menu hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 10px 0;
}

body.dark .mobile-menu hr {
    border-top: 1px solid rgba(255,255,255,0.1);
}



/*MOBILE*/

.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* VOLTAR */
.mobile-header .back-btn {
    width: 40px;
    font-size: 20px;
}

/* LOGO CENTRAL */
.mobile-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* AÇÕES  */
.actions {
    min-width: 80px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .top-bar {
        display: none;
    }
}

.back-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    text-decoration: none;

    background: rgba(0,0,0,0.05);
    color: var(--text);

    font-size: 18px;

    backdrop-filter: blur(6px);

    transition: 0.3s ease;
}

/* HOVER */
.back-btn:hover {
    background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
    color: white;

    transform: translateX(-4px) scale(1.08);

    box-shadow: 0 0 20px rgba(101,179,7,0.5);
}

.footer {
    margin-top: 80px;
    background: linear-gradient(135deg, black, #172701);
    color: white;
}

/* CONTAINER */
.footer-container {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 30px;

    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

/* LOGO */
.footer-brand img {
    width: 160px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #ccc;
}

/* TITULOS */
.footer h3 {
    margin-bottom: 12px;
    font-size: 1rem;

    color: var(--verde);
}

/* CONTATO */
.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #ccc;
}

/* LINKS */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.85rem;

    position: relative;
    width: fit-content;

    transition: 0.3s;
}

/* HOVER VERDE */
.footer-links a:hover {
    color: var(--verde);
}

/* LINHA ANIMADA */
.footer-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--verde);
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

/* LINHA SUPERIOR */
.footer-container {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* BASE */
.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 0.75rem;
    color: #aaa;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ÍCONES */
.footer-contact .icon {
    width: 18px;
    height: 18px;
    object-fit: contain;

    filter: brightness(0) invert(1);
}

.footer-contact a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.footer-contact a:hover {
    color: var(--verde);
}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer {
        text-align: center;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-links a {
        text-align: center;
        width: 100%;
    }

}

.contact-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 1100px;
    width: 100%;

    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

/* TEXTO */
.contact-info {
    max-width: 450px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: #777;
    margin-bottom: 20px;
}

/* BOTÕES */
.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* BOTÃO PADRÃO */
.btn-contact {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;
    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;

    transition: 0.3s;
}

/* ÍCONES */
.btn-contact img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* WHATSAPP */
.btn-contact.whatsapp {
    background: #25D366;
    color: white;
}

/* EMAIL */
.btn-contact.email {
    background: linear-gradient(90deg, var(--verde), var(--verde-escuro));
    color: white;
}

/* HOVER */
.btn-contact:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* FORM */
.contact-form {
    flex: 1;
    background: rgba(0,0,0,0.03);
    padding: 25px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form h3 {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 120px;
    resize: none;
}

.contact-form button {
    background: linear-gradient(90deg, var(--verde), var(--verde-escuro));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .contact-form {
        width: 100%;
    }
}

.support-info {
    background: rgba(101,179,7,0.08);
    border-left: 4px solid var(--verde);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.support-info strong {
    color: var(--verde);
}