/* Podstawowy reset i czcionki */
body {
    /* Upewniamy się, że body zajmuje całą wysokość widocznego obszaru */
    min-height: 100vh; 
    display: flex;
    flex-direction: column; /* Układanie elementów w kolumnie */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* NAGŁÓWEK */
header {
    background-color: white;  /* Ciemny niebieski/granat #004d7a; */
    color: #00438B;
    padding: 20px 40px;
    text-align: center;
    border-bottom: 5px solid #ffcc00; /* Złoty akcent */
    min-height: 8vh;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    gap: 15px;
}

.logo-container img{
    height: 50px;
}

header h1 {
    margin: 0;
    font-size: 2.4em;
    font-weight: bold;
}

.subtitle {
    margin: 10px 0 0 0;
    font-size: 1.7em;
    font-weight: bold;
    letter-spacing: 2px;
}

/* MENU NAWIGACYJNE */
nav {
    background-color: #333;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Wyśrodkowanie menu */
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
}

nav ul li a.active {
    background-color: #ffcc00; /* Złoty aktywny link */
    color: #00438B;
    font-weight: bold;
}

/* GŁÓWNA ZAWARTOŚĆ */
main {
    padding: 20px;
    flex-grow: 1; /* Wypełnia dostępną przestrzeń */
    overflow-y: auto; /* Włącza pionowy scrollbar tylko dla tej sekcji, gdy jest za długa */
    max-height: 65vh; 
    box-sizing: border-box; /* Upewnia się, że padding jest wliczony w max-height */
    padding-left: 4em;
    padding-right: 4em;
}

.content-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.hidden {
    display: none; /* Sekcje ukryte domyślnie */
}

/* STOPKA */
footer {
    background-color: #00438B;; 
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    border-top: 3px solid #00438B;;
    /* Dodaj stałą wysokość lub padding, aby ułatwić obliczenia max-height w 'main' */
    flex-shrink: 0; /* Zapobiega zmniejszaniu się stopki */
}

.footer-row {
    margin-bottom: 10px;
}

.footer-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #ffcc00;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

footer h4 {
    margin: 0;
    font-size: 1.2em;
    min-height: 1vh;;
}

p {
    margin-left: 2em;
}
/* Stylizacja listy usług geodezyjnych */
.geodesy-services {
    list-style: none; /* Usuń domyślne kropki */
    padding: 0;
    margin-left: 4em;
}

.geodesy-services li {
    background-color: #e9f5ff; /* Jasny niebieski dla kontrastu */
    border-left: 5px solid #00438B;; /* Niebieski pasek akcentujący */
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    max-width: 60em;
}

.geodesy-services li:hover {
    background-color: #d1e9ff; /* Jaśniejszy kolor przy najechaniu */
}

.service-title {
    font-weight: bold;
    color: #00438B; /* Główny kolor firmy */
    font-size: 1.1em;
    margin-bottom: 5px;
}

.service-description {
    color: #555;
    font-size: 0.95em;
}