/* === RESET & GLOBAL STYLES === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === MAIN HEADER === */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./images/vizitka-ozadje.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 6vw, 60px);
    font-weight: bold;
}

/* === ABOUT SECTION === */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #fff;
}

.about h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.about p,
.about ul {
    max-width: 800px;
    margin-bottom: 20px;
    text-align: center;
}

.about ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

/* === CATALOG SECTION === */
.katalog {
    display: flex;
    justify-content: center;
    background-color: #eee;
    padding: 40px 0;
}

button {
    padding: 15px 30px;
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    background-color: #444;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #222;
}

button a {
    color: white;
    font-weight: bold;
}

/* === FOOTER === */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    background-color: rgba(139, 0, 0, 0.9);
    color: white;
    padding: 40px 20px;
}

.kontakt,
.contact-form {
    flex: 1 1 300px;
    max-width: 500px;
}

.kontakt h2,
.contact-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.kontakt p,
.contact-form label {
    margin-bottom: 10px;
    display: block;
}

.kontakt a {
    color: white;
    text-decoration: underline;
}

/* === CONTACT FORM === */
.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.contact-form form label {
    grid-column: span 2;
    font-weight: bold;
    font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: white;
    color: #333;
}

textarea {
    min-height: 120px;
    resize: vertical;
    grid-column: span 2;
}

#fiz-oseba {
    width: auto;
    margin-left: 10px;
}

#podatki-podjetja {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="submit"] {
    grid-column: span 2;
    padding: 12px;
    font-size: 1rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #222;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .about, .katalog {
        padding: 40px 20px;
    }

    h1 {
        font-size: 40px;
    }

    button {
        font-size: 1.25rem;
        padding: 10px 20px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .kontakt,
    .contact-form {
        max-width: 100%;
    }

    .contact-form form {
        grid-template-columns: 1fr;
    }

    #podatki-podjetja {
        grid-column: span 1;
    }

    input[type="submit"],
    textarea {
        grid-column: span 1;
    }
}
