/* ============================
   VARIÁVEIS GLOBAIS
============================ */
:root {
    --blue-light: #e9f3ff;
    --blue-strong: #0d6efd;
    --blue-dark: #0a2b4a;
    --green-eco: #00b878;
    --glass-white: rgba(255,255,255,0.75);
    --glass-border: rgba(0,0,0,0.10);
}

/* ============================
   BASE
============================ */
body {
    background: var(--blue-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-top: 80px; /* ajuste conforme a altura da sua navbar */
}
a {
    text-decoration: none;
}
.img-navbar {
    height: 50px;
}
.img-avatar {
    height: 40px;
}

/* ============================
   NAVBAR
============================ */
.gn-navbar {
    background: linear-gradient(135deg, #0d6efd, #00b878);
    padding: 0.8rem 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.navbar-title-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: auto;
}
@media (max-width: 991px) {
    .navbar-title-desktop {
        display: none !important;
    }
    .navbar-brand {
        font-weight: 700;
        font-size: 1.35rem;
    }
}
@media (min-width: 992px) {
    #mobileMenu {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Dropdown acima de tudo */
.dropdown-menu {
    position: absolute !important;
    z-index: 99999 !important;
}
.navbar,
.navbar * {
    z-index: 99998 !important;
}

/* MENU AUTH MODERNO */
.auth-menu {
    align-items: center;
}

.auth-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    padding: 10px 18px !important;
    position: relative;
    border-radius: 6px;
    transition: all 0.25s ease;
}

/* HOVER */
.auth-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}

/* LINHA ANIMADA NO ACTIVE */
.auth-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: #00d084; /* verde vibrante */
    border-radius: 10px;
    animation: menuDot 0.2s ease-in-out;
}

@keyframes menuDot {
    from { width: 0; opacity: 0; }
    to   { width: 22px; opacity: 1; }
}

/* ACTIVE STATE */
.auth-link.active {
    color: #fff !important;
}

/* ============================
   ICONES E ELEMENTOS DECORATIVOS
============================ */
.icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.dash-icon,
.tool-icon {
    font-size: 42px;
    color: var(--blue-strong);
}

/* ============================
   CARDS
============================ */
.card-info,
.quick-card,
.tool-card,
.news-card {
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

/* CARD INFO */
.card-info {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* QUICK CARD */
.quick-card {
    padding: 20px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
}
.quick-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* TOOL CARD */
.tool-card {
    padding: 25px;
    margin-bottom: 20px;;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    color: #0c314b;
    height: 100%;
}
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
    background: rgba(255,255,255,0.85);
}

/* NEWS CARD */
.news-card {
    border: none;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.news-img,
.news-img-fixed {
    width: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}
.news-img {
    height: 170px;
}
.news-img-fixed {
    height: 180px;
}

/* ============================
   BADGES
============================ */

/* ============================
   LIST GROUP
============================ */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: transparent;
    padding: 14px 10px;
}
.list-group-item:last-child {
    border-bottom: none;
}

/* ============================
   GLASS FOOTER / SEÇÕES
============================ */
.eco-section {
    background: linear-gradient(135deg, #0d6efd, #00b878);
    color: #fff;
}
.eco-footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px 14px 0 0;
}
.eco-footer .footer-link {
    border-radius: 10px;
    font-weight: 500;
}
.eco-footer .footer-link:hover {
    background: var(--blue-strong);
    color: #fff !important;
}

/* ============================
   FLAG
============================ */
.flag-wrap {
    width: 24px;
    height: 16px;
    display: inline-block;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
}
.flag-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   HOVERS & PLACEHOLDERS
============================ */
.hover-white:hover {
    color: #fff !important;
    transition: 0.2s;
}
footer input::placeholder {
    color: #999;
}

/* ============================
   BANNER HERO
============================ */
.impact-banner {
    position: relative;
    padding: 140px 0;
    background:
        linear-gradient(rgba(0,20,0,0.75), rgba(0,20,0,0.85)),
        url('https://biogaseenergia.com.br/img/bg-renovaveis.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.impact-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(0,255,100,0.18), transparent 60%);
    pointer-events: none;
}
.impact-banner h1,
.impact-banner p,
.impact-banner a {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}
.impact-banner h1 { animation-delay: 0.1s; }
.impact-banner p  { animation-delay: 0.3s; }
.impact-banner a  { animation-delay: 0.5s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gn-menu-btn {
    padding: 4px 6px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #2E7D32;
    border-radius: 12px;;
    color: #2E7D32;
    background: white;
    transition: all 0.25s ease-in-out;
}
/* Hover elegante */
.gn-menu-btn:hover {
    background: #2E7D32;
    color: #fff !important;
}
/* Estado ativo */
.gn-menu-btn.active {
    background: linear-gradient(90deg, #2E7D32, #66BB6A);
    color: #fff !important;
    border-color: #1B5E20;
    box-shadow: 0 0 8px rgba(46,125,50,0.35);
}

.hover-zoom {
    transition: all .3s ease;
}
.hover-zoom:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
}
/* MENU FIXO ABAIXO DO NAVBAR */
.gn-submenu-fixed {
    position: sticky;
    top: 72px; /* altura aproximada do seu navbar fixo */
    z-index: 999;
    background: var(--blue-light);
    border-bottom: 1px solid #e9e9e9;
}

/* Efeito suave */
.gn-submenu-fixed {
    transition: background 0.3s ease;
}

/* Quando rolar, escurece um pouco */
.gn-submenu-fixed.scrolled {
    background: #f7f7f7;
}

/* MENU MOBILE - ITENS MAIS MODERNOS */
.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.1s ease;
}

.mobile-menu-link i {
    font-size: 1.25rem;
    opacity: 0.9;
    width: 28px;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-link:active {
    transform: scale(0.97);
}

/* LOGIN NO MOBILE */
.mobile-login-btn {
    margin-top: 15px;
    padding: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 10px;
}

.img-navbar {
    height: 42px;
}

.card img {
    transition: .3s ease;
}

.card:hover img {
    opacity: .9;
}

.carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.carousel.carousel-fade .carousel-item.active,
.carousel.carousel-fade .carousel-item-next.carousel-item-start,
.carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel.carousel-fade .carousel-item-next,
.carousel.carousel-fade .carousel-item-prev,
.carousel.carousel-fade .carousel-item.active.carousel-item-start,
.carousel.carousel-fade .carousel-item.active.carousel-item-end {
    opacity: 0;
}

.carousel .carousel-item {
    transition: transform 0.9s cubic-bezier(.42,.03,.77,.79);
}

.carousel-item .card {
    transform: scale(.95);
    transition: transform .6s ease-in-out, opacity .6s ease-in-out;
    opacity: .6;
}

.carousel-item.active .card {
    transform: scale(1);
    opacity: 1;
}

.hero-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef7f1 100%);
    border-radius: 12px;
    padding-bottom: 4rem !important;
    padding-top: 4rem !important;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 90px;
    height: 4px;
    background: #00b878;
    border-radius: 10px;
    display: block;
}
