/* Basic styles */
body {
    font-family: "Inter", sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    font-size: 18px;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    margin: 0 auto;
    width: fit-content;
    max-width: 40%;
    width: 40%;
}

#uvod .container {
    width: 100%;
    max-width: 90%;
}

a {
    color: #FFF;
    text-decoration: none;
}

h2, h1 {
    font-size: 48px;
    font-weight: lighter;
    color: #0056b3;
    margin: 0;
    margin-bottom: 50px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

#form-messages p.success {
    color: green;
    font-weight: bold;
}

#form-messages ul.error, #form-messages p.error {
    color: red;
    list-style: none;
    margin-left: 20px;
}


/* Header */
header {
    background-color: #007bff;
    color: white;
    text-align: left;
}

header p {
    margin: 0;
    font-size: 48px;
    font-weight: bold;
    width: 100%;
    max-width: 100%;
}

header p:nth-child(2) {
    text-align: right;
}

header .container {
    padding: 25px 50px;
    display: flex;
    max-width: 85%;
    width: 100%;
}

/* Hero Section */
section.hero {
    background-color: #f0f8ff !important; 
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.hero p {
    font-size: 18px;
    max-width: 40%;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.hero-buttons .btn {
    flex-grow: 1;
    max-width: 300px;
    background-color: #007bff;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.hero-buttons .btn:hover {
    background-color: #0056b3;
}

/*  */
section {
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}

section:nth-of-type(odd) {
    background-color: #f9f9f9;
}

section h2 {
    text-align: center;
}

.text-content {
    column-gap: 40px;
    margin-bottom: 30px;
}

.text-content p, .text-content ul {
    margin-bottom: 18px;
}

.text-content ul {
    list-style-type: disc;
    margin: 0;
}

.call-to-action-btn {
    display: block;
    width: 280px;
    margin: 25px auto 0;
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.call-to-action-btn:hover {
    background-color: #0056b3;
}

/* Contact form */
#formular .container {
    width: 90%;
    margin: 0 auto;
}

.contact-form {
    font-weight: normal;
    width: 90%;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.contact-form sup {
    color: #FF0000;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
}

button {
    font-family: "Inter", sans-serif;
    font-size: 18px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    height: 45px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0 auto;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Patička */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
    text-align: left;
}

footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

footer p {
    margin: 5px 0;
    font-size: 18px;
    line-height: 19px;
}

footer a {
    text-decoration: underline;
}

footer span {
    font-weight: bold;
}

/* --- MEDIA QUERIES --- */

/* small desktops (w < 992px) */
@media (max-width: 992px) {
    body {
        font-size: 16px;
    }

    h2, h1 {
        font-size: 32px;
    }

    .container {
        padding: 15px;
    }

    .text-content {
        columns: 1;
    }
}

@media (max-width: 830px) {
    header p:nth-child(2) {
        display: none;
        width: 0;
    }
    header p {
        text-align: center;
    }
    header .container {
    }
}

/* mobile phones (w < 768px) */
@media (max-width: 768px) {
    header p {
        text-align: center;
        margin: 0;
        font-size: 48px;
        font-weight: bold;
    }


    header {
        padding: 25px 0;
    }

    header .container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .hero p {
        max-width: 80%;
        width: 80%;
    }

    .container {
        width: 80%;
        max-width: 80%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        display: grid; 
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 15px;
    }

    .call-to-action-btn {
        width: fit-content;
        padding: 10px 25px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* small mobile phones (w < 480px) */
@media (max-width: 480px) {
    #uvod .container {
        width: 70%;
        padding: 15px;
        margin: 0 auto;
    }
    section .container {
        width: 70%;
        width: 85%;
        max-width: 100%;
        margin-left: 15px;
    }

    .call-to-action-btn {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .contact-form {
        padding: 15px;
    }

    .contact-form button {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .contact-form .flex {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-form .form-group {
        flex: 1 1 45%;
        min-width: 200px;
    }

    .contact-form select {
        margin-top: -5px;
    }

    footer .container {
        width: 90%;
    }

    .footer-flex {
        display: flex;
        justify-content: center;
        gap: 40px; /* mezera mezi sekcemi */
        flex-wrap: wrap;
        text-align: left;
    }

    .footer-section {
        flex: 1 1 300px;
        max-width: 400px;
    }
}