/* --- Base Reset & Typography --- */
body {
    margin: 0;
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    background-color: #F5F5E9; 
    color: #2c2c2c;
    line-height: 1.6;
}

/* --- Headings --- */
h1, h2, h3 {
    color: #2c2c2c;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* --- Header / Nav --- */
header {
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    background-color: #C9D4C7; 
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav {
    margin-top: 0;
}

header nav a {
    text-decoration: none;
    color: #2c2c2c;
    margin-left: 1.2rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #555552;
}

/* --- Main content --- */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fefefe;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* --- Form Styles --- */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

form input,
form textarea,
form select {
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    color: #2c2c2c;
    background-color: #dedede;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background-color: #d9d9c3;
    color: #2c2c2c;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #cfcfb2;
}

/* --- Map --- */
#map {
    width: 100%;
    height: 60vh;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Fingerprint Popups --- */
.leaflet-popup-content {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    color: #2c2c2c;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 0.5rem;
        width: 100%;
        text-align: left;
    }

    header nav a {
        display: inline-block;
        margin: 0 0.5rem 0.5rem 0;
    }

    main {
        margin: 1rem;
        padding: 1rem;
    }

    .hero h2 {
        font-size: 5vw; /* scales with viewport width */
        line-height: 1.2;
    }
    .hero p {
        font-size: 4vw; /* scales with viewport width */
        line-height: 1.4;
    }
    form input,
    form textarea,
    form select {
        font-size: 1rem;
    }

    #map {
        height: 50vh;
    }
}

/* --- Extra small devices --- */
@media (max-width: 480px) {
    header h1 {
        font-size: 7vw;
    }

    .hero h2 {
        font-size: 6vw;
    }

    .hero p {
        font-size: 5vw;
    }

    form button {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
}
