/* GLOBALNE POSTAVKE */
body { 
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 60px; /* Da se sadržaj ne poklopi s menijem */
    box-sizing: border-box;
    background-color: #fae7b5; /* Bež pozadina */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
header {
    background-color: #4b2e2a;
    color: white;
    padding: 5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 45px; /* Visina menija */
    box-sizing: border-box;
}

/* NAVIGACIJA */
/* Standardni horizontalni navbar */
nav {
    display: flex;
    justify-content: space-between; /* Poravnanje stavki u navbaru */
    align-items: center; /* Vertikalno poravnavanje */
    padding: 0;
    margin: 0; /* Nema margina */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* Dodan padding za razmak između linkova */
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #3a1f1b; /* Promena pozadine na hover */
    text-decoration: underline;
}



/* HERO sekcija (SVE STRANICE) */
.hero, .hero-index, .hero-usluge {
    background: url('images/majstor.jpg') center/cover no-repeat;
    position: relative;
    text-align: center;
    color: white;
    height: 200px; /* Standardizovana visina */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    height: 200px; /* Standardna visina za veće ekrane */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1, .hero-index h1, .hero-usluge h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Subtitle ispod hero naslova */
.hero .subtitle, .hero-usluge p {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 5px;
}

/* GLAVNI SADRŽAJ (INDEX) */
.main-content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    flex: 1;
}

/* Leva strana - Opis */
.left-section {
    flex: 2;
    padding: 20px;
}

/* Stil za opis usluga */
.service-description {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #fae7b5;
    border-left: 4px solid #4b2e2a; /* Vizuelna ivica na levoj strani */
    font-size: 1rem;
    line-height: 1.5;
    color: #4b2e2a;
}

/* Desna strana - Usluge */
.right-section {
    flex: none;
    width: 300px;
    padding: 20px;
    background-color: #fae7b5;
    position: relative;
    left: 50px;
}

/* TABELA STIL */
.services {
    padding: 20px;
    background-color: #fae7b5;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 1.1em;
    text-align: left;
}

table th, table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

table thead tr {
    background-color: #4b2e2a;
    color: white;
}

table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* SEKCIONISANE USLUGE */
.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #fae7b5;
}

.service {
    width: 30%;
    background: white;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.service img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.service h2 {
    color: #4b2e2a;
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Stil za usluge unutar kartica */
.service ul {
    list-style-type: none;
    padding-left: 20px;
    border-left: 4px solid #4b2e2a;
    margin-left: 0;
}

.service ul li {
    text-align: left;
    padding: 5px 0;
}

/* FOOTER */
footer {
    background-color: #4b2e2a;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}
.contact-container {
    width: 50%;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-container h1 {
    color: #4b2e2a;
    font-size: 2rem;
}

.contact-container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    text-align: left;
    font-weight: bold;
    color: #4b2e2a;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background: #4b2e2a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

button:hover {
    background: #3a1f1b;
}
.contact-container p strong {
    font-size: 1.5rem; /* Величина броја */
    display: block;
    margin-top: 5px;
}
/* Hamburger meni (na mobilnim uređajima) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .line {
    width: 25px;
    height: 3px;
    background-color: white;
}
/* Za ekrane manjih dimenzija (do 768px širine) */
@media (max-width: 768px) {
    /* Hero sekcija - smanjenje fonta i prilagođavanje pozadinske slike */
    .hero-index {
        height: 150px;
        background-size: cover;
        background-position: center;
    }

    .hero-index h1 {
        font-size: 1.8rem;
    }

    .hero-index p {
        font-size: 1rem;
    }

    /* Sekcija sa tekstom - poravnanje */
    .left-section {
        flex: 1; /* Povećavamo širinu levog dela */
        padding: 10px;
    }

    .right-section {
        flex: none;
        width: 100%;
        padding: 15px;
        margin-top: 20px;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Veći razmak u navigaciji */
    nav {
        flex-direction: column;
        gap: 10px;
    }

    /* Povećanje dugmadi i linkova */
    button, nav a {
        font-size: 1.2rem;
        padding: 12px 18px;
    }

    /* Usluge - Prikaz usluga kao blokovi */
    .service-category ul {
        display: block;
    }
    nav {
        display: none; /* Sakrij navbar dok se ne klikne na hamburger meni */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #4b2e2a;
    }

    nav a {
        padding: 15px;
        text-align: center;
        border-top: 1px solid white;
    }

    .hamburger-menu {
        display: flex;
    }
}

/* Za ekrane manjih od 480px */
@media (max-width: 480px) {
    .hero-index h1 {
        font-size: 1.5rem;
    }

    .hero-index p {
        font-size: 0.9rem;
    }

    /* Hero tekst - smanjenje margina */
    .hero-text {
        padding: 10px;
    }
    nav {
        display: none; /* Sakrij navbar dok se ne klikne na hamburger meni */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #4b2e2a;
    }

    nav a {
        padding: 15px;
        text-align: center;
        border-top: 1px solid white;
    }

    .hamburger-menu {
        display: flex;
    }
}
/* Aktivacija menija nakon klika na hamburger ikonu */
nav.active {
    display: flex;
}

/* Za mobilne uređaje */
@media (max-width: 768px) {
    .contact-container {
        width: 90%; /* Širina forme na mobilnim uređajima */
        margin: 20px auto;
        padding: 15px;
    }

    .contact-container h1 {
        font-size: 1.8rem; /* Manji font za mobilne uređaje */
    }

    .contact-container p {
        font-size: 1rem; /* Manji tekst */
    }

    form {
        gap: 10px; /* Manji razmaci između polja */
    }

    input, textarea {
        padding: 8px; /* Manji padding */
        font-size: 0.9rem; /* Manji font */
    }

    button {
        font-size: 1rem; /* Manji font na dugmetu */
    }
}

