:root {
    --agro-green: #15803d;
    --agro-dark: #0f391c;
    --agro-accent: #facc15;
    --bg-light: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #374151;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATION (HEADER) --- */
.navbar {
    background: linear-gradient(135deg, var(--agro-dark) 0%, var(--agro-green) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white !important;
}

.navbar .nav-link {
    font-weight: 500;
    transition: opacity 0.2s;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .nav-link:hover {
    opacity: 0.9;
    color: var(--agro-accent) !important;
}

/* --- BUTTONS --- */
.btn-agro {
    background-color: var(--agro-accent);
    color: #111;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s;
}

.btn-agro:hover {
    background-color: #eab308;
    transform: translateY(-1px);
}

/* --- MOBILE NAV (TOP) --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.15);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
    }
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px 0;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .btn-agro {
        width: 100%;
        margin-top: 10px;
    }
}

/* --- CARDS & GENERIC --- */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

/* --- FOOTER (PAGRINDINIS) --- */
.footer {
    background-color: #111827;
    color: #9ca3af;
    
    /* PANAIKINA TAMSŲ TARPĄ VIRŠUJE */
    padding-top: 0 !important;
    
    padding-bottom: 15px; /* Tarpas apačioje */
    margin-top: auto;
}

/* Nuorodos kompiuterio versijoje */
.footer a {
    color: #d1d5db;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    display: inline-block;
    
    /* Nuorodos prasideda 20px žemiau nuo viršutinės ribos */
    margin-top: 20px; 
}

.footer a:hover {
    color: var(--agro-accent);
}

.footer p {
    margin: 0;
    margin-top: 15px;
    font-size: 0.75rem;
}

/* --- MOBILIOJI VERSIJA - VERTIKALUS MENIU --- */
@media (max-width: 768px) {
    /* Konteineris */
    #footer-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    /* Kiekviena nuoroda atskirai */
    #footer-menu a {
        display: block !important; /* Priverčia būti bloku */
        width: 100%;
        margin: 0 !important;      /* Panaikina šoninius tarpus */
        padding: 12px 0;           /* Didesnis plotas paspaudimui */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Linija */
        text-align: left;          /* Lygiuoti kairėje kaip meniu */
        font-size: 1rem;
    }

    #footer-menu a:last-child {
        border-bottom: none;
    }

    /* Pakeičiame Copyright teksto poziciją mobiliajame */
    .footer p {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}

/* --- UI ELEMENTS --- */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111827;
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    border-top: 4px solid var(--agro-green);
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    background-color: var(--agro-green);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

#btn-back-to-top:hover {
    background-color: var(--agro-dark);
    transform: translateY(-3px);
}

/* --- CONTACT PAGE FIX --- */
.contact-left-box {
    background-color: var(--agro-green) !important;
    background: linear-gradient(135deg, var(--agro-dark) 0%, var(--agro-green) 100%) !important;
    color: white !important;
}

.contact-left-box * {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.contact-left-box i {
    color: var(--agro-accent) !important;
}