/* === FLEX-LAYOUT FÖR ATT FIXA FOOTER === */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 40px;
}

/* === TYPOGRAFI === */
body {
    font-family: 'Bahnschrift', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #c7ccd1; /* något mörkare stålgrå bakgrund */
}

/* === HEADER === */
header {
    background-color: #e0e3e5; /* ljus stålgrå */
    color: #222;
    animation: fadeIn 0.6s ease;
}

/* === NAVIGATION === */
.nav-link-custom {
    color: #000;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: 500;
    transition: color 0.2s ease, border-bottom 0.2s ease;
}

    .nav-link-custom:last-child {
        margin-right: 0;
    }

    .nav-link-custom:hover {
        color: #000;
        border-bottom: 2px solid #4a4f54; /* stålgrå understrykning */
    }

    .nav-link-custom.active {
        font-weight: 600;
        border-bottom: 2px solid #4a4f54;
    }

/* === LOGO === */
.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* === FORMULÄR === */
form {
    font-family: 'Bahnschrift', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background-color: #e0e3e5;
    border: 1px solid #bbb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block !important;
        font-weight: bold;
        margin-bottom: 5px;
        color: #333;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        display: block !important;
        width: min(40ch, 100%);
        padding: 8px 10px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #555;
            box-shadow: 0 0 4px rgba(0,0,0,0.2);
            outline: none;
        }

/* === KNAPPAR === */
.btn-primary,
button,
input[type="submit"] {
    background-color: #b0b4b9;
    border: 1px solid #9a9ea3;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

    .btn-primary:hover,
    button:hover,
    input[type="submit"]:hover {
        background-color: #a0a4a8;
        border-color: #888c91;
        color: #000;
    }

    .btn-primary:active {
        background-color: #8f9397;
        border-color: #7d8185;
        color: #000;
    }

/* === FOOTER === */
footer {
    position: relative;
    background-color: #e0e3e5;
    color: #333;
    border-top: 1px solid #bbb;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease;
}

/* Länk i footern */
.kontakt-länk {
    color: #333;
}

    .kontakt-länk:hover {
        color: #000;
        text-decoration: underline;
    }

/* === KORT (CARDS) === */
.card,
.steel-card {
    background: linear-gradient(145deg, #d6d9dc 0%, #e0e3e5 40%, #c7ccd1 100%);
    border: 1px solid #b0b4b9;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover,
    .steel-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .steel-card h4 {
        color: #333;
    }

/* === STÅLSEKTION === */
.steel-section {
    background: linear-gradient(145deg, #d6d9dc 0%, #e0e3e5 40%, #c7ccd1 100%);
    border-top: 1px solid #b0b4b9;
    border-bottom: 1px solid #b0b4b9;
    color: #222;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

    .steel-section .btn-primary {
        background-color: #b0b4b9;
        border: 1px solid #9a9ea3;
        color: #222;
    }

        .steel-section .btn-primary:hover {
            background-color: #a0a4a8;
            border-color: #888c91;
            color: #000;
        }
/* === LÄNKAR I PROJEKTBESKRIVNINGAR === */
.project-link {
    color: #4a5d7a; /* stålblå ton – syns men håller din stil */
    font-weight: 600; /* gör länken lite fetare */
    text-decoration: none; /* ingen understrykning direkt */
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

    .project-link:hover {
        color: #1a3b5d; /* mörkare nyans vid hover */
        text-decoration: underline; /* tydligt att den är klickbar */
    }

/* === ANIMATIONER === */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MOBILANPASSNING === */
@media (max-width: 576px) {
    form {
        margin: 15px;
        padding: 15px;
    }

    nav {
        text-align: center;
        margin-top: 10px;
    }
}
